Measured entry
8bitcn-badge
A pixel-styled wrapper around the shadcn Badge that adds blocky side bars and optional retro typography. It ships as a TSX component plus a retro stylesheet, and expects the shadcn Badge, the cn helper, class-variance-authority, Tailwind utilities, theme color tokens, and a Google-hosted font.



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 | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.3 KB (96.7 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 963ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-5a78655dcc58/src/cut/components/ui/8bit/badge.tsx".
Verdict
Treat this as a failed package in its current form: the build cannot resolve the base shadcn Badge import, and the bare build also lacks the cn utility. It needs a shadcn-style setup before it can compile. Teams unwilling to recreate those conventions should avoid it.
Use it if
- You already use shadcn components and want status labels that match an arcade or pixel-art interface.
- You can include the companion retro stylesheet and permit its external font request.
- You want badge colors to continue using your existing shadcn theme tokens and variants.
Skip it if
- You need a copy-paste component that builds without shadcn aliases and utilities.
- Your product forbids externally hosted fonts or needs fully self-contained styling.
- You need the badge to work before supplying the missing base Badge dependency.
- You want a neutral label that does not add decorative pixel bars.
Install
| Declared dependencies | radix-ui, clsx, tailwind-merge |
|---|---|
| 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 |
In a non-shadcn project, add a compatible base Badge at the expected alias, provide the cn utility and alias mapping, install class-variance-authority, configure Tailwind with the referenced theme colors, and load the included retro stylesheet. Self-host or replace the font if external font loading is not allowed.
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 badge pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-badgeneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- clay-badgeclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- ruixen-load-rippleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- kibo-listminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 42.4KB
- Bare
- pass
- Prov
- NO
- ruixen-blurred-stagger-textunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- pass
- Prov
- NO
- tripled-auto-revealing-heading-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.3KB
- Bare
- pass
- Prov
- NO