-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.cjs
More file actions
107 lines (106 loc) · 2.4 KB
/
tailwind.config.cjs
File metadata and controls
107 lines (106 loc) · 2.4 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
104
105
106
107
/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable no-undef */
/** @type {import('tailwindcss').Config} */
module.exports = {
mode: 'jit',
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
'./safelist.txt'
],
darkMode: 'class',
theme: {
fontFamily: {
sans: [
'Inter',
'ui-sans-serif',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'"Segoe UI"',
'Roboto',
'"Helvetica Neue"',
'Arial',
'"Noto Sans"',
'sans-serif',
'"Apple Color Emoji"',
'"Segoe UI Emoji"',
'"Segoe UI Symbol"',
'"Noto Color Emoji"',
],
serif: [
'ui-serif',
'Georgia',
'Cambria',
'"Times New Roman"',
'Times',
'serif',
],
mono: [
'ui-monospace',
'SFMono-Regular',
'Menlo',
'Monaco',
'Consolas',
'"Liberation Mono"',
'"Courier New"',
'monospace',
],
},
screens: {
xs: '576px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
'2xl': '1536px',
},
extend: {
colors: {
'primary': 'var(--primary)',
'primary-text': 'var(--primary-text)',
'primary-deep': 'var(--primary-deep)',
'primary-mild': 'var(--primary-mild)',
'primary-subtle': 'var(--primary-subtle)',
'secondary': 'var(--secondary)',
'secondary-deep': 'var(--secondary-deep)',
'error': 'var(--error)',
'error-subtle': 'var(--error-subtle)',
'success': 'var(--success)',
'success-subtle': 'var(--success-subtle)',
'info': 'var(--info)',
'info-subtle': 'var(--info-subtle)',
'warning': 'var(--warning)',
'warning-subtle': 'var(--warning-subtle)',
'neutral': 'var(--neutral)',
'gray-50': 'var(--gray-50)',
'gray-100': 'var(--gray-100)',
'gray-200': 'var(--gray-200)',
'gray-300': 'var(--gray-300)',
'gray-400': 'var(--gray-400)',
'gray-500': 'var(--gray-500)',
'gray-600': 'var(--gray-600)',
'gray-700': 'var(--gray-700)',
'gray-800': 'var(--gray-800)',
'gray-900': 'var(--gray-900)',
'gray-950': 'var(--gray-950)',
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.gray.500'),
maxWidth: '65ch',
},
},
invert: {
css: {
color: theme('colors.gray.400'),
},
},
}),
},
},
plugins: [
require('@tailwindcss/typography'),
],
};