-
Notifications
You must be signed in to change notification settings - Fork 1
/
uno.config.ts
49 lines (47 loc) · 1.15 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
import {
defineConfig,
presetAttributify,
presetUno,
presetWind,
presetTypography,
presetIcons,
transformerDirectives,
} from 'unocss';
const config = defineConfig({
content: {
filesystem: ["**/*.ts"],
},
rules: [
// ['p-200', { padding: '200px' }],
],
theme: {
// borderRadius: {
// DEFAULT: "0.125rem",
// },
colors: {
primary: "rgb(var(--sl-color-primary-rgb))",
secondary: "rgb(var(--sl-color-secondary-rgb) / <alpha-value>)",
lightGray: "rgb(var(--sl-color-light-gray-rgb) / <alpha-value>)",
info: "rgb(var(--sl-color-info-rgb) / <alpha-value>)",
error: "rgb(var(--sl-color-error-rgb) / <alpha-value>)",
warning: "rgb(var(--sl-color-warning-rgb) / <alpha-value>)",
success: "rgb(var(--sl-color-success-rgb) / <alpha-value>)",
},
},
presets: [
presetUno({
prefix: 'hot-',
}),
presetAttributify({
prefixedOnly: true,
}),
presetWind(),
presetTypography(),
presetIcons(),
],
transformers: [
// Allows for syntax in CSS like @apply text-center my-0 font-medium;
transformerDirectives(),
],
});
export default config;