generated from arjunindia/the-beth-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
68 lines (67 loc) · 1.58 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
import transformerVariantGroup from "@unocss/transformer-variant-group";
import {
defineConfig,
presetIcons,
presetTypography,
presetWebFonts,
presetWind,
type UserConfig,
} from "unocss";
export default defineConfig({
cli: {
entry: {
patterns: ["src/**/*.{ts,tsx}"],
outFile: "public/dist/unocss.css",
},
},
theme: {
colors: {
text: "#fee6e6",
link: "#7494ff",
background: "#050000",
primary: "#633303",
primaryDark: "#4e2700",
primaryWhite: "#f4f4f4",
primaryWhiteText: "#242424",
secondary: "#261212",
accent: "#f4f406",
},
},
rules: [
[/^m-([\.\d]+)$/, ([_, num]) => ({ margin: `${Number(num) * 0.25}rem` })],
[
"bg-login",
{
"background-image": `url("/public/login-bg.jpg")`,
"background-size": "cover",
"background-position": "center",
"background-repeat": "no-repeat",
"background-attachment": "fixed",
"background-blend-mode": "soft-light",
},
],
[
"bg-signup",
{
"background-image": 'url("/public/signup-bg.jpg")',
"background-size": "cover",
"background-position": "center",
"background-repeat": "no-repeat",
"background-attachment": "fixed",
"background-blend-mode": "soft-light",
},
],
],
presets: [
presetWind(),
presetIcons({
extraProperties: {
display: "inline-block",
"vertical-align": "middle",
},
}),
presetWebFonts(),
presetTypography(),
],
transformers: [transformerVariantGroup()],
});