Skip to content

Commit d00a19f

Browse files
committed
Add creative commons fonts
1 parent 9b28c7b commit d00a19f

6 files changed

Lines changed: 458 additions & 0 deletions

File tree

public/fonts/CCSymbols.sfd

Lines changed: 433 additions & 0 deletions
Large diffs are not rendered by default.

public/fonts/CCSymbols.ttf

3.57 KB
Binary file not shown.

public/fonts/CCSymbols.woff

3.82 KB
Binary file not shown.

public/fonts/CCSymbols.woff2

1.88 KB
Binary file not shown.

src/styles/global.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
@import 'tailwindcss';
22
@plugin '@tailwindcss/typography';
33
@config '../../tailwind.config.js';
4+
5+
/* The following code was adapted from https://www.ctrl.blog/entry/creative-commons-unicode-fallback-font.html */
6+
/* The font was downloaded from https://www.ctrl.blog/file/2020-04-19_cc-symbols.zip */
7+
@font-face {
8+
font-family: 'CCSymbols';
9+
font-display: swap;
10+
font-synthesis: none;
11+
src:
12+
url('/fonts/CCSymbols.woff2') format('woff2'),
13+
url('/fonts/CCSymbols.woff') format('woff');
14+
15+
unicode-range: U+00A9, U+229C, U+1F10D-1F10F, U+1F16D-1F16F;
16+
}

tailwind.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ export default {
99
'dark-bg': '#151515',
1010
'lighter-dark-bg': '#202022',
1111
},
12+
fontFamily: {
13+
sans: [
14+
'ui-sans-serif',
15+
'system-ui',
16+
'sans-serif',
17+
'"Apple Color Emoji"',
18+
'"Segoe UI Emoji"',
19+
'"Segoe UI Symbol"',
20+
'"Noto Color Emoji"',
21+
'CCSymbols',
22+
],
23+
},
1224
typography: (theme) => ({
1325
DEFAULT: {
1426
css: {

0 commit comments

Comments
 (0)