-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.js
98 lines (97 loc) · 2.9 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
86
87
88
89
90
91
92
93
94
95
96
97
98
/* eslint-disable */
const { toRadixVars } = require("windy-radix-palette/vars");
const radixColors = require("@radix-ui/colors");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./ui/**/*.{ts,tsx}",
"./hooks/**/*.tsx",
"./.storybook/*.html",
"./.storybook/preview.ts",
"./content/**/*.mdx",
],
darkMode: "class",
theme: {
extend: {
fontFamily: {
sans: ["var(--font-noto-sans-sc)"],
serif: ["LXGW WenKai Lite", "serif"],
},
colors: {
primary: toRadixVars("grass"),
accent: toRadixVars("plum"),
neutral: toRadixVars("olive"),
neutralA: toRadixVars("oliveA"),
...radixColors.blackA,
},
keyframes: {
// Tooltip
"slide-up-fade": {
"0%": { opacity: 0, transform: "translateY(2px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-right-fade": {
"0%": { opacity: 0, transform: "translateX(-2px)" },
"100%": { opacity: 1, transform: "translateX(0)" },
},
"slide-down-fade": {
"0%": { opacity: 0, transform: "translateY(-2px)" },
"100%": { opacity: 1, transform: "translateY(0)" },
},
"slide-left-fade": {
"0%": { opacity: 0, transform: "translateX(2px)" },
"100%": { opacity: 1, transform: "translateX(0)" },
},
// LoadingDots
loading: {
"0%": {
opacity: ".2",
},
"20%": {
opacity: "1",
transform: "translateX(1px)",
},
to: {
opacity: ".2",
},
},
// Page
"page-in": {
"0%": { transform: "translateY(18px)", opacity: 0 },
"100%": { transform: "translateY(0)", opacity: 1 },
},
},
animation: {
// Tooltip
"slide-up-fade": "slide-up-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-right-fade":
"slide-right-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-down-fade": "slide-down-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
"slide-left-fade": "slide-left-fade 0.4s cubic-bezier(0.16, 1, 0.3, 1)",
// Page
"page-in": "page-in .6s both",
},
},
},
plugins: [
require("prettier-plugin-tailwindcss"),
require("windy-radix-palette")({
colors: {
grass: radixColors.grass,
grassDark: radixColors.grassDark,
plum: radixColors.plum,
plumDark: radixColors.plumDark,
olive: radixColors.olive,
oliveDark: radixColors.oliveDark,
oliveA: radixColors.oliveA,
oliveDarkA: radixColors.oliveDarkA,
},
}),
require("tailwindcss-animate"),
require("@tailwindcss/typography"),
require("windy-radix-typography"),
require("tailwindcss-radix")(),
],
};