From d0aa7d7080d408742558f37e0ff4ee4651b7cc65 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Sun, 8 Feb 2026 06:23:48 -0800 Subject: [PATCH 1/9] feat: migrate to Tailwind v4 and ComfyUI theme token system MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add comfyui-theme.css with --pm-* design tokens mapped to ComfyUI CSS vars - Add theme-bridge.js for light/dark palette detection via ComfyUI API - Migrate Tailwind from v3 to v4 (@import, @source, @utility directives) - Remove tailwind.config.js (replaced by v4 CSS-based config) - Begin admin.html component redesign: hardcoded colors โ†’ --pm-* tokens, strip gradients, tighten spacing for ComfyUI-native look Work in progress โ€” Phase 2 (component redesign) partially complete. --- Makefile | 2 +- tailwind.config.js | 11 - web/admin.html | 1336 +++++++++++++++-------------------- web/css/comfyui-theme.css | 212 ++++++ web/js/theme-bridge.js | 38 + web/lib/tailwind/input.css | 64 +- web/lib/tailwind/styles.css | 3 +- 7 files changed, 872 insertions(+), 794 deletions(-) delete mode 100644 tailwind.config.js create mode 100644 web/css/comfyui-theme.css create mode 100644 web/js/theme-bridge.js diff --git a/Makefile b/Makefile index 657a310..f0dcef3 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TAILWIND_VERSION := 3.4.17 +TAILWIND_VERSION := 4.1.18 TAILWIND_CLI := ./tailwindcss UNAME_S := $(shell uname -s) UNAME_M := $(shell uname -m) diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index bb8b02d..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,11 +0,0 @@ -module.exports = { - content: ["./web/**/*.html", "./web/js/**/*.js"], - darkMode: 'class', - theme: { - extend: { - colors: { - gray: { 850: '#1f2937', 875: '#1a202c', 925: '#0f172a' } - } - } - }, -} diff --git a/web/admin.html b/web/admin.html index f05083f..84d5106 100644 --- a/web/admin.html +++ b/web/admin.html @@ -1,165 +1,29 @@ - + PromptManager - Admin Dashboard + + - - +
-
+
-
-
- ๐Ÿ” -
-
-

- PromptManager Admin Dashboard -

-

Manage and organize your AI prompts with powerful search and editing tools

-
+
+

+ PromptManager Admin +

-
@@ -169,51 +33,39 @@
-
+
-
-
+
+
-

Total Prompts

-

-

-
-
- ๐Ÿ“ +

Total Prompts

+

-

-
+
-

Categories

-

-

-
-
- ๐Ÿ“ +

Categories

+

-

-
-

Unique Tags

-

-

-
-
- ๐Ÿท๏ธ +

Unique Tags

+

-

-
+
-

Avg Rating

-

-

-
-
- โญ +

Avg Rating

+

-

@@ -222,32 +74,32 @@
-
-
+
+
-
-
+
+
- - + +
- -
- - + +
- - @@ -257,83 +109,83 @@
-
-
-
@@ -342,61 +194,60 @@
-
+
-
+
-
-
-

Recent Prompts

-
- - - per page + per page
- Loading... + Loading...
-
-

Loading prompts...

+
+

Loading prompts...

-