Commit 3e93ab3
committed
docs(site): switch to Roboto Flex and align light-theme prose colors
After scraping docs.docker.com's stylesheet, two of our font/color
choices turned out to be subtly off the mark:
1. The site\u2019s --font-sans is \"roboto flex\", not \"Roboto\".
Roboto Flex is the variable-axis superset Docker self-hosts at
/assets/fonts/RobotoFlex.woff2; on this site we pull it from
Google Fonts (which does serve it as opsz 8..144 / wght 100..900).
Mono stays as Roboto Mono \u2014 docs.docker.com uses the same file,
they just alias it as \"roboto flex mono\" internally.
2. Light-theme body copy was rendered in --gray-900 (\"#1E2129\") \u2014
essentially black. docs.docker.com\u2019s prose body is
oklch(37.3% .034 259.733) \u2248 \"#3F4750\" (cool mid-grey), with
headings at oklch(21% .034 264.665) \u2248 \"#1F242D\". Lift those
two values into the light-theme --text and --text-secondary
tokens. Dark-theme tokens already lined up with their inverse
prose values (\"#C8CFDA\" \u2248 oklch(87.2%)) so no change there.
Heading weights (h1: 800, h2: 700, h3: 600) and the gray scale were
already aligned in earlier commits; this just brings the remaining
type-system bits in sync.1 parent 26b09d0 commit 3e93ab3
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
110 | | - | |
111 | | - | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
| |||
0 commit comments