-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
75 lines (72 loc) · 1.6 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
import type { Config } from 'tailwindcss';
const generateScale = (name: string) => {
let scale = Array.from({ length: 12 }, (_, i) => {
let id = i + 1;
return [
[id, `var(--${name}-${id})`],
[`a${id}`, `var(--${name}-A${id})`],
];
}).flat();
return Object.fromEntries(scale);
};
const config: Config = {
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./utils/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
sage: generateScale("sage"),
"sage-dark": generateScale("sage-dark"),
mint: generateScale("mint"),
mintA: generateScale("mint-alpha"),
"mint-dark": generateScale("mint-dark"),
"mint-darkA": generateScale("mint-dark-alpha"),
cohere: {
volcanic: "rgb(var(--color-cohere-volcanic) / <alpha-value>)",
marble: "rgb(var(--color-cohere-marble) / <alpha-value>)",
},
},
fontFamily: {
mono: ["var(--font-jet-brains-mono)"],
},
fontSize: {
link: [
"1.125rem",
{
lineHeight: "2rem",
letterSpacing: "0em",
fontWeight: "600",
},
],
},
keyframes: {
wiggle: {
"0%, 100%": { transform: "rotate(-3deg)" },
"50%": { transform: "rotate(3deg)" },
},
jump: {
"0%, 100%": {
transform: "scale(100%)",
},
"10%": {
transform: "scale(80%)",
},
"50%": {
transform: "scale(120%)",
},
},
},
animation: {
wiggle: "wiggle 400ms ease-in-out infinite",
jump: "jump .5s both",
},
},
},
plugins: [],
};
export default config;