-
Notifications
You must be signed in to change notification settings - Fork 29
/
tailwind.config.mjs
96 lines (96 loc) · 2.62 KB
/
tailwind.config.mjs
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/** @type {import('tailwindcss').Config} */
import defaultTheme from "tailwindcss/defaultTheme";
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
darkMode: ["selector"],
safelist: [
{
pattern: /col-span-(\d+)/,
variants: ["lg"],
},
// Height
{
pattern: /h-(0|2|3|4|6|8|12|16|24|32)/,
variants: ["lg"],
},
// Text sizes for all screen sizes
{
pattern: /text-(xs|sm|base|lg|xl|2xl|3xl|4xl|5xl|6xl|7xl|8xl|9xl)/,
variants: ["lg"],
},
// Font weights
{
pattern: /font-(thin|extralight|light|normal|medium|semibold|bold|extrabold|black)/,
},
// Alignments
{
pattern: /text-(left|center|right)/,
},
],
theme: {
extend: {
colors: {
transparent: "transparent",
primary: {
50: "#fdf2f8",
100: "#fce7f3",
200: "#fbcfe8",
300: "#f9a8d4",
400: "#f472b6",
500: "#E2187D",
600: "#db2777",
700: "#be185d",
800: "#9d174d",
900: "#831843",
950: "#500724",
},
neutral: {
50: "#f8fafc",
100: "#f1f5f9",
200: "#e2e8f0",
300: "#cbd5e1",
400: "#94a3b8",
500: "#64748b",
600: "#475569",
700: "#334155",
800: "#1e293b",
900: "#0f172a",
950: "#020617",
},
},
cursor: {
fancy: "url(https://www.svgrepo.com/show/269/color-picker.svg)",
},
fontFamily: {
sans: ["Inter Variable", ...defaultTheme.fontFamily.sans],
headings: ["Outfit Variable", ...defaultTheme.fontFamily.sans],
},
keyframes: {
dropdown: {
"0%": { transform: "translateY(-1rem)", opacity: 0 },
"100%": { transform: "translateY(0)", opacity: 1 },
},
fadeInShadowLight: {
"100%": { boxShadow: "0 20px 25px -5px rgba(15, 23, 42, .025), 0 8px 10px -6px rgba(15, 23, 42, .025);" },
},
fadeInShadowDark: {
"100%": { boxShadow: "0 20px 25px -5px rgba(2, 6, 23, .25), 0 8px 10px -6px rgba(2, 6, 23, .25);" },
},
},
animation: {
dropdown: "dropdown 300ms ease-in-out forwards",
fadeInShadowLight: "fadeInShadowLight 500ms ease-in-out forwards",
fadeInShadowDark: "fadeInShadowDark 500ms ease-in-out forwards",
},
},
},
variants: {
animation: ["responsive"],
},
plugins: [
require("@tailwindcss/typography"),
require("tailwindcss/plugin")(function ({ addVariant }) {
addVariant("dark-me", ".dark_&");
}),
],
};