Skip to content

Commit 8461172

Browse files
committed
feat: a couple changes
- simplify font stack significantly - clean boilerplate theme - replace boilerplate with boilerplate-auto for simplicity (you can still make static color themes) - remove mono font line in terminal theme
1 parent a0532e8 commit 8461172

File tree

5 files changed

+21
-65
lines changed

5 files changed

+21
-65
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ dev.css supports custom colors and fonts through themes. You can find some pre-m
213213
/>
214214
```
215215

216-
If you are creating your own theme, it is recommended to use the `boilerplate-auto.css` rather than the `boilerplate.css` template for better accessibility.
216+
If you are creating your own theme, see the `boilerplate.user.css` file.
217217

218218
### Userstyles
219219

dev.css

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@
2020
*/
2121

2222
/* 1. configurable variables */
23-
/* adjustable by you! see ./theme/boilerplate-auto.css */
23+
/* adjustable by you! see ./theme/boilerplate.user.css */
2424
:root {
2525
/* font families */
26-
/* modified from https://systemfontstack.com */
27-
--dc-font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, avenir next,
28-
avenir, segoe ui variable text, segoe ui, helvetica neue, helvetica,
29-
Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
30-
--dc-font-mono: "Geist Mono", Menlo, Consolas, Monaco, Liberation Mono,
31-
Lucida Console, monospace;
26+
--dc-font: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
27+
--dc-font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
28+
Menlo, Consolas, "DejaVu Sans Mono", monospace;
3229

3330
/* light/dark colors */
3431
--dc-cs: light dark; /* light and dark scrollbars, inputs, etc */

theme/boilerplate-auto.user.css

Lines changed: 0 additions & 34 deletions
This file was deleted.

theme/boilerplate.user.css

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* ==userstyle==
22
@name boilerplate for dev.css
3-
@description a template that you can modify. copied from dev.css defaults. remove lines that you want to keep as the dev.css default, such as the font lines
3+
@description a template that you can modify. mostly copied from dev.css defaults. removing lines will revert to the dev.css default, for example the font lines
44
@namespace author
55
@version 1.0.0
66
@author author <[email protected]> (https://example.com)
@@ -11,24 +11,20 @@
1111

1212
:root {
1313
/* font families */
14-
/* modified from https://systemfontstack.com */
15-
--dc-font: "Geist", "Inter", -apple-system, BlinkMacSystemFont, avenir next,
16-
avenir, segoe ui variable text, segoe ui, helvetica neue, helvetica,
17-
Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
18-
--dc-font-mono: "Geist Mono", Menlo, Consolas, Monaco, Liberation Mono,
19-
Lucida Console, monospace;
14+
--dc-font: sans-serif;
15+
--dc-font-mono: monospace;
2016

21-
/* colors */
22-
--dc-cs: light; /* light/dark scrollbars, inputs, etc */
23-
--dc-tx-1: #171717; /* primary text */
24-
--dc-tx-2: #666; /* secondary text */
25-
--dc-bg-1: #fff; /* primary background */
26-
--dc-bg-2: #fafafa; /* secondary background */
27-
--dc-bg-3: #ebebeb; /* border */
28-
--dc-lk-1: #005ff2; /* link text */
29-
--dc-lkb-1: #006bff; /* link button */
30-
--dc-lkb-2: #0059ec; /* link button hover */
31-
--dc-lkb-tx: #fff; /* text over link button */
32-
--dc-ac-1: #a000f8; /* accent color */
33-
--dc-ac-tx: #fff; /* text over accent color */
17+
/* light/dark colors */
18+
--dc-cs: light dark; /* light/dark scrollbars, inputs, etc */
19+
--dc-tx-1: light-dark(#171717, #ededed); /* primary text */
20+
--dc-tx-2: light-dark(#666, #a1a1a1); /* secondary text */
21+
--dc-bg-1: light-dark(#fff, #0a0a0a); /* primary background */
22+
--dc-bg-2: light-dark(#fafafa, #000); /* secondary background */
23+
--dc-bg-3: light-dark(#ebebeb, #2e2e2e); /* border */
24+
--dc-lk-1: light-dark(#005ff2, #47a8ff); /* link text */
25+
--dc-lkb-1: light-dark(#006bff, #006efe); /* link button */
26+
--dc-lkb-2: light-dark(#0059ec, #005be7); /* link button hover */
27+
--dc-lkb-tx: light-dark(#fff, #fff); /* text over link button */
28+
--dc-ac-1: light-dark(#a000f8, #9440d5); /* accent color */
29+
--dc-ac-tx: light-dark(#fff, #fff); /* text over accent color */
3430
}

theme/terminal.user.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111

1212
:root {
1313
/* font families */
14-
/* modified from https://systemfontstack.com */
1514
--dc-font: var(--dc-font-mono);
16-
--dc-font-mono: "Geist Mono", Menlo, Consolas, Monaco, Liberation Mono,
17-
Lucida Console, monospace;
1815

1916
/* colors */
2017
--dc-cs: dark;

0 commit comments

Comments
 (0)