-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
65 lines (63 loc) · 1.53 KB
/
tailwind.config.ts
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
import aspectRatio from '@tailwindcss/aspect-ratio';
import forms from '@tailwindcss/forms';
import typography from '@tailwindcss/typography';
import type { Config } from 'tailwindcss';
import colors from 'tailwindcss/colors';
import defaultTheme from 'tailwindcss/defaultTheme';
const primary = colors.indigo;
const colorConfig = {
dark: {
...colors.slate,
DEFAULT: '#1F2937'
},
white: {
DEFAULT: '#FFFFFF',
light: '#E0E6ED'
},
light: '#F5F8FA',
primary: {
...primary,
DEFAULT: primary[500]
},
info: {
...colors.indigo,
DEFAULT: colors.indigo[500]
},
danger: {
...colors.rose,
DEFAULT: colors.rose[500]
},
success: {
...colors.emerald,
DEFAULT: colors.emerald[500]
},
warning: {
...colors.amber,
DEFAULT: colors.amber[500]
},
secondary: {
...colors.gray,
DEFAULT: colors.gray[400]
}
};
const config: Config = {
content: [
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}'
],
darkMode: 'class', // or 'media'
theme: {
extend: {
colors: colorConfig,
height: {
sidebar: 'calc(100vh - 70px)'
},
fontFamily: {
sans: ['Inter, Helvetica, "sans-serif"', ...defaultTheme.fontFamily.sans]
}
}
},
plugins: [forms, typography, aspectRatio]
};
export default config;