-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
119 lines (117 loc) · 4.17 KB
/
tailwind.config.mjs
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
const { nextui } = require('@nextui-org/react')
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}',
'./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}'
],
theme: {
extend: {}
},
darkMode: 'class',
plugins: [
nextui({
prefix: 'nextui', // prefix for themes variables
addCommonColors: true, // override common colors (e.g. "blue", "green", "pink").
defaultTheme: 'light', // default theme from the themes object
defaultExtendTheme: 'light', // default theme to extend on custom themes
layout: {
spacingUnit: 4, // in px
disabledOpacity: 0.5, // this value is applied as opacity-[value] when the component is disabled
dividerWeight: '1px', // h-divider the default height applied to the divider component
fontSize: {
tiny: '0.75rem', // text-tiny
small: '0.875rem', // text-small
medium: '1rem', // text-medium
large: '1.125rem' // text-large
},
lineHeight: {
tiny: '1rem', // text-tiny
small: '1.25rem', // text-small
medium: '1.5rem', // text-medium
large: '1.75rem' // text-large
},
radius: {
small: '8px', // rounded-small
medium: '12px', // rounded-medium
large: '14px' // rounded-large
},
borderWidth: {
small: '1px', // border-small
medium: '2px', // border-medium (default)
large: '3px' // border-large
}
}, // common layout tokens (applied to all themes)
themes: {
light: {
layout: {
hoverOpacity: 0.8, // this value is applied as opacity-[value] when the component is hovered
boxShadow: {
// shadow-small
small:
'0px 0px 5px 0px rgb(0 0 0 / 0.02), 0px 2px 10px 0px rgb(0 0 0 / 0.06), 0px 0px 1px 0px rgb(0 0 0 / 0.3)',
// shadow-medium
medium:
'0px 0px 15px 0px rgb(0 0 0 / 0.03), 0px 2px 30px 0px rgb(0 0 0 / 0.08), 0px 0px 1px 0px rgb(0 0 0 / 0.3)',
// shadow-large
large:
'0px 0px 30px 0px rgb(0 0 0 / 0.04), 0px 30px 60px 0px rgb(0 0 0 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.3)'
}
},
colors: {
background: '#fbefed', // or DEFAULT
foreground: '#140906', // or 50 to 900 DEFAULT
primary: {
50: '#140906',
100: '#2e221e',
200: '#4b3a34',
300: '#695149',
400: '#86685e',
500: '#a08178',
600: '#b49e96',
700: '#c9bab4',
800: '#e1d5d1',
900: '#fbefed',
foreground: '#fbefed',
DEFAULT: '#86685e'
}
}
},
dark: {
layout: {
hoverOpacity: 0.9, // this value is applied as opacity-[value] when the component is hovered
boxShadow: {
// shadow-small
small:
'0px 0px 5px 0px rgb(0 0 0 / 0.05), 0px 2px 10px 0px rgb(0 0 0 / 0.2), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)',
// shadow-medium
medium:
'0px 0px 15px 0px rgb(0 0 0 / 0.06), 0px 2px 30px 0px rgb(0 0 0 / 0.22), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)',
// shadow-large
large:
'0px 0px 30px 0px rgb(0 0 0 / 0.07), 0px 30px 60px 0px rgb(0 0 0 / 0.26), inset 0px 0px 1px 0px rgb(255 255 255 / 0.15)'
}
},
colors: {
background: '#140906', // or DEFAULT
foreground: '#fbefed', // or 50 to 900 DEFAULT
primary: {
900: '#140906',
800: '#2e221e',
700: '#4b3a34',
600: '#695149',
500: '#86685e',
400: '#a08178',
300: '#b49e96',
200: '#c9bab4',
100: '#e1d5d1',
50: '#fbefed',
foreground: '#fbefed',
DEFAULT: '#b49e96'
}
}
}
}
})
]
}