-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathtailwind.config.js
More file actions
81 lines (81 loc) · 2.92 KB
/
tailwind.config.js
File metadata and controls
81 lines (81 loc) · 2.92 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
/** @type {import('tailwindcss').Config} */
// Force reload after file move
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
],
theme: {
extend: {
colors: {
brand: {
DEFAULT: 'var(--color-brand)',
subtle: 'var(--color-brand-subtle)',
hover: 'var(--color-brand-hover)',
},
surface: {
primary: 'var(--color-bg-primary)',
secondary: 'var(--color-bg-secondary)',
tertiary: 'var(--color-bg-tertiary)',
elevated: 'var(--color-bg-elevated)',
},
border: {
DEFAULT: 'var(--color-border)',
hover: 'var(--color-border-hover)',
active: 'var(--color-border-active)',
},
text: {
primary: 'var(--color-text-primary)',
secondary: 'var(--color-text-secondary)',
tertiary: 'var(--color-text-tertiary)',
disabled: 'var(--color-text-disabled)',
},
status: {
success: 'var(--color-success)',
warning: 'var(--color-warning)',
error: 'var(--color-error)',
info: 'var(--color-info)',
'success-subtle': 'var(--color-success-subtle)',
'warning-subtle': 'var(--color-warning-subtle)',
'error-subtle': 'var(--color-error-subtle)',
'info-subtle': 'var(--color-info-subtle)',
},
},
// Ergonomic single-prefix aliases. `colors.text.primary` above generates
// `text-text-primary`; these add the cleaner `text-primary` / `bg-secondary`
// / `border-active` forms so we can wean components off `text-zinc-*`
// without losing the existing `text-text-primary` callsites.
textColor: {
primary: 'var(--color-text-primary)',
secondary: 'var(--color-text-secondary)',
tertiary: 'var(--color-text-tertiary)',
disabled: 'var(--color-text-disabled)',
success: 'var(--color-success)',
warning: 'var(--color-warning)',
error: 'var(--color-error)',
info: 'var(--color-info)',
},
backgroundColor: {
primary: 'var(--color-bg-primary)',
secondary: 'var(--color-bg-secondary)',
tertiary: 'var(--color-bg-tertiary)',
elevated: 'var(--color-bg-elevated)',
'success-subtle': 'var(--color-success-subtle)',
'warning-subtle': 'var(--color-warning-subtle)',
'error-subtle': 'var(--color-error-subtle)',
'info-subtle': 'var(--color-info-subtle)',
},
borderColor: {
DEFAULT: 'var(--color-border)',
hover: 'var(--color-border-hover)',
active: 'var(--color-border-active)',
},
fontFamily: {
sans: ['var(--font-inter)', 'system-ui', '-apple-system', 'sans-serif'],
mono: ['ui-monospace', 'SFMono-Regular', 'Menlo', 'Monaco', 'Consolas', 'monospace'],
},
},
},
plugins: [],
}