s7ui

1-bit classic-desktop components for shadcn/ui. Windows, menus, file browser views, desk accessories and a bomb that catches your React errors, in the style of Apple's System 7.

  • Every icon, glyph, pattern and font is drawn from scratch on the pixel grid.
  • Built on Radix: keyboard first, high contrast, reduced motion.
  • Copy-paste source through the shadcn CLI. Works with Next.js, Vite and Inertia.

Add the registry to components.json

{
  "registries": {
    "@s7ui": "https://s7ui.nijland.cc/r/{name}.json"
  }
}

Then install

pnpm dlx shadcn@latest add @s7ui/theme @s7ui/window

Double-click a title bar to roll a window up. Try the menus: the s7ui menu holds a puzzle and a note pad.

117 items0K Apple artwork
Description
4Kfolder1 item
4KlibThe window-open animation: about twelve 1px outlines step from an icon to a window in ~180 ms, bunched near the source, XOR-drawn with mix-blend-mode: difference over any pattern. Promise-based, SSR-safe, instant under reduced motion; zoomRectsAnimate plugs into the window manager.
48Kfolder1 item
48KuiA dependency-free pixel chart kit: BarChart, LineChart, AreaChart, PieChart and Sparkline rasterised onto the 1px grid and filled with 8×8 one-bit patterns (or the 16-colour palette), with ticked axes, dotted grid lines, a pattern legend, a framed tooltip with selection handles, arrow-key reading and a hidden data table for screen readers.
7Kfolder1 item
7KuiCommand menu drawn as a Find dialog over a menu: framed search field with a magnifier, inverting items and glyph shortcuts.
66Kfolder6 items
4KcomponentThe shell of an early-'90s control panel: a fixed-size white panel cut into sections by 1px lines, each with an optional 32×32 icon in a left column and a title in the chrome face. One to three columns, sections that span columns, and an optional footer line for a version string.
16KcomponentA device chooser in the spirit of the early-'90s Chooser: device types as a scrolling column of 32×32 icons, the named devices of the chosen type in a list ("Select a printer:"), Background Printing and Network Active / Inactive switches and a small version string. Data-driven, with original printer, network-printer and file-server icons.
17KcomponentA General Controls panel: the desktop-pattern editor, Rate of Insertion Point Blinking (Slow / Medium / Fast, with a blinking caret preview), Menu Blinking (Off / 1 / 2 / 3, with a sample item that blinks) and the time and date. One controlled value with onChange.
5KcomponentA Labels control panel: the seven Finder label colours, each with an editable name. onChange hands you all seven names to pass to FinderLabelTag and finderLabelName().
17KcomponentThe desktop-pattern editor from a General Controls panel: an 8×8 fat-bits grid you click or drag to paint, a live preview tile, ◂ ▸ to step through the theme's patterns and "Set Desktop", which hands you { bits, css }: eight rows of "#"/"." and a ready 8×8 SVG data-URI tile.
7KcomponentA Sound control panel: a vertical speaker-volume slider with ticks 0–7, the alert voices in a scrolling list that previews on select, and a "Play alert sounds" switch (off until the user turns it on).
11Kfolder1 item
11KlibOriginal 1-bit mouse pointers with white outlines and hotspots: arrow, I-beam, crosshair, open and closed hand, and an 8-frame pocket-watch busy cursor. cursorCss(name) gives a ready CSS cursor value with a built-in fallback; useBusyCursor(active) animates the watch on the page or one element, sets aria-busy and stands still under reduced motion. <Cursor> previews a pointer.
43Kfolder6 items
6KuiRadix Avatar as a square 1-bit portrait frame (24, 32 or 40px) with shadcn/ui's API, badge and group. The fallback shows initials in the chrome face on a sparse dither; dither renders the photo as an Atkinson dither, dither="filter" with a CSS grayscale filter.
3KuiSmall square tag in the chrome face with a 1px frame, with shadcn/ui's variants (default inverted, secondary, outline, destructive, ghost, link) and asChild. label="hot" etc. adds a Finder label dot.
8Kuishadcn's Embla carousel with scroll-bar arrows for previous and next (hollow, filled while pressed, empty at the ends) and a CarouselIndicator that reads "3 / 12".
14KblockA data table on TanStack Table v9 in the Finder list style: click column titles to sort, a filter field, a Columns menu to show and hide columns, check-box row selection with Shift ranges, and a footer reading "12 items · page 1 of 3" with Previous and Next push buttons.
7KuiList row with media, title, description and actions, with shadcn/ui's Item API (variants default, outline, muted; sizes default, sm, xs). As a link it inverts while pressed and when selected or current.
5KuiA table in the Finder list style: column titles in the chrome face over a 1px rule, the sorted column underlined via aria-sort, rows at the list row height with no lines, and a selected row that inverts only its first text cell.
65Kfolder5 items
17KcomponentA compact clock strip in the spirit of the classic Alarm Clock desk accessory: the time with ticking seconds and a disclosure that opens the date and an alarm row with hour and minute spin buttons, little arrows and an alarm-clock toggle. When the alarm goes off, onAlarm is called and the clock icon flashes.
14KcomponentA desk calculator in the spirit of the classic Calculator desk accessory: a display over a keypad of square, 1px-framed keys (C, E, =, *, /, -, +, ., 0–9) that invert while pressed. Immediate execution, repeated =, full keyboard input and results rounded for display, so 0.1 + 0.2 shows 0.3.
9KcomponentA page viewer in the spirit of the Scrapbook desk accessory: one clipping per page, a "3 of 12" counter with a type badge ("Picture", "Text") and a horizontal scroll bar to leaf through the pages.
16KcomponentAn on-screen keyboard in the spirit of the Key Caps desk accessory: a compact ANSI keyboard with square keycaps that invert while the physical keys are held, Shift and Option layers, a text field that shows what you type, and highlighted shortcuts.
9KcomponentThe Puzzle desk accessory: a 4×4 sliding puzzle that is always solvable, with tiles as buttons, arrow-key moves and a "Solved in N moves" message.
42Kfolder7 items
6KcomponentData-driven "About This Computer"-style panel: big icon, version, total memory and largest unused block, then rows with icon, name, size and a memory bar. Labels and number format are replaceable.
10KblockPatterned desktop with a window manager, an icon column top-right, the Trash bottom-right, rounded screen corners and a dotted selection rectangle. Stacks windows-first on small screens.
6Kcomponent32×32 icon over a name label in a 44px hit area. Selected darkens the icon and inverts the label; click selects, double-click or Enter opens, or use it as a plain link.
7KblockControl panel to pick a desktop pattern: magnified tile, preview with arrows, a radio group for the keyboard and "Set Desktop Pattern". Optionally saved in localStorage.
5KcomponentWelcome box with a mascot, progress bar and extension icons parading along the bottom. Once per session, at most a second, skippable, skipped under reduced motion, aria-hidden over the content.
7KcomponentA pale yellow sticky note with a small close box; with pages it becomes a Note Pad with a page curl and a 2/4 indicator.
1KcomponentThe Trash as a desktop icon, empty or full (bulging can, lid pushed up by paper).
62Kfolder9 items
5KuiSystem 7 alert: modal frame, 32×32 icon top-left, message beside it, buttons bottom-right with the default button's thick ring.
10KuiModal dialog in the System 7 modal frame, a third of the way down the screen and without dimming, plus a movable variant with a striped title bar you can drag.
6KuiA window pulled up from the bottom edge: a striped title bar with a checker grip to drag, stepped slide, sparse dither over the page. Built on vaul.
7KcomponentShow Balloons / Hide Balloons: a provider with a persisted on/off switch, a menu item to toggle it and speech balloons on hover or focus that are always linked with aria-describedby.
2KuiA hover card drawn as a Balloon Help balloon: rounded 1px frame, 1px shadow and a pixel tail pointing at the trigger.
18KcomponentThe standard file dialogs: a folder pop-up with the path to the Desktop, a list box of the folder, the current disk, Eject, Desktop, Open/Save and Cancel; Save adds a name field and New Folder. Driven by a virtual file tree, with type-ahead, ⌘↑/⌘↓ and Tab between list and field.
5KuiA popover drawn as a floating palette: 1px frame, 1px hard shadow, square corners, no tail. `titleBar` adds a palette's short striped bar with a tiny close box.
6KuiA window that slides in from an edge in a few hard steps (none under reduced motion): striped title bar, close box, 1px frame on the inner side and a sparse dither over the page.
3KuiA small Balloon Help-style tooltip: rounded white balloon with a 1px frame, 1px shadow and a pixel tail.
58Kfolder3 items
7KcomponentWraps any live content — video, an iframe, a whole form — and shows it in 1-bit (or a few gray levels) through an inline SVG filter: luma, a tiled 8×8 Bayer threshold and a discrete transfer. The content stays interactive.
45KblockA page screensaver with three original 1-bit modules: Floppy Flock (3.5" disks flocking with flapping shutters), Night Shift (drifting coffee mugs whose steam spells a word) and Cable Garden (cables and plugs growing like vines). Lazy-loaded modules, crisp integer-scaled canvas, hot corners, and a provider with start/stop for Test buttons.
6KcomponentA small control panel for the screensaver: a live preview in a little monitor, the modules as a radio group, a delay pop-up and a Test button. Reads and changes the ScreensaverProvider's settings, or works controlled on its own.
15Kfolder2 items
14Kcomponent"Sorry, a system error occurred." as a React error boundary: bomb alert with ID = n (stable per error type), Restart and Resume, a details disclosure with the component stack, inline or covering the screen, reset keys and focus restore.
1KhookHands errors from event handlers, effects, timers and promises to the nearest error boundary by re-throwing them on the next render. Returns a stable function.
20Kfolder5 items
6KuiInline callout with shadcn/ui's Alert API: a framed box with the alert icon top-left. Variants default, info (note), warning (caution) and destructive (stop, in the heavy alert frame); size="sm" uses original 16px icons.
3KuiEmpty state with shadcn/ui's API (header, media, title, description, content): a 32px icon in a dotted frame, the title in the chrome face and actions below.
2KuiLoading placeholder drawn as the 50% checker, with a lighter dithered band that marches across one pixel per step. Static under prefers-reduced-motion.
6KuiToasts as small notification windows: a modeless 1px frame with a striped mini title bar and close box, an original 16×16 icon per type, the title in the chrome face and action and cancel as push buttons. Top right and expanded by default.
3KuiBusy indicator: a ring of eight dots with a solid head and a dithered tail, in eight 16×16 bitmap frames stepped by CSS. role="status" with a visually hidden label; still under prefers-reduced-motion.
5Kfolder1 item
5KcomponentThe file copy progress dialog: items remaining, the item being copied, a progress bar (barber pole before it starts) and a Stop button in a title-less modal frame. Modeless; Esc and ⌘-period press Stop; a throttled polite live region keeps screen readers informed without flooding them.
61Kfolder8 items
4KcomponentThe seven Finder labels with renameable names, a stepped label dot, a dot-and-name tag and helpers that map a label to its label-* colour.
3KlibShared link type and type-ahead for the icon and list views.
2KblockA Window with the Finder header (items on the left, details on the right) around an icon view or list view, with a single scroll area.
13KcomponentThe Find dialog: "Find: [name]" with More Choices for a criteria row (name, size, kind, label or date modified; contains, starts with, is…), a search scope pop-up and an "all at once" check box. Find is the default button and calls onFind(criteria). As a form or in a modal dialog, with an original magnifier icon.
5KcomponentContent of a Finder Get Info window: big icon and name, right-aligned labels with colons, a Comments box (editable or read-only) and the Locked check box.
10KcomponentGrid of icons as links or buttons: one selection (icon darkened, name inverted), roving tabindex, arrow keys and type-ahead, label tints. Works with any router link via linkAs.
18KcomponentList view as a real table: sortable column titles (underlined, aria-sort), 16px icons, name-only selection, Label column, disclosure triangles for groups, keyboard navigation and a compact layout under 640px.
6Kcomponent⌘-click (or Ctrl+click, right-click, Alt+↑) a window title to pop up the folder hierarchy as a menu with 16px icons, from the folder up to the disk; choosing one calls onNavigate(id). Wraps the title without taking over its own click.
17Kfolder1 item
17Kitems7 Chrome (bold) and s7 Text (regular): original 1-bit bitmap fonts drawn on a 12px grid, with @font-face rules and the woff2 inlined. SIL OFL 1.1.
118Kfolder27 items
3KuiPush button that inverts while pressed; the default button carries the thick ring.
3KuiPush buttons, fields and pop-ups joined into one strip that shares its 1px borders, with label cells and dividers.
9KuiDesk calendar on the pixel grid: chrome-face month between little arrow boxes, 1px day grid, framed today, inverted selection, checkered ranges.
2Kui12×12 check box with an X when checked, a bar when indeterminate and a doubled frame while pressed.
5KuiPop-up menu you can type into: the pop-up box opens a searchable menu with a check mark on the chosen item.
5KuiDate field that reads like a Get Info date and opens the desk calendar below it.
5KuiA hollow triangle that turns from ▸ to ▾ (with the in-between frame, skipped under reduced motion) to show or hide a section. Built on Radix Collapsible.
7KuiForm layout in the manner of a dialog: chrome-face labels, gray help text and red errors after a small stop sign.
4Kuireact-hook-form helpers (Form, FormField, FormItem, FormControl, FormMessage…) wired for s7ui fields and error text.
1KuiFieldset with a 1px frame and its title cut into the top line.
1KuiText field with a 1px black frame that doubles while it has focus.
5KuiText field with prefixes, units, key caps or small buttons inside one 1px frame that doubles while it has focus.
3KuiOne-time code field: joined character boxes in the chrome face with a thin caret that blinks on and off.
3KuiKey caps and menu-style shortcuts (⌘K) with pixel-drawn modifier signs.
1KuiControl label in the chrome face that grays out next to a disabled control.
16KuiThe classic scrolling list: a 1px-framed box with a System 7 scroll bar, 16px icons, whole-row inverted selection, single or multiple selection (Shift, ⌘, drag), type-ahead and an ARIA listbox with aria-activedescendant.
12KuiThe up/down stepper drawn on the pixel grid: each half inverts while pressed and repeats while held. NumberStepper pairs it with a spinbutton field with min, max, step and keyboard stepping.
3KuiThe pop-up menu look on a native <select> for plain forms.
2KuiProgress bar with a 1px frame, gray or blue fill and an animated barber pole for unknown durations.
2KuiRadio buttons drawn on the pixel grid: a 12px stepped circle with a 6px dot.
7KuiPop-up menu: framed box with a down triangle; the menu opens over it with a check mark and inverted highlight.
1KuiSolid or gray dotted 1px separator, horizontal or vertical.
8KuiControl-panel slider: 1px line, optional tick marks and a pixel pointer thumb.
3KuiOn/off switch drawn as a 1991 control: a small rounded track with a square knob that jumps right and checkers the track when on.
1KuiMulti-line text field with the System 7 frame and a 2px focus frame.
3KuiTwo-state push button that stays inverted while on; rounded or square-cornered tool style.
3KuiToggles joined into one strip with shared borders, like a paint program's tool strip; single or multiple choice.
4Kfolder1 item
4KhookTells you when the user has been idle for a given time. Passive pointer, key, wheel and touch listeners only write a timestamp and one timer re-checks, so moving the mouse never churns timers. Never goes idle in a hidden tab; a canIdle veto, reset() and activate().
29Kfolder2 items
6KcomponentOriginal 32×32 Stop, Note, Caution and Bomb icons for alerts, and a 16×16 Balloon Help icon for the menu bar.
23KcomponentOriginal 32×32 Finder icons with 16×16 small versions: folder (open and closed), document, stack of documents, application, hard disk, floppy, compact computer, trash (empty and full), mail and person card. Ink follows currentColor, so labels can tint them.
25Kfolder2 items
7KlibPure 1-bit dithering kernels with no DOM: Atkinson, Floyd–Steinberg, Bayer 4×4 and 8×8, and plain threshold. Rec. 601 luma with contrast, gamma and serpentine scanning; row-by-row so large images can be spread over idle time.
18KcomponentAn <img> that turns into a crisp 1-bit dither once it scrolls into view: worker-based (Blob worker + OffscreenCanvas, main-thread fallback), HiDPI-exact dots, theme ink and paper, cached results, an optional Color/1-bit toggle and a top-down scan reveal.
55Kfolder7 items
5KuiRadix Accordion with Finder list-view disclosure triangles: hollow ▸ and ▾ with the in-between frame after a click, filled while pressed. Content appears at once or unrolls in four hard steps (reveal="stepped").
1KuiRadix AspectRatio with shadcn/ui's API: keeps content at a fixed width-to-height ratio. It draws nothing itself; frame it with s7-frame and fill it with a checker or a dithered image.
5KuiA white panel with a 1px black frame and a 1px hard shadow, with shadcn/ui's Card API (header, title, description, action, content, footer). variant="window" turns the title into a striped title bar; size="sm" tightens the spacing.
17KcomponentAn original one-piece beige (or platinum) computer to frame your page: brow vents, a deep screen well, a groove across the chin with a badge plate for your own logo, a power light and a floppy slot, on a plinth. The screen shows live, interactive children at a crisp integer scale, with optional scanlines, vignette, glow, subtle curvature and flicker, and power-on/off animations.
6KcomponentAn integer zoom container: renders children at a fixed logical size and scales them by the largest whole number that fits, snapped so scale × devicePixelRatio stays a whole number of device pixels, with image-rendering: pixelated. Falls back to a smooth fit when even 1× does not fit.
4KuiSplit panes with a classic splitter: a 1px double line, an optional framed grip with three ridges, filled in while dragged. Keyboard resizable.
17KuiSystem 7 scroll bars over native scrolling: arrows with a stem, checker track, square thumb, grow box.
37Kfolder6 items
5KcomponentThe application menu at the right end of the menu bar: the active application's small icon as the title, then Hide <app>, Hide Others, Show All and the running applications with a check on the active one and dimmed icons for hidden ones.
7KuiA System 7 menu at the pointer on right-click or long-press, with the same look as the menu bar.
7KuiA System 7 menu from any trigger: 1px frame and shadow, items that invert while highlighted, ⌘ shortcuts, dotted separators, check marks and submenus.
11KuiSystem 7 menu bar: 20px (44px on touch), titles invert while open, framed menus with ⌘ shortcuts, dotted separators, submenus, check marks, an icon trigger for your logo and the application menu, a right-hand slot and a live clock.
2KlibShared class strings for menus: frame, items, labels, separators and shortcuts.
5KuiPixel-drawn ⌘ ⌥ ⇧ ⌃ signs and <Shortcut keys="⌥⌘W" /> with spoken text for screen readers.
73Kfolder6 items
5KuiA folder path: 16px folder icons and names in the text face, divided by small black triangles; the current folder is drawn open. Names invert while pressed.
27KblockA stack of cards for case studies and portfolios, in the spirit of late-'80s card-and-background stacks: one card at a time in a shared background with a "3 / 12" counter, card buttons, an arrow palette, #card-id deep links and visual effects (stepped dither dissolve, wipes, iris, barn door) via the View Transitions API.
8KuiSite navigation drawn as a menu bar: chrome-face titles that invert while open and panels framed like menus that drop straight under their title. The current link carries a check mark.
4KuiPage numbers as a row of push buttons; the current page stays inverted. Previous and Next carry small triangles.
22Kuishadcn's sidebar system as a source list: a white panel with a 1px divider, rows of 16px icons and names, the selected row inverted. Folds to an icon rail with balloon tooltips, becomes a sheet on small screens, ⌘B toggles it.
7KuiFolder tabs with 1px frames, rounded tops and labels in the chrome face; the active tab stands taller and joins the framed panel. Vertical orientation and a quiet underlined line variant.
8Kfolder2 items
3KuiDraw crisp pixel art from rows of characters.
5KuiClose box, zoom box, grow box, scroll arrows, pop-up and submenu triangles, check X, menu check and radio dot.
15Kfolder1 item
15KlibAn opt-in WebAudio synth for original alert sounds (no samples): Chirp, Clonk, Ping, Wood, Zap and Drip, a volume from 0 to 7, and useBeep() for a beep(voice?) that also fires a "s7ui:beep" window event, so an alert is never sound-only. Off by default.
9Kfolder1 item
9KcomponentThe shut-down sequence: open windows close one by one, then a white alert on black says it is now safe to switch off, then the picture collapses to a line and a dot like a tube switching off. Restart (or any key or click on the black screen) reopens the windows. Instant under reduced motion; focus is managed and restored.
8Kfolder2 items
7KcomponentSwitch 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.
1Ktheme1-bit tokens, the 16-colour palette, Finder label colours, 8×8 desktop patterns, density tokens, forced-colours support and the chrome utilities (stripes, checker, dotted lines, frames, font-chrome, font-text).
29Kfolder3 items
4KuiThe 11×11 close and zoom box with a pressed state and a 24px hit area, for windows, dialogs and notes.
14KcomponentDocument window with active/inactive title bar, close and zoom boxes, WindowShade, Finder header, scroll bars and dragging.
11KhookFront window, stacking order, drag offsets, WindowShade and zoom state for a desktop of windows.