-
Notifications
You must be signed in to change notification settings - Fork 4
/
tailwind.config.cjs
52 lines (51 loc) · 1.18 KB
/
tailwind.config.cjs
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
const defaultTheme = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
module.exports = {
mode: "jit",
content: [
"./src/pages/**/*.{astro,mdx}",
"./src/layouts/**/*.{js,ts,jsx,tsx,astro}",
"./src/components/**/*.{js,ts,jsx,tsx,astro}",
],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
container: {
padding: {
DEFAULT: "1rem",
sm: "3rem",
lg: "4rem",
xl: "5rem",
"2xl": "12rem",
},
},
extend: {
screens: {
xs: "420px",
...defaultTheme.screens,
},
colors: {
primary: "var(--primary)",
secondary: "var(--secondary)",
},
fontFamily: {
body: ["Inter", ...defaultTheme.fontFamily.sans],
heading: ["Cal Sans", ...defaultTheme.fontFamily.sans],
},
keyframes: {
"skeleton-loading": {
"0%": {
"background-color": "hsl(200, 20%, 80%)",
},
"100%": {
"background-color": "hsl(200, 20%, 95%)",
},
},
},
animation: {
loading: "skeleton-loading 1s linear infinite alternate",
},
},
},
};