-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathtailwind.config.ts
60 lines (57 loc) · 1.45 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
import type { Config } from 'tailwindcss'
import { nextui } from '@nextui-org/theme'
const WIDTHS = Object.freeze({
xs: '320px',
sm: '576px',
md: '768px',
slg: '850px',
lg: '992px',
xl: '1280px',
'2xl': '1440px',
'3xl': '1660px',
})
const CUSTOM_MQ = {
hxs: { raw: `(min-height: ${WIDTHS.xs})` },
hsm: { raw: `(min-height: ${WIDTHS.sm})` },
hmd: { raw: `(min-height: ${WIDTHS.md})` },
hslg: { raw: `(min-height: ${WIDTHS.slg})` },
hlg: { raw: `(min-height: ${WIDTHS.lg})` },
hxl: { raw: `(min-height: ${WIDTHS.xl})` },
h2xl: { raw: `(min-height: ${WIDTHS['2xl']})` },
h3xl: { raw: `(min-height: ${WIDTHS['3xl']})` },
}
const config: Config = {
darkMode: 'class',
plugins: [
nextui({
addCommonColors: true,
}),
],
content: [
'./src/**/*.{js,ts,jsx,tsx,mdx}',
// NextUI Components
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}',
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
colors: {
primary: '#7f46e2',
secondary: '#ff6ae7',
black1: '#000000',
gray1: '#c2c2c2',
white1: '#ffffff',
},
fontFamily: {
poppins: ['var(--font-poppins)'],
},
screens: { ...WIDTHS, ...CUSTOM_MQ },
maxWidth: WIDTHS,
},
},
}
export default config