2023-05-11 13:54:04 -05:00
|
|
|
/* catppuccin colors */
|
2023-05-23 11:59:29 -05:00
|
|
|
|
2023-05-11 13:54:04 -05:00
|
|
|
latte = {
|
|
|
|
red: #d20f39,
|
|
|
|
yellow: #df8e1d,
|
|
|
|
green: #40a02b,
|
2023-05-23 11:59:29 -05:00
|
|
|
sapphire: #1e66f5, // blue
|
2023-05-11 13:54:04 -05:00
|
|
|
mauve: #8839ef,
|
|
|
|
}
|
|
|
|
|
|
|
|
mocha = {
|
|
|
|
red: #f38ba8,
|
|
|
|
yellow: #f9e2af,
|
|
|
|
green: #a6e3a1
|
|
|
|
sapphire: #74c7ec,
|
|
|
|
mauve: #cba6f7,
|
|
|
|
}
|
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
/* TODO: everything should be a catppuccin color or based on one */
|
2020-12-16 00:13:13 -06:00
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
light-theme = {
|
|
|
|
--syntax-brd: rgba(255, 255, 255, 0.2),
|
|
|
|
--syntax-bg: #e6e9ef,
|
|
|
|
--syntax-ledg: rgba(0, 0, 0, 0.1),
|
|
|
|
--syntax-sh: #6c6f85,
|
|
|
|
--syntax-name: latte['green'],
|
|
|
|
--syntax-mag: latte['red'],
|
|
|
|
--syntax-lit: latte['mauve'],
|
|
|
|
--syntax-lits: latte['yellow'],
|
|
|
|
--syntax-aq: latte['sapphire'],
|
|
|
|
--syntax-err: latte['red'],
|
|
|
|
--icon-shadow: #fff,
|
|
|
|
--heading-fg: #4c4f69,
|
|
|
|
--link-fg: latte['sapphire'],
|
|
|
|
--link-visited-fg: alpha(latte['mauve'], 1.0),
|
|
|
|
--bg: #eff1f5,
|
|
|
|
--header-bg: rgba(255, 255, 255, 0.1),
|
|
|
|
--header-hover-bg: rgba(255, 255, 255, 0.2),
|
|
|
|
--fg: #4c4f69,
|
|
|
|
--inline-code-bg: rgba(0,0,0,0.08),
|
|
|
|
--input-bg: #dce0e8,
|
|
|
|
--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
|
|
|
}
|
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
dark-theme = {
|
|
|
|
--syntax-brd: rgba(255, 255, 255, 0.2),
|
|
|
|
--syntax-bg: #181825,
|
|
|
|
--syntax-ledg: #313244,
|
|
|
|
--syntax-sh: #6c7086,
|
|
|
|
--icon-shadow: #000,
|
|
|
|
--syntax-name: mocha['green'],
|
|
|
|
--syntax-mag: mocha['red'],
|
|
|
|
--syntax-lit: mocha['mauve'],
|
|
|
|
--syntax-lits: mocha['yellow'],
|
|
|
|
--syntax-aq: mocha['sapphire'],
|
|
|
|
--syntax-err: mocha['red'],
|
|
|
|
--bg: #1e1e2e,
|
|
|
|
--header-bg: rgba(255, 255, 255, 0.03),
|
|
|
|
--header-hover-bg: rgba(255, 255, 255, 0.06),
|
|
|
|
--fg: #cdd6f4,
|
|
|
|
--heading-fg: #cdd6f4,
|
|
|
|
--link-fg: mocha['sapphire'],
|
|
|
|
--link-visited-fg: alpha(mocha['mauve'], 1.0),
|
|
|
|
--inline-code-bg: rgba(255,255,255,0.05),
|
|
|
|
--input-bg: #181825,
|
|
|
|
--input-hover-bg: #313244,
|
|
|
|
--input-focus-bg: #45475a,
|
|
|
|
--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
|
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
|
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
:root, body.dark-theme
|
|
|
|
{dark-theme}
|
2020-12-16 00:13:13 -06:00
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
body.light-theme
|
2020-12-16 00:13:13 -06:00
|
|
|
{light-theme}
|
|
|
|
|
|
|
|
:root
|
2023-05-23 11:59:29 -05:00
|
|
|
@media (prefers-color-scheme light)
|
|
|
|
{light-theme}
|
2020-12-16 00:13:13 -06:00
|
|
|
|
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)
|
2023-05-23 11:59:29 -05:00
|
|
|
.hide-in-dark-theme { display: inherit }
|
|
|
|
.hide-in-light-theme { display: none }
|
|
|
|
body.light-theme .hide-in-dark-theme { display: none }
|
|
|
|
body.dark-theme .hide-in-light-theme { display: inherit }
|
|
|
|
|
|
|
|
body.dark-theme .hide-in-dark-theme { display: inherit }
|
|
|
|
body.dark-theme .hide-in-light-theme { display: none }
|
|
|
|
body.light-theme .hide-in-dark-theme { display: none }
|
|
|
|
body.light-theme .hide-in-light-theme { display: inherit }
|
|
|
|
|
|
|
|
body .only-in-light-theme { display: none }
|
|
|
|
body .only-in-dark-theme { display: none }
|
|
|
|
body .only-in-system-theme { display: none }
|
2020-12-16 00:13:13 -06:00
|
|
|
|
2023-05-23 11:59:29 -05:00
|
|
|
body.dark-theme .only-in-dark-theme { display: inherit }
|
|
|
|
body.light-theme .only-in-light-theme { display: inherit }
|
|
|
|
body.system-theme .only-in-system-theme { display: inherit }
|