Skip to content

Commit a390b09

Browse files
committed
use baskervville on non-mac
1 parent 205d791 commit a390b09

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

apps/svelte.dev/src/app.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@
4747
);
4848

4949
div.remove();
50+
51+
if (/Macintosh/.test(navigator.userAgent)) {
52+
document.documentElement.classList.add('mac');
53+
}
5054
}
5155
</script>
5256

packages/site-kit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"homepage": "https://github.com/sveltejs/svelte.dev/tree/main/packages/site-kit#readme",
2424
"dependencies": {
25+
"@fontsource/baskervville": "^5.1.0",
2526
"@fontsource/eb-garamond": "^5.1.0",
2627
"@fontsource/fira-mono": "^5.1.0",
2728
"@fontsource/yantramanav": "^5.1.0",

packages/site-kit/src/lib/styles/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@import '@fontsource/eb-garamond';
22
@import '@fontsource/eb-garamond/500.css';
33
@import '@fontsource/eb-garamond/400-italic.css';
4+
@import '@fontsource/baskervville';
5+
@import '@fontsource/baskervville/400-italic.css';
46
@import '@fontsource/fira-mono';
57

68
/* TODO figure out which weights we actually need */

packages/site-kit/src/lib/styles/tokens.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
/* typography */
2525
--sk-font-ui: 'Yantramanav', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
2626
Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
27-
--sk-font-body: 'EB Garamond', 'Big Caslon', Palatino, 'Book Antiqua', Cambria, serif;
28-
--sk-font-heading: var(--sk-font-body);
27+
--sk-font-body: 'Baskervville', 'Big Caslon', Palatino, 'Book Antiqua', Cambria, serif;
28+
--sk-font-heading: 'EB Garamond', var(--sk-font-body);
2929
--sk-font-mono: 'Fira Mono', monospace;
3030
--sk-text-xxl: 3.6rem;
3131
--sk-text-xl: 3rem;
@@ -35,6 +35,10 @@
3535
--sk-text-xs: 1.4rem;
3636
--sk-line-max-width: 84rem;
3737

38+
&.mac {
39+
--sk-font-body: 'EB Garamond';
40+
}
41+
3842
--sk-focus-outline: 0 0 0 2px hsla(var(--sk-theme-1-hsl), 0.6);
3943

4044
/* Base colors */

pnpm-lock.yaml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)