org-media-sass/themes/_nocturne-ledger.sass

74 lines
3.5 KiB
Sass
Raw Permalink Normal View History

2024-11-30 23:19:51 +02:00
// _nocturne-ledger.sass
@use "sass:map"
@use "sass:color"
@use '../fonts' as fonts
$list-padding-left: 1.5em
// Color Variables
// Colors
$primary-color: #3e536d // Deep slate blue for links
$secondary-color: #586e75 // Muted teal for secondary elements
$tertiary-color: #d19a66 // Golden brown for tertiary elements
$quaternary-color: #6c757d // Subdued gray for highlights
$quinary-color: #a44b6a // Rich burgundy for accents
$code-background-color: #1e1f24 // Very dark gray for code blocks
$code-text-color: #c6d0d1 // Soft grayish-cyan for code text
$note-background-color: #2a2d35 // Charcoal gray for note background
$note-border-color: $quinary-color // Matches the burgundy accent
// Text
$text-color: #d4d7dd // Light gray for text
$background-color: #131519 // Dark navy background for visual comfort
// Links, Anchors
$anchor-color: color.adjust($primary-color, $lightness: 15%)
$anchor-hover-color: color.adjust($primary-color, $lightness: -10%)
$toc-anchor-color: color.adjust($secondary-color, $lightness: -5%)
$toc-anchor-hover-color: color.adjust($secondary-color, $lightness: -10%)
// Tables
$table-header-bg: #2d3a40 // Muted teal-gray for table headers
$table-border-color: #3c444b // Soft dark gray for borders
$default-header-sizes: ()
$default-header-sizes: map.set($default-header-sizes, h1, 2.5em)
$default-header-sizes: map.set($default-header-sizes, h2, 2em)
$default-header-sizes: map.set($default-header-sizes, h3, 1.8em)
$default-header-sizes: map.set($default-header-sizes, h4, 1.4em)
$default-header-sizes: map.set($default-header-sizes, h5, 1.2em)
$default-header-sizes: map.set($default-header-sizes, h6, 1.1em)
$default-header-colors: ()
$default-header-colors: map.set($default-header-colors, h1, $primary-color)
$default-header-colors: map.set($default-header-colors, h2, $secondary-color)
$default-header-colors: map.set($default-header-colors, h3, $tertiary-color)
$default-header-colors: map.set($default-header-colors, h4, $quaternary-color)
// Initialize empty maps
$default-header-margins-sides: ()
$default-header-margins-vertical: ()
// Dynamically populate sides map
$default-header-margins-sides: map.set($default-header-margins-sides, h1, (left: 0, right: 0))
$default-header-margins-sides: map.set($default-header-margins-sides, h2, (left: 0, right: 0))
$default-header-margins-sides: map.set($default-header-margins-sides, h3, (left: 0, right: 0))
$default-header-margins-sides: map.set($default-header-margins-sides, h4, (left: 0, right: 0))
$default-header-margins-sides: map.set($default-header-margins-sides, h5, (left: 0, right: 0))
$default-header-margins-sides: map.set($default-header-margins-sides, h6, (left: 0, right: 0))
// Dynamically populate vertical map
$default-header-margins-vertical: map.set($default-header-margins-vertical, h1, (top: 1em, bottom: 0.5em))
$default-header-margins-vertical: map.set($default-header-margins-vertical, h2, (top: 1em, bottom: 0em))
$default-header-margins-vertical: map.set($default-header-margins-vertical, h3, (top: 0em, bottom: 0.5em))
$default-header-margins-vertical: map.set($default-header-margins-vertical, h4, (top: 0em, bottom: 0.5em))
$default-header-margins-vertical: map.set($default-header-margins-vertical, h5, (top: 1em, bottom: 0.5em))
$default-header-margins-vertical: map.set($default-header-margins-vertical, h6, (top: 1em, bottom: 0.5em))
// Fonts
$primary-font: 'Source Sans Pro', sans-serif // Professional sans-serif for content
$secondary-font: 'Roboto Slab', serif // Elegant serif for headers