-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuno.config.ts
More file actions
35 lines (33 loc) · 980 Bytes
/
uno.config.ts
File metadata and controls
35 lines (33 loc) · 980 Bytes
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
import { defineConfig, presetIcons, presetUno } from 'unocss'
import { m3Theme } from './src/assets/material-theme'
export default defineConfig({
presets: [
presetUno(),
// https://icones.js.org/collection/mdi
presetIcons({
collections: {
mdi: () => import('@iconify-json/mdi/icons.json').then(i => i.default),
},
}),
],
shortcuts: {
btn: 'select-none px-4 py-2 rounded border-none bg-primary text-onPrimary hover:bg-primary:80 disabled:opacity-50 disabled:cursor-not-allowed transition duration-150 ease-in-out',
},
theme: {
colors: {
copyright: '#DFBFFF',
language: '#FFBFCF',
character: '#AAF2AA',
author: '#DDDDDD',
general: '#B2D9FF',
meta: '#FFDFBA',
soundtrack: '#AAF2EE',
...m3Theme.schemes.light,
dark: m3Theme.schemes.dark,
},
},
// https://unocss.dev/config/#safelist
safelist: [
...Array.from({ length: 100 }, (_, i) => `w-${i + 1}`),
],
})