npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ts-devtools-plugin-radix-themes

v0.1.1

Published

TanStack Devtools plugin for Radix UI Themes — customize your theme in real time from the devtools panel

Readme

ts-devtools-plugin-radix-themes

A TanStack Devtools plugin that lets you customize your Radix UI Themes in real time — directly from the devtools panel.

Change accent color, gray, radius, scaling, appearance and panel background without touching your code, and see the changes live in your app.

Note: TanStack Devtools is currently in alpha, so APIs may change.


Requirements

| Peer dependency | Version | | --------------------------------- | --------- | | react | ≥ 18 | | react-dom | ≥ 18 | | @radix-ui/themes | ≥ 3 | | @tanstack/devtools-event-client | ≥ 0.0.1 |


Installation

npm install ts-devtools-plugin-radix-themes
# or
pnpm add ts-devtools-plugin-radix-themes
# or
yarn add ts-devtools-plugin-radix-themes

You also need TanStack Devtools for your framework:

npm install @tanstack/react-devtools @tanstack/devtools-event-client

Usage

1. Create the plugin

import { createRadixThemePlugin } from 'ts-devtools-plugin-radix-themes'

const themePlugin = createRadixThemePlugin({
  defaultTheme: {
    accentColor: 'indigo',
    grayColor: 'slate',
    appearance: 'light',
    radius: 'medium',
    scaling: '100%',
    panelBackground: 'translucent',
  },
})

All defaultTheme options are optional.

2. Wrap your app with RadixThemeDevtoolsProvider

RadixThemeDevtoolsProvider wraps Radix's <Theme> internally and listens for changes from the devtools panel. Replace your existing <Theme> wrapper with it.

import { RadixThemeDevtoolsProvider } from 'ts-devtools-plugin-radix-themes'
import { TanStackDevtools } from '@tanstack/react-devtools'
import '@radix-ui/themes/styles.css'

export default function App() {
  return (
    <RadixThemeDevtoolsProvider plugin={themePlugin}>
      <MyApp />
      <TanStackDevtools plugins={[themePlugin]} />
    </RadixThemeDevtoolsProvider>
  )
}

Tip: TanStackDevtools only renders in development by default, so there's nothing extra to do for production.

That's it. Open the TanStack Devtools panel and go to the Radix Themes tab.


API

createRadixThemePlugin(options?)

Creates the plugin object to pass to <TanStackDevtools plugins={[...]} />.

| Option | Type | Description | | -------------- | ------------------ | ----------------------------------- | | defaultTheme | RadixThemeConfig | Initial theme values for the panel. |

Returns a plugin object with a .client property (the EventClient) if you need to listen to theme changes programmatically.


RadixThemeDevtoolsProvider

Wraps Radix's <Theme> and syncs it with the devtools panel.

| Prop | Type | Required | | ---------- | ----------------------------------------- | -------- | | plugin | Return type of createRadixThemePlugin() | ✅ | | children | React.ReactNode | ✅ |


RadixThemeConfig

All fields are optional and map 1:1 to Radix's <Theme> props:

type RadixThemeConfig = {
  accentColor?:    ThemeProps['accentColor']     // e.g. 'indigo', 'blue', 'mint'...
  grayColor?:      ThemeProps['grayColor']       // 'gray' | 'mauve' | 'slate' | ...
  appearance?:     ThemeProps['appearance']      // 'light' | 'dark'
  radius?:         ThemeProps['radius']          // 'none' | 'small' | 'medium' | 'large' | 'full'
  scaling?:        ThemeProps['scaling']         // '90%' | '95%' | '100%' | '105%' | '110%'
  panelBackground? ThemeProps['panelBackground'] // 'solid' | 'translucent'
}

License

MIT © Javier Pérez