forked from RetroAchievements/RAWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
74 lines (70 loc) · 1.94 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
/* eslint-disable @typescript-eslint/no-var-requires */
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
// legacy
'./app_legacy/Helpers/render/*.php',
'./app_legacy/Helpers/util/*.php',
'./public/*.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)'
}
},
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',
}
},
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'),
require('@tailwindcss/line-clamp'),
],
};