Skip to content

Commit 96f48eb

Browse files
committed
Update styling
1 parent fcebf1d commit 96f48eb

3 files changed

Lines changed: 68 additions & 17 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ npm run serve # serve the production build locally
1919
- Math is supported with KaTeX: inline `$T$` and block `$$ ... $$`.
2020
- `docs/` always holds the **unreleased** docs ("Next" in the version dropdown).
2121

22+
## Appearance
23+
24+
The palette follows the blog's Minima theme: off-white backgrounds, charcoal headings, blue links, and lavender code backgrounds, with a matching dark mode. The footer uses FEAScript's warm gold (`#f7e7b7`) in both modes. Shared colors are defined in `src/css/custom.css`; syntax highlighting backgrounds are configured in `docusaurus.config.js`.
25+
2226
## Versioning
2327

2428
When a new FEAScript-core version is released, snapshot the current docs:

‎docusaurus.config.js‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const config = {
9696
],
9797
},
9898
footer: {
99-
style: "dark",
99+
style: "light",
100100
links: [
101101
{
102102
title: "FEAScript",
@@ -117,8 +117,14 @@ const config = {
117117
copyright: `Documentation licensed under CC-BY 4.0. The FEAScript core library is MIT licensed.`,
118118
},
119119
prism: {
120-
theme: prismThemes.github,
121-
darkTheme: prismThemes.dracula,
120+
theme: {
121+
...prismThemes.github,
122+
plain: { ...prismThemes.github.plain, backgroundColor: "#eeeeff" },
123+
},
124+
darkTheme: {
125+
...prismThemes.dracula,
126+
plain: { ...prismThemes.dracula.plain, backgroundColor: "#2c2c40" },
127+
},
122128
additionalLanguages: ["bash"],
123129
},
124130
}),

‎src/css/custom.css‎

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,61 @@
11
:root {
2-
--ifm-color-primary: #2e6fb7;
3-
--ifm-color-primary-dark: #2a64a5;
4-
--ifm-color-primary-darker: #285e9c;
5-
--ifm-color-primary-darkest: #204d81;
6-
--ifm-color-primary-light: #3279c9;
7-
--ifm-color-primary-lighter: #3a82d0;
8-
--ifm-color-primary-lightest: #5e9ad9;
2+
--ifm-color-primary: #246dc9;
3+
--ifm-color-primary-dark: #2062b5;
4+
--ifm-color-primary-darker: #1f5dab;
5+
--ifm-color-primary-darkest: #194c8d;
6+
--ifm-color-primary-light: #2a7ae2;
7+
--ifm-color-primary-lighter: #4088e5;
8+
--ifm-color-primary-lightest: #6ba3eb;
9+
--ifm-background-color: #fdfdfd;
10+
--ifm-background-surface-color: #fdfdfd;
11+
--ifm-font-color-base: #111111;
12+
--ifm-color-emphasis-600: #666666;
13+
--ifm-color-emphasis-300: #e8e8e8;
14+
--ifm-heading-color: #424242;
15+
--ifm-navbar-background-color: #fdfdfd;
16+
--ifm-navbar-link-color: #424242;
17+
--ifm-navbar-shadow: none;
18+
--ifm-code-background: #eeeeff;
919
--ifm-code-font-size: 95%;
20+
--ifm-menu-color-background-active: #eeeeff;
21+
--feascript-header-border: #424242;
1022
}
1123

1224
[data-theme="dark"] {
13-
--ifm-color-primary: #6aa6e6;
14-
--ifm-color-primary-dark: #4d94e1;
15-
--ifm-color-primary-darker: #408bdf;
16-
--ifm-color-primary-darkest: #1f72cb;
17-
--ifm-color-primary-light: #87b8ea;
18-
--ifm-color-primary-lighter: #94c0ec;
19-
--ifm-color-primary-lightest: #bad6f3;
25+
--ifm-color-primary: #82b4f4;
26+
--ifm-color-primary-dark: #60a0f1;
27+
--ifm-color-primary-darker: #4e95ef;
28+
--ifm-color-primary-darkest: #1a75e8;
29+
--ifm-color-primary-light: #a4c8f7;
30+
--ifm-color-primary-lighter: #b6d3f9;
31+
--ifm-color-primary-lightest: #e9f2fd;
32+
--ifm-background-color: #1b1b1d;
33+
--ifm-background-surface-color: #242426;
34+
--ifm-font-color-base: #e8e8e8;
35+
--ifm-color-emphasis-600: #b0b0b0;
36+
--ifm-color-emphasis-300: #3c3c40;
37+
--ifm-heading-color: #eeeeee;
38+
--ifm-navbar-background-color: #1b1b1d;
39+
--ifm-navbar-link-color: #e8e8e8;
40+
--ifm-code-background: #2c2c40;
41+
--ifm-menu-color-background-active: #2c2c40;
42+
--feascript-header-border: #828282;
43+
}
44+
45+
.navbar {
46+
border-top: 5px solid var(--feascript-header-border);
47+
border-bottom: 1px solid var(--ifm-color-emphasis-300);
48+
}
49+
50+
.footer {
51+
--ifm-footer-background-color: #f7e7b7;
52+
--ifm-footer-color: #555555;
53+
--ifm-footer-title-color: #424242;
54+
--ifm-footer-link-color: #1756a9;
55+
--ifm-footer-link-hover-color: #111111;
56+
border-top: 1px solid #decfa3;
57+
}
58+
59+
.theme-code-block {
60+
border: 1px solid var(--ifm-color-emphasis-300);
2061
}

0 commit comments

Comments
 (0)