BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/8bitcn/retro-mode-switcher

8-bit Retro Mode Switcher

8bitcn/retro-mode-switcher
FreeComponent

A retro-styled theme toggle component with pixel art sun and moon icons. Perfect for 8-bit themed applications that need a nostalgic theme switcher.

Install it

npx shadcn@latest add https://www.8bitcn.com/r/retro-mode-switcher.json

Source

components/ui/retro-mode-switcher.tsxwww.8bitcn.com/r/retro-mode-switcher.json
1"use client";
2
3import * as React from "react";
4
5import { useTheme } from "next-themes";
6
7import { Button } from "@/components/ui/8bit/button";
8import { cn } from "@/lib/utils";
9
10interface RetroModeSwitcherProps {
11 className?: string;
12}
13
14export function RetroModeSwitcher({ className }: RetroModeSwitcherProps) {
15 const { setTheme, resolvedTheme } = useTheme();
16
17 const toggleTheme = React.useCallback(() => {
18 setTheme(resolvedTheme === "dark" ? "light" : "dark");
19 }, [resolvedTheme, setTheme]);
20
21 return (
22 <Button
23 variant="ghost"
24 className="group/toggle h-8 w-8 px-0"
25 onClick={toggleTheme}
26 >
27 <svg
28 width="50"
29 height="50"
30 viewBox="0 0 256 256"
31 fill="currentColor"
32 xmlns="http://www.w3.org/2000/svg"
33 stroke="currentColor"
34 strokeWidth="0.25"
35 className={cn("size-8 hidden [html.dark_&]:block", className)}
36 aria-label="sun-dim"
37 >
38 <rect x="120" y="88" width="14" height="14" rx="1"></rect>
39 <rect x="104" y="88" width="14" height="14" rx="1"></rect>
40 <rect x="88" y="104" width="14" height="14" rx="1"></rect>
41 <rect x="88" y="120" width="14" height="14" rx="1"></rect>
42 <rect x="88" y="136" width="14" height="14" rx="1"></rect>
43 <rect x="136" y="88" width="14" height="14" rx="1"></rect>
44 <rect x="120" y="152" width="14" height="14" rx="1"></rect>
45 <rect x="104" y="152" width="14" height="14" rx="1"></rect>
46 <rect x="136" y="152" width="14" height="14" rx="1"></rect>
47 <rect x="152" y="104" width="14" height="14" rx="1"></rect>
48 <rect x="168" y="72" width="14" height="14" rx="1"></rect>
49 <rect x="168" y="168" width="14" height="14" rx="1"></rect>
50 <rect x="72" y="168" width="14" height="14" rx="1"></rect>
51 <rect x="72" y="72" width="14" height="14" rx="1"></rect>
52 <rect x="120" y="56" width="14" height="14" rx="1"></rect>
53 <rect x="56" y="120" width="14" height="14" rx="1"></rect>
54 <rect x="120" y="184" width="14" height="14" rx="1"></rect>
55 <rect x="184" y="120" width="14" height="14" rx="1"></rect>
56 <rect x="40" y="120" width="14" height="14" rx="1"></rect>
57 <rect x="120" y="40" width="14" height="14" rx="1"></rect>
58 <rect x="120" y="200" width="14" height="14" rx="1"></rect>
59 <rect x="184" y="184" width="14" height="14" rx="1"></rect>
60 <rect x="56" y="184" width="14" height="14" rx="1"></rect>
61// … truncated

What it pulls in

npm packages

  • next-themes

Other registry items

  • button

Files it writes

  • components/ui/retro-mode-switcher.tsx
  • components/ui/8bit/button.tsx
  • components/theme-provider.tsx
  • components/ui/8bit/styles/retro.css

Facts

Registry
8bitcn
Type
registry:component
Access
Free
Files written
4
Licence
the repository states none
In the index
at or before 2026-08-09
Last confirmed
yesterday

Go to the source

www.8bitcn.com TheOrcDev/8bitcn-ui on GitHub Raw registry item This item as JSON

More from 8bitcn

All 121 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
8-bit Accordionaccordion8bitcnComponentsFreeno deps · 2 files
8-bit Alertalert8bitcnComponentsFreeno deps · 2 files
8-bit Alert Dialogalert-dialog8bitcnComponentsFreeno deps · 2 files
8-bit Avataravatar8bitcnComponentsFreeno deps · 2 files
8-bit Badgebadge8bitcnComponentsFreeno deps · 2 files
8-bit Breadcrumbbreadcrumb8bitcnComponentsFreeno deps · 2 files
8-bit Buttonbutton8bitcnComponentsFreeno deps · 2 files
8-bit Button Groupbutton-group8bitcnComponentsFreeno deps · 4 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex