SunUI
Founding$79 lifetime updates till Jan 11Claim a seat
ProShowcasePress

Theme Reveal

The new theme grows out of the theme switch while the old one stays on screen around it.

When to use it

  • A site or store dashboard with dark mode where the switch itself should be a moment people remember
  • Switching a campaign page between its day and night versions, like an early bird offer and a late-night deal
  • A product page or portfolio that shows the same screen in both light and dark

Watch out

  • The scoped version renders its children twice during the reveal; for heavy content (many images, video, iframes) use the page-level revealTheme
  • Inside children use shadcn tokens, not dark: variants, or an ancestor .dark leaks into the light copy; style per theme with the theme from the render prop
  • Attach refs and autofocus only in the live copy; the page-level mode draws the shape only (no rim or sparks) and switches instantly without View Transitions support

Let your agent add it

One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.

This is a Pro block

One license unlocks every Pro block, now and in the future.

One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.

See pricing

Install with your license

  1. 1. Add the SunUI Pro registry to components.json.
    components.json
    {
      "registries": {
        "@sunui-pro": {
          "url": "https://sunui.synvize.com/r/pro/{name}.json",
          "headers": {
            "Authorization": "Bearer ${SUNUI_LICENSE_KEY}"
          }
        }
      }
    }
  2. 2. Put your license key in .env.local.
    $ SUNUI_LICENSE_KEY=your-license-key
  3. 3. Install the block.
    $ npx shadcn@latest add @sunui-pro/theme-reveal
Theme Reveal, React Component | SunUI