-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
79 lines (76 loc) · 1.73 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
import { Config } from "tailwindcss";
import typography from "@tailwindcss/typography";
const fontScaleFactor = 8;
const calcFontSize = (scale: number) =>
`calc(1rem * ${fontScaleFactor} / ${fontScaleFactor - scale})`;
const config: Config = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "media",
theme: {
fontFamily: {
sans: [
"Helvetica Neue",
"Arial",
"Hiragino Kaku Gothic ProN",
"Hiragino Sans",
"Meiryo",
],
},
fontSize: {
xs: calcFontSize(-2),
sm: calcFontSize(-1),
base: calcFontSize(0),
lg: calcFontSize(1),
xl: calcFontSize(2),
"2xl": calcFontSize(3),
"3xl": calcFontSize(4),
"4xl": calcFontSize(5),
"5xl": calcFontSize(6),
},
container: {
padding: {
DEFAULT: "clamp(1rem, calc(100vw - 75rch + 5rem), 5rem)",
},
screens: {
DEFAULT: "75rch",
},
},
extend: {
typography: {
DEFAULT: {
css: {
h1: {
fontSize: calcFontSize(4),
},
h2: {
fontSize: calcFontSize(3),
},
h3: {
fontSize: calcFontSize(2),
},
h4: {
fontSize: calcFontSize(1),
},
},
},
},
colors: {
accent: {
"50": "#fdf4f3",
"100": "#fce6e4",
"200": "#fad2ce",
"300": "#f6b2ab",
"400": "#ef857a",
"500": "#e35e50",
"600": "#cf4233",
"700": "#c0392b",
"800": "#902e24",
"900": "#782c24",
"950": "#41130e",
},
},
},
},
plugins: [typography],
};
export default config;