diff --git a/dev.css b/dev.css index 8e63ded..80361e1 100644 --- a/dev.css +++ b/dev.css @@ -8,23 +8,22 @@ /* table of contents 1. configurable variables - 2. dark mode variables - 3. color scheme - 4. css reset - 5. margins for most elements - 6. typography - 7. document - 8. header - 9. footer - 10. blockquotes - 11. buttons and inputs - 12. code and keyboards - 13. details - 14. description lists - 15. horizontal rules - 16. fieldsets - 17. tables - 18. lists + 2. color scheme + 3. css reset + 4. margins for most elements + 5. typography + 6. document + 7. header + 8. footer + 9. blockquotes + 10. buttons and inputs + 11. code and keyboards + 12. details + 13. description lists + 14. horizontal rules + 15. fieldsets + 16. tables + 17. lists */ /* 1. configurable variables */ @@ -36,61 +35,27 @@ --dc-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; - /* light colors */ - --dc-cs: light; /* light/dark scrollbars, inputs, etc */ - --dc-tx-1: #171717; /* primary text */ - --dc-tx-2: #666; /* secondary text */ - --dc-bg-1: #fff; /* primary background */ - --dc-bg-2: #fafafa; /* secondary background */ - --dc-bg-3: #ebebeb; /* border */ - --dc-lk-1: #005ff2; /* link text */ - --dc-lkb-1: #006bff; /* link button */ - --dc-lkb-2: #0059ec; /* link button hover */ - --dc-lkb-tx: #fff; /* text over link button */ - --dc-ac-1: #a000f8; /* accent color */ - --dc-ac-tx: #fff; /* text over accent color */ - - /* dark colors */ - --dc-d-cs: dark; - --dc-d-tx-1: #ededed; - --dc-d-tx-2: #a1a1a1; - --dc-d-bg-1: #0a0a0a; - --dc-d-bg-2: #000; - --dc-d-bg-3: #2e2e2e; - --dc-d-lk-1: #47a8ff; - --dc-d-lkb-1: #006efe; - --dc-d-lkb-2: #005be7; - --dc-d-lkb-tx: #fff; - --dc-d-ac-1: #9440d5; - --dc-d-ac-tx: #fff; -} - -/* 2. dark mode variables */ -/* adjusts variables if the user's browser prefers dark mode */ -@media (prefers-color-scheme: dark) { - :root { - --dc-cs: var(--dc-d-cs); - --dc-tx-1: var(--dc-d-tx-1); - --dc-tx-2: var(--dc-d-tx-2); - --dc-bg-1: var(--dc-d-bg-1); - --dc-bg-2: var(--dc-d-bg-2); - --dc-bg-3: var(--dc-d-bg-3); - --dc-lk-1: var(--dc-d-lk-1); - --dc-lkb-1: var(--dc-d-lkb-1); - --dc-lkb-2: var(--dc-d-lkb-2); - --dc-lkb-tx: var(--dc-d-lkb-tx); - --dc-ac-1: var(--dc-d-ac-1); - --dc-ac-tx: var(--dc-d-ac-tx); - } -} - -/* 3. color scheme */ -/* adjusts browser color scheme based on variable */ + /* light/dark colors */ + --dc-cs: light dark; /* light and dark scrollbars, inputs, etc */ + --dc-tx-1: light-dark(#171717, #ededed); /* primary text */ + --dc-tx-2: light-dark(#666, #a1a1a1); /* secondary text */ + --dc-bg-1: light-dark(#fff, #0a0a0a); /* primary background */ + --dc-bg-2: light-dark(#fafafa, #000); /* secondary background */ + --dc-bg-3: light-dark(#ebebeb, #2e2e2e); /* border */ + --dc-lk-1: light-dark(#005ff2, #47a8ff); /* link text */ + --dc-lkb-1: light-dark(#006bff, #006efe); /* link button */ + --dc-lkb-2: light-dark(#0059ec, #005be7); /* link button hover */ + --dc-lkb-tx: light-dark(#fff, #fff); /* text over link button */ + --dc-ac-1: light-dark(#a000f8, #9440d5); /* accent color */ + --dc-ac-tx: light-dark(#fff, #fff); /* text over accent color */ +} + +/* 2. color scheme */ :root { - color-scheme: only var(--dc-cs); + color-scheme: var(--dc-cs); } -/* 4. css reset */ +/* 3. css reset */ /* modified from https://www.joshwcomeau.com/css/custom-css-reset */ *, @@ -143,7 +108,7 @@ h6 { isolation: isolate; } -/* 5. margins for most elements */ +/* 4. margins for most elements */ address, area, article, @@ -180,7 +145,7 @@ video { margin-bottom: 1rem; } -/* 6. typography */ +/* 5. typography */ body { font-family: var(--dc-font); @@ -249,7 +214,7 @@ mark { color: var(--dc-ac-tx); } -/* 7. document */ +/* 6. document */ body { max-width: 48rem; @@ -315,7 +280,7 @@ aside h3 { } } -/* 8. header */ +/* 7. header */ header { padding: 1rem calc(50vw - 50%); @@ -358,7 +323,7 @@ header nav ul li:not(:first-child)::before { } } -/* 9. footer */ +/* 8. footer */ footer > *:last-child { margin-bottom: 0; @@ -377,7 +342,7 @@ footer nav ul li:not(:first-child)::before { content: "• "; } -/* 10. blockquotes */ +/* 9. blockquotes */ blockquote { padding: 1.25rem; background: var(--dc-bg-2); @@ -391,7 +356,7 @@ blockquote > *:last-child { margin-bottom: 0; } -/* 11. buttons and inputs */ +/* 10. buttons and inputs */ a button, button, input[type="submit"], @@ -454,7 +419,7 @@ progress { accent-color: var(--dc-ac-1); } -/* 12. code and keyboards */ +/* 11. code and keyboards */ code, samp, kbd, @@ -481,7 +446,7 @@ pre code { border: 0; } -/* 13. details */ +/* 12. details */ details { padding: 0.5rem 1rem; background: var(--dc-bg-2); @@ -508,7 +473,7 @@ details[open] > *:last-child { padding-bottom: 0; } -/* 14. description lists */ +/* 13. description lists */ dt { font-weight: bold; } @@ -517,13 +482,13 @@ dd::before { content: "→ "; } -/* 15. horizontal rules */ +/* 14. horizontal rules */ hr { border: 0; border-bottom: 2px solid var(--dc-bg-3); } -/* 16. fieldsets */ +/* 15. fieldsets */ fieldset { margin-top: 1rem; padding: 2rem; @@ -535,7 +500,7 @@ legend { padding: auto 0.5rem; } -/* 17. tables */ +/* 16. tables */ table { border-collapse: collapse; width: 100%; @@ -561,7 +526,7 @@ table caption { margin-bottom: 0.5rem; } -/* 18. lists */ +/* 17. lists */ ol, ul { padding-left: 2rem; diff --git a/theme/boilerplate-auto.user.css b/theme/boilerplate-auto.user.css index d211a74..293efe8 100644 --- a/theme/boilerplate-auto.user.css +++ b/theme/boilerplate-auto.user.css @@ -11,53 +11,22 @@ :root { /* font families */ - --dc-font: "Geist", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, - Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + --dc-font: "Geist", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, + sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; --dc-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; - /* light colors */ - --dc-cs: light; /* light/dark for scrollbars, inputs, etc */ - --dc-tx-1: #171717; /* primary text */ - --dc-tx-2: #666; /* secondary text */ - --dc-bg-1: #fff; /* primary background */ - --dc-bg-2: #fafafa; /* secondary background */ - --dc-bg-3: #ebebeb; /* border */ - --dc-lk-1: #005ff2; /* link text */ - --dc-lkb-1: #006bff; /* link button */ - --dc-lkb-2: #0059ec; /* link button hover */ - --dc-lkb-tx: #fff; /* text over link button */ - --dc-ac-1: #a000f8; /* accent color */ - --dc-ac-tx: #fff; /* text over accent color */ - - /* dark colors */ - --dc-d-cs: dark; - --dc-d-tx-1: #ededed; - --dc-d-tx-2: #a1a1a1; - --dc-d-bg-1: #0a0a0a; - --dc-d-bg-2: #000; - --dc-d-bg-3: #2e2e2e; - --dc-d-lk-1: #47a8ff; - --dc-d-lkb-1: #006efe; - --dc-d-lkb-2: #005be7; - --dc-d-lkb-tx: #fff; - --dc-d-ac-1: #9440d5; - --dc-d-ac-tx: #fff; -} - -@media (prefers-color-scheme: dark) { - :root { - --dc-cs: var(--dc-d-cs); - --dc-tx-1: var(--dc-d-tx-1); - --dc-tx-2: var(--dc-d-tx-2); - --dc-bg-1: var(--dc-d-bg-1); - --dc-bg-2: var(--dc-d-bg-2); - --dc-bg-3: var(--dc-d-bg-3); - --dc-lk-1: var(--dc-d-lk-1); - --dc-lkb-1: var(--dc-d-lkb-1); - --dc-lkb-2: var(--dc-d-lkb-2); - --dc-lkb-tx: var(--dc-d-lkb-tx); - --dc-ac-1: var(--dc-d-ac-1); - --dc-ac-tx: var(--dc-d-ac-tx); - } + /* light/dark colors */ + --dc-cs: light dark; /* light/dark scrollbars, inputs, etc */ + --dc-tx-1: light-dark(#171717, #ededed); /* primary text */ + --dc-tx-2: light-dark(#666, #a1a1a1); /* secondary text */ + --dc-bg-1: light-dark(#fff, #0a0a0a); /* primary background */ + --dc-bg-2: light-dark(#fafafa, #000); /* secondary background */ + --dc-bg-3: light-dark(#ebebeb, #2e2e2e); /* border */ + --dc-lk-1: light-dark(#005ff2, #47a8ff); /* link text */ + --dc-lkb-1: light-dark(#006bff, #006efe); /* link button */ + --dc-lkb-2: light-dark(#0059ec, #005be7); /* link button hover */ + --dc-lkb-tx: light-dark(#fff, #fff); /* text over link button */ + --dc-ac-1: light-dark(#a000f8, #9440d5); /* accent color */ + --dc-ac-tx: light-dark(#fff, #fff); /* text over accent color */ } diff --git a/theme/boilerplate.user.css b/theme/boilerplate.user.css index 7fae9c7..08239ba 100644 --- a/theme/boilerplate.user.css +++ b/theme/boilerplate.user.css @@ -11,13 +11,13 @@ :root { /* font families */ - --dc-font: "Geist", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, - Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + --dc-font: "Geist", "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, + sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; --dc-font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; - /* light colors */ - --dc-cs: light; /* light/dark for scrollbars, inputs, etc */ + /* colors */ + --dc-cs: light; /* light/dark scrollbars, inputs, etc */ --dc-tx-1: #171717; /* primary text */ --dc-tx-2: #666; /* secondary text */ --dc-bg-1: #fff; /* primary background */ diff --git a/theme/catppuccin-frappe.user.css b/theme/catppuccin-frappe.user.css index ccdfc1d..2b3c25e 100644 --- a/theme/catppuccin-frappe.user.css +++ b/theme/catppuccin-frappe.user.css @@ -10,47 +10,17 @@ ==/userstyle== */ :root { - /* light colors - latte */ - --dc-cs: light; - --dc-tx-1: #4c4f69; /* primary text | Text */ - --dc-tx-2: #4c4f69; /* secondary text | Text */ - --dc-bg-1: #eff1f5; /* primary background | Base */ - --dc-bg-2: #e6e9ef; /* secondary background | Mantle */ - --dc-bg-3: #ccd0da; /* border | Surface0 */ - --dc-lk-1: #1e66f5; /* link text | Blue */ - --dc-lkb-1: #bcc0cc; /* link button | Surface1 */ - --dc-lkb-2: #ccd0da; /* link button hover | Surface0 */ - --dc-lkb-tx: #4c4f69; /* text over link button | Text */ - --dc-ac-1: #8839ef; /* accent color | Mauve */ - --dc-ac-tx: #eff1f5; /* text over accent color | Base */ - - --dc-d-cs: dark; - --dc-d-tx-1: #c6d0f5; /* primary text | Text */ - --dc-d-tx-2: #c6d0f5; /* secondary text | Text */ - --dc-d-bg-1: #303446; /* primary background | Base */ - --dc-d-bg-2: #292c3c; /* secondary background | Mantle */ - --dc-d-bg-3: #414559; /* border | Surface0 */ - --dc-d-lk-1: #8caaee; /* link text | Blue */ - --dc-d-lkb-1: #51576d; /* link button | Surface1 */ - --dc-d-lkb-2: #414559; /* link button hover | Surface0 */ - --dc-d-lkb-tx: #c6d0f5; /* text over link button | Text */ - --dc-d-ac-1: #ca9ee6; /* accent color | Mauve */ - --dc-d-ac-tx: #303446; /* text over accent color | Base */ -} - -@media (prefers-color-scheme: dark) { - :root { - --dc-cs: var(--dc-d-cs); - --dc-tx-1: var(--dc-d-tx-1); - --dc-tx-2: var(--dc-d-tx-2); - --dc-bg-1: var(--dc-d-bg-1); - --dc-bg-2: var(--dc-d-bg-2); - --dc-bg-3: var(--dc-d-bg-3); - --dc-lk-1: var(--dc-d-lk-1); - --dc-lkb-1: var(--dc-d-lkb-1); - --dc-lkb-2: var(--dc-d-lkb-2); - --dc-lkb-tx: var(--dc-d-lkb-tx); - --dc-ac-1: var(--dc-d-ac-1); - --dc-ac-tx: var(--dc-d-ac-tx); - } + /* colors - latte and frappé */ + --dc-cs: light dark; /* light/dark scrollbars, inputs, etc */ + --dc-tx-1: light-dark(#4c4f69, #c6d0f5); /* primary text | Text */ + --dc-tx-2: light-dark(#4c4f69, #c6d0f5); /* secondary text | Text */ + --dc-bg-1: light-dark(#eff1f5, #303446); /* primary background | Base */ + --dc-bg-2: light-dark(#e6e9ef, #292c3c); /* secondary background | Mantle */ + --dc-bg-3: light-dark(#ccd0da, #414559); /* border | Surface0 */ + --dc-lk-1: light-dark(#1e66f5, #8caaee); /* link text | Blue */ + --dc-lkb-1: light-dark(#bcc0cc, #51576d); /* link button | Surface1 */ + --dc-lkb-2: light-dark(#ccd0da, #414559); /* link button hover | Surface0 */ + --dc-lkb-tx: light-dark(#4c4f69, #c6d0f5); /* text over link button | Text */ + --dc-ac-1: light-dark(#8839ef, #ca9ee6); /* accent color | Mauve */ + --dc-ac-tx: light-dark(#eff1f5, #303446); /* text over accent color | Base */ } diff --git a/theme/catppuccin-macchiato.user.css b/theme/catppuccin-macchiato.user.css index 1f18402..aa6860d 100644 --- a/theme/catppuccin-macchiato.user.css +++ b/theme/catppuccin-macchiato.user.css @@ -10,48 +10,17 @@ ==/userstyle== */ :root { - /* light colors - latte */ - --dc-cs: light; - --dc-tx-1: #4c4f69; /* primary text | Text */ - --dc-tx-2: #4c4f69; /* secondary text | Text */ - --dc-bg-1: #eff1f5; /* primary background | Base */ - --dc-bg-2: #e6e9ef; /* secondary background | Mantle */ - --dc-bg-3: #ccd0da; /* border | Surface0 */ - --dc-lk-1: #1e66f5; /* link text | Blue */ - --dc-lkb-1: #bcc0cc; /* link button | Surface1 */ - --dc-lkb-2: #ccd0da; /* link button hover | Surface0 */ - --dc-lkb-tx: #4c4f69; /* text over link button | Text */ - --dc-ac-1: #8839ef; /* accent color | Mauve */ - --dc-ac-tx: #eff1f5; /* text over accent color | Base */ - - /* dark colors - macchiato */ - --dc-d-cs: dark; - --dc-d-tx-1: #cad3f5; /* primary text | Text */ - --dc-d-tx-2: #cad3f5; /* secondary text | Text */ - --dc-d-bg-1: #24273a; /* primary background | Base */ - --dc-d-bg-2: #1e2030; /* secondary background | Mantle */ - --dc-d-bg-3: #363a4f; /* border | Surface0 */ - --dc-d-lk-1: #8aadf4; /* link text | Blue */ - --dc-d-lkb-1: #494d64; /* link button | Surface1 */ - --dc-d-lkb-2: #363a4f; /* link button hover | Surface0 */ - --dc-d-lkb-tx: #cad3f5; /* text over link button | Text */ - --dc-d-ac-1: #c6a0f6; /* accent color | Mauve */ - --dc-d-ac-tx: #24273a; /* text over accent color | Base */ -} - -@media (prefers-color-scheme: dark) { - :root { - --dc-cs: var(--dc-d-cs); - --dc-tx-1: var(--dc-d-tx-1); - --dc-tx-2: var(--dc-d-tx-2); - --dc-bg-1: var(--dc-d-bg-1); - --dc-bg-2: var(--dc-d-bg-2); - --dc-bg-3: var(--dc-d-bg-3); - --dc-lk-1: var(--dc-d-lk-1); - --dc-lkb-1: var(--dc-d-lkb-1); - --dc-lkb-2: var(--dc-d-lkb-2); - --dc-lkb-tx: var(--dc-d-lkb-tx); - --dc-ac-1: var(--dc-d-ac-1); - --dc-ac-tx: var(--dc-d-ac-tx); - } + /* colors - latte and macchiato */ + --dc-cs: light dark; /* light/dark scrollbars, inputs, etc */ + --dc-tx-1: light-dark(#4c4f69, #cad3f5); /* primary text | Text */ + --dc-tx-2: light-dark(#4c4f69, #cad3f5); /* secondary text | Text */ + --dc-bg-1: light-dark(#eff1f5, #24273a); /* primary background | Base */ + --dc-bg-2: light-dark(#e6e9ef, #1e2030); /* secondary background | Mantle */ + --dc-bg-3: light-dark(#ccd0da, #363a4f); /* border | Surface0 */ + --dc-lk-1: light-dark(#1e66f5, #8aadf4); /* link text | Blue */ + --dc-lkb-1: light-dark(#bcc0cc, #494d64); /* link button | Surface1 */ + --dc-lkb-2: light-dark(#ccd0da, #363a4f); /* link button hover | Surface0 */ + --dc-lkb-tx: light-dark(#4c4f69, #cad3f5); /* text over link button | Text */ + --dc-ac-1: light-dark(#8839ef, #c6a0f6); /* accent color | Mauve */ + --dc-ac-tx: light-dark(#eff1f5, #24273a); /* text over accent color | Base */ } diff --git a/theme/catppuccin-mocha.user.css b/theme/catppuccin-mocha.user.css index bb0a6bd..0de9a4c 100644 --- a/theme/catppuccin-mocha.user.css +++ b/theme/catppuccin-mocha.user.css @@ -10,48 +10,17 @@ ==/userstyle== */ :root { - /* light colors - latte */ - --dc-cs: light; - --dc-tx-1: #4c4f69; /* primary text | Text */ - --dc-tx-2: #4c4f69; /* secondary text | Text */ - --dc-bg-1: #eff1f5; /* primary background | Base */ - --dc-bg-2: #e6e9ef; /* secondary background | Mantle */ - --dc-bg-3: #ccd0da; /* border | Surface0 */ - --dc-lk-1: #1e66f5; /* link text | Blue */ - --dc-lkb-1: #bcc0cc; /* link button | Surface1 */ - --dc-lkb-2: #ccd0da; /* link button hover | Surface0 */ - --dc-lkb-tx: #4c4f69; /* text over link button | Text */ - --dc-ac-1: #8839ef; /* accent color | Mauve */ - --dc-ac-tx: #eff1f5; /* text over accent color | Base */ - - /* dark colors - mocha */ - --dc-d-cs: dark; - --dc-d-tx-1: #cdd6f4; /* primary text | Text */ - --dc-d-tx-2: #cdd6f4; /* secondary text | Text */ - --dc-d-bg-1: #1e1e2e; /* primary background | Base */ - --dc-d-bg-2: #181825; /* secondary background | Mantle */ - --dc-d-bg-3: #313244; /* border | Surface0 */ - --dc-d-lk-1: #89b4fa; /* link text | Blue */ - --dc-d-lkb-1: #45475a; /* link button | Surface1 */ - --dc-d-lkb-2: #313244; /* link button hover | Surface0 */ - --dc-d-lkb-tx: #cdd6f4; /* text over link button | Text */ - --dc-d-ac-1: #cba6f7; /* accent color | Mauve */ - --dc-d-ac-tx: #1e1e2e; /* text over accent color | Base */ -} - -@media (prefers-color-scheme: dark) { - :root { - --dc-cs: var(--dc-d-cs); - --dc-tx-1: var(--dc-d-tx-1); - --dc-tx-2: var(--dc-d-tx-2); - --dc-bg-1: var(--dc-d-bg-1); - --dc-bg-2: var(--dc-d-bg-2); - --dc-bg-3: var(--dc-d-bg-3); - --dc-lk-1: var(--dc-d-lk-1); - --dc-lkb-1: var(--dc-d-lkb-1); - --dc-lkb-2: var(--dc-d-lkb-2); - --dc-lkb-tx: var(--dc-d-lkb-tx); - --dc-ac-1: var(--dc-d-ac-1); - --dc-ac-tx: var(--dc-d-ac-tx); - } + /* colors - latte and mocha */ + --dc-cs: light dark; /* light/dark scrollbars, inputs, etc */ + --dc-tx-1: light-dark(#4c4f69, #cdd6f4); /* primary text | Text */ + --dc-tx-2: light-dark(#4c4f69, #cdd6f4); /* secondary text | Text */ + --dc-bg-1: light-dark(#eff1f5, #1e1e2e); /* primary background | Base */ + --dc-bg-2: light-dark(#e6e9ef, #181825); /* secondary background | Mantle */ + --dc-bg-3: light-dark(#ccd0da, #313244); /* border | Surface0 */ + --dc-lk-1: light-dark(#1e66f5, #89b4fa); /* link text | Blue */ + --dc-lkb-1: light-dark(#bcc0cc, #45475a); /* link button | Surface1 */ + --dc-lkb-2: light-dark(#ccd0da, #313244); /* link button hover | Surface0 */ + --dc-lkb-tx: light-dark(#4c4f69, #cdd6f4); /* text over link button | Text */ + --dc-ac-1: light-dark(#8839ef, #cba6f7); /* accent color | Mauve */ + --dc-ac-tx: light-dark(#eff1f5, #1e1e2e); /* text over accent color | Base */ }