TanStackRouterDevtoolsPanel Is missing a css variables and appears broken
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.1k
- Forks
- 1.9k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 143
Description
Which project does this relate to?
Router
Describe the bug
The devtools panel is looking a little rough without --tsrd-font-size set to 16px.
Further more, I think the devtools should mirror the API of tanstack query's devtools panel which seems a lot more polished than the router one. (missing onClose, but button to dismiss is always visible.)
Your Example Website or App
https://tanstack.com/router/latest/docs/framework/react/examples/basic-devtools-panel
Steps to Reproduce the Bug or Issue
You can just copy this example.
https://tanstack.com/router/latest/docs/framework/react/examples/basic-devtools-panel
To see the correct styling:
- wrap the devtool in a div with a ref
- add the following code to the component:
const ref = useRef<HTMLDivElement>(null)
useEffect(() => {
ref.current?.style.setProperty('--tsrd-font-size', '16px')
});
Expected behavior
I expect to see the same styling while using the panel as I would if I was using the "simple devtool"
Screenshots or Videos
No response
Platform
- Router / Start Version: [e.g. 1.121.0]
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Browser Version: [e.g. 91.1]
- Bundler: [e.g. vite]
- Bundler Version: [e.g. 7.0.0]
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked basic-devtools-panel example and reproduce the styling without manually setting --tsrd-font-size. Compare the panel’s public behavior with TanStack Query’s devtools panel, focusing on the missing onClose behavior and always-visible dismiss button. Done means the panel has the expected styling and matching dismissal controls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- developer-experience, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100