AI-native design editor. Open-source Figma alternative.
Migrate to Tailwind CSS 4.2
Danila Poyarkov509dd4fab431
diff --git a/bun.lock b/bun.lockindex e8d8c0eda..3d0837dac 100644--- a/bun.lock+++ b/bun.lock@@ -5,6 +5,7 @@"": {"name": "open-pencil-app","dependencies": {+ "@tailwindcss/vite": "^4.2.1","@tauri-apps/api": "^2","@tauri-apps/plugin-opener": "^2","@vueuse/core": "^14.2.1",@@ -13,6 +14,7 @@"fzstd": "^0.1.1","kiwi-schema": "^0.5.0","reka-ui": "^2.8.2",+ "tailwindcss": "^4.2.1","vue": "^3.5.29","yoga-layout": "^3.2.1",},@@ -103,8 +105,16 @@"@internationalized/number": ["@internationalized/[email protected]", "", { "dependencies": { "@swc/helpers": "^0.5.0" } }, "sha512-6hY4Kl4HPBvtfS62asS/R22JzNNy8vi/Ssev7x6EobfCp+9QIB2hKvI2EtbdJ0VSQacxVNtqhE/NmF/NZ0gm6g=="],+ "@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],++ "@jridgewell/remapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],++ "@jridgewell/resolve-uri": ["@jridgewell/[email protected]", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],+"@jridgewell/sourcemap-codec": ["@jridgewell/[email protected]", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],+ "@jridgewell/trace-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],+"@oxfmt/binding-android-arm-eabi": ["@oxfmt/[email protected]", "", { "os": "android", "cpu": "arm" }, "sha512-BaRKlM3DyG81y/xWTsE6gZiv89F/3pHe2BqX2H4JbiB8HNVlWWtplzgATAE5IDSdwChdeuWLDTQzJ92Lglw3ZA=="],"@oxfmt/binding-android-arm64": ["@oxfmt/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-/O+EbuAJYs6nde/anv+aID6uHsGQApyE9JtYBo/79KyU8e6RBN3DMbT0ix97y1SOnCglurmL2iZ+hlohjP2PnQ=="],@@ -235,6 +245,36 @@"@swc/helpers": ["@swc/[email protected]", "", { "dependencies": { "tslib": "^2.8.0" } }, "sha512-QamiFeIK3txNjgUTNppE6MiG3p7TdninpZu0E0PbqVh1a9FNLT2FRhisaa4NcaX52XVhA5l7Pk58Ft7Sqi/2sA=="],+ "@tailwindcss/node": ["@tailwindcss/[email protected]", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "enhanced-resolve": "^5.19.0", "jiti": "^2.6.1", "lightningcss": "1.31.1", "magic-string": "^0.30.21", "source-map-js": "^1.2.1", "tailwindcss": "4.2.1" } }, "sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg=="],++ "@tailwindcss/oxide": ["@tailwindcss/[email protected]", "", { "optionalDependencies": { "@tailwindcss/oxide-android-arm64": "4.2.1", "@tailwindcss/oxide-darwin-arm64": "4.2.1", "@tailwindcss/oxide-darwin-x64": "4.2.1", "@tailwindcss/oxide-freebsd-x64": "4.2.1", "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.1", "@tailwindcss/oxide-linux-arm64-gnu": "4.2.1", "@tailwindcss/oxide-linux-arm64-musl": "4.2.1", "@tailwindcss/oxide-linux-x64-gnu": "4.2.1", "@tailwindcss/oxide-linux-x64-musl": "4.2.1", "@tailwindcss/oxide-wasm32-wasi": "4.2.1", "@tailwindcss/oxide-win32-arm64-msvc": "4.2.1", "@tailwindcss/oxide-win32-x64-msvc": "4.2.1" } }, "sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw=="],++ "@tailwindcss/oxide-android-arm64": ["@tailwindcss/[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-eZ7G1Zm5EC8OOKaesIKuw77jw++QJ2lL9N+dDpdQiAB/c/B2wDh0QPFHbkBVrXnwNugvrbJFk1gK2SsVjwWReg=="],++ "@tailwindcss/oxide-darwin-arm64": ["@tailwindcss/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-q/LHkOstoJ7pI1J0q6djesLzRvQSIfEto148ppAd+BVQK0JYjQIFSK3JgYZJa+Yzi0DDa52ZsQx2rqytBnf8Hw=="],++ "@tailwindcss/oxide-darwin-x64": ["@tailwindcss/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-/f/ozlaXGY6QLbpvd/kFTro2l18f7dHKpB+ieXz+Cijl4Mt9AI2rTrpq7V+t04nK+j9XBQHnSMdeQRhbGyt6fw=="],++ "@tailwindcss/oxide-freebsd-x64": ["@tailwindcss/[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-5e/AkgYJT/cpbkys/OU2Ei2jdETCLlifwm7ogMC7/hksI2fC3iiq6OcXwjibcIjPung0kRtR3TxEITkqgn0TcA=="],++ "@tailwindcss/oxide-linux-arm-gnueabihf": ["@tailwindcss/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-Uny1EcVTTmerCKt/1ZuKTkb0x8ZaiuYucg2/kImO5A5Y/kBz41/+j0gxUZl+hTF3xkWpDmHX+TaWhOtba2Fyuw=="],++ "@tailwindcss/oxide-linux-arm64-gnu": ["@tailwindcss/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-CTrwomI+c7n6aSSQlsPL0roRiNMDQ/YzMD9EjcR+H4f0I1SQ8QqIuPnsVp7QgMkC1Qi8rtkekLkOFjo7OlEFRQ=="],++ "@tailwindcss/oxide-linux-arm64-musl": ["@tailwindcss/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ=="],++ "@tailwindcss/oxide-linux-x64-gnu": ["@tailwindcss/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g=="],++ "@tailwindcss/oxide-linux-x64-musl": ["@tailwindcss/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g=="],++ "@tailwindcss/oxide-wasm32-wasi": ["@tailwindcss/[email protected]", "", { "dependencies": { "@emnapi/core": "^1.8.1", "@emnapi/runtime": "^1.8.1", "@emnapi/wasi-threads": "^1.1.0", "@napi-rs/wasm-runtime": "^1.1.1", "@tybys/wasm-util": "^0.10.1", "tslib": "^2.8.1" }, "cpu": "none" }, "sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q=="],++ "@tailwindcss/oxide-win32-arm64-msvc": ["@tailwindcss/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-YlUEHRHBGnCMh4Nj4GnqQyBtsshUPdiNroZj8VPkvTZSoHsilRCwXcVKnG9kyi0ZFAS/3u+qKHBdDc81SADTRA=="],++ "@tailwindcss/oxide-win32-x64-msvc": ["@tailwindcss/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-rbO34G5sMWWyrN/idLeVxAZgAKWrn5LiR3/I90Q9MkA67s6T1oB0xtTe+0heoBvHSpbU9Mk7i6uwJnpo4u21XQ=="],++ "@tailwindcss/vite": ["@tailwindcss/[email protected]", "", { "dependencies": { "@tailwindcss/node": "4.2.1", "@tailwindcss/oxide": "4.2.1", "tailwindcss": "4.2.1" }, "peerDependencies": { "vite": "^5.2.0 || ^6 || ^7" } }, "sha512-TBf2sJjYeb28jD2U/OhwdW0bbOsxkWPwQ7SrqGf9sVcoYwZj7rkXljroBO9wKBut9XnmQLXanuDUeqQK0lGg/w=="],+"@tanstack/virtual-core": ["@tanstack/[email protected]", "", {}, "sha512-/BMP7kNhzKOd7wnDeB8NrIRNLwkf5AhCYCvtfZV2GXWbBieFm/el0n6LOAXlTi6ZwHICSNnQcIxRCWHrLzDY+g=="],"@tanstack/vue-virtual": ["@tanstack/[email protected]", "", { "dependencies": { "@tanstack/virtual-core": "3.13.19" }, "peerDependencies": { "vue": "^2.7.0 || ^3.0.0" } }, "sha512-07Fp1TYuIziB4zIDA/moeDKHODePy3K1fN4c4VIAGnkxo1+uOvBJP7m54CoxKiQX6Q9a1dZnznrwOg9C86yvvA=="],@@ -323,6 +363,10 @@"defu": ["[email protected]", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="],+ "detect-libc": ["[email protected]", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],++ "enhanced-resolve": ["[email protected]", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.0" } }, "sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg=="],+"entities": ["[email protected]", "", {}, "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA=="],"esbuild": ["[email protected]", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.3", "@esbuild/android-arm": "0.27.3", "@esbuild/android-arm64": "0.27.3", "@esbuild/android-x64": "0.27.3", "@esbuild/darwin-arm64": "0.27.3", "@esbuild/darwin-x64": "0.27.3", "@esbuild/freebsd-arm64": "0.27.3", "@esbuild/freebsd-x64": "0.27.3", "@esbuild/linux-arm": "0.27.3", "@esbuild/linux-arm64": "0.27.3", "@esbuild/linux-ia32": "0.27.3", "@esbuild/linux-loong64": "0.27.3", "@esbuild/linux-mips64el": "0.27.3", "@esbuild/linux-ppc64": "0.27.3", "@esbuild/linux-riscv64": "0.27.3", "@esbuild/linux-s390x": "0.27.3", "@esbuild/linux-x64": "0.27.3", "@esbuild/netbsd-arm64": "0.27.3", "@esbuild/netbsd-x64": "0.27.3", "@esbuild/openbsd-arm64": "0.27.3", "@esbuild/openbsd-x64": "0.27.3", "@esbuild/openharmony-arm64": "0.27.3", "@esbuild/sunos-x64": "0.27.3", "@esbuild/win32-arm64": "0.27.3", "@esbuild/win32-ia32": "0.27.3", "@esbuild/win32-x64": "0.27.3" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg=="],@@ -337,8 +381,36 @@"fzstd": ["[email protected]", "", {}, "sha512-dkuVSOKKwh3eas5VkJy1AW1vFpet8TA/fGmVA5krThl8YcOVE/8ZIoEA1+U1vEn5ckxxhLirSdY837azmbaNHA=="],+ "graceful-fs": ["[email protected]", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="],++ "jiti": ["[email protected]", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="],+"kiwi-schema": ["[email protected]", "", { "bin": { "kiwic": "cli.js" } }, "sha512-X+FpfU0yTEtc6aTHS7VwbOpvQwRt70+pXXWRI5fd6CvWhe7pSVC854TVo4Zo0x5/wwcWj+/9KUlXpdcP0dY9AA=="],+ "lightningcss": ["[email protected]", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.31.1", "lightningcss-darwin-arm64": "1.31.1", "lightningcss-darwin-x64": "1.31.1", "lightningcss-freebsd-x64": "1.31.1", "lightningcss-linux-arm-gnueabihf": "1.31.1", "lightningcss-linux-arm64-gnu": "1.31.1", "lightningcss-linux-arm64-musl": "1.31.1", "lightningcss-linux-x64-gnu": "1.31.1", "lightningcss-linux-x64-musl": "1.31.1", "lightningcss-win32-arm64-msvc": "1.31.1", "lightningcss-win32-x64-msvc": "1.31.1" } }, "sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ=="],++ "lightningcss-android-arm64": ["[email protected]", "", { "os": "android", "cpu": "arm64" }, "sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg=="],++ "lightningcss-darwin-arm64": ["[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg=="],++ "lightningcss-darwin-x64": ["[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA=="],++ "lightningcss-freebsd-x64": ["[email protected]", "", { "os": "freebsd", "cpu": "x64" }, "sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A=="],++ "lightningcss-linux-arm-gnueabihf": ["[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g=="],++ "lightningcss-linux-arm64-gnu": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg=="],++ "lightningcss-linux-arm64-musl": ["[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg=="],++ "lightningcss-linux-x64-gnu": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA=="],++ "lightningcss-linux-x64-musl": ["[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA=="],++ "lightningcss-win32-arm64-msvc": ["[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w=="],++ "lightningcss-win32-x64-msvc": ["[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw=="],+"magic-string": ["[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],"nanoid": ["[email protected]", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],@@ -361,6 +433,10 @@"source-map-js": ["[email protected]", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],+ "tailwindcss": ["[email protected]", "", {}, "sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw=="],++ "tapable": ["[email protected]", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="],+"tinyglobby": ["[email protected]", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],"tinypool": ["[email protected]", "", {}, "sha512-Pugqs6M0m7Lv1I7FtxN4aoyToKg1C4tu+/381vH35y8oENM/Ai7f7C4StcoK4/+BSw9ebcS8jRiVrORFKCALLw=="],@@ -376,5 +452,17 @@"vue-demi": ["[email protected]", "", { "peerDependencies": { "@vue/composition-api": "^1.0.0-rc.1", "vue": "^3.0.0-0 || ^2.6.0" }, "optionalPeers": ["@vue/composition-api"], "bin": { "vue-demi-fix": "bin/vue-demi-fix.js", "vue-demi-switch": "bin/vue-demi-switch.js" } }, "sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg=="],"yoga-layout": ["[email protected]", "", {}, "sha512-0LPOt3AxKqMdFBZA3HBAt/t/8vIKq7VaQYbuA8WxCgung+p9TVyKRYdpvCb80HcdTN2NkbIKbhNwKUfm3tQywQ=="],++ "@tailwindcss/oxide-wasm32-wasi/@emnapi/core": ["@emnapi/[email protected]", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" }, "bundled": true }, "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg=="],++ "@tailwindcss/oxide-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg=="],++ "@tailwindcss/oxide-wasm32-wasi/@emnapi/wasi-threads": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ=="],++ "@tailwindcss/oxide-wasm32-wasi/@napi-rs/wasm-runtime": ["@napi-rs/[email protected]", "", { "dependencies": { "@emnapi/core": "^1.7.1", "@emnapi/runtime": "^1.7.1", "@tybys/wasm-util": "^0.10.1" }, "bundled": true }, "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A=="],++ "@tailwindcss/oxide-wasm32-wasi/@tybys/wasm-util": ["@tybys/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" }, "bundled": true }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="],++ "@tailwindcss/oxide-wasm32-wasi/tslib": ["[email protected]", "", { "bundled": true }, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="],}}diff --git a/package.json b/package.jsonindex 59a115aaa..671ed9d6c 100644--- a/package.json+++ b/package.json@@ -14,6 +14,7 @@"check": "bun run lint && bun run typecheck"},"dependencies": {+ "@tailwindcss/vite": "^4.2.1","@tauri-apps/api": "^2","@tauri-apps/plugin-opener": "^2","@vueuse/core": "^14.2.1",@@ -22,6 +23,7 @@"fzstd": "^0.1.1","kiwi-schema": "^0.5.0","reka-ui": "^2.8.2",+ "tailwindcss": "^4.2.1","vue": "^3.5.29","yoga-layout": "^3.2.1"},diff --git a/src/App.vue b/src/App.vueindex dc5f2308a..2539c7a67 100644--- a/src/App.vue+++ b/src/App.vue@@ -85,10 +85,10 @@ for (const d of demo) {</script><template>- <div class="editor">- <div class="editor-main">+ <div class="flex h-screen w-screen flex-col">+ <div class="flex flex-1 overflow-hidden"><LayersPanel />- <div class="canvas-area">+ <div class="relative flex min-w-0 flex-1"><EditorCanvas /><Toolbar /></div>@@ -96,65 +96,3 @@ for (const d of demo) {</div></div></template>--<style>-:root {- --panel-bg: #2a2a2a;- --canvas-bg: #1e1e1e;- --border: #3a3a3a;- --hover: #353535;- --accent: #3b82f6;- --text: #e0e0e0;- --text-muted: #888;- --input-bg: #1e1e1e;-}--* {- margin: 0;- padding: 0;- box-sizing: border-box;-}--html,-body,-#app {- width: 100%;- height: 100%;- overflow: hidden;-}--body {- font-family:- Inter,- system-ui,- -apple-system,- sans-serif;- font-size: 13px;- color: var(--text);- background: var(--canvas-bg);- user-select: none;- -webkit-user-select: none;-}-</style>--<style scoped>-.editor {- width: 100vw;- height: 100vh;- display: flex;- flex-direction: column;-}--.editor-main {- flex: 1;- display: flex;- overflow: hidden;-}--.canvas-area {- flex: 1;- position: relative;- display: flex;- min-width: 0;-}-</style>diff --git a/src/app.css b/src/app.cssnew file mode 100644index 000000000..32bba0e39--- /dev/null+++ b/src/app.css@@ -0,0 +1,29 @@+@import "tailwindcss";++@theme {+ --color-panel: #2a2a2a;+ --color-canvas: #1e1e1e;+ --color-border: #3a3a3a;+ --color-hover: #353535;+ --color-accent: #3b82f6;+ --color-surface: #e0e0e0;+ --color-muted: #888888;+ --color-input: #1e1e1e;+}++html,+body,+#app {+ width: 100%;+ height: 100%;+ overflow: hidden;+}++body {+ font-family: Inter, system-ui, -apple-system, sans-serif;+ font-size: 13px;+ color: var(--color-surface);+ background: var(--color-canvas);+ user-select: none;+ -webkit-user-select: none;+}diff --git a/src/components/ColorPicker.vue b/src/components/ColorPicker.vueindex 8b44f4fbd..d52e0662e 100644--- a/src/components/ColorPicker.vue+++ b/src/components/ColorPicker.vue@@ -142,73 +142,56 @@ const swatchColor = computed(() => {<template><PopoverRoot><PopoverTrigger as-child>- <button class="color-trigger" :style="{ background: swatchColor }" />+ <button class="size-5 shrink-0 cursor-pointer rounded border border-border p-0" :style="{ background: swatchColor }" /></PopoverTrigger><PopoverPortal>- <PopoverContent class="color-popover" :side-offset="4" side="left">+ <PopoverContent class="z-[100] w-56 rounded-lg border border-border bg-panel p-2 shadow-xl" :side-offset="4" side="left"><!-- SV area --><divref="svAreaRef"- class="sv-area"+ class="relative h-[140px] w-full cursor-crosshair overflow-hidden rounded":style="{ background: hueColor }"@pointerdown="onSvPointerDown"@pointermove="onSvPointerMove">- <div class="sv-white" />- <div class="sv-black" />+ <div class="absolute inset-0 bg-gradient-to-r from-white to-transparent" />+ <div class="absolute inset-0 bg-gradient-to-t from-black to-transparent" /><div- class="sv-cursor"- :style="{- left: `${saturation}%`,- top: `${100 - brightness}%`- }"+ class="pointer-events-none absolute size-2.5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-sm"+ :style="{ left: `${saturation}%`, top: `${100 - brightness}%` }"/></div><!-- Hue slider -->- <div class="slider-row">- <input- type="range"- class="hue-slider"- :value="hue"- min="0"- max="360"- @input="onHueInput"- />+ <div class="mt-2">+ <input type="range" class="hue-slider" :value="hue" min="0" max="360" @input="onHueInput" /></div><!-- Alpha slider -->- <div class="slider-row">- <input- type="range"- class="alpha-slider"- :value="alpha * 100"- min="0"- max="100"- @input="onAlphaSliderInput"- />+ <div class="mt-2">+ <input type="range" class="alpha-slider" :value="alpha * 100" min="0" max="100" @input="onAlphaSliderInput" /></div><!-- Hex input -->- <div class="hex-row">- <span class="hash">#</span>+ <div class="mt-2 flex items-center gap-1">+ <span class="text-[11px] text-muted">#</span><inputtype="text"- class="hex-input"+ class="min-w-0 flex-1 rounded border border-border bg-input px-1.5 py-0.5 font-mono text-xs text-surface":value="hexValue"maxlength="6"@change="onHexInput"/><inputtype="number"- class="alpha-input"+ class="w-10 rounded border border-border bg-input px-1 py-0.5 text-right text-xs text-surface [&::-webkit-inner-spin-button]:hidden":value="Math.round(alpha * 100)"min="0"max="100"@change="onAlphaNumberInput"/>- <span class="percent">%</span>+ <span class="text-[11px] text-muted">%</span></div></PopoverContent></PopoverPortal>@@ -216,102 +199,25 @@ const swatchColor = computed(() => {</template><style scoped>-.color-trigger {- width: 20px;- height: 20px;- border-radius: 4px;- border: 1px solid var(--border);- cursor: pointer;- padding: 0;- flex-shrink: 0;-}--.color-popover {- width: 224px;- background: var(--panel-bg);- border: 1px solid var(--border);- border-radius: 8px;- padding: 8px;- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);- z-index: 100;-}--.sv-area {- position: relative;- width: 100%;- height: 140px;- border-radius: 4px;- cursor: crosshair;- overflow: hidden;-}--.sv-white {- position: absolute;- inset: 0;- background: linear-gradient(to right, white, transparent);-}--.sv-black {- position: absolute;- inset: 0;- background: linear-gradient(to top, black, transparent);-}--.sv-cursor {- position: absolute;- width: 10px;- height: 10px;- border-radius: 50%;- border: 2px solid white;- box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);- transform: translate(-50%, -50%);- pointer-events: none;-}--.slider-row {- margin-top: 8px;-}--.hue-slider {+.hue-slider,+.alpha-slider {width: 100%;height: 12px;-webkit-appearance: none;appearance: none;border-radius: 6px;- background: linear-gradient(- to right,- #f00 0%,- #ff0 17%,- #0f0 33%,- #0ff 50%,- #00f 67%,- #f0f 83%,- #f00 100%- );outline: none;}-.hue-slider::-webkit-slider-thumb {- -webkit-appearance: none;- width: 14px;- height: 14px;- border-radius: 50%;- background: white;- border: 2px solid white;- box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);- cursor: pointer;+.hue-slider {+ background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);}.alpha-slider {- width: 100%;- height: 12px;- -webkit-appearance: none;- appearance: none;- border-radius: 6px;background: linear-gradient(to right, transparent, v-bind(hueColor));- outline: none;}+.hue-slider::-webkit-slider-thumb,.alpha-slider::-webkit-slider-thumb {-webkit-appearance: none;width: 14px;@@ -322,50 +228,4 @@ const swatchColor = computed(() => {box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);cursor: pointer;}--.hex-row {- display: flex;- align-items: center;- gap: 4px;- margin-top: 8px;-}--.hash {- font-size: 11px;- color: var(--text-muted);-}--.hex-input {- flex: 1;- min-width: 0;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 3px 6px;- font: inherit;- font-size: 12px;- font-family: monospace;-}--.alpha-input {- width: 40px;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 3px 4px;- font: inherit;- font-size: 12px;- text-align: right;-}--.alpha-input::-webkit-inner-spin-button {- display: none;-}--.percent {- font-size: 11px;- color: var(--text-muted);-}</style>diff --git a/src/components/EditorCanvas.vue b/src/components/EditorCanvas.vueindex 85e887e6d..b207eacea 100644--- a/src/components/EditorCanvas.vue+++ b/src/components/EditorCanvas.vue@@ -65,13 +65,11 @@ function onTextKeyDown(e: KeyboardEvent) {</script><template>- <div class="canvas-container">- <canvas ref="canvasRef" :style="{ cursor }" class="editor-canvas" />-- <!-- Inline text editor overlay -->+ <div class="relative flex-1 min-w-0 min-h-0 overflow-hidden">+ <canvas ref="canvasRef" :style="{ cursor }" class="block size-full" /><textareav-if="editingNode"- class="text-overlay"+ class="absolute z-10 resize-none overflow-hidden border border-accent bg-transparent p-0 font-normal text-black outline-none":style="textOverlayStyle!":value="editingNode.text"@input="onTextInput"@@ -81,33 +79,3 @@ function onTextKeyDown(e: KeyboardEvent) {/></div></template>--<style scoped>-.canvas-container {- flex: 1;- position: relative;- min-width: 0;- min-height: 0;- overflow: hidden;-}--.editor-canvas {- width: 100%;- height: 100%;- display: block;-}--.text-overlay {- position: absolute;- background: transparent;- border: 1px solid var(--accent, #3b82f6);- color: black;- padding: 0;- margin: 0;- outline: none;- resize: none;- overflow: hidden;- z-index: 10;- font-weight: 400;-}-</style>diff --git a/src/components/LayersPanel.vue b/src/components/LayersPanel.vueindex 2adc0944f..7bc630a7f 100644--- a/src/components/LayersPanel.vue+++ b/src/components/LayersPanel.vue@@ -27,98 +27,24 @@ function hasChildren(nodeId: string) {</script><template>- <aside class="layers-panel">- <header class="panel-section-label">Layers</header>- <div class="layers-list">+ <aside class="flex w-60 flex-col overflow-y-auto border-r border-border bg-panel">+ <header class="shrink-0 px-3 py-2 text-[11px] uppercase tracking-wider text-muted">Layers</header>+ <div class="flex-1 overflow-y-auto px-1"><buttonv-for="{ node, depth } in store.layerTree.value":key="node.id"- class="layer-row"- :class="{- selected: store.state.selectedIds.has(node.id),- container: hasChildren(node.id)- }"+ class="flex w-full cursor-pointer items-center gap-1 rounded border-none py-1 text-left font-[inherit] text-xs"+ :class="store.state.selectedIds.has(node.id)+ ? 'bg-accent text-white'+ : 'bg-transparent text-surface hover:bg-hover'":style="{ paddingLeft: `${8 + depth * 16}px` }"@click="store.select([node.id])"@click.shift.exact="store.select([node.id], true)">- <span v-if="hasChildren(node.id)" class="expand-arrow">▾</span>- <span class="layer-icon">{{ nodeIcon(node.type) }}</span>- <span class="layer-name">{{ node.name }}</span>+ <span v-if="hasChildren(node.id)" class="w-3 shrink-0 text-center text-[10px] opacity-50">▾</span>+ <span class="w-3.5 shrink-0 text-center text-[11px] opacity-70">{{ nodeIcon(node.type) }}</span>+ <span class="truncate">{{ node.name }}</span></button></div></aside></template>--<style scoped>-.layers-panel {- width: 240px;- background: var(--panel-bg);- border-right: 1px solid var(--border);- overflow-y: auto;- display: flex;- flex-direction: column;-}--.panel-section-label {- padding: 6px 12px;- font-size: 11px;- color: var(--text-muted);- text-transform: uppercase;- letter-spacing: 0.5px;- flex-shrink: 0;-}--.layers-list {- flex: 1;- overflow-y: auto;- padding: 0 4px;-}--.layer-row {- display: flex;- align-items: center;- gap: 4px;- width: 100%;- padding: 4px 8px;- border: none;- background: transparent;- color: var(--text);- font: inherit;- font-size: 12px;- cursor: pointer;- border-radius: 4px;- text-align: left;-}--.layer-row:hover {- background: var(--hover);-}--.layer-row.selected {- background: var(--accent);- color: white;-}--.expand-arrow {- width: 12px;- font-size: 10px;- text-align: center;- flex-shrink: 0;- opacity: 0.5;-}--.layer-icon {- width: 14px;- text-align: center;- flex-shrink: 0;- opacity: 0.7;- font-size: 11px;-}--.layer-name {- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}-</style>diff --git a/src/components/PropertiesPanel.vue b/src/components/PropertiesPanel.vueindex 787e455b5..13af7c8ad 100644--- a/src/components/PropertiesPanel.vue+++ b/src/components/PropertiesPanel.vue@@ -199,23 +199,26 @@ function colorHex(c: Color) {</script><template>- <aside class="properties-panel">- <div class="panel-tabs">- <button class="tab active">Design</button>- <button class="tab">Prototype</button>- <span class="zoom-display">{{ Math.round(store.state.zoom * 100) }}%</span>+ <aside class="flex w-[241px] flex-col overflow-hidden border-l border-border bg-panel">+ <!-- Tabs -->+ <div class="flex h-10 shrink-0 items-center gap-1 border-b border-border px-2">+ <button class="rounded px-2.5 py-1 text-xs font-semibold text-surface">Design</button>+ <button class="rounded px-2.5 py-1 text-xs text-muted">Prototype</button>+ <span class="ml-auto cursor-pointer rounded px-1.5 py-0.5 text-[11px] text-muted hover:bg-hover">+ {{ Math.round(store.state.zoom * 100) }}%+ </span></div><!-- Multi-select summary -->- <div v-if="multiCount > 1" class="panel-scroll">- <div class="section node-header">- <span class="node-type">Mixed</span>- <span class="node-name">{{ multiCount }} layers</span>+ <div v-if="multiCount > 1" class="flex-1 overflow-y-auto pb-4">+ <div class="flex items-center gap-1.5 border-b border-border px-3 py-2">+ <span class="text-[11px] text-muted">Mixed</span>+ <span class="text-xs font-semibold">{{ multiCount }} layers</span></div>- <div class="section">- <label class="section-label">Appearance</label>- <div class="input-row">+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Appearance</label>+ <div class="flex gap-1.5"><ScrubInputicon="⊘"suffix="%"@@ -229,780 +232,266 @@ function colorHex(c: Color) {</div><!-- Single selection -->- <div v-else-if="node" class="panel-scroll">- <div class="section node-header">- <span class="node-type">{{ node.type }}</span>- <span class="node-name">{{ node.name }}</span>+ <div v-else-if="node" class="flex-1 overflow-y-auto pb-4">+ <!-- Node header -->+ <div class="flex items-center gap-1.5 border-b border-border px-3 py-2">+ <span class="text-[11px] text-muted">{{ node.type }}</span>+ <span class="text-xs font-semibold">{{ node.name }}</span></div><!-- Position -->- <div class="section">- <label class="section-label">Position</label>- <div class="input-row">- <ScrubInput- icon="X"- :model-value="Math.round(node.x)"- @update:model-value="updateProp('x', $event)"- />- <ScrubInput- icon="Y"- :model-value="Math.round(node.y)"- @update:model-value="updateProp('y', $event)"- />+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Position</label>+ <div class="flex gap-1.5">+ <ScrubInput icon="X" :model-value="Math.round(node.x)" @update:model-value="updateProp('x', $event)" />+ <ScrubInput icon="Y" :model-value="Math.round(node.y)" @update:model-value="updateProp('y', $event)" /></div></div><!-- Rotation -->- <div class="section">- <div class="input-row">- <ScrubInput- icon="R"- suffix="°"- :model-value="Math.round(node.rotation)"- :min="-360"- :max="360"- @update:model-value="updateProp('rotation', $event)"- />+ <div class="border-b border-border px-3 py-2">+ <div class="flex gap-1.5">+ <ScrubInput icon="R" suffix="°" :model-value="Math.round(node.rotation)" :min="-360" :max="360" @update:model-value="updateProp('rotation', $event)" /></div></div>- <!-- Dimensions -->- <div class="section">- <label class="section-label">Layout</label>- <div class="input-row">- <div ref="widthDimRef" class="dim-input">- <ScrubInput- icon="W"- :model-value="Math.round(node.width)"- :min="0"- @update:model-value="updateProp('width', $event)"- />+ <!-- Layout / Dimensions -->+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Layout</label>+ <div class="flex gap-1.5">+ <!-- Width -->+ <div ref="widthDimRef" class="relative flex min-w-0 flex-1 items-center gap-1">+ <ScrubInput icon="W" :model-value="Math.round(node.width)" :min="0" @update:model-value="updateProp('width', $event)" /><buttonv-if="node.layoutMode !== 'NONE' || isInAutoLayout"- class="sizing-badge"+ class="cursor-pointer whitespace-nowrap rounded border-none bg-transparent px-1 py-px text-[10px] text-muted hover:bg-hover hover:text-surface"@click="widthSizingOpen = !widthSizingOpen"- >- {{ sizingLabel(widthSizing) }}- </button>- <div v-if="widthSizingOpen" class="sizing-dropdown">+ >{{ sizingLabel(widthSizing) }}</button>+ <div v-if="widthSizingOpen" class="absolute top-full left-0 right-0 z-10 min-w-40 rounded-md border border-border bg-panel p-1 shadow-lg"><button- :class="{ selected: widthSizing === 'FIXED' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="widthSizing === 'FIXED' ? 'text-accent' : 'text-surface'"@click="setWidthSizing('FIXED')"- >- <span class="sizing-icon">↔</span>- Fixed width ({{ Math.round(node.width) }})- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">↔</span>Fixed width ({{ Math.round(node.width) }})</button><buttonv-if="node.layoutMode !== 'NONE'"- :class="{ selected: widthSizing === 'HUG' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="widthSizing === 'HUG' ? 'text-accent' : 'text-surface'"@click="setWidthSizing('HUG')"- >- <span class="sizing-icon">↤↦</span>- Hug contents- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">↤↦</span>Hug contents</button><buttonv-if="isInAutoLayout"- :class="{ selected: widthSizing === 'FILL' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="widthSizing === 'FILL' ? 'text-accent' : 'text-surface'"@click="setWidthSizing('FILL')"- >- <span class="sizing-icon">⟷</span>- Fill container- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">⟷</span>Fill container</button></div></div>- <div ref="heightDimRef" class="dim-input">- <ScrubInput- icon="H"- :model-value="Math.round(node.height)"- :min="0"- @update:model-value="updateProp('height', $event)"- />+ <!-- Height -->+ <div ref="heightDimRef" class="relative flex min-w-0 flex-1 items-center gap-1">+ <ScrubInput icon="H" :model-value="Math.round(node.height)" :min="0" @update:model-value="updateProp('height', $event)" /><buttonv-if="node.layoutMode !== 'NONE' || isInAutoLayout"- class="sizing-badge"+ class="cursor-pointer whitespace-nowrap rounded border-none bg-transparent px-1 py-px text-[10px] text-muted hover:bg-hover hover:text-surface"@click="heightSizingOpen = !heightSizingOpen"- >- {{ sizingLabel(heightSizing) }}- </button>- <div v-if="heightSizingOpen" class="sizing-dropdown">+ >{{ sizingLabel(heightSizing) }}</button>+ <div v-if="heightSizingOpen" class="absolute top-full left-0 right-0 z-10 min-w-40 rounded-md border border-border bg-panel p-1 shadow-lg"><button- :class="{ selected: heightSizing === 'FIXED' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="heightSizing === 'FIXED' ? 'text-accent' : 'text-surface'"@click="setHeightSizing('FIXED')"- >- <span class="sizing-icon">↕</span>- Fixed height ({{ Math.round(node.height) }})- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">↕</span>Fixed height ({{ Math.round(node.height) }})</button><buttonv-if="node.layoutMode !== 'NONE'"- :class="{ selected: heightSizing === 'HUG' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="heightSizing === 'HUG' ? 'text-accent' : 'text-surface'"@click="setHeightSizing('HUG')"- >- <span class="sizing-icon">↤↦</span>- Hug contents- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">↤↦</span>Hug contents</button><buttonv-if="isInAutoLayout"- :class="{ selected: heightSizing === 'FILL' }"+ class="flex w-full cursor-pointer items-center gap-2 rounded border-none bg-transparent px-2 py-1.5 text-left text-xs hover:bg-hover"+ :class="heightSizing === 'FILL' ? 'text-accent' : 'text-surface'"@click="setHeightSizing('FILL')"- >- <span class="sizing-icon">⟷</span>- Fill container- </button>+ ><span class="w-4 text-center text-[11px] opacity-70">⟷</span>Fill container</button></div></div></div>- <div class="input-row">- <ScrubInput- icon="↻"- :model-value="node.cornerRadius"- :min="0"- @update:model-value="updateProp('cornerRadius', $event)"- />+ <!-- Corner radius -->+ <div class="mt-1.5 flex gap-1.5">+ <ScrubInput icon="↻" :model-value="node.cornerRadius" :min="0" @update:model-value="updateProp('cornerRadius', $event)" /></div></div><!-- Auto Layout -->- <div v-if="node.type === 'FRAME'" class="section">- <div class="section-header">- <label class="section-label">Auto layout</label>+ <div v-if="node.type === 'FRAME'" class="border-b border-border px-3 py-2">+ <div class="flex items-center justify-between">+ <label class="mb-1.5 block text-[11px] text-muted">Auto layout</label><buttonv-if="node.layoutMode === 'NONE'"- class="section-add"+ class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface"title="Add auto layout (Shift+A)"@click="store.setLayoutMode(node.id, 'VERTICAL')"- >- +- </button>+ >+</button><buttonv-else- class="section-add"+ class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface"title="Remove auto layout"@click="store.setLayoutMode(node.id, 'NONE')"- >- −- </button>+ >−</button></div><template v-if="node.layoutMode !== 'NONE'"><!-- Direction -->- <div class="layout-direction-row">+ <div class="mt-1.5 flex gap-0.5"><button- class="dir-btn"- :class="{ active: node.layoutMode === 'VERTICAL' }"+ class="flex cursor-pointer items-center justify-center rounded border px-2 py-1"+ :class="node.layoutMode === 'VERTICAL'+ ? 'border-accent bg-accent text-white'+ : 'border-border bg-input text-muted hover:bg-hover hover:text-surface'"title="Vertical layout"@click="store.setLayoutMode(node.id, 'VERTICAL')">- <svg width="16" height="16" viewBox="0 0 16 16">- <rect x="3" y="2" width="10" height="3" rx="0.5" fill="currentColor" />- <rect x="3" y="6.5" width="10" height="3" rx="0.5" fill="currentColor" />- <rect x="3" y="11" width="10" height="3" rx="0.5" fill="currentColor" />- </svg>+ <svg width="16" height="16" viewBox="0 0 16 16"><rect x="3" y="2" width="10" height="3" rx="0.5" fill="currentColor" /><rect x="3" y="6.5" width="10" height="3" rx="0.5" fill="currentColor" /><rect x="3" y="11" width="10" height="3" rx="0.5" fill="currentColor" /></svg></button><button- class="dir-btn"- :class="{ active: node.layoutMode === 'HORIZONTAL' }"+ class="flex cursor-pointer items-center justify-center rounded border px-2 py-1"+ :class="node.layoutMode === 'HORIZONTAL'+ ? 'border-accent bg-accent text-white'+ : 'border-border bg-input text-muted hover:bg-hover hover:text-surface'"title="Horizontal layout"@click="store.setLayoutMode(node.id, 'HORIZONTAL')">- <svg width="16" height="16" viewBox="0 0 16 16">- <rect x="2" y="3" width="3" height="10" rx="0.5" fill="currentColor" />- <rect x="6.5" y="3" width="3" height="10" rx="0.5" fill="currentColor" />- <rect x="11" y="3" width="3" height="10" rx="0.5" fill="currentColor" />- </svg>+ <svg width="16" height="16" viewBox="0 0 16 16"><rect x="2" y="3" width="3" height="10" rx="0.5" fill="currentColor" /><rect x="6.5" y="3" width="3" height="10" rx="0.5" fill="currentColor" /><rect x="11" y="3" width="3" height="10" rx="0.5" fill="currentColor" /></svg></button><button- class="dir-btn"- :class="{ active: node.layoutWrap === 'WRAP' }"+ class="flex cursor-pointer items-center justify-center rounded border px-2 py-1"+ :class="node.layoutWrap === 'WRAP'+ ? 'border-accent bg-accent text-white'+ : 'border-border bg-input text-muted hover:bg-hover hover:text-surface'"title="Wrap"@click="updateProp('layoutWrap', node.layoutWrap === 'WRAP' ? 'NO_WRAP' : 'WRAP')">- <svg width="16" height="16" viewBox="0 0 16 16">- <rect x="2" y="2" width="5" height="5" rx="0.5" fill="currentColor" />- <rect x="9" y="2" width="5" height="5" rx="0.5" fill="currentColor" />- <rect x="2" y="9" width="5" height="5" rx="0.5" fill="currentColor" />- </svg>+ <svg width="16" height="16" viewBox="0 0 16 16"><rect x="2" y="2" width="5" height="5" rx="0.5" fill="currentColor" /><rect x="9" y="2" width="5" height="5" rx="0.5" fill="currentColor" /><rect x="2" y="9" width="5" height="5" rx="0.5" fill="currentColor" /></svg></button></div><!-- Alignment grid + Gap -->- <div class="layout-align-gap-row">- <div class="align-grid">+ <div class="mt-1.5 flex items-center gap-2">+ <div class="grid grid-cols-3 gap-0.5 rounded border border-border bg-input p-1"><buttonv-for="(a, i) in ALIGN_GRID":key="i"- class="align-dot"- :class="{- active:- node.primaryAxisAlign === a.primary &&- node.counterAxisAlign === a.counter- }"+ class="flex size-3.5 cursor-pointer items-center justify-center rounded-sm border-none bg-transparent p-0 hover:bg-hover"@click="setAlignment(a.primary, a.counter)">- <span class="dot" />+ <span+ class="rounded-full"+ :class="node.primaryAxisAlign === a.primary && node.counterAxisAlign === a.counter+ ? 'size-1.5 bg-accent'+ : 'size-1 bg-muted opacity-40'"+ /></button></div>- <ScrubInput- :model-value="node.itemSpacing"- :min="0"- @update:model-value="updateProp('itemSpacing', $event)"- >+ <ScrubInput :model-value="node.itemSpacing" :min="0" @update:model-value="updateProp('itemSpacing', $event)"><template #icon>- <svg width="14" height="14" viewBox="0 0 14 14">- <rect x="0" y="1" width="4" height="12" rx="0.5" fill="currentColor" opacity="0.4" />- <rect x="5" y="5" width="4" height="4" rx="0.5" fill="currentColor" />- <rect x="10" y="1" width="4" height="12" rx="0.5" fill="currentColor" opacity="0.4" />- </svg>+ <svg width="14" height="14" viewBox="0 0 14 14"><rect x="0" y="1" width="4" height="12" rx="0.5" fill="currentColor" opacity="0.4" /><rect x="5" y="5" width="4" height="4" rx="0.5" fill="currentColor" /><rect x="10" y="1" width="4" height="12" rx="0.5" fill="currentColor" opacity="0.4" /></svg></template></ScrubInput></div><!-- Padding -->- <div class="layout-padding-row">+ <div class="mt-1.5 flex items-start gap-1"><template v-if="showIndividualPadding || !hasUniformPadding()">- <div class="padding-grid">- <div class="pad-cell pad-top">- <input- type="number"- :value="node.paddingTop"- min="0"- @change="updateProp('paddingTop', +($event.target as HTMLInputElement).value)"- />- </div>- <div class="pad-cell pad-right">- <input- type="number"- :value="node.paddingRight"- min="0"- @change="updateProp('paddingRight', +($event.target as HTMLInputElement).value)"- />- </div>- <div class="pad-cell pad-bottom">- <input- type="number"- :value="node.paddingBottom"- min="0"- @change="updateProp('paddingBottom', +($event.target as HTMLInputElement).value)"- />- </div>- <div class="pad-cell pad-left">+ <div class="grid flex-1 grid-cols-2 gap-0.5">+ <div v-for="side in ['paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft'] as const" :key="side"><inputtype="number"- :value="node.paddingLeft"+ class="w-full rounded border border-border bg-input px-1 py-0.5 text-center text-[11px] text-surface [&::-webkit-inner-spin-button]:hidden"+ :value="node[side]"min="0"- @change="updateProp('paddingLeft', +($event.target as HTMLInputElement).value)"+ @change="updateProp(side, +($event.target as HTMLInputElement).value)"/></div></div></template><template v-else>- <ScrubInput- :model-value="node.paddingTop"- :min="0"- @update:model-value="setUniformPadding($event)"- >+ <ScrubInput :model-value="node.paddingTop" :min="0" @update:model-value="setUniformPadding($event)"><template #icon>- <svg width="14" height="14" viewBox="0 0 14 14">- <rect x="0" y="0" width="14" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="1" />- <rect x="3" y="3" width="8" height="8" rx="1" fill="currentColor" opacity="0.3" />- </svg>+ <svg width="14" height="14" viewBox="0 0 14 14"><rect x="0" y="0" width="14" height="14" rx="2" fill="none" stroke="currentColor" stroke-width="1" /><rect x="3" y="3" width="8" height="8" rx="1" fill="currentColor" opacity="0.3" /></svg></template></ScrubInput></template><button- class="pad-toggle"- :class="{ active: showIndividualPadding || !hasUniformPadding() }"+ class="flex shrink-0 cursor-pointer items-center justify-center rounded border p-1"+ :class="showIndividualPadding || !hasUniformPadding()+ ? 'border-accent bg-accent text-white'+ : 'border-border text-muted hover:bg-hover hover:text-surface'"title="Individual padding"@click="showIndividualPadding = !showIndividualPadding">- <svg width="14" height="14" viewBox="0 0 14 14">- <rect x="0" y="0" width="14" height="4" rx="1" fill="currentColor" opacity="0.6" />- <rect x="10" y="0" width="4" height="14" rx="1" fill="currentColor" opacity="0.6" />- <rect x="0" y="10" width="14" height="4" rx="1" fill="currentColor" opacity="0.6" />- <rect x="0" y="0" width="4" height="14" rx="1" fill="currentColor" opacity="0.6" />- </svg>+ <svg width="14" height="14" viewBox="0 0 14 14"><rect x="0" y="0" width="14" height="4" rx="1" fill="currentColor" opacity="0.6" /><rect x="10" y="0" width="4" height="14" rx="1" fill="currentColor" opacity="0.6" /><rect x="0" y="10" width="14" height="4" rx="1" fill="currentColor" opacity="0.6" /><rect x="0" y="0" width="4" height="14" rx="1" fill="currentColor" opacity="0.6" /></svg></button></div></template></div><!-- Appearance -->- <div class="section">- <label class="section-label">Appearance</label>- <div class="input-row">- <ScrubInput- icon="⊘"- suffix="%"- :model-value="Math.round(node.opacity * 100)"- :min="0"- :max="100"- @update:model-value="updateProp('opacity', $event / 100)"- />+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Appearance</label>+ <div class="flex gap-1.5">+ <ScrubInput icon="⊘" suffix="%" :model-value="Math.round(node.opacity * 100)" :min="0" :max="100" @update:model-value="updateProp('opacity', $event / 100)" /></div></div><!-- Fill -->- <div class="section">- <div class="section-header">- <label class="section-label">Fill</label>- <button class="section-add" @click="addFill">+</button>+ <div class="border-b border-border px-3 py-2">+ <div class="flex items-center justify-between">+ <label class="mb-1.5 block text-[11px] text-muted">Fill</label>+ <button class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface" @click="addFill">+</button></div>- <div v-for="(fill, i) in node.fills" :key="i" class="fill-row">+ <div v-for="(fill, i) in node.fills" :key="i" class="group flex items-center gap-1.5 py-0.5"><button- class="visibility-toggle"- :class="{ hidden: !fill.visible }"+ class="w-4 cursor-pointer border-none bg-transparent p-0 text-center text-xs text-muted"+ :class="{ 'opacity-40': !fill.visible }"@click="toggleFillVisibility(i)"- >- {{ fill.visible ? '◉' : '○' }}- </button>+ >{{ fill.visible ? '◉' : '○' }}</button><ColorPicker :color="fill.color" @update="updateFillColor(i, $event)" />- <span class="color-hex">{{ colorHex(fill.color) }}</span>- <button class="remove-btn" @click="removeFill(i)">×</button>+ <span class="flex-1 font-mono text-xs">{{ colorHex(fill.color) }}</span>+ <button class="cursor-pointer border-none bg-transparent px-0.5 text-sm leading-none text-muted opacity-0 transition-opacity group-hover:opacity-100 hover:text-surface" @click="removeFill(i)">×</button></div></div><!-- Stroke -->- <div class="section">- <div class="section-header">- <label class="section-label">Stroke</label>- <button class="section-add" @click="addStroke">+</button>+ <div class="border-b border-border px-3 py-2">+ <div class="flex items-center justify-between">+ <label class="mb-1.5 block text-[11px] text-muted">Stroke</label>+ <button class="cursor-pointer rounded border-none bg-transparent px-1 text-base leading-none text-muted hover:bg-hover hover:text-surface" @click="addStroke">+</button></div>- <div v-for="(stroke, i) in node.strokes" :key="i" class="fill-row">+ <div v-for="(stroke, i) in node.strokes" :key="i" class="group flex items-center gap-1.5 py-0.5"><ColorPicker :color="stroke.color" @update="updateStrokeColor(i, $event)" />- <span class="color-hex">{{ colorHex(stroke.color) }}</span>+ <span class="flex-1 font-mono text-xs">{{ colorHex(stroke.color) }}</span><inputtype="number"- class="stroke-weight"+ class="w-9 rounded border border-border bg-input px-1 py-0.5 text-center text-[11px] text-surface [&::-webkit-inner-spin-button]:hidden":value="stroke.weight"min="0"@change="updateStrokeWeight(i, +($event.target as HTMLInputElement).value)"/>- <button class="remove-btn" @click="removeStroke(i)">×</button>+ <button class="cursor-pointer border-none bg-transparent px-0.5 text-sm leading-none text-muted opacity-0 transition-opacity group-hover:opacity-100 hover:text-surface" @click="removeStroke(i)">×</button></div></div><!-- Effects -->- <div class="section">- <label class="section-label">Effects</label>+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Effects</label></div><!-- Export -->- <div class="section">- <label class="section-label">Export</label>+ <div class="border-b border-border px-3 py-2">+ <label class="mb-1.5 block text-[11px] text-muted">Export</label></div></div>- <div v-else class="panel-empty">No selection</div>+ <div v-else class="px-3 py-4 text-xs text-muted">No selection</div></aside></template>--<style scoped>-.properties-panel {- width: 241px;- background: var(--panel-bg);- border-left: 1px solid var(--border);- display: flex;- flex-direction: column;- overflow: hidden;-}--.panel-tabs {- display: flex;- align-items: center;- height: 40px;- padding: 0 8px;- border-bottom: 1px solid var(--border);- flex-shrink: 0;-}--.tab {- padding: 4px 10px;- border: none;- background: transparent;- color: var(--text-muted);- font: inherit;- font-size: 12px;- cursor: pointer;- border-radius: 4px;-}--.tab.active {- color: var(--text);- font-weight: 600;-}--.zoom-display {- margin-left: auto;- font-size: 11px;- color: var(--text-muted);- cursor: pointer;- padding: 2px 6px;- border-radius: 4px;-}--.zoom-display:hover {- background: var(--hover);-}--.panel-scroll {- flex: 1;- overflow-y: auto;- padding-bottom: 16px;-}--.panel-empty {- padding: 16px 12px;- color: var(--text-muted);- font-size: 12px;-}--.section {- padding: 8px 12px;- border-bottom: 1px solid var(--border);-}--.section-header {- display: flex;- align-items: center;- justify-content: space-between;-}--.section-label {- display: block;- font-size: 11px;- color: var(--text-muted);- margin-bottom: 6px;-}--.section-add {- background: transparent;- border: none;- color: var(--text-muted);- font-size: 16px;- cursor: pointer;- padding: 0 4px;- line-height: 1;- border-radius: 4px;-}--.section-add:hover {- background: var(--hover);- color: var(--text);-}--.node-header {- display: flex;- align-items: center;- gap: 6px;-}--.node-type {- font-size: 11px;- color: var(--text-muted);-}--.node-name {- font-size: 12px;- font-weight: 600;-}--.input-row {- display: flex;- gap: 6px;-}----.fill-row {- display: flex;- align-items: center;- gap: 6px;- padding: 3px 0;-}--.visibility-toggle {- background: transparent;- border: none;- color: var(--text-muted);- cursor: pointer;- font-size: 12px;- padding: 0;- width: 16px;- text-align: center;-}--.visibility-toggle.hidden {- opacity: 0.4;-}--.color-hex {- font-size: 12px;- font-family: monospace;- flex: 1;-}--.remove-btn {- background: transparent;- border: none;- color: var(--text-muted);- cursor: pointer;- font-size: 14px;- padding: 0 2px;- line-height: 1;- opacity: 0;- transition: opacity 0.1s;-}--.fill-row:hover .remove-btn {- opacity: 1;-}--.remove-btn:hover {- color: var(--text);-}--.dim-input {- display: flex;- align-items: center;- gap: 4px;- flex: 1;- min-width: 0;- position: relative;-}--.dim-input input[type='number'] {- flex: 1;- min-width: 0;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 3px 6px;- font: inherit;- font-size: 12px;-}--.sizing-badge {- background: transparent;- border: none;- color: var(--text-muted);- font-size: 10px;- cursor: pointer;- padding: 1px 4px;- border-radius: 3px;- white-space: nowrap;-}--.sizing-badge:hover {- background: var(--hover);- color: var(--text);-}--.sizing-dropdown {- position: absolute;- top: 100%;- left: 0;- right: 0;- z-index: 10;- background: var(--panel-bg, #2c2c2c);- border: 1px solid var(--border);- border-radius: 6px;- padding: 4px;- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);- min-width: 160px;-}--.sizing-dropdown button {- display: flex;- align-items: center;- gap: 8px;- width: 100%;- padding: 6px 8px;- border: none;- background: transparent;- color: var(--text);- font: inherit;- font-size: 12px;- cursor: pointer;- border-radius: 4px;- text-align: left;-}--.sizing-dropdown button:hover {- background: var(--hover);-}--.sizing-dropdown button.selected {- color: var(--accent, #3b82f6);-}--.sizing-icon {- width: 16px;- text-align: center;- font-size: 11px;- opacity: 0.7;-}--.layout-direction-row {- display: flex;- gap: 2px;- margin-top: 6px;-}--.dir-btn {- display: flex;- align-items: center;- justify-content: center;- background: var(--input-bg);- border: 1px solid var(--border);- color: var(--text-muted);- cursor: pointer;- padding: 4px 8px;- border-radius: 4px;-}--.dir-btn.active {- background: var(--accent, #3b82f6);- color: white;- border-color: var(--accent, #3b82f6);-}--.dir-btn:hover:not(.active) {- background: var(--hover);- color: var(--text);-}--.layout-align-gap-row {- display: flex;- align-items: center;- gap: 8px;- margin-top: 6px;-}--.align-grid {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 2px;- padding: 4px;- background: var(--input-bg);- border-radius: 4px;- border: 1px solid var(--border);-}--.align-dot {- display: flex;- align-items: center;- justify-content: center;- width: 14px;- height: 14px;- border: none;- background: transparent;- cursor: pointer;- padding: 0;- border-radius: 2px;-}--.align-dot:hover {- background: var(--hover);-}--.align-dot .dot {- width: 4px;- height: 4px;- border-radius: 50%;- background: var(--text-muted);- opacity: 0.4;-}--.align-dot.active .dot {- background: var(--accent, #3b82f6);- opacity: 1;- width: 6px;- height: 6px;-}----.layout-padding-row {- display: flex;- align-items: flex-start;- gap: 4px;- margin-top: 6px;-}----.padding-grid {- display: grid;- grid-template-columns: 1fr 1fr;- gap: 3px;- flex: 1;-}--.pad-cell input[type='number'] {- width: 100%;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 3px 4px;- font: inherit;- font-size: 11px;- text-align: center;-}--.pad-cell input::-webkit-inner-spin-button {- display: none;-}--.pad-toggle {- display: flex;- align-items: center;- justify-content: center;- background: transparent;- border: 1px solid var(--border);- color: var(--text-muted);- cursor: pointer;- padding: 4px;- border-radius: 4px;- flex-shrink: 0;-}--.pad-toggle:hover {- background: var(--hover);- color: var(--text);-}--.pad-toggle.active {- background: var(--accent, #3b82f6);- color: white;- border-color: var(--accent, #3b82f6);-}--.prop-input select {- flex: 1;- min-width: 0;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 3px 4px;- font: inherit;- font-size: 11px;-}--.stroke-weight {- width: 36px;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- color: var(--text);- padding: 2px 4px;- font: inherit;- font-size: 11px;- text-align: center;-}--.stroke-weight::-webkit-inner-spin-button {- display: none;-}-</style>diff --git a/src/components/ScrubInput.vue b/src/components/ScrubInput.vueindex 873598205..edba36640 100644--- a/src/components/ScrubInput.vue+++ b/src/components/ScrubInput.vue@@ -82,18 +82,21 @@ function onKeydown(e: KeyboardEvent) {</script><template>- <div class="scrub-input" :class="{ scrubbing }">- <span class="scrub-label" @pointerdown="startScrub">+ <div class="flex min-w-0 flex-1 items-center overflow-hidden rounded border border-border bg-input h-[26px] focus-within:border-accent">+ <span+ class="flex shrink-0 cursor-ew-resize select-none items-center justify-center self-stretch px-[5px] text-muted [&>*]:pointer-events-none"+ @pointerdown="startScrub"+ ><slot name="icon">- <span v-if="icon" class="scrub-icon-text">{{ icon }}</span>+ <span v-if="icon" class="text-[11px] leading-none">{{ icon }}</span></slot>- <span v-if="label" class="scrub-label-text">{{ label }}</span>+ <span v-if="label" class="text-[11px] leading-none">{{ label }}</span></span><inputv-if="editing"ref="inputRef"type="number"- class="scrub-value-input"+ class="min-w-0 flex-1 border-none bg-transparent pr-1.5 font-[inherit] text-xs text-surface outline-none [&::-webkit-inner-spin-button]:hidden":value="displayValue":min="min === -Infinity ? undefined : min":max="max === Infinity ? undefined : max"@@ -103,82 +106,8 @@ function onKeydown(e: KeyboardEvent) {/><spanv-else- class="scrub-value"+ class="min-w-0 flex-1 cursor-text truncate pr-1.5 text-xs text-surface"@click="startEdit">{{ displayValue }}{{ suffix ?? '' }}</span></div></template>--<style scoped>-.scrub-input {- display: flex;- align-items: center;- flex: 1;- min-width: 0;- height: 26px;- background: var(--input-bg);- border: 1px solid var(--border);- border-radius: 4px;- overflow: hidden;-}--.scrub-input:focus-within {- border-color: var(--accent, #3b82f6);-}--.scrub-label {- display: flex;- align-items: center;- justify-content: center;- padding: 0 5px;- align-self: stretch;- cursor: ew-resize;- flex-shrink: 0;- user-select: none;- color: var(--text-muted);-}--.scrub-icon-text {- font-size: 11px;- line-height: 1;- pointer-events: none;-}--.scrub-label-text {- font-size: 11px;- line-height: 1;- pointer-events: none;-}--.scrub-label :deep(svg) {- pointer-events: none;-}--.scrub-value {- flex: 1;- min-width: 0;- padding: 0 6px 0 0;- font-size: 12px;- color: var(--text);- cursor: text;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;-}--.scrub-value-input {- flex: 1;- min-width: 0;- border: none;- background: transparent;- color: var(--text);- padding: 0 6px 0 0;- font: inherit;- font-size: 12px;- outline: none;-}--.scrub-value-input::-webkit-inner-spin-button {- display: none;-}-</style>diff --git a/src/components/Toolbar.vue b/src/components/Toolbar.vueindex 4e5d73e65..3cfcf2236 100644--- a/src/components/Toolbar.vue+++ b/src/components/Toolbar.vue@@ -5,71 +5,20 @@ const store = useEditorStore()</script><template>- <div class="toolbar">- <div class="toolbar-tools">+ <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 items-center">+ <div class="flex gap-0.5 rounded-xl border border-border bg-panel p-1 shadow-lg"><buttonv-for="tool in TOOLS":key="tool.key"- class="tool-button"- :class="{ active: store.state.activeTool === tool.key }"+ class="flex size-8 cursor-pointer items-center justify-center rounded-lg border-none text-sm transition-colors"+ :class="tool.key === store.state.activeTool+ ? 'bg-accent text-white'+ : 'bg-transparent text-muted hover:bg-hover hover:text-surface'":title="`${tool.label} (${tool.shortcut})`"@click="store.setTool(tool.key)">- <span class="tool-icon">{{ tool.icon }}</span>+ <span class="leading-none">{{ tool.icon }}</span></button></div></div></template>--<style scoped>-.toolbar {- position: absolute;- bottom: 16px;- left: 50%;- transform: translateX(-50%);- display: flex;- align-items: center;- z-index: 10;-}--.toolbar-tools {- display: flex;- gap: 2px;- background: var(--panel-bg);- border: 1px solid var(--border);- border-radius: 12px;- padding: 4px;- box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);-}--.tool-button {- width: 32px;- height: 32px;- border: none;- background: transparent;- color: var(--text-muted);- border-radius: 8px;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- font-size: 14px;- transition:- background 0.1s,- color 0.1s;-}--.tool-button:hover {- background: var(--hover);- color: var(--text);-}--.tool-button.active {- background: var(--accent);- color: white;-}--.tool-icon {- line-height: 1;-}-</style>diff --git a/src/main.ts b/src/main.tsindex 912d54f8d..c58bd1b6a 100644--- a/src/main.ts+++ b/src/main.ts@@ -1,5 +1,6 @@import { createApp } from 'vue'+import './app.css'import App from './App.vue'createApp(App).mount('#app')diff --git a/vite.config.ts b/vite.config.tsindex 1a656c98a..a0a1b21a3 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,5 +1,6 @@import { defineConfig } from 'vite'import vue from '@vitejs/plugin-vue'+import tailwindcss from '@tailwindcss/vite'import { copyFileSync, existsSync } from 'fs'// @ts-expect-error process is a nodejs global@@ -17,6 +18,7 @@ export default defineConfig(async () => ({}}},+ tailwindcss(),vue()],clearScreen: false,