Commit 979dba3
committed
Theme legacy panels to match CommandShell vocabulary
Agent prompt to reproduce:
`<ChannelsPanel>` (and the Slack/Telegram/Discord/WhatsApp sub-panels
it composes) was built for the legacy AdminShell and uses
`globals.css` classes (`.panel-card`, `.button.primary`, `.text-input`,
`.field-label`, `.eyebrow`, `.auth-chip`, `.pill`, `.lede`,
`.muted-copy`, `.panel-grid`) with chunkier 36px buttons, 12px card
radii, solid-green success buttons, and proportional input fonts —
visually inconsistent with the CommandShell aesthetic (Geist Mono
eyebrows, 32px buttons, 8px radius, hairline ghost buttons).
In `src/components/designs/command-shell.tsx`:
1. Wrap the channels view in a `<section className="cmd-channels">`.
2. In the existing `<Style>` block, append scoped overrides under
`.cmd-channels .panel-card`, `.button`, `.button.primary/.ghost
/.success/.danger`, `.field-label`, `.text-input`, `.auth-chip`,
`.pill`, `.eyebrow`, `.lede`, `.muted-copy`, `.panel-grid`,
`code`, and `a:not(.button)`. The overrides should:
- Card radius `var(--radius)` (8px), 1px hairline border, elevated
bg, 16px head margin with hairline divider
- Button height 32px, padding `0 14px`, 6px radius, `font-family:
inherit`
- Primary button = white-on-black (matches CommandShell)
- Ghost button = transparent + hairline border, hover swap to
`--background-hover`
- Success/danger buttons = ghost variants with semantic border/text
- Field label = Geist Mono 11px uppercase tracking 0.08em
- Text input = mono font, 12px, hairline border, dark bg
- Pill / auth-chip = capsule, mono 11px, hairline border, bg
`--background-hover`
- Code = inline mono with hairline border + bg
- `a` (non-button) = underlined with subtle decoration
Do not edit `globals.css` or any panel file — keep the overrides
scoped to `.cmd-channels` so the legacy AdminShell (still used by
tests) renders identically to before.
Verify `npx tsc --noEmit` and `lat check` pass.1 parent d557950 commit 979dba3
1 file changed
+140
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
816 | 816 | | |
817 | 817 | | |
818 | 818 | | |
819 | | - | |
| 819 | + | |
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
| |||
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
2028 | 2167 | | |
2029 | 2168 | | |
2030 | 2169 | | |
| |||
0 commit comments