-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.ts
84 lines (79 loc) · 2.17 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
import plugin from "tailwindcss/plugin";
import { fontFamily } from "tailwindcss/defaultTheme";
import type { Config } from "tailwindcss";
const config: Config = {
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
screens: {
sm: { max: "480px" },
md: { max: "768px" },
lg: { max: "1024px" },
xl: { max: "1440px" },
},
fontFamily: {
sans: ["Pretendard", ...fontFamily.sans],
},
textShadow: {
sm: "0 1px 2px var(--tw-shadow-color)",
DEFAULT: "0 2px 4px var(--tw-shadow-color)",
lg: "0 8px 16px var(--tw-shadow-color)",
none: "none",
},
extend: {
backgroundColor: {
primary: "rgb(var(--background1) / <alpha-value>)",
secondary: "var(--background2)",
tertiary: "var(--background3)",
quaternary: "var(--background4)",
markdown: "var(--markdown-background)",
},
textColor: {
primary: "var(--text1)",
secondary: "var(--text2)",
markdown1: "var(--markdown-text1)",
markdown2: "var(--markdown-text2)",
effect1: "var(--effect1)",
effect2: "var(--effect2)",
main: "var(--primary)",
},
borderColor: {
primary: "var(--border1)",
},
keyframes: {
show: {
from: { opacity: "0", transform: "translateY(-5%)" },
to: { opacity: "1", transform: "translateY(0)" },
},
hide: {
from: { opacity: "1", transform: "translateY(0)" },
to: { opacity: "0", transform: "translateY(-5%)" },
},
},
animation: {
show: "show 150ms 0s 1 ease-in-out forwards",
hide: "hide 150ms 0s 1 ease-in-out forwards",
},
aspectRatio: {
default: "3/2",
},
},
},
darkMode: ["class", '[data-theme="dark"]'],
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
"text-shadow": (value) => ({
textShadow: value,
}),
},
{ values: theme("textShadow") },
);
}),
],
};
export default config;