This repository was archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
117 lines (114 loc) · 3.12 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
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
const { colors } = require('tailwindcss/defaultTheme')
let { variants } = require('tailwindcss/defaultConfig')
let additional_variants = ['important']
Object.entries(variants).forEach(([k, v]) => {
variants[k] = [...additional_variants, ...v]
})
module.exports = {
theme: {
screens: {
bs: '0px',
xs: '576px',
sm: '736px',
md: '980px',
lg: '1280px',
xl: '1690px',
tablet: '640px',
laptop: '1024px',
desktop: '1280px',
},
colors: {
primary: '#eb425e',
secondary: {
default: '#272637',
light: '#8e8e93',
},
tertiary: {
default: '#afafaf',
light: '#8e8e93',
},
success: {
default: '#5ea83e',
light: '#edfae1',
},
info: {
default: '#34c3ff',
light: '#e9f5fe',
},
warning: {
default: '#eb6331',
light: '#fff9e6',
},
error: {
default: '#f7635c',
light: '#fde9ef',
},
red: '#f7635c',
orange: '#eb6331',
yellow: '#ffec5e',
green: '#5ea83e',
cyan: '#00b5ad',
blue: '#34c3ff',
violet: '#9c27b0',
...colors,
},
extend: {
colors: {
gray: {
'000': '#fafafa',
'100': '#e1e1e1',
'200': '#c8c8c8',
'300': '#afafaf',
'400': '#969696',
'500': '#7d7d7d',
'600': '#646464',
'700': '#4b4b4b',
'800': '#323232',
'900': '#191919',
}
},
spacing: {
'72': '18rem',
'96': '24rem',
'128': '32rem',
'256': '64rem',
},
},
},
variants: variants,
corePlugins: {
container: false
},
plugins: [
// prepend class with an exclamation mark to be important
function({ addVariant }) {
addVariant('important', ({ container }) => {
container.walkRules(rule => {
rule.selector = `.\\!${rule.selector.slice(1)}`
rule.walkDecls(decl => {
decl.important = true
})
})
})
},
function ({ addComponents }) {
addComponents({
'.container': {
maxWidth: '100%',
'@screen sm': {
maxWidth: '736px',
},
'@screen md': {
maxWidth: '980px',
},
'@screen lg': {
maxWidth: '1280px',
},
'@screen xl': {
maxWidth: '1690px',
},
}
})
},
],
}