-
Notifications
You must be signed in to change notification settings - Fork 16
/
unocss.config.js
49 lines (42 loc) · 1.17 KB
/
unocss.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
import transformerAttributifyJsx from "@unocss/transformer-attributify-jsx";
// lets me use unocss classes in css files
import transformerDirectives from "@unocss/transformer-directives";
import presetWebFonts from "@unocss/preset-web-fonts";
import { defineConfig, presetAttributify, presetUno } from "unocss";
export default defineConfig({
theme: {
colors: {
white: {
1: "#fff",
2: "#c9d0dd",
3: "#bfc6d3",
},
black: {
1: "#0F172A",
2: "#161e31",
3: "#232b3e",
4: "#2d3548",
},
},
},
presets: [
presetUno(),
presetWebFonts({
provider: "google", // default provider
fonts: {
sans: "Inter Tight:400,500,600,700",
raleway: "Raleway:300,400,700",
},
}),
presetAttributify(),
],
rules: [
["softShadow", { "box-shadow": "rgba(0, 0, 0, 0.35) 0px 5px 15px" }],
["animate_smooth", { "animation": "smoothLoad .4s"}]
],
shortcuts: [
["vertCentered", "flex items-center gap-2", { layer: "utilites" }],
["center", "mx-auto", { layer: "utilites" }],
],
transformers: [transformerAttributifyJsx(), transformerDirectives()],
});