Skip to content

Commit ba99070

Browse files
feat: migrate to new shadcn, unify design tokens (#690)
* feat(ui): add new shadcn-vue setup * feat: migrate to new shadcn, unify design tokens
1 parent f953b4f commit ba99070

159 files changed

Lines changed: 3431 additions & 1431 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/settings.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"enabledPlugins": {
3+
"frontend-design@claude-plugins-official": true
4+
}
5+
}

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Follow these rules strictly when generating code for massCode.
77

88
- **Framework:** Vue 3 (Composition API, `<script setup lang="ts">`)
99
- **Styling:** TailwindCSS v4 (`@tailwindcss/vite`), `tailwind-merge`, `cva`
10-
- **UI:** Custom components (`src/renderer/components/ui`), Shadcn (based on `radix-vue`), `lucide-vue-next` icons
10+
- **UI:** Custom components (`src/renderer/components/ui`), Shadcn (based on `reka-ui`), `lucide-vue-next` icons
1111
- **State:** Vue Composables (No Vuex/Pinia)
1212
- **Backend:** Electron (Main), `better-sqlite3` (DB), Elysia.js (API)
1313
- **Utilities:** `@vueuse/core`, `vue-sonner` (Notifications)

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "new-york",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "",
7+
"css": "src/renderer/styles.css",
8+
"baseColor": "neutral",
9+
"cssVariables": true,
10+
"prefix": ""
11+
},
12+
"iconLibrary": "lucide",
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/utils",
16+
"ui": "@/components/ui/shadcn2",
17+
"lib": "@/utils",
18+
"composables": "~/composables"
19+
},
20+
"registries": {}
21+
}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"nearest-color": "^0.4.4",
8585
"onigasm": "^2.2.5",
8686
"prettier": "^3.5.3",
87-
"radix-vue": "^1.9.17",
87+
"reka-ui": "^2.9.0",
8888
"sanitize-html": "^2.15.0",
8989
"slash": "^3.0.0",
9090
"slugify": "^1.6.6",
@@ -127,13 +127,15 @@
127127
"sass": "^1.85.1",
128128
"simple-git-hooks": "^2.11.1",
129129
"tailwindcss": "^4.0.9",
130+
"tw-animate-css": "^1.4.0",
130131
"typescript": "^5.7.3",
131132
"unplugin-auto-import": "^19.1.0",
132133
"unplugin-vue-components": "^28.4.0",
133134
"vite": "^6.1.1",
134135
"vitest": "^4.0.18",
135136
"vue": "^3.5.13",
136-
"vue-router": "^4.5.0"
137+
"vue-router": "^4.5.0",
138+
"vue-tsc": "^3.2.5"
137139
},
138140
"pnpm": {
139141
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)