-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtailwind.config.js
155 lines (154 loc) · 5.05 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
//const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require('tailwindcss/plugin');
const colors = require('tailwindcss/colors');
module.exports = {
//mode: "jit",
purge: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}'
],
darkMode: 'class', // or 'media' or 'class', also darkMode increases bundle size noticeably
theme: {
textIndent: {
none: '0rem',
xs: '1rem',
sm: '2rem',
md: '3rem',
lg: '4rem'
},
textShadow: {
default: '0 2px 5px rgba(0, 0, 0, 0.5)',
lg: '0 2px 10px rgba(0, 0, 0, 0.5)'
},
fontFamily: {
work: ['Work Sans', 'sans-serif']
},
extend: {
screens: {
xs: '360px',
xsh: { raw: `(min-height: 360px)` },
smh: { raw: `(min-height: 600px)` },
mdh: { raw: `(min-height: 960px)` },
lgh: { raw: `(min-height: 1280px)` },
xlh: { raw: `(min-height: 1920px)` }
},
colors: {
primary: {
100: 'rgba(42, 171, 238, 0.03)',
200: 'rgba(42, 171, 238, 0.05)',
300: 'rgba(42, 171, 238, 0.08)',
400: 'rgba(42, 171, 238, 0.13)',
500: 'rgba(42, 171, 238, 0.19)',
600: 'rgba(42, 171, 238, 0.32)',
700: 'rgba(42, 171, 238, 0.48)',
800: 'rgba(42, 171, 238, 0.72)',
900: 'rgba(42, 171, 238, 1)'
},
secondary: {
100: 'rgba(12, 207, 207, 0.03)',
200: 'rgba(12, 207, 207, 0.05)',
300: 'rgba(12, 207, 207, 0.08)',
400: 'rgba(12, 207, 207, 0.13)',
500: 'rgba(12, 207, 207, 0.19)',
600: 'rgba(12, 207, 207, 0.32)',
700: 'rgba(12, 207, 207, 0.48)',
800: 'rgba(12, 207, 207, 0.72)',
900: 'rgba(12, 207, 207, 1)'
},
success: {
100: 'rgba(116, 222, 159, 0.03)',
200: 'rgba(116, 222, 159, 0.05)',
300: 'rgba(116, 222, 159, 0.08)',
400: 'rgba(116, 222, 159, 0.13)',
500: 'rgba(116, 222, 159, 0.19)',
600: 'rgba(116, 222, 159, 0.32)',
700: 'rgba(116, 222, 159, 0.48)',
800: 'rgba(116, 222, 159, 0.72)',
900: 'rgba(116, 222, 159, 1)'
},
warning: {
100: 'rgba(252, 201, 88, 0.03)',
200: 'rgba(252, 201, 88, 0.05)',
300: 'rgba(252, 201, 88, 0.08)',
400: 'rgba(252, 201, 88, 0.13)',
500: 'rgba(252, 201, 88, 0.19)',
600: 'rgba(252, 201, 88, 0.32)',
700: 'rgba(252, 201, 88, 0.48)',
800: 'rgba(252, 201, 88, 0.72)',
900: 'rgba(252, 201, 88, 1)'
},
danger: {
100: 'rgba(232, 54, 129, 0.03)',
200: 'rgba(232, 54, 129, 0.05)',
300: 'rgba(232, 54, 129, 0.08)',
400: 'rgba(232, 54, 129, 0.13)',
500: 'rgba(232, 54, 129, 0.19)',
600: 'rgba(232, 54, 129, 0.32)',
700: 'rgba(232, 54, 129, 0.48)',
800: 'rgba(232, 54, 129, 0.72)',
900: 'rgba(232, 54, 129, 1)'
},
foreground: {
100: 'rgba(255, 255, 255, 0.03)',
200: 'rgba(255, 255, 255, 0.05)',
300: 'rgba(255, 255, 255, 0.08)',
400: 'rgba(255, 255, 255, 0.13)',
500: 'rgba(255, 255, 255, 0.19)',
600: 'rgba(255, 255, 255, 0.32)',
700: 'rgba(255, 255, 255, 0.48)',
800: 'rgba(255, 255, 255, 0.72)',
900: 'rgba(255, 255, 255, 1)'
},
background: {
50: '#181b32',
100: 'rgba(41, 45, 63, 0.03)',
200: 'rgba(41, 45, 63, 0.05)',
300: 'rgba(41, 45, 63, 0.08)',
400: 'rgba(41, 45, 63, 0.13)',
500: 'rgba(41, 45, 63, 0.19)',
600: 'rgba(41, 45, 63, 0.32)',
700: 'rgba(41, 45, 63, 0.48)',
800: 'rgba(41, 45, 63, 0.72)',
900: 'rgba(41, 45, 63, 1)'
}
},
fontFamily: {
work: ['Work Sans', 'sans-serif']
}
}
},
variants: {
animation: ['responsive', 'motion-safe', 'motion-reduce'],
textIndent: ['responsive'],
extend: {}
},
plugins: [
require('tailwindcss-typography')({
// https://www.npmjs.com/package/tailwindcss-typography
// all these options default to the values specified here
ellipsis: true, // whether to generate ellipsis utilities
hyphens: true, // whether to generate hyphenation utilities
kerning: true, // whether to generate kerning utilities
textUnset: true // whether to generate utilities to unset text properties
//componentPrefix: "c-", // the prefix to use for text style classes
}),
require('tailwindcss-rtl'),
// Add custom plugins as such:
plugin(({ addUtilities }) => {
const extendTextTransform = {
'.uppercase-first': {
'&::first-letter': {
textTransform: 'uppercase'
}
},
'.uppercase-firstOnly': {
textTransform: 'lowercase',
'&::first-letter': {
textTransform: 'uppercase'
}
}
};
addUtilities(extendTextTransform, ['responsive']);
})
]
};