# CYBERSPEC > A cyberpunk theme for ui-sdk (https://ui-sdk.dev): 71 components and 7 screens with cut-corner frames, glitch and scan effects that respect reduced motion, sampled and synthesized interface sounds, and a visible signal when an agent changes something. Plain CSS, React, installable from a shadcn registry. Every control is a ui-sdk component underneath (`@ui-sdk/react`, `@ui-sdk/core`), so keyboard behavior, ARIA and the ui-sdk agent bridge come with it. ## Read the documentation Append `.md` or `.MD` to a page path to read it as Markdown. For example, https://www.cyberspec.dev/components/sidebar/button.md includes the installation command and the working React example. - [CyberSpec overview](https://www.cyberspec.dev/index.md) - [Component catalog](https://www.cyberspec.dev/components.md) and [component documentation index](https://www.cyberspec.dev/components/llms.txt) - [Example screens](https://www.cyberspec.dev/examples.md) and [screen documentation index](https://www.cyberspec.dev/examples/llms.txt) - [Sink gallery](https://www.cyberspec.dev/sink.md) and [recipe documentation index](https://www.cyberspec.dev/sink/llms.txt) - [Complete Markdown documentation](https://www.cyberspec.dev/llms-full.txt) ## Install CyberSpec's original code is MIT-licensed. Bundled recorded audio is excluded from MIT and has separate licensing requirements. Read https://github.com/agnelnieves/cyberspec/blob/main/THIRD_PARTY_NOTICES.md before reusing recordings. The foundation installs both the MIT license and third-party notices in the configured library directory under `cyberspec/`. Use a React 19 project with a configured shadcn `components.json` and a working `@/` import alias. React 18 is not supported by the underlying SDK. In TypeScript projects use `@types/react >=19.2.10`. The pinned `@ui-sdk/core@0.1.0-beta.5` and `@ui-sdk/react@0.1.0-beta.5` dependencies install from public npm; no token, private registry or GitHub access is needed. ```sh bunx --bun shadcn@latest registry add '@cyberspec-ui=https://www.cyberspec.dev/r/{name}.json' bunx --bun shadcn@latest add @cyberspec-ui/cyber @cyberspec-ui/button ``` Any item also installs from its URL: `bunx --bun shadcn@latest add https://www.cyberspec.dev/r/panel.json`. Every item depends on `cyber`, which adds the `` root, the foundation stylesheets, the fonts and the page-wide behaviors. Tailwind is not required; the `tailwind.css` entry in `components.json` can point at the application's plain CSS entry file. See the [installation setup](https://github.com/agnelnieves/cyberspec#install-from-the-registry) for a minimal configuration. Installed TSX declares client boundaries for Next.js App Router. Keep state, event handlers and render callbacks inside a Client Component; only serializable props may cross from a server page. Import the app's CSS entry once in its root layout/entry. Samples and CSS install alongside the components, so they do not fetch code or audio from this registry at runtime. ```tsx import { Cyber } from "@/components/ui/cyber" import { Button } from "@/components/ui/button" export function App() { return ( ) } ``` ## Rules when building with it - Wrap the app, or the part that should look like this, in ``. Styles are scoped to `[data-skin="cyber"]` and sit in cascade layers (`cyber.*`), so unlayered app CSS wins. - `` uses a grayscale palette for surfaces, text, and status indicators. - `` sets the accent (OKLCH). `fx="full" | "calm" | "off"` pins the effects level; left out, it follows the person's choice and `prefers-reduced-motion`. - Shape comes from `data-frame` (`"tr bl"`, `"notch br"`, `"spine br"`), configured with `--frame-cut`, `--frame-line`, `--frame-fill`. Don't set `border-color`, `clip-path` or `background-image` on a framed element, and don't round anything. - Colors are tokens (`--cy-accent`, `--cy-ink`, `--cy-signal`, `--cy-flag`, `--cy-line-ctl`, `--cy-fill-active` ...). Red is the resting color, so errors are yellow (`--cy-flag`) with a glyph and words. - Effects are tokens too: `animation: var(--cy-fx-in) 200ms var(--cy-ease-snap) both`. They resolve to nothing when effects are off. - Sound is off until the person turns it on: `setSoundEnabled(true)` from `lib/sound`. Hover uses one recorded tick; plus/minus use `sfx("increment")` / `sfx("decrement")` after accepted changes. Sliders, resizers and scrubbing use `createAdjustmentSound()`: call `move()` on accepted movement and `stop()` when interaction ends. Samples are embedded in `lib/sound-samples.ts` and install with the kit. - Give every control an accessible name. An agent finds controls by those names. ## Agents on the page The components work with the ui-sdk agent bridge (`createAgent` from `@ui-sdk/react/agent`): an agent can `snapshot()` the page, `query()` choices and `act()` on components by label. The kit adds a visible signal: whatever an agent changes lights cyan for a moment (`data-agent-touch`) and is announced to screen readers. Mark anything irreversible with `data-agent-confirm=""` so an agent has to ask a person; `data-agent-hidden` and `data-agent-secret` keep regions and values from it. ## The skin - [Cyber](https://www.cyberspec.dev/r/cyber.json): Sets a project up for the cyberspec kit: the root, the foundation stylesheets (tokens, the cut-corner frame system, effects, shared field and popup looks), the fonts, and the page-wide behaviors the components rely on (the FX level, sampled and synthesized interface sounds, haptics, keyboard-or-pointer focus tracking, and the signal shown when an agent changes something). ## Components - [Accordion](https://www.cyberspec.dev/r/accordion.json): Stacked sections that open from numbered headings, each with a glyph that turns. - [Alert dialog](https://www.cyberspec.dev/r/alert-dialog.json): A flagged confirmation that has to be answered, and that an agent has to ask a person about. - [Alert](https://www.cyberspec.dev/r/alert.json): An inline notice on a spined frame: info, success, warning or danger, each with its own glyph. - [Avatar](https://www.cyberspec.dev/r/avatar.json): A portrait in a cut frame, with initials over a generated scanline field when there's no image. - [Badge](https://www.cyberspec.dev/r/badge.json): A small cut label in seven tones, with count and status variants. - [Breadcrumb](https://www.cyberspec.dev/r/breadcrumb.json): A trail of pages, the current one in the signal color. - [Button group](https://www.cyberspec.dev/r/button-group.json): Keys joined in one strip, horizontal or vertical, with hold-to-repeat. - [Button](https://www.cyberspec.dev/r/button.json): A cut-corner button with a raised tab, five tones, and a press flash. Enable the cipher prop to scramble the label and briefly tear the frame on hover. - [Calendar](https://www.cyberspec.dev/r/calendar.json): A month grid with today marked and the chosen day lit. - [Card](https://www.cyberspec.dev/r/card.json): A content card with a scanlined media slot. Set cipher on an interactive card to decode its title on hover. - [Carousel](https://www.cyberspec.dev/r/carousel.json): A viewer: slides in a cut frame, with keys, segment indicators and a position readout. - [Checkbox](https://www.cyberspec.dev/r/checkbox.json): A cut box that fills and marks when checked, with an indeterminate state. - [Choice list](https://www.cyberspec.dev/r/choice-list.json): Replies to choose from: rows in the signal color, the chosen one a solid yellow bar. - [Code block](https://www.cyberspec.dev/r/code-block.json): Highlighted code with line numbers, a filename tab and a copy key. No highlighting dependency. - [Collapsible](https://www.cyberspec.dev/r/collapsible.json): One section behind a key that shows and hides it. - [Combobox](https://www.cyberspec.dev/r/combobox.json): A text control that filters a list of options as you type. - [Command palette](https://www.cyberspec.dev/r/command-palette.json): A searchable list of commands behind a prompt, in a dialog. - [Context menu](https://www.cyberspec.dev/r/context-menu.json): An area that opens a menu on right-click, a long press, or the keyboard. - [Data table](https://www.cyberspec.dev/r/data-table.json): Rows with selection, sortable columns, status badges and a menu per row. - [Date picker](https://www.cyberspec.dev/r/date-picker.json): A date field with a calendar that opens beside it. - [Dialog](https://www.cyberspec.dev/r/dialog.json): A modal panel on a spined frame that tears in over a dimmed page, with its answers on keys below. - [Drawer](https://www.cyberspec.dev/r/drawer.json): A sheet that glitches in and out at the edge of the page. Drag it toward that edge to dismiss it. - [Feed](https://www.cyberspec.dev/r/feed.json): Dated events in order on a vertical rule: who did what, and when. - [Fieldset](https://www.cyberspec.dev/r/fieldset.json): A spined frame grouping several fields under a legend. - [Glitch text](https://www.cyberspec.dev/r/glitch-text.json): Text that decodes itself into place and tears for a moment, with a stable copy for screen readers. - [Hex stat](https://www.cyberspec.dev/r/hex-stat.json): An attribute as a hexagon holding an icon, a value and a name, and a honeycomb to lay several out. - [Holo card](https://www.cyberspec.dev/r/holo-card.json): A surface that tilts toward the pointer in 3D, with a sheen and layers at different depths. - [Hover card](https://www.cyberspec.dev/r/hover-card.json): A name that previews a small dossier on hover or focus. - [Item list](https://www.cyberspec.dev/r/item-list.json): An always-visible list of rows in columns, the selected row a solid signal bar. - [Item slot](https://www.cyberspec.dev/r/item-slot.json): A gear tile with a rarity spine, mod sockets, a count and an empty state. Set cipher to briefly split its edge on selection. - [Key hint](https://www.cyberspec.dev/r/key-hint.json): An input hint: a key glyph and what it does, optionally pressable. - [Loader](https://www.cyberspec.dev/r/loader.json): A boot screen in miniature: a mark, a thin progress bar, a percentage and a cycling status line. - [Map](https://www.cyberspec.dev/r/map.json): A flat map or rotatable globe with selectable markers, routes, and a bundled world basemap. - [Menu](https://www.cyberspec.dev/r/menu.json): A key that opens a menu of actions, with checkable items, groups and a submenu. - [Menubar](https://www.cyberspec.dev/r/menubar.json): A bar of menus with one tab stop. - [Meter](https://www.cyberspec.dev/r/meter.json): A segmented gauge with thresholds that change its tone and print a word. - [Micro-print](https://www.cyberspec.dev/r/micro.json): The printed decoration around frames: micro-print lines, barcodes, rulers, data streams and corner brackets. - [Navbar](https://www.cyberspec.dev/r/navbar.json): A navigation bar with status readouts, page links and trailing content. - [OTP input](https://www.cyberspec.dev/r/otp-input.json): One cut cell per character of a code, with a blinking caret in the active one. - [Pagination](https://www.cyberspec.dev/r/pagination.json): Page keys with previous, next and ellipses, and a position readout. - [Panel](https://www.cyberspec.dev/r/panel.json): The kit's container: a frame with a spine or a title bar, a heading, micro-print and a body. - [Password input](https://www.cyberspec.dev/r/password-input.json): A password field with a key to show or hide it. - [Popover](https://www.cyberspec.dev/r/popover.json): A key that opens a framed surface beside it, with a title, description and body. - [Progress](https://www.cyberspec.dev/r/progress.json): A segmented bar with a percentage readout, and an indeterminate state. - [Radio group](https://www.cyberspec.dev/r/radio-group.json): Options where one is chosen, each with a diamond indicator. - [Rating](https://www.cyberspec.dev/r/rating.json): A level picked from a row of diamond pips. - [Readout](https://www.cyberspec.dev/r/readout.json): A large numeral with a unit and a label that counts to its new value when it changes. - [Resizable](https://www.cyberspec.dev/r/resizable.json): Panels split by a handle that drags or steps with keys. - [Reticle](https://www.cyberspec.dev/r/reticle.json): A lock-on bracket that snaps onto whatever it wraps when hovered, focused or active. - [Screen](https://www.cyberspec.dev/r/screen.json): The chrome every full screen shares: a status strip, the content, and a foot with key hints. - [Scroll area](https://www.cyberspec.dev/r/scroll-area.json): A scrolling region with a thin scrollbar and edge indicators. - [Segmented control](https://www.cyberspec.dev/r/segmented-control.json): A row of segments with an indicator that slides to the choice. - [Select](https://www.cyberspec.dev/r/select.json): A labelled trigger that opens a list of options to choose from. - [Separator](https://www.cyberspec.dev/r/separator.json): A rule with tick marks, plain, labelled or vertical. - [Side tabs](https://www.cyberspec.dev/r/side-tabs.json): Icon keys stacked down the edge, with a panel beside them. - [Signal graph](https://www.cyberspec.dev/r/signal-graph.json): A compact live graph, as a trace or a spectrum, with a text summary. - [Skeleton](https://www.cyberspec.dev/r/skeleton.json): Placeholder lines and blocks for content that's loading. - [Slider](https://www.cyberspec.dev/r/slider.json): A ticked track with a cut thumb and a value readout, single or range. - [Number stepper](https://www.cyberspec.dev/r/stepper.json): A value on a readout between minus and plus keys, with MIN and MAX tags. - [Switch](https://www.cyberspec.dev/r/switch.json): A block that slides across a cut track and lights, with its state printed beside it. - [Tabs](https://www.cyberspec.dev/r/tabs.json): Tabs over panels with a sliding indicator, or as cut keys. Set cipher on key tabs to briefly split the selected key’s edge. - [Terminal](https://www.cyberspec.dev/r/terminal.json): A console log with tagged lines, a prompt with history, and a follow-the-end scroll. - [Text field](https://www.cyberspec.dev/r/text-field.json): A labelled text input in a cut frame, with a hint, an error and an optional icon. - [Textarea](https://www.cyberspec.dev/r/textarea.json): A labelled multi-line input with a character count. - [Toast](https://www.cyberspec.dev/r/toast.json): Keys that raise a notification in each tone. - [Toaster](https://www.cyberspec.dev/r/toaster.json): The page's notification region and a notify() helper. - [Toggle group](https://www.cyberspec.dev/r/toggle-group.json): Toggles that share one value, one or several at a time. - [Toggle](https://www.cyberspec.dev/r/toggle.json): A latching key that stays lit while pressed. Set cipher to decode its label when switched on. - [Toolbar](https://www.cyberspec.dev/r/toolbar.json): Keys, toggles and separators in one bar, moved through with arrow keys. - [Tooltip](https://www.cyberspec.dev/r/tooltip.json): A small cut label that appears on hover or focus. - [Tree](https://www.cyberspec.dev/r/tree.json): A hierarchy with connector lines and branches that open. ## Screens - [Archive](https://www.cyberspec.dev/r/archive.json): A database of people, places and machines, one dossier each. - [Augments](https://www.cyberspec.dev/r/augments.json): Five attributes on a hexagonal lattice, with points to spend and an info panel. - [Comms](https://www.cyberspec.dev/r/comms.json): Contacts, a message thread, and replies to choose from. - [Daemon](https://www.cyberspec.dev/r/daemon.json): An agent console: what the agent sees, what it does, a permission prompt, and undo. - [Grid](https://www.cyberspec.dev/r/grid.json): A district map with filters and waypoints, plus an atlas and globe of the Atlantic relay network. - [Jobs](https://www.cyberspec.dev/r/jobs.json): A job board: tabs, a list of jobs, objectives to tick off, and the brief. - [Loadout](https://www.cyberspec.dev/r/loadout.json): Gear slots, a weapon's sheet with its stats, and what's in the pack. ## Sink recipes - [Relay tuner](https://www.cyberspec.dev/r/relay-tuner.json): Sweep the FM radio band or seek the next station and watch the carrier lock. - [Film proof](https://www.cyberspec.dev/r/photo-proof.json): Compare three film stocks on the same landscape and check the framing with a thirds grid. - [Channel inbox](https://www.cyberspec.dev/r/channel-inbox.json): Catch up on timestamped messages across three desk channels and acknowledge each thread. - [Switchboard](https://www.cyberspec.dev/r/switchboard.json): Light the entire board. Each pad flips its neighbors as well as itself. - [Fare machine](https://www.cyberspec.dev/r/fare-machine.json): Choose a fare zone and party size, then issue a ticket with the calculated total. - [Expedition pack](https://www.cyberspec.dev/r/pack-builder.json): Fit supplies into a ten-kilogram pack and swap items when space runs short. - [Palette lab](https://www.cyberspec.dev/r/palette-lab.json): Compare spot inks across five tints and copy the CSS for your pick. - [Desk command launcher](https://www.cyberspec.dev/r/command-launcher.json): Tune a relay, mute alerts, or print a status report from a searchable command palette. - [Studio pass](https://www.cyberspec.dev/r/access-pass.json): Enter a sample code to issue a barcoded day pass and see how an invalid code is handled. - [Power mixer](https://www.cyberspec.dev/r/power-mixer.json): Divvy up generator power across three circuits and see how much capacity remains. - [Shift roster](https://www.cyberspec.dev/r/shift-roster.json): Browse studio crews, claim an open shift, and hand the seat back. - [Clip timeline](https://www.cyberspec.dev/r/clip-timeline.json): Trim a field recording from either end and see the length of the selected clip. - [Crew profile](https://www.cyberspec.dev/r/profile-editor.json): Edit a crew member’s name and shift availability, then save the changes to their ID. - [Station file browser](https://www.cyberspec.dev/r/file-browser.json): Explore the ferry desk’s folders and inspect the source for each route and shift file. - [Broadcast composer](https://www.cyberspec.dev/r/broadcast-composer.json): Choose a channel, edit a short bulletin, and post it to the station’s local board. - [Glyph match](https://www.cyberspec.dev/r/glyph-match.json): Turn over cards and find four matching pairs in a shuffled deck. - [Departure board](https://www.cyberspec.dev/r/departure-board.json): Switch platforms and advance the clock to see the next trains roll onto the board. - [Telemetry inspector](https://www.cyberspec.dev/r/telemetry-inspector.json): Inspect rooftop temperature and wind readings over three time windows. - [Studio booking](https://www.cyberspec.dev/r/event-planner.json): Name a session, pick an available date and time, and edit the reservation. - [Type specimen](https://www.cyberspec.dev/r/type-specimen.json): Set your own sample text, swap typefaces, and size the lettering against a ruler. - [Print checkout](https://www.cyberspec.dev/r/checkout-desk.json): Choose a paper stock and edition quantity, then place a sample print order. - [Shift handoff](https://www.cyberspec.dev/r/task-board.json): Add a task to the handoff checklist and track how much of the shift is ready. - [Notification routing](https://www.cyberspec.dev/r/notification-rules.json): Choose where alerts go and test how routine and priority messages behave during quiet hours. - [Dice tray](https://www.cyberspec.dev/r/dice-tray.json): Pick a die, roll a handful, and keep the last four scores. - [Route planner](https://www.cyberspec.dev/r/route-planner.json): Choose a destination and compare the local and express routes on a line diagram. - [Sector atlas](https://www.cyberspec.dev/r/sector-atlas.json): Follow three observatories across a globe, select a site, and switch to a flat chart. - [Dispatch queue](https://www.cyberspec.dev/r/dispatch-queue.json): Inspect a pickup, send its van, and work through the delivery run in any order. - [Workshop feedback](https://www.cyberspec.dev/r/feedback-desk.json): Rate a workshop, add an optional note, and record the response. - [Review queue](https://www.cyberspec.dev/r/review-queue.json): Read incoming change requests, approve or return each one, and undo a decision. - [Crew directory](https://www.cyberspec.dev/r/contact-directory.json): Find a crew member by name or district, inspect their radio channel, and save favorites. - [Reaction clock](https://www.cyberspec.dev/r/reaction-clock.json): Wait for the cue and try to beat your fastest reaction time. - [Freight scale](https://www.cyberspec.dev/r/freight-scale.json): Weigh a pallet, tare the scale, and add crates to measure their net weight. ## Examples One per component, named `-demo`: https://www.cyberspec.dev/r/button-demo.json ## More - [Registry index](https://www.cyberspec.dev/r/registry.json) - [ui-sdk docs for agents](https://ui-sdk.dev/llms.txt)