victor HF Staff commited on
Commit
a6c31c7
Β·
1 Parent(s): 037aac2

Add design spec for minimal panel headers redesign

Browse files

Replace colored gradient headers with clean neutral styling
across all three editor panels.

docs/superpowers/specs/2026-04-16-minimal-panel-headers-design.md ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Minimal Panel Headers Redesign
2
+
3
+ ## Goal
4
+
5
+ Replace the colored gradient panel headers with clean, neutral styling. The green/orange/purple gradients feel dated and heavy. The new headers should be minimal, modern, and blend into the editor panels.
6
+
7
+ ## Scope
8
+
9
+ **In scope:**
10
+ - Panel title bar backgrounds (all 3 panels)
11
+ - Merging the two header rows (title + toolbar) into one
12
+ - Simplifying the `btn` utility gradient to flat styling
13
+
14
+ **Out of scope:**
15
+ - Layout structure (three-panel drag-to-resize stays)
16
+ - CodeMirror editor theming
17
+ - Functionality (template switching, model changing, examples, format toggle)
18
+ - Alert/tooltip/search styling
19
+
20
+ ## Changes
21
+
22
+ ### 1. ChatTemplateViewer.svelte β€” title bar
23
+
24
+ **Current (line 36):**
25
+ ```
26
+ bg-linear-to-r from-green-200 to-white dark:from-green-700 dark:to-green-900
27
+ text-lg
28
+ ```
29
+
30
+ **New:**
31
+ ```
32
+ bg-white dark:bg-gray-900
33
+ text-sm font-semibold
34
+ ```
35
+
36
+ The title row and toolbar row merge into a single row:
37
+ - Left side: "Chat template for {modelId}" (text-sm font-semibold) + "change model" button
38
+ - Right side: Reset, Copy, Formatted, LineWrap buttons (same small ghost buttons, just moved up)
39
+ - Template tabs (for multi-template models) remain as a second row only when needed
40
+
41
+ ### 2. JsonEditor.svelte β€” title bar
42
+
43
+ **Current (line 196):**
44
+ ```
45
+ bg-linear-to-r from-orange-200 to-white dark:from-orange-700 dark:to-orange-900
46
+ text-lg
47
+ ```
48
+
49
+ **New:**
50
+ ```
51
+ bg-white dark:bg-gray-900
52
+ text-sm font-semibold
53
+ ```
54
+
55
+ Single merged row:
56
+ - Left side: "JSON Input" label
57
+ - Right side: example dropdown + Reset, Copy, LineWrap buttons
58
+
59
+ ### 3. OutputViewer.svelte β€” title bar
60
+
61
+ **Current (line 16):**
62
+ ```
63
+ bg-linear-to-r from-purple-200 to-white dark:from-purple-700 dark:to-purple-900
64
+ text-lg
65
+ ```
66
+
67
+ **New:**
68
+ ```
69
+ bg-white dark:bg-gray-900
70
+ text-sm font-semibold
71
+ ```
72
+
73
+ Single merged row:
74
+ - Left side: "Rendered Output" label
75
+ - Right side: Copy, LineWrap buttons
76
+
77
+ Error alert remains as a separate row below (unchanged).
78
+
79
+ ### 4. app.css β€” btn utility
80
+
81
+ **Current:**
82
+ ```css
83
+ @utility btn {
84
+ @apply btn-base;
85
+ @apply border-gray-200 bg-linear-to-b from-white to-gray-100 text-gray-800
86
+ hover:shadow-inner
87
+ dark:border-gray-800 dark:from-gray-800 dark:to-gray-950
88
+ dark:text-gray-200 dark:hover:from-gray-700 dark:hover:to-gray-950;
89
+ }
90
+ ```
91
+
92
+ **New:**
93
+ ```css
94
+ @utility btn {
95
+ @apply btn-base;
96
+ @apply border-gray-200 bg-gray-100 text-gray-800
97
+ hover:bg-gray-200
98
+ dark:border-gray-700 dark:bg-gray-800
99
+ dark:text-gray-200 dark:hover:bg-gray-700;
100
+ }
101
+ ```
102
+
103
+ Same treatment for `btn-widget`: replace gradient with flat background.
104
+
105
+ ### 5. Border treatment
106
+
107
+ All panel title bars use `border-b border-gray-200 dark:border-gray-700` (softer than the current `border-gray-500`). This provides enough visual separation without being heavy.
108
+
109
+ ## Light + Dark Mode
110
+
111
+ Both modes receive identical treatment: neutral flat backgrounds, 1px subtle border as the only separator. No color accent per panel β€” the panels are distinguished by their labels and content.
112
+
113
+ ## Files Modified
114
+
115
+ 1. `src/lib/ChatTemplateViewer/ChatTemplateViewer.svelte` β€” header markup
116
+ 2. `src/lib/JsonEditor/JsonEditor.svelte` β€” header markup
117
+ 3. `src/lib/OutputViewer/OutputViewer.svelte` β€” header markup
118
+ 4. `src/app.css` β€” `btn` and `btn-widget` utilities