-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtailwind.config.ts
98 lines (97 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
96
97
98
import type { Config } from "tailwindcss"
import tailwindcssAnimate from "tailwindcss-animate"
import typography from "@tailwindcss/typography"
import defaultTheme from "tailwindcss/defaultTheme"
import { parkwindPlugin } from "@park-ui/tailwind-plugin"
import { radixColor } from "./src/lib/radix-colors"
export default {
darkMode: ["class", '[data-theme="dark"]'],
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,ts,tsx,yml,yaml}"],
theme: {
colors: {
transparent: "transparent",
current: "currentColor",
white: "#ffffff",
black: "#000000",
mauve: radixColor("mauve"),
accent: radixColor("mauve"),
tomato: radixColor("tomato"),
red: radixColor("red"),
ruby: radixColor("ruby"),
crimson: radixColor("crimson"),
pink: radixColor("pink"),
plum: radixColor("plum"),
purple: radixColor("purple"),
violet: radixColor("violet"),
iris: radixColor("iris"),
indigo: radixColor("indigo"),
blue: radixColor("blue"),
cyan: radixColor("cyan"),
teal: radixColor("teal"),
jade: radixColor("jade"),
green: radixColor("green"),
grass: radixColor("grass"),
bronze: radixColor("bronze"),
gold: radixColor("gold"),
brown: radixColor("brown"),
orange: radixColor("orange"),
amber: radixColor("amber"),
yellow: radixColor("yellow"),
lime: radixColor("lime"),
mint: radixColor("mint"),
sky: radixColor("sky"),
},
extend: {
animation: {
"switch-to-right": "switch-to-right 0.3s ease-out",
"switch-to-left": "switch-to-left 0.3s ease-out",
"reveal-in-from-top": "reveal-in-from-top 0.3s ease-out",
"reveal-out-to-top": "reveal-out-to-top 0.3s ease-out",
},
keyframes: {
"switch-to-right": {
from: {
left: "0",
},
to: {
left: "calc(100% - 1.5rem)",
},
},
"switch-to-left": {
from: {
left: "calc(100% - 1.5rem)",
},
to: {
left: "0",
},
},
"reveal-in-from-top": {
"0%": {
"clip-path": "inset(0 0 100% 0)",
},
"100%": {
"clip-path": "inset(0 0 0 0)",
},
},
"reveal-out-to-top": {
"0%": {
"clip-path": "inset(0 0 0 0)",
},
"100%": {
"clip-path": "inset(0 0 100% 0)",
},
},
},
fontFamily: {
sans: ["LINE Seed JP", ...defaultTheme.fontFamily.sans],
mono: ["Juisee", ...defaultTheme.fontFamily.mono],
},
},
},
plugins: [parkwindPlugin, tailwindcssAnimate, typography],
parkUI: {
accentColor: "neutral",
grayColor: "mauve",
borderRadius: "lg",
},
} satisfies Config