Measured entry
8bitcn-switch
A client-side, pixel-styled toggle built on Radix UI's Switch primitive. It ships as a shadcn registry component with Tailwind utility classes, imports the project's cn helper, and includes an optional retro stylesheet that loads Press Start 2P from Google Fonts.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 34.2 KB (99.6 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 40.87s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ui/8bit/switch.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
Use it for deliberate pixel-art interfaces, but not as-is: the sample mounts in the configured harness yet exposes an unnamed switch. It needs a shadcn-style setup, and consumers must provide an accessible label.
Use it if
- You need a compact toggle that fits an intentionally retro or pixel-art interface.
- Your app already has shadcn-style aliases, theme tokens, Tailwind utilities, and the Radix switch primitive.
- You can provide a visible label or accessible name at each usage site.
Skip it if
- You need a drop-in switch for a project without shadcn-style utilities and path aliases.
- You require an accessible default that supplies its own discernible name.
- Your design system calls for a conventional rounded switch rather than a hard-edged pixel frame.
- Your policy forbids externally hosted fonts and you intend to use the included retro stylesheet unchanged.
Install
| Declared dependencies | none declared |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
Add the Radix UI switch package, Tailwind CSS with the expected theme tokens and state variants, an @ alias resolving to a lib/utils cn helper, and import the retro stylesheet if you want its font utility. Provide a visible label or aria-label wherever the switch is used.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/TheOrcDev/8bitcn-uiAlternatives
Other published entries for the switch pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-toggleneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-toggleclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- ruixen-scrub-datetimeunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.2KB
- Bare
- pass
- Prov
- NO
- shadcn-switchunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 34.4KB
- Bare
- pass
- Prov
- NO
- hextaui-switchminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.5KB
- Bare
- pass
- Prov
- NO
- hextaui-tabsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 39.0KB
- Bare
- pass
- Prov
- NO