Measured entry
8bitcn-alert
A pixel-styled wrapper around the shadcn Alert, AlertTitle, and AlertDescription primitives. It ships as registry source plus a retro font stylesheet, and relies on the shadcn alert component, the local cn helper, class-variance-authority, Tailwind theme classes, and an optional 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 | 30.0 KB (95.4 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 729ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-709d512feb3c/src/cut/components/ui/8bit/alert.tsx".
Verdict
The styling idea is usable, but the published registry item fails because its required shadcn alert module is absent from the harness. The bare copy also lacks the local cn utility, so it needs a shadcn-style setup before it can build. Avoid it if you expect a self-contained component.
Use it if
- Your product already uses shadcn alerts and you want a retro frame without changing alert semantics.
- You are comfortable importing the supplied retro stylesheet or using the normal font option.
- Your Tailwind theme defines the background, foreground, card, ring, muted, and destructive color tokens it references.
Skip it if
- You need a standalone alert that can be copied into a plain React project.
- Your project does not provide the expected shadcn alert module and cn utility.
- You cannot load the Google-hosted retro font and do not want to replace that stylesheet dependency.
- You need a verified build from the registry item as published.
Install
| Declared dependencies | 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 compatible Alert, AlertTitle, and AlertDescription primitives at the expected import path, provide the cn class-merging helper, install class-variance-authority, configure the referenced Tailwind theme tokens, and import or replace the retro font stylesheet.
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