-
-
Notifications
You must be signed in to change notification settings - Fork 89
/
tailwind.config.js
68 lines (65 loc) · 2.25 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
import forms from '@tailwindcss/forms'
import typography from '@tailwindcss/typography'
import defaultTheme from 'tailwindcss/defaultTheme'
const keys = [
'primary',
'danger',
'warning',
'success',
'info',
'gray',
]
const buildColors = () => {
const colors = {}
keys.forEach((key) => {
colors[key] = {
50: `rgba(var(--${key}-50), <alpha-value>)`,
100: `rgba(var(--${key}-100), <alpha-value>)`,
200: `rgba(var(--${key}-200), <alpha-value>)`,
300: `rgba(var(--${key}-300), <alpha-value>)`,
400: `rgba(var(--${key}-400), <alpha-value>)`,
500: `rgba(var(--${key}-500), <alpha-value>)`,
600: `rgba(var(--${key}-600), <alpha-value>)`,
700: `rgba(var(--${key}-700), <alpha-value>)`,
800: `rgba(var(--${key}-800), <alpha-value>)`,
900: `rgba(var(--${key}-900), <alpha-value>)`,
950: `rgba(var(--${key}-950), <alpha-value>)`,
}
})
return colors
}
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: 'class',
content: [
'./resources/views/**/*.blade.php',
'./src/**/*.php'
],
theme: {
extend: {
colors: {
custom: {
50: 'rgba(var(--c-50), <alpha-value>)',
100: 'rgba(var(--c-100), <alpha-value>)',
200: 'rgba(var(--c-200), <alpha-value>)',
300: 'rgba(var(--c-300), <alpha-value>)',
400: 'rgba(var(--c-400), <alpha-value>)',
500: 'rgba(var(--c-500), <alpha-value>)',
600: 'rgba(var(--c-600), <alpha-value>)',
700: 'rgba(var(--c-700), <alpha-value>)',
800: 'rgba(var(--c-800), <alpha-value>)',
900: 'rgba(var(--c-900), <alpha-value>)',
950: 'rgba(var(--c-950), <alpha-value>)',
},
...buildColors(),
},
fontFamily: {
sans: ['var(--font-family)', ...defaultTheme.fontFamily.sans],
},
boxShadow: {
'top': '0 -26px 25px 15px rgba(0, 0, 0, 0.7)',
}
},
},
plugins: [forms, typography],
}