-
Notifications
You must be signed in to change notification settings - Fork 793
Expand file tree
/
Copy pathtailwind.config.js
More file actions
103 lines (94 loc) · 2.47 KB
/
tailwind.config.js
File metadata and controls
103 lines (94 loc) · 2.47 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
96
97
98
99
100
101
102
103
import plugin from 'tailwindcss/plugin';
const palette = {
black: 'var(--black)',
white: 'var(--white)',
primary: 'var(--primary)',
'primary-dark': 'var(--primary-dark)',
'primary-darker': 'var(--primary-darker)',
'primary-hover': 'var(--primary-hover)',
'primary-active-hover': 'var(--primary-active-hover)',
secondary: 'var(--secondary)',
tertiary: 'var(--tertiary)',
accented: 'var(--accented)',
powder: 'var(--powder)',
pewter: 'var(--pewter)',
success: 'var(--success)',
error: 'var(--error)',
warning: 'var(--warning)',
'warning-light': 'var(--warning-light)',
'warning-dark': 'var(--warning-dark)',
'palette-gray1': 'var(--gray-1)',
'palette-gray2': 'var(--gray-2)',
'palette-gray3': 'var(--gray-3)',
'palette-gray4': 'var(--gray-4)',
'palette-gray5': 'var(--gray-5)',
'palette-gray6': 'var(--gray-6)',
'palette-gray7': 'var(--gray-7)',
};
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./common/**/*.tsx',
'./components/**/*.tsx',
'./context/**/*.tsx',
'./pages/**/*.tsx',
'./scenes/**/*.tsx',
],
darkMode: 'class',
theme: {
screens: {
small: '800px',
layout: '1200px',
},
fontFamily: {
sans: ['Optimistic Display', 'ui-sans-serif', 'system-ui'],
mono: ['monospace', 'ui-monospace'],
},
backgroundColor: {
transparent: 'transparent',
current: 'currentColor',
default: 'var(--background)',
...palette,
// TODO: temporary values, replace with proper gray palette for dark mode
dark: 'var(--dark)',
'very-dark': 'var(--very-dark)',
},
borderColor: {
transparent: 'transparent',
current: 'currentColor',
default: 'var(--border)',
...palette,
// TODO: temporary values, replace with proper gray palette for dark mode
dark: 'var(--dark)',
secondary: 'var(--border-secondary)',
},
colors: {
transparent: 'transparent',
current: 'currentColor',
icon: 'var(--icon)',
hover: 'var(--hover)',
...palette,
},
gradientColorStops: {
transparent: 'transparent',
...palette,
},
extend: {
maxWidth: {
layout: 1200,
footer: 960,
},
},
},
corePlugins: {
fontFamily: false,
},
plugins: [
plugin(({ addUtilities }) => {
addUtilities({
'.break-words': { 'word-break': 'break-word' },
'.wrap-anywhere': { 'overflow-wrap': 'anywhere' },
});
}),
],
};