FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
tauri-tutorial/unocss.ts at main · virtoolswebplayer/tauri-tutorial · GitHub
virtoolswebplayer
/
tauri-tutorial
Public
forked from
lencx/tauri-tutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
tauri-tutorial
/
unocss.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
23 lines (21 loc) · 697 Bytes
Breadcrumbs
tauri-tutorial
/
unocss.ts
Copy path
File metadata and controls
23 lines (21 loc) · 697 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import
{
VitePluginConfig
}
from
'@unocss/vite'
;
import
presetUno
from
'@unocss/preset-uno'
import
presetAttributify
from
'@unocss/preset-attributify'
;
export
default
{
rules
:
[
// ### font ###
[
/
^
f
s
-
?
(
\d
+
)
(
\w
+
)
?
$
/
,
(
[
,
d
,
w
]
)
=>
(
{
'font-size'
:
w
?
`
${
d
}
${
w
}
`
:
`
${
+
d
/
16
}
em`
}
)
]
,
]
,
shortcuts
:
[
{
'hv-center'
:
'flex items-center justify-center'
,
'omb-hover'
:
'cursor-pointer select-none'
,
}
]
,
presets
:
[
presetUno
(
)
,
presetAttributify
(
)
,
]
,
}
as
VitePluginConfig
;
// const fmtRules = (list: Array<[string, string]>) =>
// list.map((i) => [new RegExp(`^${i[0]}-?(\d+)(\w+)?$`), ([, d, w]) => ({ [i[1]]: w ? `${d}${w}` : `${+d / 4}rem` })]);
Back
|
FazBrowse Home
|
New Git URL