Measured entry

8bitcn-alert

switchskeuomorphism

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.

Specimen
Harness screenshot of 8bitcn-alert at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-alert at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-alert at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for 8bitcn-alert
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal30.0 KB (95.4 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for 8bitcn-alert
Declared dependenciesclsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-15

Alternatives

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.