forked from piotrkulpinski/openalternative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
76 lines (73 loc) · 2.06 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
import type { Config } from "tailwindcss"
import defaultTheme from "tailwindcss/defaultTheme"
import plugin from "tailwindcss/plugin"
export default {
content: ["./app/**/*.{js,ts,jsx,tsx,mdx}"],
darkMode: "class",
theme: {
extend: {
colors: {
primary: "hsl(var(--color-primary) / <alpha-value>)",
background: "hsl(var(--color-background) / <alpha-value>)",
muted: "hsl(var(--color-muted) / <alpha-value>)",
secondary: "hsl(var(--color-secondary) / <alpha-value>)",
foreground: "hsl(var(--color-foreground) / <alpha-value>)",
border: {
DEFAULT: "hsl(var(--color-border) / <alpha-value>)",
dark: "hsl(var(--color-border-dark) / <alpha-value>)",
},
card: {
DEFAULT: "hsl(var(--color-card) / <alpha-value>)",
dark: "hsl(var(--color-card-dark) / <alpha-value>)",
},
},
letterSpacing: {
micro: "0.0125em",
},
borderColor: {
DEFAULT: "hsl(var(--color-border))",
},
fontFamily: {
sans: ["Uncut Sans", ...defaultTheme.fontFamily.sans],
},
scale: {
flip: "-1",
},
gridColumns: {
DEFAULT: "16rem",
xxs: "10rem",
xs: "12rem",
sm: "14rem",
md: "16rem",
lg: "18rem",
xl: "20rem",
},
keyframes: {
shimmer: {
from: { left: "-90%" },
to: { left: "90%" },
},
},
animation: {
shimmer: "shimmer 1.25s cubic-bezier(0.5, 0.25, 0.25, 0.5) infinite",
},
},
},
plugins: [
require("@tailwindcss/typography"),
require("tailwindcss-animate"),
plugin(({ matchUtilities, theme }) => {
matchUtilities(
{
"grid-auto-fill": value => ({
gridTemplateColumns: `repeat(auto-fill, minmax(${value}, 1fr))`,
}),
"grid-auto-fit": value => ({
gridTemplateColumns: `repeat(auto-fit, minmax(${value}, 1fr))`,
}),
},
{ values: theme("gridColumns") },
)
}),
],
} satisfies Config