-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
tailwind.config.ts
47 lines (45 loc) · 1.24 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
import type { Config } from "tailwindcss";
import { fontFamily, spacing } from "tailwindcss/defaultTheme";
import typographyPlugin from "@tailwindcss/typography";
const tailwindConfig = {
content: ["./src/**/*.{js,ts,jsx,tsx}"],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
fontFamily: {
inter: ["var(--font-inter)", ...fontFamily.sans],
poppins: ["var(--font-poppins)", ...fontFamily.sans],
"fira-code": ["var(--font-fira-code)", ...fontFamily.mono],
sans: ["var(--font-inter)", "var(--font-poppins)", ...fontFamily.sans],
},
extend: {
colors: {
accent: "#FF7b00",
primary: "#F5F0E8",
secondary: "#101010",
gray: {
dark: "#343233",
light: "#5A5658",
extralight: "#E0E0E0",
},
},
screens: {
md: "1050px",
tall: { raw: "(min-height: 1000px)" },
},
typography: (theme: (str: string) => string) => ({
DEFAULT: {
css: {
color: theme("colors.gray.dark"),
"h2,h3,h4": {
"scroll-margin-top": spacing[32],
},
},
},
}),
},
},
plugins: [typographyPlugin],
} satisfies Config;
export default tailwindConfig;