Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
95 lines (89 loc) · 2.05 KB
/
Copy pathtailwind.config.js
File metadata and controls
95 lines (89 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
const defaultTheme = require('tailwindcss/defaultTheme')
const proseColors = {
color: 'var(--fg)',
strong: {
color: 'inherit',
},
code: {
color: 'var(--fg-highlight)',
},
figcaption: {
color: 'var(--fg)',
},
}
module.exports = {
content: [
'./src/**/*.html',
'./src/**/*.md',
'./src/speedlify.js',
'./.eleventy.js',
],
// darkMode: ['class', '[data-theme="dark"]'],
theme: {
extend: {
screens: {
'2xs': '320px',
xs: '460px',
sm: '640px',
},
colors: {
/*
--bg: #1f1a16;
--bg-raised: #27211d;
--fg: #fdfacb;
--fg-highlight: #fbcd5c;
--fg-muted: #b78447;
--primary: #fbcd5c;
--primary-muted: #b78447;
*/
// background
bg: {
DEFAULT: 'var(--bg)',
raised: 'var(--bg-raised)',
},
// text
fg: {
DEFAULT: 'var(--fg)',
highlight: 'var(--fg-highlight)',
muted: 'var(--fg-muted)',
},
// primary color accent
primary: {
DEFAULT: 'var(--primary)',
highlight: 'var(--primary-highlight)',
muted: 'var(--primary-muted)',
},
// border
border: {
DEFAULT: 'var(--border)',
},
},
fontFamily: {
sans: ['Luciole', ...defaultTheme.fontFamily.sans],
serif: ['Rakkas', ...defaultTheme.fontFamily.serif],
luciole: ['Luciole', ...defaultTheme.fontFamily.sans],
rakkas: ['Rakkas', ...defaultTheme.fontFamily.serif],
display: ['Rakkas', ...defaultTheme.fontFamily.serif],
sharpie: ['Fat Sharpie', ...defaultTheme.fontFamily.serif],
body: ['Luciole', ...defaultTheme.fontFamily.sans],
},
fontSize: {
'2xs': '.625rem',
},
typography: {
DEFAULT: {
css: {
...proseColors,
},
},
lg: {
css: {
...proseColors,
},
},
},
},
},
variants: {},
plugins: [require('@tailwindcss/typography')],
}