forked from ShokoAnime/Shoko-WebUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
135 lines (134 loc) · 5.06 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
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = {
plugins: [
require('@headlessui/tailwindcss')({ prefix: 'ui' }),
require('tailwindcss-text-fill-stroke'),
],
content: [
'./src/**/*.tsx',
'./index.html',
],
//Any class that is generated dynamically goes here
safelist: [
'bg-panel-text-danger',
'bg-panel-text-important',
'bg-panel-text-other',
'bg-panel-text-warning',
'text-panel-text-other',
],
theme: {
transitionDuration: {
DEFAULT: '300ms',
},
extend: {
fontFamily: {
'sans': ['Sora', ...defaultTheme.fontFamily.sans],
},
fontSize: {
sm: ['0.875rem', '1.4rem'],
base: ['1rem', '1.6rem'],
lg: ['1.125rem', '1.8rem'],
xl: ['1.251rem', '2rem'],
},
fontWeight: {
extralight: 100,
light: 200,
normal: 400,
medium: 400,
semibold: 500,
bold: 600,
extrabold: 700,
black: 800
},
colors: {
'button-danger': 'var(--button-danger)',
'button-danger-border': 'var(--button-danger-border)',
'button-danger-hover': 'var(--button-danger-hover)',
'button-danger-text': 'var(--button-danger-text)',
'button-primary': 'var(--button-primary)',
'button-primary-border': 'var(--button-primary-border)',
'button-primary-hover': 'var(--button-primary-hover)',
'button-primary-text': 'var(--button-primary-text)',
'button-secondary': 'var(--button-secondary)',
'button-secondary-border': 'var(--button-secondary-border)',
'button-secondary-hover': 'var(--button-secondary-hover)',
'button-secondary-text': 'var(--button-secondary-text)',
'header-background': 'var(--header-background)',
'header-icon': 'var(--header-icon)',
'header-icon-primary': 'var(--header-icon-primary)',
'header-text': 'var(--header-text)',
'header-text-important': 'var(--header-text-important)',
'header-user-background': 'var(--header-user-background)',
'header-user-text': 'var(--header-user-text)',
'logo-primary': 'var(--logo-primary)',
'logo-secondary': 'var(--logo-secondary)',
'panel-background': 'var(--panel-background)',
'panel-background-alt': 'var(--panel-background-alt)',
'panel-background-selected-row': 'var(--panel-background-selected-row)',
'panel-background-overlay': 'var(--panel-background-overlay)',
'panel-background-transparent': 'var(--panel-background-transparent)',
'panel-border': 'var(--panel-border)',
'panel-icon': 'var(--panel-icon)',
'panel-icon-action': 'var(--panel-icon-action)',
'panel-icon-danger': 'var(--panel-icon-danger)',
'panel-icon-important': 'var(--panel-icon-important)',
'panel-icon-warning': 'var(--panel-icon-warning)',
'panel-input': 'var(--panel-input)',
'panel-menu-item-background': 'var(--panel-menu-item-background)',
'panel-menu-item-background-hover': 'var(--panel-menu-item-background-hover)',
'panel-menu-item-text': 'var(--panel-menu-item-text)',
'panel-table-header': 'var(--panel-table-header)',
'panel-tags': 'var(--panel-tags)',
'panel-text': 'var(--panel-text)',
'panel-text-danger': 'var(--panel-text-danger)',
'panel-text-important': 'var(--panel-text-important)',
'panel-text-other': 'var(--panel-text-other)',
'panel-text-primary': 'var(--panel-text-primary)',
'panel-text-warning': 'var(--panel-text-warning)',
'panel-toggle-background': 'var(--panel-toggle-background)',
'panel-toggle-background-alt': 'var(--panel-toggle-background-alt)',
'panel-toggle-background-hover': 'var(--panel-toggle-background-hover)',
'panel-toggle-text': 'var(--panel-toggle-text)',
'panel-toggle-text-alt': 'var(--panel-toggle-text-alt)',
'slider-background': 'var(--slider-background)',
'slider-background-alt': 'var(--slider-background-alt)',
'slider-color': 'var(--slider-color)',
'slider-color-alt': 'var(--slider-color-alt)',
'topnav-background': 'var(--topnav-background)',
'topnav-border': 'var(--topnav-border)',
'topnav-icon': 'var(--topnav-icon)',
'topnav-icon-important': 'var(--topnav-icon-important)',
'topnav-icon-primary': 'var(--topnav-icon-primary)',
'topnav-icon-warning': 'var(--topnav-icon-warning)',
'topnav-text': 'var(--topnav-text)',
'topnav-text-primary': 'var(--topnav-text-primary)',
transparent: 'transparent',
},
spacing: {
'13': '3.25rem',
'15': '3.75rem',
'25': '6.25rem',
'62.5': '15.625rem',
},
width: {
'400': '25rem',
},
opacity: {
'65': '.65',
'85': '.85',
},
dropShadow: {
'md': '0px 4px 4px rgba(0, 0, 0, 0.25)',
},
borderWidth: {
'16': '16px',
},
screens: {
'3xl': '1630px',
},
},
},
variants: {
margin: ['first'],
},
}