-
Notifications
You must be signed in to change notification settings - Fork 29
/
tailwind.config.js
88 lines (80 loc) · 2.76 KB
/
tailwind.config.js
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
// const colors = require('tailwindcss/colors')
// const flattenColorPalette = require('tailwindcss/lib/util/flattenColorPalette').default
// const defaultTheme = require('tailwindcss/defaultTheme')
const forms = require('@tailwindcss/forms')
module.exports = {
content: ['./src/**/*.{ts,tsx,js,jsx,scss,sass,css}', './src/index.html'],
theme: {
// colors: {
// transparent: 'transparent',
// current: 'currentColor',
// black: colors.black,
// white: colors.white,
// gray: colors.gray,
// red: colors.red,
// blue: colors.blue,
// green: colors.green,
// yellow: colors.yellow,
// darkborder: 'rgba(31, 41, 55, 0.65)',
// lightborder: 'rgba(243, 244, 246, 0.65)',
// },
boxShadow: {
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.25)',
DEFAULT: '0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.3)',
md: '0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3)',
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25)',
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2)',
'2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.8)',
'3xl': '0 35px 60px -15px rgba(0, 0, 0, 0.9)',
inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.30)',
none: 'none',
},
// screens: {
// sm: '640px',
// // => @media (min-width: 640px) { ... }
// md: '768px',
// // => @media (min-width: 768px) { ... }
// lg: '1024px',
// // => @media (min-width: 1024px) { ... }
// xl: '1280px',
// // => @media (min-width: 1280px) { ... }
// '2xl': '1536px',
// // => @media (min-width: 1536px) { ... }
// },
extend: {
colors: {
transparent: 'transparent',
current: 'currentColor',
darkborder: 'rgba(31, 41, 55, 0.65)',
lightborder: 'rgba(243, 244, 246, 0.65)',
},
zIndex: {
60: 60,
70: 70,
80: 80,
90: 90,
100: 100,
},
},
},
variants: {
extend: {
display: ['motion-reduce'],
},
},
plugins: [
forms,
// ({ addUtilities, theme, variants }) => {
// const borderColor = flattenColorPalette(theme('borderColor'))
// delete borderColor.default
// const colorMap = Object.keys(borderColor).map((color) => ({
// [`.border-t-${color}`]: { borderTopColor: borderColor[color] },
// [`.border-r-${color}`]: { borderRightColor: borderColor[color] },
// [`.border-b-${color}`]: { borderBottomColor: borderColor[color] },
// [`.border-l-${color}`]: { borderLeftColor: borderColor[color] },
// }))
// const utilities = Object.assign({}, ...colorMap)
// addUtilities(utilities, variants('borderColor'))
// },
],
}