-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
72 lines (71 loc) · 2.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
import type { Config } from 'tailwindcss'
import plugin from 'tailwindcss/plugin'
import colors from 'tailwindcss/colors'
const config: Config = {
content: [
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
'./src/common/**/*.{js,ts,jsx,tsx,mdx}',
'./src/features/**/*.{js,ts,jsx,tsx,mdx}',
],
darkMode: 'selector',
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
aspectRatio: {
'a4-document': '210 / 297',
},
colors: {
primary: colors.sky,
'layout-divider-color': colors.gray['200'],
// sidebar light
'sidebar-bg-light': colors.white,
'sidebar-item-bg-light-selected': colors.sky,
'sidebar-item-text-light': colors.gray['500'],
'sidebar-item-text-light-selected': colors.white,
'sidebar-item-text-light-hover': colors.black,
// sidebar dark
'sidebar-bg-dark': colors.slate['900'],
'sidebar-item-bg-dark-selected': colors.gray['200'],
'sidebar-item-text-dark': colors.white,
'sidebar-item-text-dark-selected': colors.black,
'sidebar-item-text-dark-hover': colors.white,
},
spacing: {
'app-header-h-lg': '4rem',
'app-header-h-sm': '2rem',
'sidebar-w-closed': '4rem',
'sidebar-w-open': '13rem',
},
borderWidth: {
DEFAULT: '1px',
},
transitionProperty: {
width: 'width',
visibility: 'visibility',
},
zIndex: {
'100': '100',
'200': '200',
},
},
},
plugins: [
require('tailwindcss-react-aria-components'),
plugin(function ({ addBase }) {
addBase({
'[type="search"]::-webkit-search-decoration': { display: 'none' },
'[type="search"]::-webkit-search-cancel-button': { display: 'none' },
'[type="search"]::-webkit-search-results-button': { display: 'none' },
'[type="search"]::-webkit-search-results-decoration': {
display: 'none',
},
})
}),
],
}
export default config