-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
executable file
·65 lines (65 loc) · 2.7 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
module.exports = {
theme: {
fontFamily: {
'display': ['Texta Black', '-apple-system', 'BlinkMacSystemFont', "Segoe UI", 'Roboto,tahoma', 'Verdana,arial', "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", 'STXihei', "华文细黑", "Microsoft Yahei", "微软雅黑", 'sans-serif'],
'body': ['Texta Regular', '-apple-system', 'BlinkMacSystemFont', "Segoe UI", 'Roboto,tahoma', 'Verdana,arial', "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", 'STXihei', "华文细黑", "Microsoft Yahei", "微软雅黑", 'sans-serif'],
},
fontSize: {
'xs': '.75rem',
'sm': '.875rem',
'base': '1rem',
'lg': '1.125rem',
'xl': '1.25rem',
'2xl': '1.5rem',
'3xl': '2rem',
'4xl': '2.5rem',
'5xl': '3rem'
},
boxShadow: {
'default': '0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06)',
'md': ' 0px 1px 3px rgba(9, 41, 120, 0.13), 0px 4px 8px rgba(0, 0, 0, 0.13)',
'lg': ' 0px 3px 6px rgba(9, 41, 120, 0.13), 0px 8px 16px rgba(0, 0, 0, 0.13)',
'xl': ' 0px 1px 8px rgba(4, 28, 51, 0.02), 0px 5px 15px rgba(4, 28, 51, 0.03), 0px 15px 30px rgba(4, 28, 51, 0.04)'
},
letterSpacing: {
wide: '.015em',
wider: '.025em'
},
screens: {
'sm': '320px',
'md': '780px',
'lg': '1024px',
'xl': '1440px',
},
fluidContainer: {
'default': {
maxWidth: '1240px', // defaults to null (no maximum width)
padding: '48px', // defaults to '15px'
responsivePadding: { // defaults to {}
'sm': '30px', // at screen 'sm', the padding will change to 30px
},
},
},
height: {
"xl": '380px',
"64": "320px",
},
darkSelector: '.mode-dark'
},
variants: { // for the utilities
fluidContainer: ['responsive'], // defaults to ['responsive']
backgroundColor: ['dark', 'dark-hover', 'dark-group-hover', 'dark-even', 'dark-odd'],
borderColor: ['dark', 'dark-focus', 'dark-focus-within'],
textColor: ['dark', 'dark-hover', 'dark-active']
},
plugins: [
require('tailwindcss-fluid-container')({
componentPrefix: 'c-', // defaults to 'c-'
widthUtilities: true, // defaults to true
paddingUtilities: true, // defaults to true
marginUtilities: true, // defaults to true
negativeMarginUtilities: true, // defaults to true
}),
require('tailwindcss-dark-mode')()
],
}