Skip to content

Commit 1c09a7e

Browse files
committed
feat: upgrade windi css
1 parent ff2a66a commit 1c09a7e

7 files changed

Lines changed: 43 additions & 36 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
"execa": "^5.0.0",
3030
"jest": "^26.6.3",
3131
"playwright-chromium": "^1.10.0",
32-
"pnpm": "^6.2.2",
32+
"pnpm": "^6.2.3",
3333
"ts-jest": "^26.5.5",
3434
"typescript": "^4.2.4",
35-
"vite-plugin-windicss": "^0.15.7",
35+
"vite-plugin-windicss": "^0.16.0-beta.3",
3636
"vitepress": "^0.13.2"
3737
}
3838
}

packages/client/internals/Modal.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ function onClick(e: MouseEvent) {
2525
<div
2626
v-show="value"
2727
ref="container"
28-
class="fixed top-0 bottom-0 left-0 right-0 bg-black bg-opacity-80 grid"
28+
class="fixed top-0 bottom-0 left-0 right-0 grid"
29+
bg="black opacity-80"
2930
@click="onClick"
3031
>
3132
<div
32-
class="m-auto rounded-md bg-main shadow dark:(border border-gray-400 border-opacity-10)w"
33+
class="m-auto rounded-md bg-main shadow"
34+
dark:border="~ gray-400 opacity-10"
3335
:class="props.class"
3436
>
3537
<slot />

packages/client/windi.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default defineConfig({
2828
'abs-bl': 'absolute bottom-0 left-0',
2929
'abs-br': 'absolute bottom-0 right-0',
3030
},
31+
attributify: true,
3132
darkMode: 'class',
3233
preflight: {
3334
includeAll: true,

packages/slidev/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"vite-plugin-icons": "^0.5.0",
7171
"vite-plugin-md": "^0.6.3",
7272
"vite-plugin-remote-assets": "^0.2.0",
73-
"vite-plugin-windicss": "^0.15.7",
73+
"vite-plugin-windicss": "^0.16.0-beta.3",
7474
"vue": "^3.0.11",
7575
"windicss": "^2.5.14",
7676
"yargs": "^16.2.0"
@@ -87,15 +87,15 @@
8787
"@types/minimist": "^1.2.1",
8888
"@types/node": "^15.0.1",
8989
"@types/prettier": "^2.2.3",
90-
"@types/prompts": "^2.0.10",
90+
"@types/prompts": "^2.4.0",
9191
"@types/recordrtc": "^5.6.5",
9292
"@types/yargs": "^16.0.1",
9393
"@typescript-eslint/eslint-plugin": "^4.22.0",
9494
"cross-env": "^7.0.3",
9595
"eslint": "^7.25.0",
9696
"esno": "^0.5.0",
9797
"playwright-chromium": "^1.10.0",
98-
"pnpm": "^6.2.2",
98+
"pnpm": "^6.2.3",
9999
"rimraf": "^3.0.2",
100100
"tsup": "^4.10.1",
101101
"typescript": "^4.2.4"

packages/theme-default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"bugs": "https://github.com/slidevjs/slidev/issues",
2121
"peerDependencies": {
2222
"@slidev/client": "^0.0.0-alpha.0",
23-
"vite-plugin-windicss": "^0.15.6"
23+
"vite-plugin-windicss": "^0.16.0-beta.1"
2424
},
2525
"dependencies": {
2626
"codemirror-theme-vars": "^0.1.0",

packages/theme-seriph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"bugs": "https://github.com/slidevjs/slidev/issues",
2121
"peerDependencies": {
2222
"@slidev/client": "^0.0.0-alpha.0",
23-
"vite-plugin-windicss": "^0.15.6"
23+
"vite-plugin-windicss": "^0.16.0-beta.1"
2424
},
2525
"dependencies": {
2626
"codemirror-theme-vars": "^0.1.0",

pnpm-lock.yaml

Lines changed: 31 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)