Skip to content

Commit

Permalink
Use system fonts for better monospace plus lighten dark colors (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
countableSet authored May 4, 2022
1 parent a260a6b commit b070765
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 98 deletions.
2 changes: 2 additions & 0 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Enhancements that have been made to the original are:
* source code tabs
* styled admonition blocks with icons
* font-awesome 4 (font and css)
* widens main content panel by percentages link:https://github.com/countableSet/antora-ui/issues/10[#10]
* replace Roboto font with system font link:https://github.com/countableSet/antora-ui/issues/11[#11]
== Release

Expand Down
26 changes: 0 additions & 26 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
],
"devDependencies": {
"@asciidoctor/core": "~2.2",
"@fontsource/roboto": "~4.5",
"@fontsource/roboto-mono": "~4.5",
"autoprefixer": "~10.4",
"browser-pack-flat": "~3.4",
"browserify": "~17.0",
Expand Down
2 changes: 0 additions & 2 deletions src/css/site.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "typeface-roboto.css";
@import "typeface-roboto-mono.css";
@import "vars.css";
@import "vars-dark.css";
@import "base.css";
Expand Down
19 changes: 0 additions & 19 deletions src/css/typeface-roboto-mono.css

This file was deleted.

39 changes: 0 additions & 39 deletions src/css/typeface-roboto.css

This file was deleted.

20 changes: 12 additions & 8 deletions src/css/vars-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,24 @@
--color-smoke-40: #d3cfc9;
--color-white-20: #e8e6e3;
--color-white-10: #c5c0b8;
--color-body-bg: #202124;
--color-panel-bg: #191919;
--color-pre-bg: #26272b;
--color-pre-border: #585b63;
/* fonts */
--rem-base: 18; /* used to compute rem value from desired pixel value (e.g., calc(18 / var(--rem-base) * 1rem) = 18px) */
--body-font-size: 1.0625em; /* 17px */
--body-font-size--desktop: 1.125em; /* 18px */
--body-font-size--print: 0.9375em; /* 15px */
--body-line-height: 1.15;
--body-font-color: var(--color-white-10);
--body-font-family: "Roboto", sans-serif;
--body-font-family: -apple-system, system-ui, blinkmacsystemfont, "Segoe UI", roboto, ubuntu;
--body-font-weight-bold: 500;
--monospace-font-family: "Roboto Mono", monospace;
--monospace-font-family: ui-monospace, sfmono-regular, sf mono, menlo, consolas, liberation mono, monospace;
--monospace-font-weight-bold: 500;
/* base */
--body-background: var(--color-jet-70);
--panel-background: var(--color-jet-90);
--body-background: var(--color-body-bg);
--panel-background: var(--color-panel-bg);
--panel-border-color: var(--color-gray-20);
--scrollbar-thumb-color: var(--color-gray-20);
/* navbar */
Expand Down Expand Up @@ -103,8 +107,8 @@
--example-border-color: var(--color-smoke-70);
--kbd-background: var(--panel-background);
--kbd-border-color: var(--color-gray-10);
--pre-background: var(--panel-background);
--pre-border-color: var(--panel-border-color);
--pre-background: var(--color-pre-bg);
--pre-border-color: var(--color-pre-border);
--pre-annotation-font-color: var(--color-smoke-80);
--quote-background: var(--panel-background);
--quote-border-color: var(--color-smoke-70);
Expand All @@ -120,10 +124,10 @@
--toc-border-color: var(--panel-border-color);
--toc-line-height: 1.2;
/* code tabs */
--code-tab-background: #1b1d1e;
--code-tab-background: var(--color-body-bg);
--code-tab-border-color: #383d40;
--code-tab-font-color: var(--body-font-color);
--code-tab-selected-background: var(--code-background);
--code-tab-selected-background: var(--pre-background);
--code-tab-selected-font-color: #d14;
/* footer */
--footer-line-height: var(--doc-line-height);
Expand Down
4 changes: 2 additions & 2 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
--body-font-size--print: 0.9375em; /* 15px */
--body-line-height: 1.15;
--body-font-color: var(--color-jet-70);
--body-font-family: "Roboto", sans-serif;
--body-font-family: -apple-system, system-ui, blinkmacsystemfont, "Segoe UI", roboto, ubuntu;
--body-font-weight-bold: 500;
--monospace-font-family: "Roboto Mono", monospace;
--monospace-font-family: ui-monospace, sfmono-regular, sf mono, menlo, consolas, liberation mono, monospace;
--monospace-font-weight-bold: 500;
/* base */
--body-background: var(--color-white);
Expand Down

0 comments on commit b070765

Please sign in to comment.