-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
52 lines (49 loc) · 1.14 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
const colors = require('material-ui-colors')
/**
* @param {T} color
* @returns T & {
* main: string
* light: string
* dark: string
* }
*/
function semantic(color) {
return {
...color,
light: color[600],
main: color[700],
dark: color[800],
}
}
const semanticColors = Object.fromEntries(
Object.entries({
...colors,
primary: colors.blue,
error: colors.red,
warn: colors.orange,
}).map(([key, value]) => [key, semantic(value)])
)
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
zIndex: {
header: 1000,
infinity: 9999,
},
screens: {
tablet: '640px', // => @media (min-width: 640px) { ... }
desktop: '1024px', // => @media (min-width: 1024px) { ... }
},
colors: semanticColors,
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
},
},
plugins: [require('tailwind-scrollbar')],
}