-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
95 lines (93 loc) · 2.8 KB
/
tailwind.config.ts
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
91
92
93
94
95
import type { Config } from "tailwindcss"
import plugin from "tailwindcss/plugin"
import { elevate } from "./src/styles/shadows"
const config: Config = {
content: [
"./src/components/**/*.{js,ts,jsx,tsx,md}",
"./src/app/**/*.{js,ts,jsx,tsx,md}",
],
theme: {
extend: {
backgroundImage: {
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
colors: {
foreground: "hsl(var(--foreground-color) / <alpha-value>)",
foregroundGray: "hsl(var(--foreground-gray) / <alpha-value>)",
gray3: "hsl(var(--gray-3) / <alpha-value>)",
muted: "hsl(var(--muted) / <alpha-value>)",
accent: "hsl(var(--accent) / <alpha-value>)",
background: "hsl(var(--background-color) / <alpha-value>)",
link: "hsl(var(--link-color) / <alpha-value>)",
"link-visited": "hsl(var(--link-visited-color) / <alpha-value>)",
},
textShadow: {
sm: "0 1px 2px var(--tw-shadow-color)",
DEFAULT: "0 0px 5px var(--tw-shadow-color)",
lg: "0 8px 16px var(--tw-shadow-color)",
},
fontFamily: {
serif: ["Palatino Linotype", "Book Antiqua", "Palatino", "serif"],
},
boxShadow: {
sm: elevate(1),
DEFAULT: elevate(2),
md: elevate(3),
lg: elevate(4),
},
keyframes: {
fadeIn: {
"0%": { opacity: "0" },
"100%": { opacity: "1" },
},
// keep values in sync with profile-card.tsx
pressBtn: {
"0%, 50%, 100%": {
borderBottomWidth: "4px",
boxShadow:
"0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0)",
transform: `scaleX(1) scaleY(1) translateY(0px)`,
},
"20%, 70%": {
borderBottomWidth: "0",
boxShadow:
"0px 5px 8px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0)",
transform: `scaleX(1.05) scaleY(0.95) translateY(2px)`,
},
},
},
animation: {
fadeIn: "fadeIn 0.2s ease-in-out forwards",
pressBtn: "pressBtn 0.8s ease-in-out",
},
},
},
plugins: [
plugin(({ addVariant, matchUtilities, theme }) => {
addVariant("hocus", ["&:hover", "&:focus"])
matchUtilities(
{
"text-shadow": (value) => ({ textShadow: value }),
},
{ values: theme("textShadow") }
)
}),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
"animation-delay": (value) => {
return {
"animation-delay": value,
}
},
},
{
values: theme("transitionDelay"),
}
)
}),
],
}
export default config