Skip to content

Commit 7fcc760

Browse files
committed
feat: add built-in heroui theme
1 parent 8523487 commit 7fcc760

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed

packages/heroui-vue/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
],
2929
"exports": {
3030
".": "./dist/index.js",
31-
"./styles": "./dist/index.css"
31+
"./plugin": "./dist/heroui.js"
3232
},
3333
"types": "./dist/index.d.ts",
3434
"scripts": {
3535
"build": "pnpm -w build && pnpm build:only",
36-
"build:only": "vite build --minify",
37-
"dev": "vite build -w",
36+
"build:only": "tsdown --minify",
37+
"dev": "tsdown -w",
3838
"bump": "pnpm build && bumpp --tag v --sign"
3939
},
4040
"devDependencies": {
@@ -44,6 +44,7 @@
4444
"@heroui-vue/core": "workspace: *",
4545
"tailwindcss": "catalog:prod",
4646
"vite": "catalog:prod",
47+
"unplugin-vue": "catalog:prod",
4748
"vite-plugin-dts": "^4.5.4"
4849
}
4950
}

packages/heroui-vue/src/heroui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import { heroui } from "@heroui/theme";
22

3-
export default heroui();
3+
export default heroui() as any;

packages/heroui-vue/src/index.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
@source "../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}";
2-
@plugin "./heroui.ts";
3-
@custom-variant dark (&:is(.dark *));
1+
/*@plugin "./heroui.ts";*/
2+
/*@custom-variant dark (&:is(.dark *));*/

packages/heroui-vue/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import "./index.css";
1+
// import "./index.css";
22

33
export * from "@heroui-vue/core";

packages/heroui-vue/tsdown.config.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from "tsdown";
2+
import vue from "unplugin-vue/rolldown";
3+
4+
export default defineConfig({
5+
entry: ["src/index.ts", "src/heroui.ts"],
6+
plugins: [vue()],
7+
external: ["vue"],
8+
dts: {
9+
vue: true,
10+
},
11+
});

packages/heroui-vue/vite.config.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)