-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
124 lines (122 loc) · 3.2 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
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
// import typography from '@tailwindcss/typography';
import { nextui } from '@nextui-org/react';
import { Config } from 'tailwindcss';
const COLORS = {
primary: {
'100': '#EFFDFD',
'200': '#E0FBFC',
'300': '#CDF3F7',
'400': '#BDE7F0',
'500': '#A6D7E7',
'600': '#79AEC6',
'700': '#5386A6',
'800': '#346085',
'900': '#1F446E',
'950': '#122E52',
'975': '#0A1E3C',
DEFAULT: '#A6D7E7',
},
'black-alpha': {
50: 'rgba(11, 11, 11, 0.04)',
100: 'rgba(11, 11, 11, 0.06)',
200: 'rgba(11, 11, 11, 0.08)',
300: 'rgba(11, 11, 11, 0.16)',
400: 'rgba(11, 11, 11, 0.24)',
500: 'rgba(11, 11, 11, 0.36)',
600: 'rgba(11, 11, 11, 0.48)',
700: 'rgba(11, 11, 11, 0.64)',
800: 'rgba(11, 11, 11, 0.80)',
900: 'rgba(11, 11, 11, 0.92)',
},
'white-alpha': {
50: 'rgba(255, 255, 255, 0.04)',
100: 'rgba(255, 255, 255, 0.06)',
200: 'rgba(255, 255, 255, 0.08)',
300: 'rgba(255, 255, 255, 0.16)',
400: 'rgba(255, 255, 255, 0.24)',
500: 'rgba(255, 255, 255, 0.36)',
600: 'rgba(255, 255, 255, 0.48)',
700: 'rgba(255, 255, 255, 0.64)',
800: 'rgba(255, 255, 255, 0.80)',
900: 'rgba(255, 255, 255, 0.92)',
},
} as const;
export default {
content: [
'./src/**/*.{js,jsx,ts,tsx}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
darkMode: 'class',
plugins: [
nextui({
addCommonColors: true,
themes: {
light: {
colors: {
background: '#fcfcfc',
foreground: '#1d1e25',
// @ts-expect-error alpha is not a valid color
alpha: COLORS['black-alpha'],
primary: {
...COLORS.primary,
foreground: '#1d1e25',
},
},
},
dark: {
colors: {
background: '#1d1e25',
foreground: '#fcfcfc',
// @ts-expect-error alpha is not a valid color
alpha: COLORS['white-alpha'],
primary: {
...COLORS.primary,
foreground: '#1d1e25',
// background: '#1d1e25',
},
},
},
},
}),
],
theme: {
extend: {},
colors: {
// red: {
// DEFAULT: '#ff0342',
// },
// gray: {
// light: '#6c7a93',
// DEFAULT: '#3c404e',
// dark: '#1d1e25',
// },
// primary: {
// '100': '#EFFDFD',
// '200': '#E0FBFC',
// '300': '#CDF3F7',
// '400': '#BDE7F0',
// '500': '#A6D7E7',
// '600': '#79AEC6',
// '700': '#5386A6',
// '800': '#346085',
// '900': '#1F446E',
// },
// secondary: '#f5f5f5',
},
// borderRadius: tokens.borderRadius,
// boxShadow: tokens.boxShadow,
// colors: {
// ...tokens.colors,
// // Semantic colors
// primary: tokens.colors.blue,
// success: tokens.colors.green,
// warning: tokens.colors.red,
// notification: tokens.colors.yellow,
// },
// fontFamily: tokens.fontFamily,p
// fontWeight: tokens.fontWeight,
// fontSize: tokens.fontSize,
// lineHeight: tokens.lineHeight,
// screens: { ...tokens.breakpoints },
},
} satisfies Config;