-
Notifications
You must be signed in to change notification settings - Fork 1
/
tailwind.config.js
62 lines (61 loc) · 1.8 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
function withOpacity(variableName) {
return ({ opacityValue }) => {
if (opacityValue !== undefined) {
return `rgba(var(${variableName}), ${opacityValue})`;
}
return `rgb(var(${variableName}))`;
};
}
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./resources/**/*.blade.php",
"./resources/**/*.js",
"./resources/**/*.vue",
"./node_modules/flowbite/**/*.js",
],
theme: {
colors: {
skin: {
primary: withOpacity("--color-primary"),
"primary-offset": withOpacity("--color-primary-offset"),
secondary: withOpacity("--color-secondary"),
"secondary-offset": withOpacity("--color-secondary-offset"),
tertiary: withOpacity("--color-tertiary"),
text: withOpacity("--color-text"),
muted: withOpacity("--color-muted"),
link: withOpacity("--color-link"),
success: withOpacity("--color-success"),
"success-light": withOpacity("--color-success-light"),
warning: withOpacity("--color-warning"),
"warning-light": withOpacity("--color-warning-light"),
danger: withOpacity("--color-danger"),
"danger-light": withOpacity("--color-danger-light"),
card: withOpacity("--color-card"),
border: withOpacity("--color-border"),
transparent: "transparent",
white: "white",
},
},
fontFamily: {
helvetica: ["Helvetica", "sans-serif"],
poppins: ["Poppins", "sans-serif"],
"means-web": ["Means Light Web", "sans-serif"],
},
screens: {
xs: { min: "480px" },
sm: { min: "640px" },
md: { min: "768px" },
lg: { min: "1024px" },
xl: { min: "1280px" },
"2xl": { min: "1536px" },
"max-xs": { max: "479px" },
"max-sm": { max: "639px" },
"max-md": { max: "767px" },
"max-lg": { max: "1023px" },
"max-xl": { max: "1279px" },
"max-2xl": { max: "1535px" },
},
},
plugins: [require("flowbite/plugin")],
};