forked from ShokoAnime/Shoko-WebUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
73 lines (72 loc) · 2.62 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
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
plugins: [
require('@tailwindcss/line-clamp'),
require('@headlessui/tailwindcss')({ prefix: 'ui' }),
],
content: [
'./src/**/*.tsx',
'./public/**/*.html',
],
//Any class that is generated dynamically goes here
safelist: [
'bg-highlight-1',
'bg-highlight-2',
'bg-highlight-3',
'bg-highlight-4',
'bg-highlight-5',
'text-highlight-4',
],
theme: {
transitionDuration: {
DEFAULT: '300ms',
},
extend: {
colors: {
background: withOpacityValue('--color-background'),
'background-nav': withOpacityValue('--color-background-nav'),
'background-alt': withOpacityValue('--color-background-alt'),
'background-border': withOpacityValue('--color-background-border'),
'highlight-1': withOpacityValue('--color-highlight-1'),
'highlight-2': withOpacityValue('--color-highlight-2'),
'highlight-3': withOpacityValue('--color-highlight-3'),
'highlight-4': withOpacityValue('--color-highlight-4'),
'highlight-5': withOpacityValue('--color-highlight-5'),
'font-main': withOpacityValue('--color-font-main'),
'font-alt': withOpacityValue('--color-font-alt'),
'image-overlay': withOpacityValue('--color-image-overlay'),
transparent: 'transparent',
},
backgroundImage: {
'general-settings': 'linear-gradient(180deg, rgb(var(--color-image-overlay)/0.9) 0%, rgb(var(--color-background)) 100%), url(/images/DemonSlayer.jpg)',
'import-settings': 'linear-gradient(180deg, rgb(var(--color-image-overlay)/0.9) 0%, rgb(var(--color-background)) 100%), url(/images/OnePunchMan.jpg)',
'anidb-settings': 'linear-gradient(180deg, rgb(var(--color-image-overlay)/0.9) 0%, rgb(var(--color-background)) 100%), url(/images/Bleach.jpg)',
'metadata-sites-settings': 'linear-gradient(180deg, rgb(var(--color-image-overlay)/0.9) 0%, rgb(var(--color-background)) 100%), url(/images/DBZ.jpg)',
'management-settings': 'linear-gradient(180deg, rgb(var(--color-image-overlay)/0.9) 0%, rgb(var(--color-background)) 100%), url(/images/OnePiece.jpg)',
},
spacing: {
'13': '3.25rem',
'15': '3.75rem',
'25': '6.25rem',
'62.5': '15.625rem',
'125': '31.25rem',
},
width: {
'400': '25rem',
},
opacity: {
'85': '.85',
}
},
},
variants: {
margin: ['first'],
},
}