-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
53 lines (50 loc) · 1.5 KB
/
tailwind.config.ts
File metadata and controls
53 lines (50 loc) · 1.5 KB
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
import { Config } from 'tailwindcss'
import plugin from 'tailwindcss/plugin'
import animate from 'tailwindcss-animate'
import { colors, fontSize, zIndex } from './src/shared/config'
const config: Config = {
darkMode: ['class'],
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}', './app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
data: {
selected: 'selected~=true',
active: 'active~=true',
readOnly: 'readOnly~=true',
},
extend: {
fontFamily: {
pretendard: ['var(--font-pretendard)'],
},
colors: {
...colors,
sidebar: {
DEFAULT: 'hsl(var(--sidebar-background))',
foreground: 'hsl(var(--sidebar-foreground))',
primary: 'hsl(var(--sidebar-primary))',
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
accent: 'hsl(var(--sidebar-accent))',
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
border: 'hsl(var(--sidebar-border))',
ring: 'hsl(var(--sidebar-ring))',
},
},
fontSize,
zIndex,
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)',
},
},
},
plugins: [
plugin(function ({ addVariant }) {
addVariant('not-last', '&:not(:last-child)')
addVariant('not-first', '&:not(:first-child)')
addVariant('not-checked', '&:not(:checked)')
addVariant('not-empty', '&:not(:empty)')
}),
animate,
],
}
export default config