Skip to content

ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.

refactor(frontend): Phase 2 — remove Tailwind, standardize on the SCSS design system

Juan Denise24f834ada47
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index 64899c00..fe08cc90 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -24,8 +24,6 @@
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
- "@rollup/rollup-win32-x64-msvc": "^4.62.2",
- "@tailwindcss/vite": "^4.2.4",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0",
@@ -40,10 +38,7 @@
"react-router-dom": "^6.22.3",
"recharts": "^2.12.3",
"socket.io-client": "^4.7.2",
- "sonner": "^2.0.7",
- "tailwind-merge": "^3.5.0",
- "tailwindcss": "^4.2.4",
- "tailwindcss-animate": "^1.0.7"
+ "sonner": "^2.0.7"
},
"devDependencies": {
"@types/react": "^18.3.3",
@@ -359,6 +354,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -375,6 +371,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -391,6 +388,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -407,6 +405,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -423,6 +422,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -439,6 +439,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -455,6 +456,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -471,6 +473,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -487,6 +490,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -503,6 +507,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -519,6 +524,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -535,6 +541,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -551,6 +558,7 @@
"cpu": [
"mips64el"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -567,6 +575,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -583,6 +592,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -599,6 +609,7 @@
"cpu": [
"s390x"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -615,6 +626,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -631,6 +643,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -647,6 +660,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -663,6 +677,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -679,6 +694,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -695,6 +711,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -711,6 +728,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -971,6 +989,7 @@
"version": "0.3.13",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",
"integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
@@ -981,6 +1000,7 @@
"version": "2.3.5",
"resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",
"integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
@@ -991,6 +1011,7 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=6.0.0"
@@ -1000,12 +1021,14 @@
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",
"integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",
+ "dev": true,
"license": "MIT"
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.31",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",
"integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
@@ -1016,6 +1039,7 @@
"version": "2.5.6",
"resolved": "https://registry.npmjs.org/@parcel/watcher/-/watcher-2.5.6.tgz",
"integrity": "sha512-tmmZ3lQxAe/k/+rNnXQRawJ4NjxO2hqiOLTHvWchtGZULp4RyFeh6aU4XdOYBFe2KE1oShQTv4AblOs2iOrNnQ==",
+ "dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
@@ -1055,6 +1079,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1075,6 +1100,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1095,6 +1121,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1115,6 +1142,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1135,6 +1163,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1155,6 +1184,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1175,6 +1205,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1195,6 +1226,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1215,6 +1247,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1235,6 +1268,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1255,6 +1289,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1275,6 +1310,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -1295,6 +1331,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2648,6 +2685,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2661,6 +2699,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2674,6 +2713,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2687,6 +2727,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2700,6 +2741,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2713,6 +2755,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2726,6 +2769,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2739,6 +2783,7 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2752,6 +2797,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2765,6 +2811,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2778,6 +2825,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2791,6 +2839,7 @@
"cpu": [
"loong64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2804,6 +2853,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2817,6 +2867,7 @@
"cpu": [
"ppc64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2830,6 +2881,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2843,6 +2895,7 @@
"cpu": [
"riscv64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2856,6 +2909,7 @@
"cpu": [
"s390x"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2869,6 +2923,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2882,6 +2937,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2895,6 +2951,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2908,6 +2965,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2921,6 +2979,7 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2934,6 +2993,7 @@
"cpu": [
"ia32"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2947,6 +3007,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -2972,263 +3033,6 @@
"integrity": "sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==",
"license": "MIT"
},
- "node_modules/@tailwindcss/node": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.2.4.tgz",
- "integrity": "sha512-Ai7+yQPxz3ddrDQzFfBKdHEVBg0w3Zl83jnjuwxnZOsnH9pGn93QHQtpU0p/8rYWxvbFZHneni6p1BSLK4DkGA==",
- "license": "MIT",
- "dependencies": {
- "@jridgewell/remapping": "^2.3.5",
- "enhanced-resolve": "^5.19.0",
- "jiti": "^2.6.1",
- "lightningcss": "1.32.0",
- "magic-string": "^0.30.21",
- "source-map-js": "^1.2.1",
- "tailwindcss": "4.2.4"
- }
- },
- "node_modules/@tailwindcss/oxide": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.2.4.tgz",
- "integrity": "sha512-9El/iI069DKDSXwTvB9J4BwdO5JhRrOweGaK25taBAvBXyXqJAX+Jqdvs8r8gKpsI/1m0LeJLyQYTf/WLrBT1Q==",
- "license": "MIT",
- "engines": {
- "node": ">= 20"
- },
- "optionalDependencies": {
- "@tailwindcss/oxide-android-arm64": "4.2.4",
- "@tailwindcss/oxide-darwin-arm64": "4.2.4",
- "@tailwindcss/oxide-darwin-x64": "4.2.4",
- "@tailwindcss/oxide-freebsd-x64": "4.2.4",
- "@tailwindcss/oxide-linux-arm-gnueabihf": "4.2.4",
- "@tailwindcss/oxide-linux-arm64-gnu": "4.2.4",
- "@tailwindcss/oxide-linux-arm64-musl": "4.2.4",
- "@tailwindcss/oxide-linux-x64-gnu": "4.2.4",
- "@tailwindcss/oxide-linux-x64-musl": "4.2.4",
- "@tailwindcss/oxide-wasm32-wasi": "4.2.4",
- "@tailwindcss/oxide-win32-arm64-msvc": "4.2.4",
- "@tailwindcss/oxide-win32-x64-msvc": "4.2.4"
- }
- },
- "node_modules/@tailwindcss/oxide-android-arm64": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.2.4.tgz",
- "integrity": "sha512-e7MOr1SAn9U8KlZzPi1ZXGZHeC5anY36qjNwmZv9pOJ8E4Q6jmD1vyEHkQFmNOIN7twGPEMXRHmitN4zCMN03g==",
- "cpu": [
- "arm64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "android"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-darwin-arm64": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.2.4.tgz",
- "integrity": "sha512-tSC/Kbqpz/5/o/C2sG7QvOxAKqyd10bq+ypZNf+9Fi2TvbVbv1zNpcEptcsU7DPROaSbVgUXmrzKhurFvo5eDg==",
- "cpu": [
- "arm64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-darwin-x64": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.2.4.tgz",
- "integrity": "sha512-yPyUXn3yO/ufR6+Kzv0t4fCg2qNr90jxXc5QqBpjlPNd0NqyDXcmQb/6weunH/MEDXW5dhyEi+agTDiqa3WsGg==",
- "cpu": [
- "x64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-freebsd-x64": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.2.4.tgz",
- "integrity": "sha512-BoMIB4vMQtZsXdGLVc2z+P9DbETkiopogfWZKbWwM8b/1Vinbs4YcUwo+kM/KeLkX3Ygrf4/PsRndKaYhS8Eiw==",
- "cpu": [
- "x64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "freebsd"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.2.4.tgz",
- "integrity": "sha512-7pIHBLTHYRAlS7V22JNuTh33yLH4VElwKtB3bwchK/UaKUPpQ0lPQiOWcbm4V3WP2I6fNIJ23vABIvoy2izdwA==",
- "cpu": [
- "arm"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm64-gnu": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.2.4.tgz",
- "integrity": "sha512-+E4wxJ0ZGOzSH325reXTWB48l42i93kQqMvDyz5gqfRzRZ7faNhnmvlV4EPGJU3QJM/3Ab5jhJ5pCRUsKn6OQw==",
- "cpu": [
- "arm64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-arm64-musl": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.2.4.tgz",
- "integrity": "sha512-bBADEGAbo4ASnppIziaQJelekCxdMaxisrk+fB7Thit72IBnALp9K6ffA2G4ruj90G9XRS2VQ6q2bCKbfFV82g==",
- "cpu": [
- "arm64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-x64-gnu": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.2.4.tgz",
- "integrity": "sha512-7Mx25E4WTfnht0TVRTyC00j3i0M+EeFe7wguMDTlX4mRxafznw0CA8WJkFjWYH5BlgELd1kSjuU2JiPnNZbJDA==",
- "cpu": [
- "x64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-linux-x64-musl": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.2.4.tgz",
- "integrity": "sha512-2wwJRF7nyhOR0hhHoChc04xngV3iS+akccHTGtz965FwF0up4b2lOdo6kI1EbDaEXKgvcrFBYcYQQ/rrnWFVfA==",
- "cpu": [
- "x64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "linux"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-wasm32-wasi": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.2.4.tgz",
- "integrity": "sha512-FQsqApeor8Fo6gUEklzmaa9994orJZZDBAlQpK2Mq+DslRKFJeD6AjHpBQ0kZFQohVr8o85PPh8eOy86VlSCmw==",
- "bundleDependencies": [
- "@napi-rs/wasm-runtime",
- "@emnapi/core",
- "@emnapi/runtime",
- "@tybys/wasm-util",
- "@emnapi/wasi-threads",
- "tslib"
- ],
- "cpu": [
- "wasm32"
- ],
- "license": "MIT",
- "optional": true,
- "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"
- },
- "engines": {
- "node": ">=14.0.0"
- }
- },
- "node_modules/@tailwindcss/oxide-win32-arm64-msvc": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.2.4.tgz",
- "integrity": "sha512-L9BXqxC4ToVgwMFqj3pmZRqyHEztulpUJzCxUtLjobMCzTPsGt1Fa9enKbOpY2iIyVtaHNeNvAK8ERP/64sqGQ==",
- "cpu": [
- "arm64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/oxide-win32-x64-msvc": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.2.4.tgz",
- "integrity": "sha512-ESlKG0EpVJQwRjXDDa9rLvhEAh0mhP1sF7sap9dNZT0yyl9SAG6T7gdP09EH0vIv0UNTlo6jPWyujD6559fZvw==",
- "cpu": [
- "x64"
- ],
- "license": "MIT",
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 20"
- }
- },
- "node_modules/@tailwindcss/vite": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.2.4.tgz",
- "integrity": "sha512-pCvohwOCspk3ZFn6eJzrrX3g4n2JY73H6MmYC87XfGPyTty4YsCjYTMArRZm/zOI8dIt3+EcrLHAFPe5A4bgtw==",
- "license": "MIT",
- "dependencies": {
- "@tailwindcss/node": "4.2.4",
- "@tailwindcss/oxide": "4.2.4",
- "tailwindcss": "4.2.4"
- },
- "peerDependencies": {
- "vite": "^5.2.0 || ^6 || ^7 || ^8"
- }
- },
"node_modules/@types/babel__core": {
"version": "7.20.5",
"resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",
@@ -3375,6 +3179,7 @@
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",
"integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",
+ "dev": true,
"license": "MIT"
},
"node_modules/@types/json-schema": {
@@ -3892,7 +3697,7 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",
"integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",
- "devOptional": true,
+ "dev": true,
"license": "MIT",
"dependencies": {
"readdirp": "^4.0.1"
@@ -4313,7 +4118,9 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "dev": true,
"license": "Apache-2.0",
+ "optional": true,
"engines": {
"node": ">=8"
}
@@ -4391,19 +4198,6 @@
"node": ">=10.0.0"
}
},
- "node_modules/enhanced-resolve": {
- "version": "5.21.0",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.0.tgz",
- "integrity": "sha512-otxSQPw4lkOZWkHpB3zaEQs6gWYEsmX4xQF68ElXC/TWvGxGMSGOvoNbaLXm6/cS/fSfHtsEdw90y20PCd+sCA==",
- "license": "MIT",
- "dependencies": {
- "graceful-fs": "^4.2.4",
- "tapable": "^2.3.3"
- },
- "engines": {
- "node": ">=10.13.0"
- }
- },
"node_modules/es-abstract": {
"version": "1.24.1",
"resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.24.1.tgz",
@@ -4585,6 +4379,7 @@
"version": "0.21.5",
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",
"integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
+ "dev": true,
"hasInstallScript": true,
"license": "MIT",
"bin": {
@@ -4959,6 +4754,7 @@
"version": "2.3.3",
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
"integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
"hasInstallScript": true,
"license": "MIT",
"optional": true,
@@ -5152,12 +4948,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/graceful-fs": {
- "version": "4.2.11",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
- "license": "ISC"
- },
"node_modules/has-bigints": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.1.0.tgz",
@@ -5266,7 +5056,7 @@
"version": "5.1.5",
"resolved": "https://registry.npmjs.org/immutable/-/immutable-5.1.5.tgz",
"integrity": "sha512-t7xcm2siw+hlUM68I+UEOK+z84RzmN59as9DZ7P1l0994DKUWV7UXBMQZVxaoMSRQ+PBZbHCOoBt7a2wxOMt+A==",
- "devOptional": true,
+ "dev": true,
"license": "MIT"
},
"node_modules/import-fresh": {
@@ -5459,7 +5249,7 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
- "devOptional": true,
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">=0.10.0"
@@ -5505,7 +5295,7 @@
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
- "devOptional": true,
+ "dev": true,
"license": "MIT",
"dependencies": {
"is-extglob": "^2.1.1"
@@ -5738,7 +5528,10 @@
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",
"integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
+ "dev": true,
"license": "MIT",
+ "optional": true,
+ "peer": true,
"bin": {
"jiti": "lib/jiti-cli.mjs"
}
@@ -5853,7 +5646,10 @@
"version": "1.32.0",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",
"integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",
+ "dev": true,
"license": "MPL-2.0",
+ "optional": true,
+ "peer": true,
"dependencies": {
"detect-libc": "^2.0.3"
},
@@ -5885,11 +5681,13 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"android"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -5905,11 +5703,13 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -5925,11 +5725,13 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -5945,11 +5747,13 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"freebsd"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -5965,11 +5769,13 @@
"cpu": [
"arm"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -5985,11 +5791,13 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6005,11 +5813,13 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6025,11 +5835,13 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6045,11 +5857,13 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"linux"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6065,11 +5879,13 @@
"cpu": [
"arm64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6085,11 +5901,13 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MPL-2.0",
"optional": true,
"os": [
"win32"
],
+ "peer": true,
"engines": {
"node": ">= 12.0.0"
},
@@ -6158,15 +5976,6 @@
"react": "^16.5.1 || ^17.0.0 || ^18.0.0"
}
},
- "node_modules/magic-string": {
- "version": "0.30.21",
- "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",
- "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",
- "license": "MIT",
- "dependencies": {
- "@jridgewell/sourcemap-codec": "^1.5.5"
- }
- },
"node_modules/math-intrinsics": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -6200,6 +6009,7 @@
"version": "3.3.11",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",
"integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
+ "dev": true,
"funding": [
{
"type": "github",
@@ -6225,6 +6035,7 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.1.tgz",
"integrity": "sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==",
+ "dev": true,
"license": "MIT",
"optional": true
},
@@ -6454,12 +6265,14 @@
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
"integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "dev": true,
"license": "ISC"
},
"node_modules/picomatch": {
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",
"integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",
+ "dev": true,
"license": "MIT",
"optional": true,
"engines": {
@@ -6483,6 +6296,7 @@
"version": "8.5.6",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",
"integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",
+ "dev": true,
"funding": [
{
"type": "opencollective",
@@ -6724,7 +6538,7 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
"integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",
- "devOptional": true,
+ "dev": true,
"license": "MIT",
"engines": {
"node": ">= 14.18.0"
@@ -6848,6 +6662,7 @@
"version": "4.55.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-4.55.1.tgz",
"integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"@types/estree": "1.0.8"
@@ -6895,6 +6710,7 @@
"cpu": [
"x64"
],
+ "dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -6960,7 +6776,7 @@
"version": "1.98.0",
"resolved": "https://registry.npmjs.org/sass/-/sass-1.98.0.tgz",
"integrity": "sha512-+4N/u9dZ4PrgzGgPlKnaaRQx64RO0JBKs9sDhQ2pLgN6JQZ25uPQZKQYaBJU48Kd5BxgXoJ4e09Dq7nMcOUW3A==",
- "devOptional": true,
+ "dev": true,
"license": "MIT",
"dependencies": {
"chokidar": "^4.0.0",
@@ -7186,6 +7002,7 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",
"integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
+ "dev": true,
"license": "BSD-3-Clause",
"engines": {
"node": ">=0.10.0"
@@ -7342,44 +7159,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/tailwind-merge": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.5.0.tgz",
- "integrity": "sha512-I8K9wewnVDkL1NTGoqWmVEIlUcB9gFriAEkXkfCjX5ib8ezGxtR3xD7iZIxrfArjEsH7F1CHD4RFUtxefdqV/A==",
- "license": "MIT",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/dcastil"
- }
- },
- "node_modules/tailwindcss": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.2.4.tgz",
- "integrity": "sha512-HhKppgO81FQof5m6TEnuBWCZGgfRAWbaeOaGT00KOy/Pf/j6oUihdvBpA7ltCeAvZpFhW3j0PTclkxsd4IXYDA==",
- "license": "MIT"
- },
- "node_modules/tailwindcss-animate": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/tailwindcss-animate/-/tailwindcss-animate-1.0.7.tgz",
- "integrity": "sha512-bl6mpH3T7I3UFxuvDEXLxy/VuFxBk5bbzplh7tXI68mwMokNYd1t9qPBHlnyTwfa4JGC4zP516I1hYYtQ/vspA==",
- "license": "MIT",
- "peerDependencies": {
- "tailwindcss": ">=3.0.0 || insiders"
- }
- },
- "node_modules/tapable": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz",
- "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==",
- "license": "MIT",
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/webpack"
- }
- },
"node_modules/tiny-invariant": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz",
@@ -7621,6 +7400,7 @@
"version": "5.4.21",
"resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",
"integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",
+ "dev": true,
"license": "MIT",
"dependencies": {
"esbuild": "^0.21.3",
diff --git a/frontend/package.json b/frontend/package.json
index 4038bf54..29cd483f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -29,7 +29,6 @@
"@radix-ui/react-switch": "^1.2.6",
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-tooltip": "^1.2.8",
- "@tailwindcss/vite": "^4.2.4",
"@xterm/addon-fit": "^0.10.0",
"@xterm/addon-web-links": "^0.11.0",
"@xterm/xterm": "^5.5.0",
@@ -44,10 +43,7 @@
"react-router-dom": "^6.22.3",
"recharts": "^2.12.3",
"socket.io-client": "^4.7.2",
- "sonner": "^2.0.7",
- "tailwind-merge": "^3.5.0",
- "tailwindcss": "^4.2.4",
- "tailwindcss-animate": "^1.0.7"
+ "sonner": "^2.0.7"
},
"devDependencies": {
"@types/react": "^18.3.3",
diff --git a/frontend/src/components/ConfirmDialog.jsx b/frontend/src/components/ConfirmDialog.jsx
index ddbd9c00..8956cc83 100644
--- a/frontend/src/components/ConfirmDialog.jsx
+++ b/frontend/src/components/ConfirmDialog.jsx
@@ -12,11 +12,9 @@ import {
} from '@/components/ui/alert-dialog';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';
-import { cn } from '@/lib/utils';
+// Styling lives in styles/components/_ui.scss (.sk-confirm*).
const iconMap = { danger: AlertTriangle, warning: AlertCircle, info: Info };
-const iconColor = { danger: 'text-destructive', warning: 'text-yellow-400', info: 'text-blue-400' };
-const iconBg = { danger: 'bg-destructive/10', warning: 'bg-yellow-500/10', info: 'bg-blue-500/10' };
export function ConfirmDialog({
isOpen,
@@ -38,32 +36,23 @@ export function ConfirmDialog({
const Icon = iconMap[variant] || AlertTriangle;
const isConfirmDisabled = requireConfirmation && inputValue !== requireConfirmation;
- return (
- <AlertDialog open={isOpen} onOpenChange={(v) => !v && onCancel()}>
- <AlertDialogContent className="sm:max-w-xl">
- <AlertDialogHeader className="items-center text-center sm:text-center">
- <div className="flex flex-col items-center gap-3">
- <div
- className={cn(
- 'flex size-12 shrink-0 items-center justify-center rounded-full border',
- iconBg[variant] || iconBg.danger,
- iconColor[variant] || 'text-destructive',
- variant === 'danger' && 'border-destructive/20',
- variant === 'warning' && 'border-yellow-500/20',
- variant === 'info' && 'border-blue-500/20'
- )}
- >
+ return (
+ <AlertDialog open={isOpen} onOpenChange={(v) => !v && onCancel()}>
+ <AlertDialogContent className="sk-confirm">
+ <AlertDialogHeader>
+ <div className="sk-confirm__head">
+ <div className={`sk-confirm__icon sk-confirm__icon--${variant}`}>
<Icon size={24} />
</div>
- <div className="min-w-0">
+ <div className="sk-confirm__body">
<AlertDialogTitle>{title}</AlertDialogTitle>
- {message && <AlertDialogDescription className="mt-1.5">{message}</AlertDialogDescription>}
- {details && <p className="text-sm text-muted-foreground mt-1.5">{details}</p>}
+ {message && <AlertDialogDescription>{message}</AlertDialogDescription>}
+ {details && <p className="sk-confirm__details">{details}</p>}
</div>
</div>
{requireConfirmation && (
- <div className="space-y-2 mt-2 w-full text-left">
- <Label className="text-muted-foreground">
+ <div className="sk-confirm__confirm-field">
+ <Label>
Type <strong className="text-foreground">{requireConfirmation}</strong> to confirm:
</Label>
<Input
@@ -76,12 +65,12 @@ export function ConfirmDialog({
</div>
)}
</AlertDialogHeader>
- <AlertDialogFooter className="sm:justify-center">
+ <AlertDialogFooter className="sk-confirm__footer">
<AlertDialogCancel onClick={onCancel}>{cancelText}</AlertDialogCancel>
<AlertDialogAction
onClick={onConfirm}
disabled={isConfirmDisabled}
- className={cn(variant !== 'danger' && 'bg-primary hover:bg-primary/90')}
+ variant={variant === 'danger' ? 'destructive' : 'primary'}
>
{confirmText}
</AlertDialogAction>
diff --git a/frontend/src/components/Modal.jsx b/frontend/src/components/Modal.jsx
index d8bf74ea..4ea69d6d 100644
--- a/frontend/src/components/Modal.jsx
+++ b/frontend/src/components/Modal.jsx
@@ -1,21 +1,9 @@
-import {
- Dialog,
- DialogContent,
- DialogHeader,
- DialogTitle,
- DialogFooter,
-} from '@/components/ui/dialog';
+import { Dialog, DialogContent, DialogTitle } from '@/components/ui/dialog';
import { cn } from '@/lib/utils';
-// Size → Tailwind max-width on >=sm screens. Mobile is always nearly full-width.
-const SIZE_CLASS = {
- sm: 'sm:max-w-sm',
- md: 'sm:max-w-lg',
- lg: 'sm:max-w-2xl',
- xl: 'sm:max-w-4xl',
- '2xl': 'sm:max-w-6xl',
-};
-
+// Generic modal built on the Radix Dialog primitive. SCSS owns all geometry
+// (styles/components/_ui.scss → .sk-modal*). `size` picks a max-width on
+// >=sm screens; mobile is always near full-width.
export default function Modal({
open,
onClose,
@@ -25,30 +13,18 @@ export default function Modal({
className = '',
size = 'md',
}) {
- const sizeClass = SIZE_CLASS[size] || SIZE_CLASS.md;
-
return (
<Dialog open={open} onOpenChange={(v) => !v && onClose()}>
- <DialogContent
- className={cn(
- 'max-h-[90vh] overflow-hidden p-0 flex flex-col gap-0',
- sizeClass,
- className
- )}
- >
+ <DialogContent className={cn('sk-modal', `sk-modal--${size}`, className)}>
{title && (
- <DialogHeader className="px-6 py-4 pr-12 border-b border-border space-y-0">
+ <div className="sk-modal__header">
<DialogTitle>{title}</DialogTitle>
- </DialogHeader>
+ </div>
)}
- <div className="flex-1 overflow-y-auto px-6 py-4">{children}</div>
+ <div className="sk-modal__body">{children}</div>
- {footer && (
- <DialogFooter className="px-6 py-3 border-t border-border bg-card sm:justify-end">
- {footer}
- </DialogFooter>
- )}
+ {footer && <div className="sk-modal__footer">{footer}</div>}
</DialogContent>
</Dialog>
);
diff --git a/frontend/src/components/ui/alert-dialog.jsx b/frontend/src/components/ui/alert-dialog.jsx
index 5c047402..38fedf7f 100644
--- a/frontend/src/components/ui/alert-dialog.jsx
+++ b/frontend/src/components/ui/alert-dialog.jsx
@@ -10,12 +10,7 @@ const AlertDialogPortal = AlertDialogPrimitive.Portal;
const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
<AlertDialogPrimitive.Overlay
ref={ref}
- className={cn(
- 'ui-dialog-overlay',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- className
- )}
+ className={cn('ui-dialog-overlay', className)}
{...props}
/>
));
@@ -26,13 +21,7 @@ const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (
<AlertDialogOverlay />
<AlertDialogPrimitive.Content
ref={ref}
- className={cn(
- 'ui-dialog-content',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- className
- )}
+ className={cn('ui-dialog-content', className)}
{...props}
/>
</AlertDialogPortal>
@@ -67,10 +56,10 @@ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) =
));
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
-const AlertDialogAction = React.forwardRef(({ className, ...props }, ref) => (
+const AlertDialogAction = React.forwardRef(({ className, variant = 'destructive', ...props }, ref) => (
<AlertDialogPrimitive.Action
ref={ref}
- className={cn(buttonVariants({ variant: 'destructive' }), className)}
+ className={cn(buttonVariants({ variant }), className)}
{...props}
/>
));
diff --git a/frontend/src/components/ui/command.jsx b/frontend/src/components/ui/command.jsx
index cf72f7f1..8a2283f4 100644
--- a/frontend/src/components/ui/command.jsx
+++ b/frontend/src/components/ui/command.jsx
@@ -4,25 +4,18 @@ import { Search } from 'lucide-react';
import { cn } from '@/lib/utils';
import { Dialog, DialogContent } from '@/components/ui/dialog';
+// Styling lives in styles/components/_ui.scss (.ui-command-*).
+
const Command = React.forwardRef(({ className, ...props }, ref) => (
- <CommandPrimitive
- ref={ref}
- className={cn(
- 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',
- className
- )}
- {...props}
- />
+ <CommandPrimitive ref={ref} className={cn('ui-command', className)} {...props} />
));
Command.displayName = CommandPrimitive.displayName;
function CommandDialog({ children, ...props }) {
return (
<Dialog {...props}>
- <DialogContent className="overflow-hidden p-0 shadow-lg">
- <Command className="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5">
- {children}
- </Command>
+ <DialogContent className="ui-command-dialog">
+ <Command>{children}</Command>
</DialogContent>
</Dialog>
);
@@ -30,16 +23,11 @@ function CommandDialog({ children, ...props }) {
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (
/* eslint-disable-next-line react/no-unknown-property */
- <div className="flex items-center border-b border-border px-3" cmdk-input-wrapper="">
- <Search className="mr-2 size-4 shrink-0 opacity-50" />
+ <div className="ui-command-input-wrapper" cmdk-input-wrapper="">
+ <Search className="ui-command-input-icon" />
<CommandPrimitive.Input
ref={ref}
- className={cn(
- 'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none',
- 'placeholder:text-muted-foreground text-foreground',
- 'disabled:cursor-not-allowed disabled:opacity-50',
- className
- )}
+ className={cn('ui-command-input', className)}
{...props}
/>
</div>
@@ -47,62 +35,32 @@ const CommandInput = React.forwardRef(({ className, ...props }, ref) => (
CommandInput.displayName = CommandPrimitive.Input.displayName;
const CommandList = React.forwardRef(({ className, ...props }, ref) => (
- <CommandPrimitive.List
- ref={ref}
- className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}
- {...props}
- />
+ <CommandPrimitive.List ref={ref} className={cn('ui-command-list', className)} {...props} />
));
CommandList.displayName = CommandPrimitive.List.displayName;
const CommandEmpty = React.forwardRef((props, ref) => (
- <CommandPrimitive.Empty
- ref={ref}
- className="py-6 text-center text-sm text-muted-foreground"
- {...props}
- />
+ <CommandPrimitive.Empty ref={ref} className="ui-command-empty" {...props} />
));
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (
- <CommandPrimitive.Group
- ref={ref}
- className={cn(
- 'overflow-hidden p-1 text-foreground',
- '[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',
- className
- )}
- {...props}
- />
+ <CommandPrimitive.Group ref={ref} className={cn('ui-command-group', className)} {...props} />
));
CommandGroup.displayName = CommandPrimitive.Group.displayName;
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (
- <CommandPrimitive.Separator
- ref={ref}
- className={cn('-mx-1 h-px bg-border', className)}
- {...props}
- />
+ <CommandPrimitive.Separator ref={ref} className={cn('ui-command-separator', className)} {...props} />
));
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (
- <CommandPrimitive.Item
- ref={ref}
- className={cn(
- 'relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none',
- 'data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50',
- 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground',
- '[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
- className
- )}
- {...props}
- />
+ <CommandPrimitive.Item ref={ref} className={cn('ui-command-item', className)} {...props} />
));
CommandItem.displayName = CommandPrimitive.Item.displayName;
const CommandShortcut = ({ className, ...props }) => (
- <span className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)} {...props} />
+ <span className={cn('ui-command-shortcut', className)} {...props} />
);
CommandShortcut.displayName = 'CommandShortcut';
diff --git a/frontend/src/components/ui/dialog.jsx b/frontend/src/components/ui/dialog.jsx
index f5e3fb1d..b607c632 100644
--- a/frontend/src/components/ui/dialog.jsx
+++ b/frontend/src/components/ui/dialog.jsx
@@ -11,12 +11,7 @@ const DialogClose = DialogPrimitive.Close;
const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (
<DialogPrimitive.Overlay
ref={ref}
- className={cn(
- 'ui-dialog-overlay',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- className
- )}
+ className={cn('ui-dialog-overlay', className)}
{...props}
/>
));
@@ -27,13 +22,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
<DialogOverlay />
<DialogPrimitive.Content
ref={ref}
- className={cn(
- 'ui-dialog-content',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- className
- )}
+ className={cn('ui-dialog-content', className)}
{...props}
>
{children}
diff --git a/frontend/src/components/ui/dropdown-menu.jsx b/frontend/src/components/ui/dropdown-menu.jsx
index d580a59a..81b7a766 100644
--- a/frontend/src/components/ui/dropdown-menu.jsx
+++ b/frontend/src/components/ui/dropdown-menu.jsx
@@ -3,6 +3,9 @@ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
import { Check, ChevronRight, Circle } from 'lucide-react';
import { cn } from '@/lib/utils';
+// Styling lives in styles/components/_ui.scss (.ui-dropdown-*). JSX only
+// composes classes; geometry/color/animation are SCSS-owned.
+
const DropdownMenu = DropdownMenuPrimitive.Root;
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
@@ -13,16 +16,11 @@ const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (
<DropdownMenuPrimitive.SubTrigger
ref={ref}
- className={cn(
- 'flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none',
- 'focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',
- inset && 'pl-8',
- className
- )}
+ className={cn('ui-dropdown-sub-trigger', inset && 'ui-dropdown-inset', className)}
{...props}
>
{children}
- <ChevronRight className="ml-auto size-4" />
+ <ChevronRight className="ui-dropdown-chevron" />
</DropdownMenuPrimitive.SubTrigger>
));
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
@@ -30,15 +28,7 @@ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayNam
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.SubContent
ref={ref}
- className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-lg',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',
- 'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
- className
- )}
+ className={cn('ui-dropdown-sub-content', className)}
{...props}
/>
));
@@ -49,15 +39,7 @@ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...pr
<DropdownMenuPrimitive.Content
ref={ref}
sideOffset={sideOffset}
- className={cn(
- 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',
- 'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
- className
- )}
+ className={cn('ui-dropdown-content', className)}
{...props}
/>
</DropdownMenuPrimitive.Portal>
@@ -67,14 +49,7 @@ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Item
ref={ref}
- className={cn(
- 'relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors',
- 'focus:bg-accent focus:text-accent-foreground',
- 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
- '[&>svg]:size-4 [&>svg]:shrink-0',
- inset && 'pl-8',
- className
- )}
+ className={cn('ui-dropdown-item', inset && 'ui-dropdown-inset', className)}
{...props}
/>
));
@@ -83,18 +58,13 @@ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (
<DropdownMenuPrimitive.CheckboxItem
ref={ref}
- className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors',
- 'focus:bg-accent focus:text-accent-foreground',
- 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
- className
- )}
+ className={cn('ui-dropdown-checkbox-item', className)}
checked={checked}
{...props}
>
- <span className="absolute left-2 flex size-3.5 items-center justify-center">
+ <span className="ui-dropdown-item-indicator">
<DropdownMenuPrimitive.ItemIndicator>
- <Check className="size-4" />
+ <Check size={16} />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -105,17 +75,12 @@ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displa
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (
<DropdownMenuPrimitive.RadioItem
ref={ref}
- className={cn(
- 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors',
- 'focus:bg-accent focus:text-accent-foreground',
- 'data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
- className
- )}
+ className={cn('ui-dropdown-radio-item', className)}
{...props}
>
- <span className="absolute left-2 flex size-3.5 items-center justify-center">
+ <span className="ui-dropdown-item-indicator">
<DropdownMenuPrimitive.ItemIndicator>
- <Circle className="size-2 fill-current" />
+ <Circle size={8} className="fill-current" />
</DropdownMenuPrimitive.ItemIndicator>
</span>
{children}
@@ -126,7 +91,7 @@ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (
<DropdownMenuPrimitive.Label
ref={ref}
- className={cn('px-2 py-1.5 text-xs font-semibold text-muted-foreground', inset && 'pl-8', className)}
+ className={cn('ui-dropdown-label', inset && 'ui-dropdown-label--inset', className)}
{...props}
/>
));
@@ -135,14 +100,14 @@ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (
<DropdownMenuPrimitive.Separator
ref={ref}
- className={cn('-mx-1 my-1 h-px bg-border', className)}
+ className={cn('ui-dropdown-separator', className)}
{...props}
/>
));
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
const DropdownMenuShortcut = ({ className, ...props }) => (
- <span className={cn('ml-auto text-xs tracking-widest opacity-60', className)} {...props} />
+ <span className={cn('ui-dropdown-shortcut', className)} {...props} />
);
DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
diff --git a/frontend/src/components/ui/popover.jsx b/frontend/src/components/ui/popover.jsx
index a4db7168..f500f3e2 100644
--- a/frontend/src/components/ui/popover.jsx
+++ b/frontend/src/components/ui/popover.jsx
@@ -12,15 +12,7 @@ const PopoverContent = React.forwardRef(({ className, align = 'center', sideOffs
ref={ref}
align={align}
sideOffset={sideOffset}
- className={cn(
- 'z-50 w-72 rounded-md border border-border bg-popover p-4 text-popover-foreground shadow-md outline-none',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- 'data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2',
- 'data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
- className
- )}
+ className={cn('ui-popover-panel', className)}
{...props}
/>
</PopoverPrimitive.Portal>
diff --git a/frontend/src/components/ui/select.jsx b/frontend/src/components/ui/select.jsx
index 3c681858..948fcb7e 100644
--- a/frontend/src/components/ui/select.jsx
+++ b/frontend/src/components/ui/select.jsx
@@ -47,13 +47,7 @@ const SelectContent = React.forwardRef(({ className, children, position = 'poppe
<SelectPrimitive.Portal>
<SelectPrimitive.Content
ref={ref}
- className={cn(
- 'ui-select-content',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- 'data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95',
- className
- )}
+ className={cn('ui-select-content', className)}
position={position}
{...props}
>
diff --git a/frontend/src/components/ui/sheet.jsx b/frontend/src/components/ui/sheet.jsx
index ecf812a5..7c8a1748 100644
--- a/frontend/src/components/ui/sheet.jsx
+++ b/frontend/src/components/ui/sheet.jsx
@@ -11,36 +11,18 @@ const SheetPortal = SheetPrimitive.Portal;
const SheetOverlay = React.forwardRef(({ className, ...props }, ref) => (
<SheetPrimitive.Overlay
ref={ref}
- className={cn(
- 'ui-sheet-overlay',
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- 'data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
- className
- )}
+ className={cn('ui-sheet-overlay', className)}
{...props}
/>
));
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
-const SHEET_SIDE_ANIM = {
- top: 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
- bottom: 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
- left: 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left',
- right: 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right',
-};
-
const SheetContent = React.forwardRef(({ side = 'right', className, children, ...props }, ref) => (
<SheetPortal>
<SheetOverlay />
<SheetPrimitive.Content
ref={ref}
- className={cn(
- 'ui-sheet-content',
- `ui-sheet-content--${side}`,
- 'data-[state=open]:animate-in data-[state=closed]:animate-out',
- SHEET_SIDE_ANIM[side],
- className
- )}
+ className={cn('ui-sheet-content', `ui-sheet-content--${side}`, className)}
{...props}
>
<SheetPrimitive.Close className="ui-sheet-close">
diff --git a/frontend/src/components/ui/skeleton.jsx b/frontend/src/components/ui/skeleton.jsx
index 9aeb7328..3e7693d5 100644
--- a/frontend/src/components/ui/skeleton.jsx
+++ b/frontend/src/components/ui/skeleton.jsx
@@ -1,12 +1,7 @@
import { cn } from '@/lib/utils';
function Skeleton({ className, ...props }) {
- return (
- <div
- className={cn('animate-pulse rounded-md bg-secondary', className)}
- {...props}
- />
- );
+ return <div className={cn('ui-skeleton', className)} {...props} />;
}
export { Skeleton };
diff --git a/frontend/src/globals.css b/frontend/src/globals.css
deleted file mode 100644
index 0de7e22f..00000000
--- a/frontend/src/globals.css
+++ /dev/null
@@ -1,57 +0,0 @@
-@import "tailwindcss";
-@plugin "tailwindcss-animate";
-
-/*
- * Token bridge: maps Tailwind's semantic color names to ServerKit's existing
- * CSS custom properties. The `inline` keyword keeps these as runtime CSS vars
- * so the dark/light theme toggle in _theme-variables.scss continues to work.
- */
-@theme inline {
- --color-background: var(--bg-body);
- --color-foreground: var(--text-primary);
-
- --color-card: var(--bg-card);
- --color-card-foreground: var(--text-primary);
-
- --color-popover: var(--bg-elevated);
- --color-popover-foreground: var(--text-primary);
-
- --color-primary: var(--accent-primary);
- --color-primary-foreground: #ffffff;
-
- --color-secondary: var(--bg-secondary);
- --color-secondary-foreground: var(--text-primary);
-
- --color-muted: var(--bg-secondary);
- --color-muted-foreground: var(--text-tertiary);
-
- --color-accent: var(--bg-hover);
- --color-accent-foreground: var(--text-primary);
-
- --color-destructive: #ef4444;
- --color-destructive-foreground: #ffffff;
-
- --color-border: var(--border-default);
- --color-input: var(--border-default);
- --color-ring: var(--accent-primary);
- --color-ring-offset: var(--bg-body);
-
- --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
- --font-mono: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
-
- --radius: 0.5rem;
-
- /* Accordion animations */
- --animate-accordion-down: accordion-down 0.2s ease-out;
- --animate-accordion-up: accordion-up 0.2s ease-out;
-}
-
-@keyframes accordion-down {
- from { height: 0; }
- to { height: var(--radix-accordion-content-height); }
-}
-
-@keyframes accordion-up {
- from { height: var(--radix-accordion-content-height); }
- to { height: 0; }
-}
diff --git a/frontend/src/lib/utils.js b/frontend/src/lib/utils.js
index 0ae73e11..e1bd4e60 100644
--- a/frontend/src/lib/utils.js
+++ b/frontend/src/lib/utils.js
@@ -1,6 +1,8 @@
import { clsx } from 'clsx';
-import { twMerge } from 'tailwind-merge';
+// Join class names. With Tailwind removed there are no conflicting utility
+// classes to dedupe, so plain clsx (truthy-aware join) is sufficient — we no
+// longer depend on tailwind-merge.
export function cn(...inputs) {
- return twMerge(clsx(inputs));
+ return clsx(inputs);
}
diff --git a/frontend/src/main.jsx b/frontend/src/main.jsx
index 257d5201..96a58803 100644
--- a/frontend/src/main.jsx
+++ b/frontend/src/main.jsx
@@ -1,7 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.jsx'
-import './globals.css'
import './styles/main.scss'
ReactDOM.createRoot(document.getElementById('root')).render(
diff --git a/frontend/src/styles/base/_utilities.scss b/frontend/src/styles/base/_utilities.scss
index 1bcd7fc5..76b4bd59 100644
--- a/frontend/src/styles/base/_utilities.scss
+++ b/frontend/src/styles/base/_utilities.scss
@@ -192,3 +192,158 @@
0%, 100% { opacity: 1; }
50% { opacity: .5; }
}
+
+// ============================================
+// TAILWIND-REMOVAL COMPATIBILITY LAYER
+// ============================================
+// Added when Tailwind was removed from the build
+// (docs/plans/FRONTEND_UX_TAILWIND_CLEANUP_PLAN.md, Phase 2). These re-create,
+// theme-aware, the remaining Tailwind utility classes still referenced in
+// pages/components so dropping the Tailwind dependency causes no visual
+// regression. New code should prefer semantic SCSS classes over these.
+
+// ---- Positioning ----
+.fixed { position: fixed; }
+.relative { position: relative; }
+.absolute { position: absolute; }
+.sticky { position: sticky; }
+.inset-0 { inset: 0; }
+.z-10 { z-index: 10; }
+.z-20 { z-index: 20; }
+.z-30 { z-index: 30; }
+.z-40 { z-index: 40; }
+.z-50 { z-index: 50; }
+
+// ---- Grid spans + sm breakpoint cols ----
+.col-span-2 { grid-column: span 2 / span 2; }
+.col-span-full { grid-column: 1 / -1; }
+
+@media (min-width: $breakpoint-sm) {
+ .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
+ .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
+ .sm\:col-span-2 { grid-column: span 2 / span 2; }
+ .sm\:max-w-2xl { max-width: 42rem; }
+ .sm\:justify-center { justify-content: center; }
+ .sm\:justify-end { justify-content: flex-end; }
+ .sm\:text-center { text-align: center; }
+}
+@media (min-width: $breakpoint-lg) {
+ .lg\:col-span-2 { grid-column: span 2 / span 2; }
+}
+
+// ---- Sizing ----
+.size-2 { width: 0.5rem; height: 0.5rem; }
+.size-3 { width: 0.75rem; height: 0.75rem; }
+.size-4 { width: 1rem; height: 1rem; }
+.size-5 { width: 1.25rem; height: 1.25rem; }
+.size-12 { width: 3rem; height: 3rem; }
+.size-1\.5 { width: 0.375rem; height: 0.375rem; }
+.size-3\.5 { width: 0.875rem; height: 0.875rem; }
+.h-3 { height: 0.75rem; }
+.h-3\.5 { height: 0.875rem; }
+.h-10 { height: 2.5rem; }
+.h-12 { height: 3rem; }
+.h-px { height: 1px; }
+.w-10 { width: 2.5rem; }
+.w-12 { width: 3rem; }
+.w-20 { width: 5rem; }
+.w-24 { width: 6rem; }
+.w-48 { width: 12rem; }
+.w-72 { width: 18rem; }
+.max-w-2xl { max-width: 42rem; }
+.min-w-\[8rem\] { min-width: 8rem; }
+.max-h-48 { max-height: 12rem; }
+.max-h-\[80vh\] { max-height: 80vh; }
+.max-h-\[90vh\] { max-height: 90vh; }
+.max-h-\[300px\] { max-height: 300px; }
+
+// ---- Spacing ----
+.pt-4 { padding-top: 1rem; }
+.pb-2 { padding-bottom: 0.5rem; }
+.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
+.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
+.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
+.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
+.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
+.gap-1\.5 { gap: 0.375rem; }
+.space-y-1 > * + * { margin-top: 0.25rem; }
+.space-y-1\.5 > * + * { margin-top: 0.375rem; }
+.mt-1\.5 { margin-top: 0.375rem; }
+.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
+.-mx-1 { margin-left: -0.25rem; margin-right: -0.25rem; }
+
+// ---- Typography (semantic color names mapped to theme tokens) ----
+.text-2xl { font-size: 1.5rem; }
+.text-foreground { color: $text-primary; }
+.text-muted-foreground { color: $text-tertiary; }
+.text-accent-foreground { color: $text-primary; }
+.text-popover-foreground { color: $text-primary; }
+.text-secondary { color: $text-secondary; }
+.text-tertiary { color: $text-tertiary; }
+.text-destructive { color: $danger; }
+.text-yellow-400 { color: $warning; }
+.text-blue-400 { color: $accent-primary; }
+.tracking-widest { letter-spacing: 0.1em; }
+.fill-current { fill: currentColor; }
+
+// ---- Backgrounds (semantic names mapped to theme tokens) ----
+.bg-card { background-color: $bg-card; }
+.bg-popover { background-color: $bg-elevated; }
+.bg-accent { background-color: $bg-hover; }
+.bg-secondary { background-color: $bg-secondary; }
+.bg-muted { background-color: $bg-secondary; }
+.bg-primary { background-color: $accent-primary; }
+.bg-border { background-color: $border-default; }
+.bg-transparent { background-color: transparent; }
+.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
+.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
+
+// ---- Borders & radius ----
+.border-t { border-top: 1px solid $border-subtle; }
+.border-border { border-color: $border-default; }
+.rounded-sm { border-radius: $radius-sm; }
+.rounded-md { border-radius: $radius-md; }
+.rounded-full { border-radius: $radius-full; }
+
+// ---- Flex / interaction / state ----
+.shrink-0 { flex-shrink: 0; }
+.select-none { user-select: none; }
+.pointer-events-none { pointer-events: none; }
+.cursor-default { cursor: default; }
+.outline-none { outline: none; }
+.transition-colors {
+ transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
+}
+.opacity-50 { opacity: 0.5; }
+.opacity-60 { opacity: 0.6; }
+
+// ---- Hover variants still referenced outside the rewritten primitives ----
+.hover\:text-destructive:hover { color: $danger; }
+
+// ---- Additional utilities found in the final completeness audit ----
+.h-8 { height: 2rem; }
+.w-8 { width: 2rem; }
+.w-32 { width: 8rem; }
+.w-56 { width: 14rem; }
+.w-2\/5 { width: 40%; }
+.w-3\/5 { width: 60%; }
+.m-4 { margin: 1rem; }
+.mb-1\.5 { margin-bottom: 0.375rem; }
+.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
+.rounded-xl { border-radius: $radius-xl; }
+.overflow-x-auto { overflow-x: auto; }
+.whitespace-pre-wrap { white-space: pre-wrap; }
+.max-w-\[200px\] { max-width: 200px; }
+
+// ---- Accessibility: visually-hidden (Tailwind `sr-only`) ----
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ white-space: nowrap;
+ border-width: 0;
+}
diff --git a/frontend/src/styles/components/_ui.scss b/frontend/src/styles/components/_ui.scss
index 53a63eb0..f0892064 100644
--- a/frontend/src/styles/components/_ui.scss
+++ b/frontend/src/styles/components/_ui.scss
@@ -609,3 +609,422 @@
color: $text-primary;
outline: none;
}
+
+// Default popover surface for `components/ui/popover.jsx` (roomy content
+// container — replicates the original shadcn `w-72 p-4` look).
+.ui-popover-panel {
+ z-index: $z-tooltip;
+ width: 18rem;
+ padding: $space-4;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ box-shadow: $shadow-md;
+ color: $text-primary;
+ outline: none;
+}
+
+// --------------------------------------------
+// DROPDOWN MENU (Radix)
+// --------------------------------------------
+.ui-dropdown-content,
+.ui-dropdown-sub-content {
+ z-index: $z-tooltip;
+ min-width: 8rem;
+ overflow: hidden;
+ padding: $space-1;
+ background: $bg-elevated;
+ border: 1px solid $border-default;
+ border-radius: $radius-md;
+ box-shadow: $shadow-md;
+ color: $text-primary;
+}
+
+.ui-dropdown-sub-content {
+ box-shadow: $shadow-lg;
+}
+
+.ui-dropdown-item,
+.ui-dropdown-sub-trigger,
+.ui-dropdown-checkbox-item,
+.ui-dropdown-radio-item {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-1 + 2 $space-2; // 6px 8px
+ border-radius: $radius-sm;
+ font-size: $font-size-sm + 1;
+ color: $text-primary;
+ cursor: default;
+ user-select: none;
+ outline: none;
+ @include transition(background-color);
+
+ &:focus,
+ &[data-highlighted],
+ &[data-state='open'] {
+ background: $bg-hover;
+ color: $text-primary;
+ }
+
+ &[data-disabled] {
+ opacity: 0.5;
+ pointer-events: none;
+ }
+
+ svg {
+ width: 16px;
+ height: 16px;
+ flex-shrink: 0;
+ pointer-events: none;
+ }
+}
+
+.ui-dropdown-checkbox-item,
+.ui-dropdown-radio-item {
+ padding-left: $space-8;
+ padding-right: $space-2;
+}
+
+.ui-dropdown-item-indicator {
+ position: absolute;
+ left: $space-2;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 14px;
+ height: 14px;
+}
+
+.ui-dropdown-sub-trigger svg.ui-dropdown-chevron {
+ margin-left: auto;
+}
+
+.ui-dropdown-label {
+ padding: $space-1 + 2 $space-2;
+ font-size: $font-size-xs + 1;
+ font-weight: $font-weight-semibold;
+ color: $text-tertiary;
+
+ &--inset { padding-left: $space-8; }
+}
+
+.ui-dropdown-separator {
+ height: 1px;
+ margin: $space-1 -#{$space-1};
+ background: $border-subtle;
+}
+
+.ui-dropdown-shortcut {
+ margin-left: auto;
+ font-size: $font-size-xs + 1;
+ letter-spacing: 0.1em;
+ opacity: 0.6;
+}
+
+.ui-dropdown-inset { padding-left: $space-8; }
+
+// --------------------------------------------
+// COMMAND PALETTE (cmdk)
+// --------------------------------------------
+.ui-command {
+ display: flex;
+ flex-direction: column;
+ width: 100%;
+ height: 100%;
+ overflow: hidden;
+ border-radius: $radius-md;
+ background: $bg-elevated;
+ color: $text-primary;
+}
+
+.ui-command-input-wrapper {
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: 0 $space-3;
+ border-bottom: 1px solid $border-default;
+}
+
+.ui-command-input-icon {
+ width: 16px;
+ height: 16px;
+ flex-shrink: 0;
+ color: $text-tertiary;
+ opacity: 0.7;
+}
+
+.ui-command-input {
+ flex: 1;
+ width: 100%;
+ height: 44px;
+ padding: $space-3 0;
+ background: transparent;
+ border: none;
+ outline: none;
+ color: $text-primary;
+ font-family: inherit;
+ font-size: $font-size-base;
+
+ &::placeholder { color: $text-tertiary; }
+
+ &:disabled {
+ cursor: not-allowed;
+ opacity: 0.5;
+ }
+}
+
+.ui-command-list {
+ max-height: 320px;
+ overflow-y: auto;
+ overflow-x: hidden;
+ @include custom-scrollbar();
+}
+
+.ui-command-empty {
+ padding: $space-6 0;
+ text-align: center;
+ font-size: $font-size-sm + 1;
+ color: $text-tertiary;
+}
+
+.ui-command-group {
+ overflow: hidden;
+ padding: $space-1;
+ color: $text-primary;
+
+ [cmdk-group-heading] {
+ padding: $space-1 + 2 $space-2;
+ font-size: $font-size-xs + 1;
+ font-weight: $font-weight-medium;
+ color: $text-tertiary;
+ }
+}
+
+.ui-command-separator {
+ height: 1px;
+ margin: 0 -#{$space-1};
+ background: $border-subtle;
+}
+
+.ui-command-item {
+ position: relative;
+ display: flex;
+ align-items: center;
+ gap: $space-2;
+ padding: $space-1 + 2 $space-2;
+ border-radius: $radius-sm;
+ font-size: $font-size-sm + 1;
+ color: $text-primary;
+ cursor: default;
+ user-select: none;
+ outline: none;
+ @include transition(background-color);
+
+ &[data-selected='true'] {
+ background: $bg-hover;
+ color: $text-primary;
+ }
+
+ &[data-disabled='true'] {
+ opacity: 0.5;
+ pointer-events: none;
+ }
+
+ svg {
+ width: 16px;
+ height: 16px;
+ flex-shrink: 0;
+ pointer-events: none;
+ }
+}
+
+.ui-command-shortcut {
+ margin-left: auto;
+ font-size: $font-size-xs + 1;
+ letter-spacing: 0.1em;
+ color: $text-tertiary;
+}
+
+// Command palette mounted inside a Dialog: drop the dialog's default padding
+// and gap so the command surface fills it edge-to-edge.
+.ui-command-dialog {
+ padding: 0;
+ gap: 0;
+ overflow: hidden;
+}
+
+// --------------------------------------------
+// SKELETON
+// --------------------------------------------
+.ui-skeleton {
+ border-radius: $radius-md;
+ background: $bg-secondary;
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
+}
+
+// --------------------------------------------
+// MODAL (components/Modal.jsx — built on the Dialog primitive)
+// --------------------------------------------
+.sk-modal {
+ padding: 0;
+ gap: 0;
+ overflow: hidden;
+ max-width: 32rem; // = md default
+ max-height: 90vh;
+
+ &--sm { max-width: 24rem; }
+ &--md { max-width: 32rem; }
+ &--lg { max-width: 42rem; }
+ &--xl { max-width: 56rem; }
+ &--2xl { max-width: 72rem; }
+}
+
+.sk-modal__header {
+ display: flex;
+ flex-direction: column;
+ gap: $space-1 + 2;
+ padding: $space-4 $space-10 $space-4 $space-6; // right pad clears the close btn
+ border-bottom: 1px solid $border-subtle;
+}
+
+.sk-modal__body {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ padding: $space-4 $space-6;
+ @include custom-scrollbar();
+}
+
+.sk-modal__footer {
+ display: flex;
+ align-items: center;
+ justify-content: flex-end;
+ gap: $space-2;
+ padding: $space-3 $space-6;
+ border-top: 1px solid $border-subtle;
+ background: $bg-card;
+}
+
+// --------------------------------------------
+// CONFIRM DIALOG (components/ConfirmDialog.jsx — built on AlertDialog)
+// --------------------------------------------
+.sk-confirm {
+ text-align: center;
+}
+
+.sk-confirm__head {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: $space-3;
+}
+
+.sk-confirm__icon {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ flex-shrink: 0;
+ width: 48px;
+ height: 48px;
+ border-radius: 50%;
+ border: 1px solid transparent;
+
+ &--danger {
+ color: $danger;
+ background: fade($danger, 10%);
+ border-color: fade($danger, 20%);
+ }
+ &--warning {
+ color: $warning;
+ background: fade($warning, 10%);
+ border-color: fade($warning, 20%);
+ }
+ &--info {
+ color: $accent-primary;
+ background: fade($accent-primary-raw, 10%);
+ border-color: fade($accent-primary-raw, 20%);
+ }
+}
+
+.sk-confirm__body {
+ min-width: 0;
+}
+
+.sk-confirm__details {
+ margin: $space-1 + 2 0 0;
+ font-size: $font-size-sm + 1;
+ color: $text-tertiary;
+}
+
+.sk-confirm__confirm-field {
+ display: flex;
+ flex-direction: column;
+ gap: $space-2;
+ width: 100%;
+ margin-top: $space-2;
+ text-align: left;
+}
+
+.sk-confirm__footer {
+ flex-direction: row;
+ justify-content: center;
+}
+
+// --------------------------------------------
+// ENTER / EXIT ANIMATIONS (replaces tailwindcss-animate utilities)
+// Radix sets data-state="open|closed" on overlays/content; these keyframes
+// give the same fade/zoom/slide polish without Tailwind.
+// --------------------------------------------
+@keyframes ui-overlay-in { from { opacity: 0; } to { opacity: 1; } }
+@keyframes ui-overlay-out { from { opacity: 1; } to { opacity: 0; } }
+@keyframes ui-modal-in {
+ from { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
+ to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
+}
+@keyframes ui-modal-out {
+ from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
+ to { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
+}
+@keyframes ui-pop-in { from { opacity: 0; } to { opacity: 1; } }
+@keyframes ui-pop-out { from { opacity: 1; } to { opacity: 0; } }
+@keyframes ui-slide-in-right { from { transform: translateX(100%); } to { transform: translateX(0); } }
+@keyframes ui-slide-out-right { from { transform: translateX(0); } to { transform: translateX(100%); } }
+@keyframes ui-slide-in-left { from { transform: translateX(-100%); } to { transform: translateX(0); } }
+@keyframes ui-slide-out-left { from { transform: translateX(0); } to { transform: translateX(-100%); } }
+@keyframes ui-slide-in-top { from { transform: translateY(-100%); } to { transform: translateY(0); } }
+@keyframes ui-slide-out-top { from { transform: translateY(0); } to { transform: translateY(-100%); } }
+@keyframes ui-slide-in-bottom { from { transform: translateY(100%); } to { transform: translateY(0); } }
+@keyframes ui-slide-out-bottom { from { transform: translateY(0); } to { transform: translateY(100%); } }
+
+.ui-dialog-overlay,
+.ui-sheet-overlay {
+ &[data-state='open'] { animation: ui-overlay-in 150ms ease; }
+ &[data-state='closed'] { animation: ui-overlay-out 130ms ease; }
+}
+
+.ui-dialog-content {
+ &[data-state='open'] { animation: ui-modal-in 160ms ease; }
+ &[data-state='closed'] { animation: ui-modal-out 140ms ease; }
+}
+
+.ui-popover-content,
+.ui-popover-panel,
+.ui-select-content,
+.ui-dropdown-content,
+.ui-dropdown-sub-content {
+ &[data-state='open'] { animation: ui-pop-in 120ms ease; }
+ &[data-state='closed'] { animation: ui-pop-out 100ms ease; }
+}
+
+.ui-sheet-content {
+ &--right[data-state='open'] { animation: ui-slide-in-right 200ms ease; }
+ &--right[data-state='closed'] { animation: ui-slide-out-right 180ms ease; }
+ &--left[data-state='open'] { animation: ui-slide-in-left 200ms ease; }
+ &--left[data-state='closed'] { animation: ui-slide-out-left 180ms ease; }
+ &--top[data-state='open'] { animation: ui-slide-in-top 200ms ease; }
+ &--top[data-state='closed'] { animation: ui-slide-out-top 180ms ease; }
+ &--bottom[data-state='open'] { animation: ui-slide-in-bottom 200ms ease; }
+ &--bottom[data-state='closed'] { animation: ui-slide-out-bottom 180ms ease; }
+}
diff --git a/frontend/src/styles/pages/_wordpress-pipeline.scss b/frontend/src/styles/pages/_wordpress-pipeline.scss
index 98c2541d..bca0da3b 100644
--- a/frontend/src/styles/pages/_wordpress-pipeline.scss
+++ b/frontend/src/styles/pages/_wordpress-pipeline.scss
@@ -885,7 +885,7 @@
input[type="radio"] {
margin-top: 4px;
- accent-color: var(--color-primary, #3b82f6);
+ accent-color: var(--accent-primary, #3b82f6);
}
}
@@ -1544,7 +1544,7 @@
.pipeline-card-checkbox {
margin-right: $space-1;
- accent-color: var(--color-primary, #3b82f6);
+ accent-color: var(--accent-primary, #3b82f6);
}
.pipeline-card-menu-divider {
@@ -1702,7 +1702,7 @@
padding: 0;
&.active {
- background: var(--color-primary, #3b82f6);
+ background: var(--accent-primary, #3b82f6);
}
}
diff --git a/frontend/vite.config.js b/frontend/vite.config.js
index 83a7c714..51ab0e50 100644
--- a/frontend/vite.config.js
+++ b/frontend/vite.config.js
@@ -1,7 +1,6 @@
/* global process */
import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react'
-import tailwindcss from '@tailwindcss/vite'
import { fileURLToPath } from 'url'
export default defineConfig(({ mode }) => {
@@ -18,7 +17,7 @@ export default defineConfig(({ mode }) => {
}
return {
- plugins: [react(), tailwindcss()],
+ plugins: [react()],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),