-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
85 lines (81 loc) · 3.26 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
import defaultTheme from "tailwindcss/defaultTheme";
import forms from "@tailwindcss/forms";
import typography from "@tailwindcss/typography";
import containers from "@tailwindcss/container-queries";
import plugin from "tailwindcss/plugin";
import transformThemeValue from "tailwindcss/lib/util/transformThemeValue";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./vendor/laravel/jetstream/**/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./resources/js/**/*.vue",
],
theme: {
extend: {
fontFamily: {
sans: ["Figtree", ...defaultTheme.fontFamily.sans],
},
colors: {
"2023-bg": "rgb(248, 245, 231)",
"2023-red": "rgb(217, 79, 4)",
"2023-red-dark": "rgb(177, 93, 93)",
"2023-teal": "rgb(0, 113, 114)",
"2023-teal-dark": "rgb(2, 82, 89)",
"2023-orange": "rgb(242, 147, 37)",
},
boxShadow: {
sm: "2px 2px 0 -1px var(--tw-shadow-color, currentColor), 2px 2px 0 0 black",
DEFAULT:
"4px 4px 0 -1px var(--tw-shadow-color, currentColor), 4px 4px 0 0 black",
md: "6px 6px 0 -1px var(--tw-shadow-color, currentColor), 6px 6px 0 0 black",
lg: "8px 8px 0 -1px var(--tw-shadow-color, currentColor), 8px 8px 0 0 black",
xl: "12px 12px 0 -1px var(--tw-shadow-color, currentColor), 12px 12px 0 0 black",
"2xl": "16px 16px 0 -1px var(--tw-shadow-color, currentColor), 16px 16px 0 0 black",
},
keyframes: {
"2023-jump": {
"0%, 100%": { transform: "translateY(0px)" },
"50%": { transform: "translateY(-30px)" },
},
},
animation: {
"2023-maintenance-jump":
"2023-jump 2s cubic-bezier(0.46, 0.03, 0.52, 0.96) infinite",
},
screens: {
ml: "900px",
xs: "500px",
// this breaks max- and min- breakpoints
// "can-hover": { raw: "(hover: hover)" },
},
},
},
plugins: [
forms,
typography,
containers,
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
shadow: (value) => {
value = transformThemeValue("boxShadow")(value);
return {
"@defaults box-shadow": {},
"--tw-shadow":
value === "none" ? "0 0 #0000" : value,
"box-shadow": [
`var(--tw-ring-offset-shadow, 0 0 #0000)`,
`var(--tw-ring-shadow, 0 0 #0000)`,
`var(--tw-shadow)`,
].join(", "),
};
},
},
{ values: theme("boxShadow"), type: "shadow" },
);
}),
],
};