2023-05-11 13:54:04 -05:00
|
|
|
/* catppuccin colors */
|
|
|
|
latte = {
|
|
|
|
red: #d20f39,
|
|
|
|
yellow: #df8e1d,
|
|
|
|
green: #40a02b,
|
|
|
|
sapphire: #209fb5,
|
|
|
|
mauve: #8839ef,
|
|
|
|
}
|
|
|
|
|
|
|
|
mocha = {
|
|
|
|
red: #f38ba8,
|
|
|
|
yellow: #f9e2af,
|
|
|
|
green: #a6e3a1
|
|
|
|
sapphire: #74c7ec,
|
|
|
|
mauve: #cba6f7,
|
|
|
|
}
|
|
|
|
|
2020-12-16 00:13:13 -06:00
|
|
|
light-syntax = {
|
|
|
|
brd: rgba(255, 255, 255, 0.2),
|
2023-05-11 13:54:04 -05:00
|
|
|
bg: #e6e9ef,
|
|
|
|
ledg: rgba(0, 0, 0, 0.1),
|
|
|
|
sh: #6c6f85,
|
|
|
|
name: latte['green'],
|
|
|
|
mag: latte['red'],
|
|
|
|
lit: latte['mauve'],
|
|
|
|
lits: latte['yellow'],
|
|
|
|
aq: latte['sapphire'],
|
|
|
|
err: latte['red'],
|
2020-12-16 00:13:13 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
dark-syntax = {
|
|
|
|
brd: rgba(255, 255, 255, 0.2),
|
2023-05-11 13:54:04 -05:00
|
|
|
bg: #181825,
|
|
|
|
ledg: #313244,
|
|
|
|
sh: #6c7086,
|
|
|
|
name: mocha['green'],
|
|
|
|
mag: mocha['red'],
|
|
|
|
lit: mocha['mauve'],
|
|
|
|
lits: mocha['yellow'],
|
|
|
|
aq: mocha['sapphire'],
|
|
|
|
err: mocha['red'],
|
2020-12-16 00:13:13 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
theme-colors = {
|
|
|
|
icon-shadow: #fff,
|
2023-05-11 13:54:04 -05:00
|
|
|
link-visited-fg: #5c5f77,
|
|
|
|
link-fg: #209fb5,
|
2020-12-16 00:13:13 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
:root
|
2020-12-17 16:37:54 -06:00
|
|
|
--syntax-bpx: 5px
|
|
|
|
--ff system-ui, sans-serif
|
2022-02-28 22:47:38 -06:00
|
|
|
--msff ldiosevka, IosevkaLyteWeb, IosevkaLyte, Iosevka, "Fira Code", monospace
|
2020-12-16 00:13:13 -06:00
|
|
|
--pc #df3c59
|
|
|
|
--pcd #8e293b
|
|
|
|
|
|
|
|
light-theme =
|
|
|
|
for k, v in light-syntax
|
|
|
|
--syntax-{k}: v
|
|
|
|
for k2, v2 in theme-colors
|
|
|
|
{unquote("--" + k2)}: v2
|
2023-05-11 13:54:04 -05:00
|
|
|
--heading-fg #4c4f69
|
|
|
|
--bg #eff1f5
|
|
|
|
--header-bg rgba(255, 255, 255, 0.1)
|
2023-05-15 09:36:08 -05:00
|
|
|
--header-hover-bg rgba(255, 255, 255, 0.2)
|
2023-05-11 13:54:04 -05:00
|
|
|
--fg #4c4f69
|
|
|
|
--inline-code-bg rgba(0,0,0,0.08)
|
|
|
|
--input-bg #dce0e8
|
2020-12-18 10:01:32 -06:00
|
|
|
--input-hover-bg rgba(0, 0, 0, 0.16)
|
|
|
|
--input-focus-bg var(--input-bg)
|
|
|
|
--button-bg var(--input-bg)
|
|
|
|
--button-hover-bg var(--input-hover-bg)
|
|
|
|
--button-focus-bg var(--input-bg)
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
dark-theme =
|
|
|
|
for k, v in dark-syntax
|
|
|
|
--syntax-{k}: v
|
|
|
|
for k2, v2 in theme-colors
|
|
|
|
{unquote("--" + k2)}: invert(v2)
|
2023-05-11 13:54:04 -05:00
|
|
|
--bg #1e1e2e
|
|
|
|
--header-bg rgba(255, 255, 255, 0.03)
|
2023-05-15 09:36:08 -05:00
|
|
|
--header-hover-bg rgba(255, 255, 255, 0.06)
|
2023-05-11 13:54:04 -05:00
|
|
|
--fg #cdd6f4
|
|
|
|
--heading-fg #cdd6f4
|
|
|
|
--link-visited-fg #a6adc8
|
|
|
|
--link-fg #74c7ec
|
|
|
|
--inline-code-bg rgba(255,255,255,0.05)
|
|
|
|
--input-bg #181825
|
|
|
|
--input-hover-bg #313244
|
|
|
|
--input-focus-bg #45475a
|
2020-12-18 10:01:32 -06:00
|
|
|
--button-bg var(--input-bg)
|
|
|
|
--button-hover-bg var(--input-hover-bg)
|
|
|
|
--button-focus-bg var(--input-bg)
|
2020-12-16 00:13:13 -06:00
|
|
|
|
|
|
|
:root, body.light-theme
|
|
|
|
{light-theme}
|
|
|
|
|
|
|
|
body.dark-theme
|
|
|
|
{dark-theme}
|
|
|
|
|
|
|
|
:root
|
|
|
|
@media (prefers-color-scheme dark)
|
|
|
|
{dark-theme}
|
|
|
|
|
2020-12-17 16:37:54 -06:00
|
|
|
:root
|
|
|
|
@media (max-width: 600px)
|
|
|
|
--syntax-bpx 2px
|
|
|
|
|
2020-12-16 00:13:13 -06:00
|
|
|
.hide-in-light-theme
|
|
|
|
display none
|
|
|
|
|
|
|
|
@media (prefers-color-scheme dark)
|
|
|
|
.hide-in-dark-theme
|
|
|
|
display none
|
|
|
|
.hide-in-light-theme { display: inherit }
|
|
|
|
body.light-theme .hide-in-dark-theme { display: inherit }
|
|
|
|
body.dark-theme .hide-in-light-theme { display: none }
|
|
|
|
|
|
|
|
body.dark-theme .hide-in-dark-theme { display: none }
|
|
|
|
body.dark-theme .hide-in-light-theme { display: inherit }
|
|
|
|
body.light-theme .hide-in-dark-theme { display: inherit }
|
|
|
|
body.light-theme .hide-in-light-theme { display: none }
|