diff options
| author | Max Charrier <max@puffer.fish> | 2025-04-22 09:05:49 +0200 |
|---|---|---|
| committer | Max Charrier <max@puffer.fish> | 2025-04-22 09:05:49 +0200 |
| commit | 27d77894a9deb33153361bab74499ef155485686 (patch) | |
| tree | 81e416d0882ea93d003fcd6baaf5e21b34a4f06a | |
| parent | dac66ea33ec47f252a0acbcfec11e84a89a2fdc3 (diff) | |
Implement Transitional Modern Font Stacks
More information: https://github.com/system-fonts/modern-font-stacks#transitional
Signed-off-by: Max Charrier <max@puffer.fish>
| -rw-r--r-- | stylesheet.css | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/stylesheet.css b/stylesheet.css index 3610f90..a319ba2 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -1,3 +1,8 @@ +:root { + --system-ui: ui-serif, Charter, 'Bitstream Charter', 'Sitka Text', Cambria, serif;; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} body { background-color: #f1e9df; width: 960px; @@ -6,6 +11,8 @@ body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 60px; + font-family: var(--system-ui); + font-weight: normal; /* 400 */ font-size: 1.1rem; } header { @@ -29,8 +36,8 @@ header nav menu li { } header nav menu a { color: #555; + font-weight: bold; /* 700 */ font-size: 0.95rem; - font-weight: bold; text-decoration: none; } main { @@ -40,7 +47,7 @@ main { main h2, main a { color: #333; margin-bottom: 30px; - font-weight: bold; + font-weight: bold; /* 700 */ } main p { margin-bottom: 20px; |
