forked from JackHamer09/zksync-plus
-
Notifications
You must be signed in to change notification settings - Fork 56
/
tailwind.config.js
109 lines (108 loc) · 2.48 KB
/
tailwind.config.js
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
/** @type {import('tailwindcss').Config} */
const defaultTheme = require("tailwindcss/defaultTheme");
const plugin = require("tailwindcss/plugin");
module.exports = {
darkMode: "class",
content: [
"./components/**/*.{js,vue,ts}",
"./views/**/*.vue",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./utils/**/*.{js,ts}",
"./nuxt.config.{js,ts}",
"./app.vue",
],
theme: {
extend: {
fontFamily: {
sans: ["'Inter'", ...defaultTheme.fontFamily.sans],
},
colors: {
primary: {
300: "#4075FF",
400: "#1755F4",
700: "#1347CC",
},
neutral: {
50: "#F7F9FC",
100: "#E8ECF2",
200: "#DADDE5",
300: "#BEC2CC",
400: "#A1A7B3",
500: "#858C99",
600: "#6C7380",
700: "#555A66",
800: "#3D424D",
900: "#262B33",
950: "#11141A",
},
gray: {
DEFAULT: "#f7f7f7",
secondary: "#75808a",
input: "#edeff2",
"input-focus": "#dfe3e7",
},
error: {
300: "#FF6666",
500: "#FF0000",
},
warning: {
400: "#FFC81A",
600: "#E5AF00",
},
success: {
400: "#33FF99",
600: "#00CC66",
},
},
spacing: {
"block-padding": "32px",
"block-padding-1/2": "16px",
"block-padding-1/4": "8px",
"block-gap": "24px",
"block-gap-2/3": "16px",
"block-gap-1/2": "12px",
},
},
screens: {
xxs: "320px",
xs: "480px",
sm: "640px",
md: "720px",
lg: "1024px",
xl: "1280px",
"2xl": "1920px",
},
},
plugins: [
plugin(function ({ addBase, addUtilities, theme }) {
addBase({
".h1": {
fontSize: "36px",
fontWeight: "400",
lineHeight: "1.15",
marginBottom: theme("spacing.block-gap-2/3"),
},
"@screen sm": {
".h1": {
fontSize: "40px",
lineHeight: "1.4",
marginBottom: theme("spacing.block-gap"),
},
},
".h2": {
fontSize: "26px",
fontWeight: theme("fontWeight.bold"),
lineHeight: theme("lineHeight.tight"),
paddingTop: theme("padding.5"),
},
});
addUtilities({
".wrap-balance": {
textWrap: "balance",
},
});
}),
],
};