-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtailwind.config.mjs
140 lines (139 loc) · 3.97 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
// MorphUI Tailwind CSS Theme
theme: {
fontSize: {
// Instead of using text-h1, etc, use the classes found in the tailwind input file (/app/globals.css)
h0: "100px",
h1: "50px",
h2: "36px",
h3: "21px",
"strong-body": "16px",
body: "15px",
sub: "12.4px",
mono: "13px",
},
spacing: {
256: "256px",
200: "200px",
128: "128px",
110: "110px",
96: "96px",
86: "86px",
72: "72px",
64: "64px",
56: "56px",
48: "48px",
36: "36px",
32: "32px",
30: "30px",
28: "28px",
24: "24px",
20: "20px",
18: "18px",
16: "16px",
12: "12px",
10: "10px",
8: "8px",
6: "6px",
4: "4px",
0: "0px",
},
borderRadius: {
24: "24px",
32: "32px",
out: "16px",
in: "9px",
small: "7px",
},
boxShadow: {
"fg-2":
"0px -6px 24px -2px rgba(0, 0, 0, 0.14) inset, 0px 0px 56px 0px rgba(0, 0, 0, 0.08)",
},
fontFamily: {
// Instead of using font-mono, etc, use the classes found in the tailwind input file (for nextjs, /app/globals.css)
hanson: ["Hanson", ...defaultTheme.fontFamily.sans],
sans: ["'Outfit Variable'", ...defaultTheme.fontFamily.sans],
mono: [...defaultTheme.fontFamily.mono],
},
backgroundImage: {
"fg-1":
"linear-gradient(to bottom,rgba(15, 15, 15, 0.75),rgba(15, 15, 15, 0.9))",
"fg-2":
"linear-gradient(to bottom,rgba(122,122,122,0.13),rgba(122,122,122,0.05))",
"fg-2-active":
"linear-gradient(to bottom,rgba(122,122,122,0.27),rgba(122,122,122,0.18))",
"fg-2-disabled":
"linear-gradient(to bottom,rgba(122,122,122,0.03),rgba(122,122,122,0.07))",
"fg-3":
"linear-gradient(to bottom,rgba(12, 12, 12, 0.45),rgba(0, 0, 0, 0.5))",
"brand-gradient":
"linear-gradient(to bottom,rgba(13, 183, 255, 1),rgba(78, 0, 255, 1))",
},
colors: {
// ui styles
"bg-1": "rgba(7,7,7,1)",
"stroke-1": "rgba(255,255,255,0.09)",
"stroke-2": "rgba(255,255,255,0.04)",
"text-1": "rgba(222,222,222,1)",
"text-subtle": "rgba(222,222,222,0.75)",
"text-disabled": "rgba(255,255,255,0.30)",
// colours
selected: "#0db7ff",
accent: "#0db7ff",
"brand-blue": "#0db7ff",
"brand-blue-2": "#007bff",
"brand-purple": "#4e00ff",
danger: "#F5254A",
warning: "#EACA22",
success: "#26D958",
red: "#F5254A",
yellow: "#EACA22",
green: "#26D958",
blue: "#0784F6",
purple: "#BC4DFF",
white: "#ffffff",
black: "#000000",
transparent: "#00000000",
},
extend: {
backdropBlur: {
"fg-1": "128px",
"fg-2": "32px",
"fg-3": "32px",
},
keyframes: {
"scale-in": {
from: { opacity: "0", transform: " scale(0.9)" },
to: { opacity: "1", transform: "scale(1)" },
},
"scale-out": {
from: { opacity: "1", transform: "scale(1)" },
to: { opacity: "0", transform: "scale(0.9)" },
},
"fade-in": {
from: { opacity: "0" },
to: { opacity: "1" },
},
"move-in": {
from: { opacity: "0", transform: "translateY(12px)" },
to: { opacity: "1", transform: "translateY(-12px)" },
},
"rotate-360": {
from: { rotate: "0deg" },
to: { rotate: "360deg" },
},
},
animation: {
"scale-in": "scale-in 150ms ease-out",
"scale-out": "scale-out 150ms ease-out",
"fade-in": "fade-in 150ms ease-out",
"move-in": "move-in 150ms ease-out",
"rotate-slow": "rotate-360 8s linear infinite",
},
},
},
plugins: [require("@tailwindcss/typography")],
};