Skip to content

Commit e2a61dd

Browse files
committed
feat: add unocss
1 parent fdaf83a commit e2a61dd

22 files changed

+1658
-6231
lines changed

.eslintrc.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"parser": "@typescript-eslint/parser",
4040
"extends": [
4141
"eslint:recommended",
42+
"@unocss",
4243
"plugin:@typescript-eslint/recommended",
4344
"plugin:react-hooks/recommended",
4445
"plugin:react/recommended",

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@
4747
"typescript.inlayHints.parameterTypes.enabled": true,
4848
// "typescript.inlayHints.functionLikeReturnTypes.enabled": true,
4949
"cSpell.words": [
50+
"Attributify",
5051
"backoff",
5152
"chatgpt",
53+
"clsx",
5254
"commitlint",
5355
"dalle",
5456
"datetime",
@@ -60,6 +62,7 @@
6062
"micromark",
6163
"npmmirror",
6264
"ooba",
65+
"Shadcn",
6366
"tabler",
6467
"typecheck",
6568
"unist",

dist/smart-web.user.js

+567-5,346
Large diffs are not rendered by default.

package.json

+8-6
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@
3131
"test": "tsc --noEmit"
3232
},
3333
"dependencies": {
34-
"@emotion/react": "^11.11.4",
35-
"@emotion/styled": "^11.11.5",
3634
"@icon-park/react": "^1.4.2",
37-
"@mui/material": "^5.15.21",
35+
"class-variance-authority": "^0.7.0",
36+
"clsx": "^2.1.1",
3837
"eventemitter3": "^5.0.1",
39-
"i": "^0.3.7",
4038
"i18next": "^23.11.5",
41-
"pnpm": "^9.4.0",
4239
"react": "^18.3.1",
4340
"react-dom": "^18.3.1",
4441
"react-draggable": "^4.4.6",
@@ -59,6 +56,10 @@
5956
"@types/react-dom": "^18.3.0",
6057
"@typescript-eslint/eslint-plugin": "^7.14.1",
6158
"@typescript-eslint/parser": "^7.14.1",
59+
"@unocss/eslint-config": "^0.61.0",
60+
"@unocss/transformer-compile-class": "^0.61.0",
61+
"@unocss/transformer-directives": "^0.61.0",
62+
"@unocss/transformer-variant-group": "^0.61.0",
6263
"@vitejs/plugin-react": "^4.3.1",
6364
"@vitejs/plugin-react-swc": "^3.7.0",
6465
"commitizen": "^4.3.0",
@@ -76,11 +77,12 @@
7677
"eslint-plugin-simple-import-sort": "^12.1.0",
7778
"eslint-plugin-unused-imports": "^3.2.0",
7879
"husky": "^9.0.11",
79-
"knip": "^5.23.1",
80+
"knip": "^5.23.2",
8081
"lint-staged": "^15.2.7",
8182
"prettier": "^3.3.2",
8283
"rollup-plugin-visualizer": "^5.12.0",
8384
"typescript": "^5.5.2",
85+
"unocss": "^0.61.0",
8486
"vite": "^5.3.2",
8587
"vite-plugin-importer": "^0.2.5",
8688
"vite-tsconfig-paths": "^4.3.2"

0 commit comments

Comments
 (0)