Repository navigation
Per-project themes: let the open project set the accent or theme #37815
McCalebTheSecond
started this conversation in
Ideas
Replies: 1 comment
|
+1. My use case is the same: several projects open at once, with a different theme per project to tell them apart at a glance. The small ask alone would cover it. One note on the attribute: project ids aren't visible in the UI, so users writing theme CSS by hand would have to look them up. Exposing the project name too ( |
0 replies
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.
Problem
Themes are global: one active theme per server and desktop app. I keep threads open in several projects at once (internal automation, client work, personal), and once I'm in a thread every project looks the same. The project icon color only shows in the sidebar at 16px, so it's easy to lose track of which project I'm typing into.
Proposal
Let a project override the theme while one of its threads is open.
t3_project_updateand the CLI so agents can set it too.What I tried
Theme CSS can almost do this today with
:has()on the open thread's sidebar row ([data-sidebar-row][aria-current]plusdata-sidebar-parent). Those aren't documented stable selectors, though, anddata-sidebar-parentcan hold a shelf key likeshelf:workinginstead of the project, so it breaks.If the full feature is out of scope, a smaller ask: put the active project on a stable attribute, for example
data-active-project="<projectId>"on the root or workspace element, so theme CSS can key off it.Related
All reactions