Theme · component · 7K

Appearance

Switch between the 1-bit look and the colour look of a colour screen: gray bevelled title bars, close and zoom boxes, scroll bars and grow box, lavender text selection and a soft gray desktop. AppearanceProvider sets data-s7-appearance and remembers the choice; AppearanceToggle is a Black & White / Colors radio group.

The theme draws both looks; the provider only sets data-s7-appearance="bw" | "color" on <html> (or on a wrapper with target="wrapper") and stores the choice in localStorage under "s7ui:appearance". You can also set the attribute by hand on any subtree. Forced colours always get the 1-bit look.

Install

pnpm dlx shadcn@latest add @s7ui/appearance

Example

This example also uses @s7ui/desktop-icon @s7ui/file-window @s7ui/icon-view @s7ui/icons @s7ui/window.

Black & White

Hard Disk

7 items12.4 MB available

Notes

Inactive windows stay blank in both looks.

Colors

Hard Disk

7 items12.4 MB available

Notes

Inactive windows stay blank in both looks.

Appearance:

Switch the appearance, then select some of this text to see the highlight colour.

Line 1

Line 2

Line 3

Line 4

Line 5

Line 6

Line 7

Line 8

Info

Files:
components/retro/appearance.tsx
Uses:
@s7ui/theme, @s7ui/radio-group, @s7ui/label
Packages:
—