84 lines
4.2 KiB
Sass
84 lines
4.2 KiB
Sass
// _variables.sass (Enhanced Theme with Primary-Quinary Colors)
|
|
|
|
@use "sass:map"
|
|
@use "sass:color"
|
|
@use '../fonts' as fonts
|
|
|
|
$list-padding-left: 1.2em
|
|
|
|
// Color Variables
|
|
|
|
// Colors
|
|
$primary-color: #1D2526 // Deep navy-gray
|
|
$secondary-color: #A69F92 // Soft beige-gray
|
|
$tertiary-color: #734432 // Rich brown
|
|
$quaternary-color: #BF8069 // Warm peach
|
|
$quinary-color: #A62E2E // Bold red
|
|
|
|
// Text
|
|
$text-color: color.adjust($primary-color, $lightness: 10%)
|
|
$background-color: color.adjust($secondary-color, $lightness: 25%) // Slightly darker neutral for overall background
|
|
|
|
$code-text-color: color.adjust($primary-color, $lightness: 70%) // Brightened for readability
|
|
$code-background-color: color.adjust($primary-color, $lightness: -10%) // Slightly darker for contrast
|
|
$code-border-color: $quaternary-color
|
|
|
|
$note-color: $secondary-color
|
|
$note-background-color: color.adjust($secondary-color, $lightness: 20%) // Subtle contrast for notes
|
|
$note-border-color: $quinary-color // Matches the bold red accent
|
|
|
|
$blockquote-color: $primary-color
|
|
$blockquote-border-color: $secondary-color
|
|
|
|
// Links, Anchors
|
|
$anchor-color: color.adjust($tertiary-color, $lightness: 0%) // Slightly brighter brown for links
|
|
$anchor-hover-color: color.adjust($tertiary-color, $lightness: 20%) // Darkened for hover effect
|
|
$toc-anchor-color: color.adjust($quaternary-color, $lightness: 0%) // Slightly muted peach for TOC links
|
|
$toc-anchor-hover-color: color.adjust($quaternary-color, $lightness: -20%) // Slightly darker peach for hover
|
|
|
|
// Tables
|
|
$table-color: $text-color
|
|
$table-header-color: $text-color
|
|
$table-header-bg: color.adjust($quaternary-color, $lightness: -20%) // Darker peach for table headers
|
|
$table-border-color: color.adjust($primary-color, $lightness: -20%) // Darkened navy-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, color.adjust($primary-color, $lightness: 10%))
|
|
$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)
|
|
$default-header-colors: map.set($default-header-colors, h5, $tertiary-color)
|
|
$default-header-colors: map.set($default-header-colors, h6, $quinary-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
|
|
$secondary-font: 'Kanit', sans-serif // Geometric and blocky sans-serif for headers
|
|
$primary-font: 'JetBrains Mono' // Thicker monospaced font for primary content
|
|
|