add support for ansi color names conforming to the site's colorscheme

This commit is contained in:
2025-05-31 01:39:11 -07:00
parent 7636655877
commit e7506550b8
2 changed files with 47 additions and 2 deletions

View File

@ -0,0 +1,43 @@
.bold {
font-weight: bold;
}
.italic {
font-weight: italic;
}
.dimgray { color: #525252; }
.red { color: #ee5396; }
.blue { color: #42be65; }
.yellow { color: #ff7eb6; }
.green { color: #33b1ff; }
.purple { color: #be95ff; }
.cyan { color: #3ddbd9; }
.white { color: #08bdba; }
.highlighted .dimgray { color: #525252; }
.highlighted .red { color: #98a9ff; }
.highlighted .blue { color: #262626; }
.highlighted .yellow { color: #393939; }
.highlighted .green { color: #dde1e6; }
.highlighted .purple { color: #ffffff; }
.highlighted .cyan { color: #82cfff; }
.highlighted .white { color: #f2f4f8; }
.bg-dimgray { color: #525252; }
.bg-red { color: #ee5396; }
.bg-blue { color: #42be65; }
.bg-yellow { color: #ff7eb6; }
.bg-green { color: #33b1ff; }
.bg-purple { color: #be95ff; }
.bg-cyan { color: #3ddbd9; }
.bg-white { color: #08bdba; }
.highlighted .bg-dimgray { color: #525252; }
.highlighted .bg-red { color: #98a9ff; }
.highlighted .bg-blue { color: #262626; }
.highlighted .bg-yellow { color: #393939; }
.highlighted .bg-green { color: #dde1e6; }
.highlighted .bg-purple { color: #ffffff; }
.highlighted .bg-cyan { color: #82cfff; }
.highlighted .bg-white { color: #f2f4f8; }

View File

@ -1,8 +1,8 @@
(import templates.header [header])
(import templates.footer [footer])
(import utils [run hy-env])
(defn page [html
[title "natalieee.net"]
[author "natalie roentgen connolly"]
@ -18,7 +18,9 @@
body {display: none}]])
(link (:rel preload :href "/assets/style.css" :as style))
(link (:rel preload :href "/assets/bg.svg" :as image))
(link (:rel preload :href "/assets/ansi-colors.css" :as style))
(link (:rel "stylesheet" :href "/assets/style.css" :type "text/css"))
(link (:rel "stylesheet" :href "/assets/ansi-colors.css" :type "text/css"))
(meta (:http-equiv "content-type" :content "text/html; charset=utf-8"))
(meta (:name "viewport" :content "width=device-width, initial-scale=1"))
(meta (:name "author" :content ~author))