-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.ts
More file actions
61 lines (58 loc) · 1.91 KB
/
tailwind.config.ts
File metadata and controls
61 lines (58 loc) · 1.91 KB
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
import type { Config } from "tailwindcss";
/** Minimal type for Tailwind plugin API (addUtilities). */
interface TailwindPluginAPI {
addUtilities: (utilities: Record<string, Record<string, string | Record<string, string>>>) => void;
}
const config: Config = {
content: [
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
background: "var(--background)",
foreground: "var(--foreground)",
primary: { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },
secondary: { DEFAULT: "var(--secondary)", foreground: "var(--secondary-foreground)" },
destructive: "var(--destructive)",
muted: { DEFAULT: "var(--muted)", foreground: "var(--muted-foreground)" },
accent: { DEFAULT: "var(--accent)", foreground: "var(--accent-foreground)" },
card: { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },
},
maxWidth: {
"9xl": "96rem",
},
fontFamily: {
righteous: ["var(--font-righteous)", "sans-serif"],
russoOne: ["var(--font-russo-one)", "sans-serif"],
notoSansJp: ["var(--font-noto-sans-jp)", "sans-serif"],
shojumaru: ["var(--font-shojumaru)", "system-ui"],
},
keyframes: {
ripple: {
"0%": { transform: "scale(0)", opacity: "0.8" },
"100%": { transform: "scale(25)", opacity: "0" },
},
},
animation: {
ripple: "ripple 0.75s ease-out forwards",
},
},
},
plugins: [
function (api: TailwindPluginAPI) {
api.addUtilities({
".scrollbar-hide": {
"::-webkit-scrollbar": { display: "none" },
"-ms-overflow-style": "none",
"scrollbar-width": "none",
},
});
},
],
};
export default config;