Repository navigation
Make the open thread easy to spot in the sidebar #19904
vladsavelyev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Follow-up to #19903, moved here as suggested.
The idea
Make the open thread's row in the sidebar easy to spot at a glance. Right now its highlight is so faint that finding the current thread usually means reading the titles.
Before and after
A mockup of sidebar rows painted with the exact token colors: today's stock values on the left, the theme from the workaround below on the right.
Light
Dark
Why it's hard to see today
The open row uses
bg-sidebar-row-active(rowSurfaceClassNameinapps/web/src/components/Sidebar.tsx). Apart from the title turningtext-foreground, nothing else marks it: the weight is the samefont-mediumas every other row. The tokens inapps/web/src/index.css([data-app-sidebar]) are:zinc-50(oklch 98.5%)#000white(oklch 100%)zinc-25(oklch 99.2%)white, same as the open rowSuggestions
getDefaultThemeColorsinapps/web/src/themePalette.ts), so even a 3-color tweak like the one below has to copy all 61 stock values for each mode. Falling back to stock T3 Code, or adding a way for a theme to build on an existing one, would shrink this workaround to a few lines.Workaround: a theme you can import
This is the stock T3 Code palette, light and dark, with only the three sidebar row colors changed:
#dbe2f5(accent-blue tint)#13244d(accent-blue tint)#f0f0f2#141414#e6e6e9#202022To use it, go to Settings → Appearance → Create theme → Import and paste the JSON. Every color is listed because a theme file's missing colors fall back to the T3 Chat palette, not stock T3 Code. Since it copies today's stock palette, it won't pick up later changes to the default theme.
t3-code-clear-sidebar.json
{ "version": 1, "id": "t3-code-clear-sidebar", "name": "T3 Code (clear sidebar)", "appearance": "light", "colors": { "searchMatchBackground": "#ffde8b", "searchMatchForeground": "#21180a", "searchMatchActiveBackground": "#eea52b", "searchMatchActiveForeground": "#21180a", "canvas": "#fcfcfc", "chrome": "#fcfcfc", "toolbar": "#fcfcfc", "toolbarForeground": "#27272a", "toolbarBorder": "#e4e4e7", "toolbarControl": "#ffffff", "toolbarControlForeground": "#27272a", "toolbarControlHover": "#f4f4f5", "surface": "#ffffff", "surfaceRaised": "#fcfcfc", "surfaceOverlay": "#ffffff", "text": "#27272a", "textMuted": "#71717b", "border": "#e4e4e7", "input": "#d4d4d8", "focus": "#1b4ed8", "accent": "#1b4ed8", "accentForeground": "#ffffff", "secondary": "#fafafa", "secondaryForeground": "#27272a", "muted": "#fafafa", "mutedForeground": "#71717b", "placeholder": "#71717b", "secondaryLabel": "#71717b", "iconMuted": "#71717b", "error": "#fb2c36", "errorForeground": "#c10007", "errorSurface": "#fcebec", "warning": "#fe9a00", "warningForeground": "#bb4d00", "warningSurface": "#fcf4e8", "update": "#1b4ed8", "updateForeground": "#1b4ed8", "updateSurface": "#e0e6f7", "accentSurface": "#f4f4f5", "accentSurfaceForeground": "#18181b", "messageSurface": "#f4f4f5", "messageForeground": "#27272a", "messageAction": "#1b4ed8", "messageActionForeground": "#ffffff", "messageActionHover": "#3160db", "codeBackground": "#ffffff", "codeForeground": "#27272a", "sidebar": "#fafafa", "sidebarForeground": "#27272a", "sidebarMutedForeground": "#71717b", "sidebarControlSurface": "#f4f4f5", "sidebarRowHover": "#f0f0f2", "sidebarRowActive": "#dbe2f5", "sidebarRowSelected": "#e6e6e9", "sidebarBorder": "#e4e4e7", "terminalBackground": "#fcfcfc", "terminalForeground": "#27272a", "terminalCursor": "#26384e", "terminalSelection": "#d0d6dd", "terminalScrollbar": "#d6d6d6", "terminalScrollbarHover": "#bdbdbd" }, "variants": { "dark": { "searchMatchBackground": "#8c6c1f", "searchMatchForeground": "#f5f5f5", "searchMatchActiveBackground": "#eea52b", "searchMatchActiveForeground": "#21180a", "canvas": "#0a0a0a", "chrome": "#0a0a0a", "toolbar": "#0a0a0a", "toolbarForeground": "#f5f5f5", "toolbarBorder": "#191919", "toolbarControl": "#111111", "toolbarControlForeground": "#f5f5f5", "toolbarControlHover": "#141414", "surface": "#111111", "surfaceRaised": "#111111", "surfaceOverlay": "#111111", "text": "#f5f5f5", "textMuted": "#818181", "border": "#191919", "input": "#1e1e1e", "focus": "#346bf1", "accent": "#346bf1", "accentForeground": "#ffffff", "secondary": "#111111", "secondaryForeground": "#f5f5f5", "muted": "#111111", "mutedForeground": "#818181", "placeholder": "#818181", "secondaryLabel": "#818181", "iconMuted": "#818181", "error": "#fb414a", "errorForeground": "#ff6467", "errorSurface": "#301214", "warning": "#fe9a00", "warningForeground": "#ffb900", "warningSurface": "#312108", "update": "#346bf1", "updateForeground": "#51a2ff", "updateSurface": "#121b34", "accentSurface": "#141414", "accentSurfaceForeground": "#f5f5f5", "messageSurface": "#141414", "messageForeground": "#f5f5f5", "messageAction": "#346bf1", "messageActionForeground": "#ffffff", "messageActionHover": "#3061d9", "codeBackground": "#111111", "codeForeground": "#f5f5f5", "sidebar": "#000000", "sidebarForeground": "#f1f3f7", "sidebarMutedForeground": "#a3a3a3", "sidebarControlSurface": "#0a0a0a", "sidebarRowHover": "#141414", "sidebarRowActive": "#13244d", "sidebarRowSelected": "#202022", "sidebarBorder": "#141414", "terminalBackground": "#0a0a0a", "terminalForeground": "#f5f5f5", "terminalCursor": "#b4cbff", "terminalSelection": "#343a47", "terminalScrollbar": "#222222", "terminalScrollbarHover": "#363636" } } }All reactions