forked from RetroAchievements/RAWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
114 lines (102 loc) · 2.97 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
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./app/Helpers/render/*.php',
'./app/Helpers/util/*.php',
'./public/*.php',
'./resources/js/**/*.ts',
'./resources/views/**/*.blade.php',
'./storage/framework/views/*.php',
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
],
corePlugins: {
// turn off preflight (reset/normalize)
// https://tailwindcss.com/docs/preflight#disabling-preflight
// preflight: false,
},
theme: {
container: {
center: true,
},
extend: {
colors: {
bg: 'var(--bg-color)',
'box-bg': 'var(--box-bg-color)',
'box-shadow': 'var(--box-shadow-color)',
embed: 'var(--embed-color)',
'embed-highlight': 'var(--embed-highlight-color)',
heading: 'var(--heading-color)',
link: 'var(--link-color)',
'link-hover': 'var(--link-hover-color)',
'menu-link': 'var(--menu-link-color)',
'menu-link-hover': 'var(--menu-link-hover-color)',
text: 'var(--text-color)',
'text-danger': 'var(--text-color-danger)',
'text-muted': 'var(--text-color-muted)',
},
animation: {
'fade-in': 'fade-in 100ms ease',
'collapse-open': 'collapse-open 200ms ease-in-out',
tilt: 'tilt 10s infinite linear',
},
keyframes: {
'fade-in': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
'collapse-open': {
'0%': { opacity: 0, maxHeight: 0, transform: 'translateY(-0.5rem)' },
'100%': { opacity: 1, maxHeight: 9000, transform: 'translateY(0)' },
},
tilt: {
'0%, 50%, 100%': { transform: 'rotate(0deg)' },
'25%': { transform: 'rotate(1.5deg)' },
'75%': { transform: 'rotate(-1.5deg)' },
},
},
},
fontSize: {
'2xs': '.70rem',
xs: '.75rem',
sm: '.875rem',
base: '1rem',
lg: '1.125rem',
xl: '1.25rem',
'2xl': '1.5rem',
'3xl': '1.875rem',
'4xl': '2.25rem',
'5xl': '3rem',
'6xl': '4rem',
'7xl': '5rem',
},
screens: {
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1280px',
// '2xl': '1536px',
},
},
variants: {
extend: {
animation: ['motion-safe'],
},
},
plugins: [
require('@tailwindcss/forms')({
// TODO switch to global strategy as soon UI has been consolidated
strategy: 'class', // only generate classes
}),
require('@tailwindcss/typography'),
require('@tailwindcss/aspect-ratio'),
// Add support for `light:` prefixes to better support light mode users.
function ({ addVariant, e }) {
addVariant('light', ({ modifySelectors, separator }) => {
modifySelectors(
({ className }) => `[data-scheme="light"] .${e(`light${separator}${className}`)}`,
);
});
},
],
};