-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
156 lines (155 loc) · 6.58 KB
/
tailwind.config.js
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./sample/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
'./src/**/**/*.{ts,tsx}',
'./node_modules/@tremor/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
media: false, // or 'media' or 'class'
theme: {
transparent: 'transparent',
current: 'currentColor',
extend: {
colors: {
// light mode
tremor: {
brand: {
faint: '#eff6ff', // blue-50
muted: '#bfdbfe', // blue-200
subtle: '#60a5fa', // blue-400
DEFAULT: '#304FF3', // blue-500
emphasis: '#1d4ed8', // blue-700
inverted: '#ffffff', // white
},
background: {
muted: '#f9fafb', // gray-50
subtle: '#f3f4f6', // gray-100
DEFAULT: '#ffffff', // white
emphasis: '#374151', // gray-700
},
border: {
DEFAULT: '#e5e7eb', // gray-200
},
ring: {
DEFAULT: '#e5e7eb', // gray-200
},
content: {
subtle: '#9ca3af', // gray-400
DEFAULT: '#6b7280', // gray-500
emphasis: '#374151', // gray-700
strong: '#111827', // gray-900
inverted: '#ffffff', // white
},
},
// dark mode
'dark-tremor': {
brand: {
faint: '#0B1229', // custom
muted: '#172554', // blue-950
subtle: '#1e40af', // blue-800
DEFAULT: '#4F5152', // blue-500
emphasis: '#60a5fa', // blue-400
inverted: '#030712', // gray-950
},
background: {
muted: '#131A2B', // custom
subtle: '#1f2937', // gray-800
DEFAULT: '#111827', // gray-900
emphasis: '#d1d5db', // gray-300
},
border: {
DEFAULT: '#1f2937', // gray-800
},
ring: {
DEFAULT: '#1f2937', // gray-800
},
content: {
subtle: '#4b5563', // gray-600
DEFAULT: '#6b7280', // gray-600
emphasis: '#e5e7eb', // gray-200
strong: '#f9fafb', // gray-50
inverted: '#000000', // black
},
},
},
backgroundColor: {
blackOpacity: 'rgba(0, 0, 0, 0.5)',
},
boxShadow: {
card: 'rgb(255,255,255) 0px 0px 0px 0px, rgb(229,231, 235) 0px 0px 0px 1px, rgba(0,0,0,0.1) 0px 1px 3px 0px, rgba(0,0,0,0.1) 0px 1px 2px -1px',
alert: '0px 1px 7px 2px rgba(0, 0, 0, 0.5)',
legend: '0 0px 2px 0px rgba(0, 0, 0, 0.5)',
// light
'tremor-input': '0 1px 2px 0 rgb(0 0 0 / 0.05)',
'tremor-card': '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
'tremor-dropdown': '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
// dark
'dark-tremor-input': '0 1px 2px 0 rgb(0 0 0 / 0.05)',
'dark-tremor-card': '0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)',
'dark-tremor-dropdown': '0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)',
},
borderRadius: {
'tremor-small': '0.375rem',
'tremor-default': '0.5rem',
'tremor-full': '9999px',
},
fontSize: {
'tremor-label': ['0.75rem'],
'tremor-default': ['0.875rem', { lineHeight: '1.25rem' }],
'tremor-title': ['1.125rem', { lineHeight: '1.75rem' }],
'tremor-metric': ['1.875rem', { lineHeight: '2.25rem' }],
},
fontFamily: {
sans: '"Segoe UI", Tahoma, Geneva, Verdana, sans-serif',
},
screens: {
xxs: { max: '375px' },
xs: { max: '480px' },
sm: { max: '768px' },
md: { max: '1024px' },
lg: { max: '1280px' },
xl: { max: '1366px' },
},
maxWidth: {
unomax: '1460px',
},
},
},
variants: {
extend: {},
},
safelist: [
{ pattern: /z-(\d)/ },
{ pattern: /grid-rows-(\d)/ },
{ pattern: /grid-cols-(\d)/ },
{
pattern:
/bg-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900)/,
variants: ['hover', 'ui-selected'],
},
{
pattern:
/text-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900)/,
variants: ['hover', 'ui-selected'],
},
{
pattern:
/border-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900)/,
variants: ['hover', 'ui-selected'],
},
{
pattern:
/ring-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900)/,
},
{
pattern:
/stroke-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900|950)/,
},
{
pattern:
/fill-(slate|gray|zinc|neutral|stone|red|orange|amber|yellow|lime|green|emerald|teal|cyan|sky|blue|indigo|violet|purple|fuchsia|pink|rose)-(50|100|200|300|400|500|600|700|800|900|950)/,
},
]
};