[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115040":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},115040,"spec-01","shuding\u002Fspec-01","shuding","A hardware theme for Vercel UI SDK","https:\u002F\u002Fspec-01.vercel.app",null,"CSS",148,5,104,0,1,34,9,64.73,"MIT License",false,"main",[],"2026-11-14 14:17:06","2026-11-22 08:40:40","# SPEC-01 Hardware\n\nA component kit in the style of pocket instruments: light molded panels, keys\nstanding in their holes, LCD screens, LEDs and printed scales. Every control is\nbuilt on [Vercel UI SDK](https:\u002F\u002Fui-sdk.dev) behaviors, with\nhaptics and synthesized interaction sounds.\n\nThe site, [spec-01.vercel.app](https:\u002F\u002Fspec-01.vercel.app), shows every\ncomponent and seven devices built from them. It's also a\n[shadcn\u002Fui registry](https:\u002F\u002Fui.shadcn.com\u002Fdocs\u002Fregistry): each component,\nexample and device installs into your project with the shadcn CLI.\n\n## Install from the registry\n\nAdd the registry to `components.json` and install what you need. The\n[Vercel UI SDK](https:\u002F\u002Fui-sdk.dev) packages the components are built on,\n`@ui-sdk\u002Fcore` and `@ui-sdk\u002Freact`, install from npm along with them:\n\n```sh\nnpx shadcn@latest registry add @spec-01=https:\u002F\u002Fspec-01.vercel.app\u002Fr\u002F{name}.json\nnpx shadcn@latest add @spec-01\u002Fmode-dial @spec-01\u002Fslider\n```\n\nAny item also installs from its URL, e.g.\n`npx shadcn@latest add https:\u002F\u002Fspec-01.vercel.app\u002Fr\u002Fmusic-player.json`.\n\nEvery item depends on `hardware`, which sets the project up for the kit: the\nskin's stylesheets, a `\u003CHardware>` root, the font, and the page-wide\nbehaviors the components rely on (haptics, sounds, keyboard-only focus\nrings, a block caret, Safari's Tab order). Wrap your app, or any part of it,\nin the root:\n\n```tsx\nimport { Hardware } from \"@\u002Fcomponents\u002Fui\u002Fhardware\"\nimport { ModeDial } from \"@\u002Fcomponents\u002Fui\u002Fmode-dial\"\n\nexport function App() {\n  return (\n    \u003CHardware keyColor={{ l: 0.64, c: 0.31, h: 48 }}>\n      \u003CModeDial\n        label=\"Effort\"\n        options={[\n          { value: \"low\", label: \"Low\" },\n          { value: \"medium\", label: \"Medium\" },\n          { value: \"high\", label: \"High\" },\n        ]}\n        defaultValue=\"medium\"\n      \u002F>\n    \u003C\u002FHardware>\n  )\n}\n```\n\n- **Key color:** `keyColor` is an OKLCH lightness, chroma and hue. Without\n  it the keys are black.\n- **Styling:** plain CSS, scoped to `[data-skin=\"hardware\"]`. No Tailwind\n  needed; each component's parts carry `data-kit` hooks the skin styles.\n- **Type:** IBM Plex Mono, weights 200 to 500. Installing `hardware` adds\n  its Google Fonts `@import` to the top of your CSS file (the one in\n  `components.json`).\n\n### What's in it\n\n| Items | Names | Installs to |\n| --- | --- | --- |\n| The skin | `hardware` | `components\u002Fui\u002Fhardware.tsx`, `components\u002Fui\u002Fhardware\u002F*.css`, `lib\u002F*.ts`, and a font `@import` in your CSS file |\n| 61 components | `button`, `slider`, `mode-dial`, `slide-switch`, `lcd`, `display`, `dpad`, ... | `components\u002Fui\u002F` |\n| 52 examples | `\u003Ccomponent>-demo`, one per catalog panel | `components\u002Fexamples\u002F` |\n| 7 devices | `music-player`, `paint`, `midi-editor`, `timer`, `color`, `image-editor`, `dashboard` | `components\u002Fblocks\u002F\u003Cdevice>\u002F` |\n\nThe full list is at\n[spec-01.vercel.app\u002Fr\u002Fregistry.json](https:\u002F\u002Fspec-01.vercel.app\u002Fr\u002Fregistry.json),\nor run `npx shadcn@latest list @spec-01`.\n\n## Develop\n\n```sh\npnpm install\npnpm dev                 # http:\u002F\u002Flocalhost:5610\npnpm build               # builds the registry, then the site\npnpm registry:build      # just the registry, into public\u002Fr\n```\n\n### Pages\n\n| Path | Page |\n| --- | --- |\n| `\u002F` | Every component, one panel each. A panel's title opens the Vercel UI SDK behaviors and APIs it's built on. |\n| `\u002Fmusic` | MP-1 Player: screen, transport keys, a scrubbing fader and the queue. |\n| `\u002Fpaint` | PX-1 Paint: a drawing pad behind glass, with tool keys and brush dials. |\n| `\u002Fmidi` | MX-1 MIDI: a piano roll played through a small synth. |\n| `\u002Ftimer` | TM-1 Timer: drag the dial, watch the wedge shrink. |\n| `\u002Fcolor` | CX-1 Color: three encoders, a hue ring and eight slots. |\n| `\u002Fimage` | IX-1 Photo: looks, crop, rotate and flip, saved as a PNG. |\n| `\u002Fdashboard` | DX-1 Dashboard: a service console as a handheld, with a D-pad, screen, A and B. |\n\n### Layout\n\n- `registry\u002Fhardware\u002F`: the kit, and the registry's source. The site\n  imports from here too, so they're the same code.\n  - `ui\u002F`: one component per file, plus `hardware.tsx`, the root.\n  - `ui\u002Fhardware\u002F`: the skin. `skin.css` imports the rest in order;\n    `hardware-field.css` holds the shared LED, latching keys and squircle\n    corners (`--corner-scale`), and `tokens.css` turns the key color into\n    its roles.\n  - `lib\u002F`: haptics, sounds, input modality, the block caret and Safari tabbing.\n  - `examples\u002F`: the usage example for each catalog panel.\n  - `blocks\u002F`: the devices, each on a `Device` faceplate (`ui\u002Fdevice.tsx`).\n- `src\u002F`: the site: navigation, the key color picker (`LabPanel.tsx`) and the\n  catalog page (`catalog\u002F`).\n- `public\u002Fphotos\u002F`: the photos the examples and devices show.\n- `public\u002Ffonts\u002F`: Spec Mono, the site's subset of IBM Plex Mono.\n- `registry.json`: generated by `scripts\u002Fregistry.mjs` from the files above.\n\n### Scripts to rerun\n\n| Script | Writes | Rerun when |\n| --- | --- | --- |\n| `pnpm registry:build` | `registry.json`, `public\u002Fr\u002F*.json` | You add, rename or change items. `pnpm build` runs it, so deploys always serve the current registry. Set `REGISTRY_URL` to build for another domain. |\n| `node scripts\u002Fsdk-chain.mjs` | `src\u002Fcatalog\u002Fsdk-chain.ts` | You upgrade `@ui-sdk\u002F*` or import a new Vercel UI SDK module. |\n| `scripts\u002Ffonts\u002F.venv\u002Fbin\u002Fpython scripts\u002Ffonts\u002Fsubset.py` | `public\u002Ffonts\u002F`, the font block in `index.html` | New text, weights or OpenType features appear. Run it with `--check` to see whether it's needed. |\n\nThe font script needs a one-time setup:\n`python3 -m venv scripts\u002Ffonts\u002F.venv && scripts\u002Ffonts\u002F.venv\u002Fbin\u002Fpip install fonttools brotli`.\n\n## License\n\nThe code is [MIT](.\u002FLICENSE). Two exceptions:\n\n- **Spec Mono:** a subset of IBM Plex Mono, under the\n  [SIL Open Font License 1.1](https:\u002F\u002Fopenfontlicense.org), renamed because\n  the license reserves the name \"Plex\". The license notices stay in the font\n  files.\n- **Photos in `public\u002Fphotos`:** from Unsplash via Lorem Picsum, under the\n  [Unsplash License](https:\u002F\u002Funsplash.com\u002Flicense). See\n  `public\u002Fphotos\u002FPHOTOS.md`.\n\nCrafted by [Shu](https:\u002F\u002Fx.com\u002Fshuding).\n","SPEC-01 是一个基于 Vercel UI SDK 构建的硬件风格 UI 组件库，专为模拟便携式电子仪器界面而设计。它提供 61 个可复用组件（如旋钮、滑块、LCD 显示屏、LED 指示灯）、52 个演示示例和 7 个完整设备（如音乐播放器、MIDI 编辑器、计时器），所有组件均支持触觉反馈、合成音效、键盘焦点增强及 OKLCH 色彩系统。采用纯 CSS 实现样式隔离，无需 Tailwind，通过 shadcn\u002Fui 注册表一键集成。适用于需要高沉浸感、拟物化交互体验的创意工具、音乐\u002F音频应用、教育类硬件仿真界面或实验性数字仪表盘等场景。",2,"2026-11-24 04:50:10","CREATED_QUERY"]