Repository navigation
Expand file tree
/
Copy pathtailwind.config.js
More file actions
50 lines (50 loc) · 1.56 KB
/
Copy pathtailwind.config.js
File metadata and controls
50 lines (50 loc) · 1.56 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
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
brand: "#264376",
// Semantic Token Mapping
'zine-primary': 'var(--zine-color-primary)',
'zine-secondary': 'var(--zine-color-secondary)',
'zine-accent': 'var(--zine-color-accent)',
'zine-bg': 'var(--zine-color-background)',
'zine-surface': 'var(--zine-color-surface)',
},
gridTemplateColumns: {
'24': 'repeat(24, minmax(0, 1fr))',
},
gridTemplateRows: {
'24': 'repeat(24, minmax(0, 1fr))',
},
spacing: {
'zine-xs': '4px',
'zine-sm': '8px',
'zine-md': '16px',
'zine-lg': '24px',
'zine-xl': '32px',
'zine-2xl': '48px',
'zine-3xl': '64px',
'zine-gutter': '24px',
},
fontFamily: {
'zine-display': ["'Playfair Display'", 'serif'],
'zine-serif': ["'Noto Serif SC'", 'serif'],
'zine-body': ["'Crimson Pro'", 'serif'],
'zine-sans': ["'Inter'", 'sans-serif'],
},
fontSize: {
'zine-display': ['72px', { lineHeight: '0.8', letterSpacing: '-0.05em' }],
'zine-h1': ['48px', { lineHeight: '1', letterSpacing: '-0.02em' }],
'zine-h2': ['32px', { lineHeight: '1.2', letterSpacing: '-0.01em' }],
'zine-body': ['16px', { lineHeight: '1.5', letterSpacing: '0' }],
'zine-caption': ['10px', { lineHeight: '1.6', letterSpacing: '0.2em' }],
}
},
},
plugins: [],
}