-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
118 lines (117 loc) · 2.38 KB
/
uno.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
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
import {
defineConfig,
presetAttributify,
presetIcons,
presetTypography,
presetUno,
} from "unocss";
import transformerDirectives from "@unocss/transformer-directives";
import { helpersCssClasses } from "@shopware-pwa/helpers-next";
export default defineConfig({
theme: {
extend: {
width: "width",
height: "height",
},
// @see https://tailwindcss.com/docs/customizing-colors
colors: {
primary: {
DEFAULT: "#0d588f",
100: "#dbeafe",
200: "#bfdbfe",
500: "#3b82f6",
600: "#2563eb",
700: "#1d4ed8",
},
secondary: {
DEFAULT: "#6b7280",
50: "#f9fafb",
100: "#f3f4f6",
200: "#e5e7eb",
300: "#d1d5db",
400: "#9ca3af",
500: "#6b7280",
600: "#475569",
700: "#374151",
800: "#1e293b",
900: "#111827",
},
light: {
DEFAULT: "#5ebbff",
200: "#e2e8f0",
},
dark: {
DEFAULT: "#026ebd",
},
white: {
DEFAULT: "#ffffff",
},
indigo: {
DEFAULT: "#6366f1",
50: "#f0f5ff",
500: "#6366f1",
600: "#4f46e5",
700: "#4338ca",
},
green: {
DEFAULT: "#22c55e",
100: "#dcfce7",
200: "#bbf7d0",
400: "#4ade80",
500: "#22c55e",
600: "#16a34a",
700: "#15803d",
800: "#166534",
900: "#14532d",
},
yellow: {
DEFAULT: "#eab308",
50: "#fefce8",
300: "#fde047",
},
},
},
presets: [
presetUno(),
presetIcons({
collections: {
carbon: () =>
import("@iconify-json/carbon/icons.json").then((i) => i.default),
},
}),
presetAttributify(),
presetTypography(),
],
transformers: [transformerDirectives()],
preflights: [
// preflights can be used to set some base styles
{
getCSS: () => `
h1 {
line-height: 2.5rem;
font-size: 2.25rem;
}
h2 {
line-height: 2rem;
font-size: 1.75rem;
}
h3 {
line-height: 1.5rem;
font-size: 1.25rem;
}
ol,
ul,
dl {
list-style-type: disc;
padding-left: 40px;
margin-top: 0;
margin-bottom: 1rem;
}
ol {
list-style-type: decimal;
}
`,
},
],
safelist: helpersCssClasses,
});