Skip to content

Commit 642bd13

Browse files
committed
fix: dynamic animation issue
Signed-off-by: Neko Ayaka <[email protected]>
1 parent 2137af9 commit 642bd13

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

packages/2024-08-21-kubecon-hk/uno.config.ts

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
// @ts-expect-error - Ignoring the error of missing types for the uno config
22
import config from '@slidev/client/uno.config'
3-
import { mergeConfigs, presetWebFonts } from 'unocss'
3+
import { defineConfig, mergeConfigs, presetAttributify, presetIcons, presetUno, presetWebFonts } from 'unocss'
44

55
export default mergeConfigs([
66
config,
77
{
8+
rules: [
9+
['font-math', { 'font-family': 'Latin Modern Roman, ui-serif, Georgia, Cambria, "Times New Roman", Times, serif' }],
10+
],
11+
safelist: [
12+
...Array.from({ length: 30 }, (_, i) => `delay-${(i + 1) * 100}`),
13+
],
814
presets: [
15+
presetUno({
16+
dark: 'class',
17+
}),
18+
presetAttributify(),
19+
presetIcons({
20+
prefix: 'i-',
21+
extraProperties: {
22+
'display': 'inline-block',
23+
'vertical-align': 'middle',
24+
},
25+
warn: true,
26+
}),
927
presetWebFonts({
1028
fonts: {
1129
sans: 'DM Sans',

0 commit comments

Comments
 (0)