-
Notifications
You must be signed in to change notification settings - Fork 19
/
tailwind.config.cjs
82 lines (82 loc) · 2.78 KB
/
tailwind.config.cjs
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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./src/**/*.{html,js,svelte,ts}'],
theme: {
extend: {
screens: {
xs: '440px' /* just above most phones in portrait-mode */,
sm: '540px',
mlg: '896px',
'2xl': '1440px',
mouse: { raw: '(hover:hover)' }, // targets only browser with mouse hover
},
spacing: {
18: '4.5rem',
30: '7.5rem',
},
colors: {
primary: 'var(--color-primary)',
'primary-level-1': 'var(--color-primary-level-1)',
'primary-level-2': 'var(--color-primary-level-2)',
'primary-level-6': 'var(--color-primary-level-6)',
positive: 'var(--color-positive)',
'positive-level-1': 'var(--color-positive-level-1)',
'positive-level-2': 'var(--color-positive-level-2)',
'positive-level-6': 'var(--color-positive-level-6)',
caution: 'var(--color-caution)',
'caution-level-1': 'var(--color-caution-level-1)',
'caution-level-2': 'var(--color-caution-level-2)',
'caution-level-6': 'var(--color-caution-level-6)',
negative: 'var(--color-negative)',
'negative-level-1': 'var(--color-negative-level-1)',
'negative-level-2': 'var(--color-negative-level-2)',
'negative-level-6': 'var(--color-negative-level-6)',
foreground: 'var(--color-foreground)',
'foreground-level-1': 'var(--color-foreground-level-1)',
'foreground-level-2': 'var(--color-foreground-level-2)',
'foreground-level-3': 'var(--color-foreground-level-3)',
'foreground-level-4': 'var(--color-foreground-level-4)',
'foreground-level-5': 'var(--color-foreground-level-5)',
'foreground-level-6': 'var(--color-foreground-level-6)',
background: 'var(--color-background)',
},
fontFamily: {
mono: 'var(--typeface-mono-regular), monospace',
pixelated: '"Redaction 50", Times, serif',
},
fontSize: {
// from typography.css
'typo-header-1': '36px',
'typo-header-2': '24px',
'typo-header-3': '20px',
'typo-header-4': '16px',
'typo-header-5': '13px',
'typo-text': '16px',
'typo-text-small': '14px',
// 'typo-all-caps': 13px;
},
borderRadius: {
'drip-lg': '1rem 0 1rem 1rem',
'drip-xl': '1.5rem 0 1.5rem 1.5rem',
},
boxShadow: {
low: 'var(--elevation-low)',
md: 'var(--elevation-medium)',
hi: 'var(--elevation-high)',
},
translate: {
'2px': '2px',
},
animation: {
blink: 'blink 1000ms infinite linear',
},
keyframes: {
blink: {
'0%, 49%': { opacity: 0 },
'50%, 100%': { opacity: 1 },
},
},
},
},
plugins: [],
};