forked from ShokoAnime/Shoko-WebUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
82 lines (80 loc) · 2.21 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
const defaultTheme = require('tailwindcss/defaultTheme')
function withOpacityValue(variable) {
return ({ opacityValue }) => {
if (opacityValue === undefined) {
return `rgb(var(${variable}))`;
}
return `rgb(var(${variable}) / ${opacityValue})`;
};
}
module.exports = {
plugins: [
require('@headlessui/tailwindcss')({ prefix: 'ui' }),
require('tailwindcss-text-fill-stroke'),
],
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: {
fontFamily: {
'sans': ['Sora', ...defaultTheme.fontFamily.sans],
},
fontWeight: {
extralight: 100,
light: 200,
normal: 300,
medium: 400,
semibold: 500,
bold: 600,
extrabold: 700,
black: 800
},
colors: {
background: withOpacityValue('--color-background'),
'background-nav': withOpacityValue('--color-background-nav'),
'background-alt': withOpacityValue('--color-background-alt'),
'background-border': withOpacityValue('--color-background-border'),
'border-alt': withOpacityValue('--color-border-alt'),
'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',
},
spacing: {
'13': '3.25rem',
'15': '3.75rem',
'25': '6.25rem',
'62.5': '15.625rem',
},
width: {
'400': '25rem',
},
opacity: {
'65': '.65',
'85': '.85',
}
},
},
variants: {
margin: ['first'],
},
}