-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.ts
48 lines (45 loc) · 1.2 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
/* eslint-disable @typescript-eslint/no-require-imports */
import defaultTheme from "tailwindcss/defaultTheme";
import plugin from "tailwindcss/plugin";
import type { Config } from "tailwindcss";
const config: Config = {
content: ["./src/**/*.{js,ts,jsx,tsx,mdx}"],
theme: {
container: {
center: true,
screens: {
...defaultTheme.screens,
"3xl": defaultTheme.screens["2xl"],
},
},
fontFamily: {
display: ["var(--font-display)"],
body: ["var(--font-body)"],
},
extend: {
screens: {
"3xl": "2110px",
},
backgroundImage: {
'gradient-radial': 'radial-gradient(circle, var(--tw-gradient-stops))',
},
},
},
plugins: [
require("@tailwindcss/container-queries"),
plugin(({ addUtilities, theme }) => {
addUtilities({
".shadow-border": {
"box-shadow": `0 0 0 4px ${theme("colors.red.600")} inset`,
},
".shadow-border-l-red-600": {
"box-shadow": `4px 0 0 0 ${theme("colors.red.600")} inset`,
},
".shadow-border-l": {
"box-shadow": `0 0 0 0 ${theme("colors.transparent")} inset`,
},
});
}),
],
};
export default config;