forked from tnonate/thenewoil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.cjs
82 lines (77 loc) · 2.09 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
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
const plugin = require("tailwindcss/plugin");
const colors = require("tailwindcss/colors");
const twGradient = require("./plugins/tw-gradient/index.cjs");
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
gradients: {
primary: `linear-gradient(to bottom right, ${colors.purple[400]} 0%, ${colors.indigo[600]} 100%)`,
secondary: `linear-gradient(to bottom right, ${colors.teal[400]} 0%, ${colors.blue[600]} 100%)`,
warning: `linear-gradient(to bottom right, ${colors.orange[400]} 0%, ${colors.red[600]} 100%)`,
},
extend: {
colors: {
gradient: {
primary: {
start: "#bb86fc",
center: "#8a43fe",
end: "#5800ff",
},
secondary: {
start: "#03dac6",
center: "#02a6e3",
end: "#0072ff",
},
warning: {
start: "#ed3b13",
center: "#f6620a",
end: "#ff8800",
},
},
primary: {
DEFAULT: colors.zinc[100],
contrast: colors.zinc[900],
dark: {
DEFAULT: colors.zinc[900],
contrast: colors.zinc[100],
},
},
secondary: {
DEFAULT: colors.zinc[800],
contrast: colors.zinc[100],
dark: {
DEFAULT: colors.zinc[800],
contrast: colors.zinc[100],
},
},
tertiary: {
DEFAULT: colors.zinc[200],
contrast: colors.zinc[900],
dark: {
DEFAULT: colors.zinc[800],
contrast: colors.zinc[100],
},
},
warning: {
DEFAULT: colors.orange[500],
contrast: colors.zinc[100],
},
},
fontFamily: {
roboto: ["Roboto"],
robotomono: ["Roboto Mono"],
},
screens: {
xs: "320px",
},
},
},
plugins: [
twGradient,
plugin(({ addVariant }) => {
addVariant("where", ":where(&)");
addVariant("is", ":is(&)");
}),
],
};