generated from kkumar-gcc/laravel-journal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
90 lines (89 loc) · 3.41 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
const defaultTheme = require('tailwindcss/defaultTheme');
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`
}
return `rgb(var(${variableName}))`
}
}
module.exports = {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/views/**/*.blade.php',
],
theme: {
extend: {
fontFamily: {
sans: ['Nunito', ...defaultTheme.fontFamily.sans],
},
textColor: {
skin: {
base: withOpacity('--color-base'),
50: withOpacity('--color-50'),
100: withOpacity('--color-100'),
200: withOpacity('--color-200'),
300: withOpacity('--color-300'),
500: withOpacity('--color-500'),
600: withOpacity('--color-600'),
700: withOpacity('--color-700'),
},
},
backgroundColor: {
skin: {
base: withOpacity('--color-base'),
50: withOpacity('--color-50'),
100: withOpacity('--color-100'),
200: withOpacity('--color-200'),
300: withOpacity('--color-300'),
500: withOpacity('--color-500'),
600: withOpacity('--color-600'),
700: withOpacity('--color-700'),
},
},
borderColor: {
skin: {
base: withOpacity('--color-base'),
50: withOpacity('--color-50'),
100: withOpacity('--color-100'),
200: withOpacity('--color-200'),
300: withOpacity('--color-300'),
500: withOpacity('--color-500'),
600: withOpacity('--color-600'),
700: withOpacity('--color-700'),
},
},
ringColor: {
skin: {
base: withOpacity('--color-base'),
50: withOpacity('--color-50'),
100: withOpacity('--color-100'),
200: withOpacity('--color-200'),
300: withOpacity('--color-300'),
500: withOpacity('--color-500'),
600: withOpacity('--color-600'),
700: withOpacity('--color-700'),
},
},
placeholderColor: {
skin: {
base: withOpacity('--color-base'),
50: withOpacity('--color-50'),
100: withOpacity('--color-100'),
200: withOpacity('--color-200'),
300: withOpacity('--color-300'),
500: withOpacity('--color-500'),
600: withOpacity('--color-600'),
700: withOpacity('--color-700'),
},
},
gradientColorStops: {
skin: {
hue: withOpacity('--color-700'),
},
},
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography'), require('@tailwindcss/line-clamp'),],
};