2024-11-29 06:13:49 +02:00
|
|
|
// _var2.sass
|
|
|
|
|
@use "sass:map"
|
|
|
|
|
@use "sass:color"
|
|
|
|
|
@use 'fonts' as fonts
|
2024-11-27 04:24:34 +02:00
|
|
|
|
|
|
|
|
$list-padding-left: 1.5em
|
|
|
|
|
|
|
|
|
|
// Color Variables
|
2024-11-29 06:13:49 +02:00
|
|
|
|
|
|
|
|
// Colors
|
|
|
|
|
$primary-color: #61afef // Used for links (updated)
|
|
|
|
|
$secondary-color: #98c379 // Used for code blocks (updated)
|
|
|
|
|
$tertiary-color: #abb2bf // General text color (new tertiary role)
|
|
|
|
|
$quaternary-color: #d19a66 // Highlight color (updated)
|
|
|
|
|
$quinary-color: #e06c75 // Accent for headers (updated)
|
|
|
|
|
|
2024-11-29 07:46:30 +02:00
|
|
|
$code-background-color: #2c313c // Code block background (updated)
|
|
|
|
|
$code-text-color: #abb2bf // Text color for code blocks (updated)
|
|
|
|
|
|
|
|
|
|
$note-background-color: #333842 // Note background (unchanged)
|
|
|
|
|
$note-border-color: $quinary-color // Note border color (unchanged)
|
|
|
|
|
|
2024-11-29 06:13:49 +02:00
|
|
|
// Text
|
2024-11-29 07:46:30 +02:00
|
|
|
$text-color: $tertiary-color // General text color (updated)
|
|
|
|
|
$background-color: color.adjust($tertiary-color, $lightness: -53%)
|
2024-11-29 06:13:49 +02:00
|
|
|
|
|
|
|
|
// Links, Anchors
|
2024-11-29 07:13:38 +02:00
|
|
|
$anchor-color: color.adjust($primary-color, $lightness: 15%)
|
|
|
|
|
$anchor-hover-color: color.adjust($quaternary-color, $lightness: 10%)
|
2024-11-29 06:13:49 +02:00
|
|
|
$toc-anchor-color: color.adjust($secondary-color, $lightness: -5%)
|
|
|
|
|
$toc-anchor-hover-color: color.adjust($primary-color, $lightness: -5%)
|
|
|
|
|
|
|
|
|
|
// Tables
|
|
|
|
|
$table-header-bg: #44475a // Steely blue for table headers (unchanged)
|
|
|
|
|
$table-border-color: #6272a4 // Muted blue-gray for borders (unchanged)
|
|
|
|
|
|
|
|
|
|
// Default Header Sizes and Colors
|
2024-11-29 06:41:22 +02:00
|
|
|
$default-header-sizes: (h1: 2em, h2: 1.75em, h3: 1.5em, h4: 1.25em, h5: 1.1em, h6: 1em)
|
2024-11-29 06:13:49 +02:00
|
|
|
$default-header-colors: (h1: $quaternary-color, h2: $quinary-color, h3: $primary-color, h4: $secondary-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: 0.5em))
|
|
|
|
|
$default-header-margins-vertical: map.set($default-header-margins-vertical, h3, (top: 1em, bottom: 0.5em))
|
|
|
|
|
$default-header-margins-vertical: map.set($default-header-margins-vertical, h4, (top: 1em, 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: 3.5em, bottom: 0.5em))
|
2024-11-27 04:24:34 +02:00
|
|
|
|
2024-11-29 06:13:49 +02:00
|
|
|
// Fonts
|
|
|
|
|
$primary-font: 'Fira Mono', monospace
|
|
|
|
|
$secondary-font: 'Roboto', sans-serif
|
2024-11-27 04:24:34 +02:00
|
|
|
|