forked from SlimeVR/SlimeVR-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
89 lines (85 loc) · 1.96 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
const plugin = require('tailwindcss/plugin');
const rem = (pt) => `${pt / 16}rem`;
const colors = {
'blue-gray': {
100: '#ffffff',
200: '#78A4C6',
300: '#608AAB',
400: '#3D6381',
500: '#1A3D59',
600: '#112D43',
700: '#081E30',
800: '#00101C',
900: '#000509',
},
purple: {
100: '#BB8AE5',
200: '#9D5CD4',
500: '#65459A',
700: '#623B83',
900: '#2E2145',
},
};
module.exports = {
content: ['./src/**/*.{js,jsx,ts,tsx}'],
theme: {
screens: {
xs: '800px',
sm: '900px',
md: '1100px',
lg: '1300px',
xl: '1600px',
},
extend: {
colors: {
status: {
success: '#50E897',
warning: '#D8CD37',
critical: '#DF6D8C',
special: '#A44FED',
},
...colors,
background: Object.keys(colors['blue-gray']).reduce(
(curr, colork, index) => ({
...curr,
[(index + 1) * 10]: colors['blue-gray'][colork],
}),
{}
),
'accent-background': Object.keys(colors.purple).reduce(
(curr, colork, index) => ({
...curr,
[(index + 1) * 10]: colors.purple[colork],
}),
{}
),
},
fontSize: {
DEFAULT: rem(12),
},
fontWeight: {
DEFAULT: 500,
},
color: {
DEFAULT: '#ffffff',
},
},
},
plugins: [
require('@tailwindcss/forms'),
plugin(function ({ addUtilities, theme }) {
const textConfig = (fontSize, fontWeight) => ({
fontSize,
fontWeight,
});
addUtilities({
'.text-main-title': textConfig(rem(25), 700),
'.text-section-title': textConfig(rem(14), 700),
'.text-standard': textConfig(rem(12), 500),
'.text-vr-accesible': textConfig(rem(14), 500),
'.text-vr-accesible-bold': textConfig(rem(14), 700),
'.text-standard-bold': textConfig(rem(12), 700),
});
}),
],
};