{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "uiset",
  "title": "UISet",
  "author": "superzero11 <https://github.com/superzero11/uiset>",
  "description": "The UISet root: skins, a key color, and sound and haptics for every UI SDK component inside it.",
  "dependencies": [
    "@ui-sdk/core@0.1.0-beta.5",
    "@ui-sdk/react@0.1.0-beta.5"
  ],
  "files": [
    {
      "path": "registry/uiset/ui/uiset.tsx",
      "content": "\"use client\"\n\nimport type * as React from \"react\"\nimport { installUISet } from \"./uiset/feedback\"\nimport \"./uiset/uiset.css\"\n\ninstallUISet()\n\ntype KeyColor = { l: number; c: number; h: number }\ntype Skin = \"base\" | \"blueprint\" | \"studio\" | \"phosphor\" | \"ink\" | (string & {})\n\ntype UISetProps = React.ComponentProps<\"div\"> & {\n  skin?: Skin\n  keyColor?: KeyColor\n  theme?: \"light\" | \"dark\" | \"system\"\n  sound?: boolean\n  haptics?: boolean\n}\n\nfunction UISet({\n  skin = \"base\",\n  keyColor,\n  theme = \"system\",\n  sound = false,\n  haptics = true,\n  style,\n  ...props\n}: UISetProps) {\n  const keyStyle = keyColor && {\n    \"--uiset-key-l\": keyColor.l,\n    \"--uiset-key-c\": keyColor.c,\n    \"--uiset-key-h\": keyColor.h,\n  }\n  return (\n    <div\n      data-uiset=\"\"\n      data-skin={skin}\n      data-theme={theme === \"system\" ? undefined : theme}\n      data-key={keyColor ? \"\" : undefined}\n      data-sound={sound ? \"on\" : \"off\"}\n      data-haptics={haptics ? \"on\" : \"off\"}\n      style={{ ...keyStyle, ...style } as React.CSSProperties}\n      {...props}\n    />\n  )\n}\n\nexport { UISet }\nexport type { KeyColor, Skin, UISetProps }\n",
      "type": "registry:ui",
      "target": "@ui/uiset.tsx"
    },
    {
      "path": "registry/uiset/ui/uiset/base.css",
      "content": "/* Shared by every skin: motion, focus, forced colors. Skins change looks, not this. */\n\n[data-uiset] {\n  /* Re-resolve inherited colors under this root's color-scheme. */\n  color: var(--ui-foreground);\n  background-color: var(--ui-background);\n  accent-color: var(--ui-primary);\n  -webkit-font-smoothing: antialiased;\n}\n\n/* The default ring, kept at low specificity (:where) so a part's own focus rule wins. */\n[data-uiset] :where([data-slot]:not([data-slot=\"tree-item\"])):focus-visible,\n[data-uiset] [data-slot=\"slider-thumb\"]:has(:focus-visible),\n/* A tree item holds its whole branch; its ring goes on its own row. */\n[data-uiset] [data-slot=\"tree-item\"]:focus-visible > [data-slot=\"tree-label\"] {\n  outline: 2px solid var(--ui-ring-border);\n  outline-offset: 2px;\n}\n\n/* Password, date and time inputs are a box around their own parts: the box wears one ring\n   while its text has focus, and the part inside doesn't add a second. A button inside the\n   box (Show password) keeps its own ring, and the box none, so focus never doubles. */\n[data-uiset] :is([data-slot=\"password-input-control\"], [data-slot$=\"input-segment\"]):focus-visible {\n  outline: none;\n}\n\n[data-uiset] :is([data-slot=\"password-input\"], [data-slot=\"date-input\"], [data-slot=\"time-input\"]):has(:focus-visible) {\n  outline: none;\n}\n\n[data-uiset]\n  :is([data-slot=\"password-input\"], [data-slot=\"date-input\"], [data-slot=\"time-input\"]):has(\n    :is([data-slot=\"password-input-control\"], [data-slot$=\"input-segment\"]):focus-visible\n  ),\n/* Number inputs and token inputs are boxes around their own parts too. */\n[data-uiset] [data-slot=\"number-input-group\"]:has([data-slot=\"number-input-control\"]:focus-visible),\n/* Text fields (and the select beside them in a form) wear one ring, on their own edge,\n   not a colored border with a second ring outside it. Buttons keep the ring outside. */\n[data-uiset]\n  :is(\n    [data-slot=\"input\"],\n    [data-slot=\"textarea\"],\n    [data-slot=\"autocomplete-input\"],\n    [data-slot=\"combobox-input\"],\n    [data-slot=\"date-picker-input\"],\n    [data-slot=\"color-picker-input\"],\n    [data-slot=\"color-picker-channel-input\"],\n    [data-slot=\"toolbar-input\"],\n    [data-slot=\"trigger-menu-input\"],\n    [data-slot=\"token-input-editor\"],\n    [data-slot=\"select-trigger\"]\n  ):focus-visible {\n  border-color: var(--ui-ring-border);\n  outline: 2px solid var(--ui-ring-border);\n  outline-offset: -1px;\n}\n\n/* A button that sits inside a field (Show password, the date picker's calendar, a token's\n   remove) draws its ring inside itself, clear of the field's edge. */\n[data-uiset]\n  :is(\n    [data-slot=\"password-input-toggle\"],\n    [data-slot=\"date-picker-trigger\"],\n    [data-slot=\"date-picker-clear\"],\n    [data-slot=\"token-input-token-remove\"],\n    [data-slot=\"file-input-item-remove\"]\n  ):focus-visible {\n  outline-offset: -2px;\n}\n\n[data-uiset] [data-slot=\"number-input-group\"] [data-slot=\"number-input-control\"]:focus-visible {\n  outline: none;\n}\n\n/* A5: the number input's box is its three parts; the group hugs them, so its ring does. */\n[data-uiset] [data-slot=\"number-input-group\"] {\n  inline-size: fit-content;\n  max-inline-size: 100%;\n  border-radius: var(--ui-radius);\n}\n\n/* A8: the one-time code's active slot (the hidden input holds focus) wears the field ring. */\n[data-uiset] [data-slot=\"otp-input-slot\"][data-active] {\n  position: relative;\n  z-index: 1;\n  outline: 2px solid var(--ui-ring-border);\n  outline-offset: -1px;\n}\n\n/* A7: a command menu's search shows focus as a line under it (a ring would be clipped). */\n[data-uiset] [data-slot=\"command-input\"]:focus-visible {\n  outline: none;\n  box-shadow: inset 0 -2px 0 var(--ui-ring-border);\n}\n\n/* A4: a scroll area's viewport rings inside itself; outside, its own clipping hides it. */\n[data-uiset] [data-slot=\"scroll-area-viewport\"]:focus-visible {\n  outline-offset: -2px;\n}\n\n/* A10: in a row of joined controls, the focused one's ring stays above its neighbours. */\n[data-uiset] :is([data-slot=\"toolbar\"], [data-slot=\"toggle-group\"], [data-slot=\"pagination-list\"], [data-slot=\"segmented-control\"]) :focus-visible {\n  position: relative;\n  z-index: 1;\n}\n\n/* A11: plain links and disclosures (breadcrumbs, prose) get the same ring as every part. */\n[data-uiset] :where(a:not([data-slot]), summary:not([data-slot])):focus-visible {\n  outline: 2px solid var(--ui-ring-border);\n  outline-offset: 2px;\n  border-radius: 2px;\n}\n\n/* A25: the chosen option in a select carries a check, as in a listbox. */\n[data-uiset] [data-slot=\"select-item\"]:not(:has([data-slot=\"select-item-indicator\"])) {\n  position: relative;\n  padding-inline-end: calc(var(--ui-spacing) * 2 + 1.25rem);\n\n  &[data-selected]::after {\n    content: \"\";\n    position: absolute;\n    inset-block-start: 50%;\n    inset-inline-end: calc(var(--ui-spacing) * 2);\n    inline-size: 1rem;\n    block-size: 1rem;\n    translate: 0 -50%;\n    background: currentColor;\n    mask: var(--ui-icon-check) center / contain no-repeat;\n  }\n}\n\n/* A29: the last timeline item has nothing below it to leave room for. */\n[data-uiset] [data-slot=\"timeline-item\"]:last-child {\n  padding-block-end: 0;\n}\n\n/* A19: pagination fits a phone: in a narrow space the page buttons tighten up. */\n[data-uiset] [data-slot=\"pagination\"] {\n  container-type: inline-size;\n}\n\n@container (max-width: 22rem) {\n  [data-uiset] [data-slot=\"pagination-list\"] {\n    flex-wrap: nowrap;\n    gap: 0;\n  }\n\n  [data-uiset] :is([data-slot=\"pagination-link\"], [data-slot=\"pagination-previous\"], [data-slot=\"pagination-next\"], [data-slot=\"pagination-ellipsis\"]) {\n    min-inline-size: 1.75rem;\n    inline-size: 1.75rem;\n    padding-inline: 0;\n  }\n}\n\n/* UI SDK's generic ring would outline the whole branch (upstream issue 14). */\n[data-uiset] [data-slot=\"tree-item\"]:focus-visible {\n  outline: none;\n}\n\n[data-uiset] :is([data-slot=\"button\"], [data-slot$=\"-trigger\"]):not([data-disabled]) {\n  transition:\n    scale var(--uiset-fast) var(--uiset-ease),\n    background-color var(--uiset-fast) var(--uiset-ease),\n    border-color var(--uiset-fast) var(--uiset-ease);\n\n  &:active {\n    scale: 0.97;\n  }\n}\n\n[data-uiset] :is([data-slot=\"button\"]:not([data-variant]), [data-variant=\"solid\"]) {\n  border-color: var(--uiset-solid-border);\n  background: var(--uiset-solid-bg);\n  color: var(--uiset-solid-fg);\n  font-weight: var(--uiset-solid-weight);\n\n  &:hover:not([data-disabled]) {\n    background: var(--uiset-solid-hover);\n  }\n}\n\n[data-uiset] [data-variant=\"ghost\"] {\n  border-color: transparent;\n  background: transparent;\n}\n\n/* Every popup surface shares one radius in a skin (A17). */\n[data-uiset]\n  :is(\n    [data-slot=\"select-content\"],\n    [data-slot=\"popover-content\"],\n    [data-slot=\"menu-content\"],\n    [data-slot=\"combobox-content\"],\n    [data-slot=\"autocomplete-content\"],\n    [data-slot=\"hover-card-content\"],\n    [data-slot=\"date-picker-content\"],\n    [data-slot=\"navigation-menu-viewport\"],\n    [data-slot=\"trigger-menu-content\"]\n  ) {\n  border-radius: var(--uiset-popup-radius);\n}\n\n/* A block of code. UI SDK styles every <code> as inline code (padding, rounded corners, a\n   tint); inside <pre> the padding indents only the first line, so a block's code has none. */\n[data-uiset] pre > code {\n  padding: 0;\n  border-radius: 0;\n  background: none;\n}\n\n/* A select, menu or plain button placed in a toolbar is rounded like the toolbar's own\n   buttons (UI SDK's radius less the 3px gap and edge), so its corners sit concentric\n   inside the toolbar's instead of matching them. */\n[data-uiset]\n  [data-slot=\"toolbar\"]\n  :is([data-slot=\"select-trigger\"], [data-slot=\"menu-trigger\"], [data-slot=\"popover-trigger\"], [data-slot=\"button\"]) {\n  border-radius: max(0px, calc(var(--ui-radius) - 3px));\n}\n\n/* A segmented control's track keeps UI SDK's radius, and its chosen item UI SDK's radius\n   less 3px (the 2px gap and 1px edge between them), so the two curves share a center.\n   A track rounder than that looks loose around the item. */\n\n/* The track is built around the thumb: the same gap (the inset) on all four sides, and\n   corners that follow the thumb's at that distance, in every skin. */\n[data-uiset] [data-slot=\"switch\"] {\n  box-sizing: border-box;\n  width: var(--uiset-switch-width);\n  height: calc(var(--uiset-switch-thumb) + var(--uiset-switch-inset) * 2);\n  padding: calc(var(--uiset-switch-inset) - var(--uiset-switch-border));\n  border-width: var(--uiset-switch-border);\n  border-radius: calc(var(--uiset-switch-thumb-radius) + var(--uiset-switch-inset));\n  transition:\n    background-color var(--uiset-medium) var(--uiset-ease),\n    border-color var(--uiset-medium) var(--uiset-ease);\n}\n\n[data-uiset] [data-slot=\"switch-thumb\"] {\n  width: var(--uiset-switch-thumb);\n  height: var(--uiset-switch-thumb);\n  border-radius: var(--uiset-switch-thumb-radius);\n  transition:\n    translate var(--uiset-medium) var(--uiset-ease-spring),\n    background-color var(--uiset-medium) var(--uiset-ease);\n\n  &[data-checked] {\n    margin-inline-start: 0;\n    translate: calc(\n        var(--uiset-switch-width) - var(--uiset-switch-thumb) -\n          var(--uiset-switch-inset) * 2\n      )\n      0;\n  }\n\n  &[data-checked]:dir(rtl) {\n    translate: calc(\n        (\n            var(--uiset-switch-width) - var(--uiset-switch-thumb) -\n              var(--uiset-switch-inset) * 2\n          ) *\n          -1\n      )\n      0;\n  }\n}\n\n/* A toast's title and description sit together (React's .toast-text, the web's stack\n   part) and take the room, so the action and Dismiss line up at the end. */\n[data-uiset] [data-slot=\"toast\"] {\n  flex-wrap: nowrap;\n}\n\n[data-uiset] [data-slot=\"toast\"] > :is(.toast-text, [data-slot=\"stack\"]) {\n  display: grid;\n  flex: 1 1 auto;\n  gap: 0.125rem;\n  min-inline-size: 0;\n}\n\n/* A calendar keeps its own size in a stretching layout (a grid, a flex column), so its\n   days stay square rather than widening into bars. */\n[data-uiset] [data-slot=\"calendar\"]:not(.schedule-month) {\n  inline-size: max-content;\n  max-inline-size: 100%;\n}\n\n/* UI SDK draws a chevron in an arrow button that has no icon of its own, and keeps its\n   default text arrow beside it; the text arrow goes (the button keeps its aria-label). */\n[data-uiset]\n  :is(\n    [data-slot=\"calendar-previous\"],\n    [data-slot=\"calendar-next\"],\n    [data-slot=\"carousel-previous\"],\n    [data-slot=\"carousel-next\"],\n    [data-slot=\"pagination-previous\"],\n    [data-slot=\"pagination-next\"]\n  ):not(:has(*)) {\n  font-size: 0;\n}\n\n/* Date and time segments are separate targets; keep each at least 24px (WCAG 2.5.8). */\n[data-uiset] [data-slot$=\"input-segment\"]:not([data-type=\"literal\"]) {\n  min-inline-size: 24px;\n  min-block-size: 24px;\n  text-align: center;\n}\n\n[data-uiset] [data-slot=\"segmented-control-indicator\"] {\n  transition:\n    top var(--uiset-medium) var(--uiset-ease),\n    left var(--uiset-medium) var(--uiset-ease),\n    width var(--uiset-medium) var(--uiset-ease),\n    height var(--uiset-medium) var(--uiset-ease);\n}\n\n[data-uiset] [data-slot=\"slider-thumb\"] {\n  transition: scale var(--uiset-fast) var(--uiset-ease);\n\n  &[data-dragging] {\n    scale: 1.15;\n  }\n}\n\n[data-uiset]\n  :is(\n    [data-slot=\"select-content\"],\n    [data-slot=\"popover-content\"],\n    [data-slot=\"menu-content\"],\n    [data-slot=\"tooltip-content\"],\n    [data-slot=\"combobox-content\"],\n    [data-slot=\"dialog-content\"],\n    [data-slot=\"alert-dialog-content\"]\n  ) {\n  transform-origin: var(--transform-origin, center);\n  transition:\n    opacity var(--uiset-fast) var(--uiset-ease),\n    scale var(--uiset-medium) var(--uiset-ease);\n\n  &[data-starting-style],\n  &[data-ending-style] {\n    opacity: 0;\n    scale: 0.96;\n  }\n}\n\n[data-uiset] :is([data-slot=\"dialog-backdrop\"], [data-slot=\"alert-dialog-backdrop\"]) {\n  transition: opacity var(--uiset-medium) var(--uiset-ease);\n\n  &[data-starting-style],\n  &[data-ending-style] {\n    opacity: 0;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  [data-uiset],\n  [data-uiset] * {\n    transition-duration: 0s !important;\n    animation-duration: 0s !important;\n  }\n\n  [data-uiset] [data-slot]:active {\n    scale: none;\n  }\n}\n\n/* Windows high contrast drops shadows and fills, so state must survive as borders. */\n@media (forced-colors: active) {\n  [data-uiset] [data-slot]:focus-visible,\n  [data-uiset] [data-slot=\"slider-thumb\"]:has(:focus-visible),\n  [data-uiset] [data-slot=\"tree-item\"]:focus-visible > [data-slot=\"tree-label\"] {\n    outline-color: Highlight;\n  }\n\n  [data-uiset] :is([data-slot=\"switch\"], [data-slot=\"checkbox\"], [data-slot=\"radio\"]) {\n    border: 1px solid ButtonText;\n  }\n\n  [data-uiset] :is([data-slot=\"switch\"], [data-slot=\"checkbox\"])[data-checked],\n  [data-uiset] [data-slot=\"segmented-control-indicator\"],\n  [data-uiset] [data-slot=\"slider-indicator\"] {\n    background: Highlight;\n  }\n\n  [data-uiset] [data-slot=\"switch-thumb\"] {\n    background: ButtonText;\n\n    &[data-checked] {\n      background: HighlightText;\n    }\n  }\n\n  [data-uiset]\n    :is([data-slot=\"tabs-tab\"], [data-slot=\"segmented-control-item\"])[data-checked],\n  [data-uiset] [data-slot=\"tabs-tab\"][data-selected] {\n    outline: 2px solid Highlight;\n  }\n}\n\n/* UI SDK's stylesheet leaves Timeline and Waterfall unstyled; these give them a look\n   every skin inherits through its tokens. */\n\n[data-uiset] [data-slot=\"timeline\"]:not([data-orientation=\"horizontal\"]) {\n  display: grid;\n}\n\n[data-uiset] [data-slot=\"timeline-item\"]:not([data-orientation=\"horizontal\"]) {\n  position: relative;\n  display: grid;\n  grid-template-columns: 1.25rem minmax(0, 1fr);\n  column-gap: 0.75rem;\n  row-gap: 0.125rem;\n  padding-bottom: 1.125rem;\n\n  & > :not([data-slot=\"timeline-marker\"], [data-slot=\"timeline-connector\"]) {\n    grid-column: 2;\n  }\n}\n\n[data-uiset] [data-slot=\"timeline-marker\"] {\n  grid-column: 1;\n  grid-row: 1;\n  justify-self: center;\n  z-index: 1;\n  width: 0.75rem;\n  height: 0.75rem;\n  margin-top: 0.3em;\n  border: 2px solid var(--ui-primary);\n  border-radius: 50%;\n  background: var(--ui-background);\n\n  &[data-complete] {\n    background: var(--ui-primary);\n  }\n\n  &[data-current] {\n    box-shadow: 0 0 0 4px var(--ui-ring);\n  }\n\n  &[data-upcoming] {\n    border-color: var(--ui-input);\n  }\n}\n\n[data-uiset] [data-slot=\"timeline-connector\"]:not([data-orientation=\"horizontal\"]) {\n  position: absolute;\n  inset-inline-start: calc(0.625rem - 1px);\n  top: calc(0.3em + 0.875rem);\n  bottom: 0;\n  width: 2px;\n  background: var(--ui-border);\n}\n\n[data-uiset]\n  [data-slot=\"timeline-item\"]:is([data-last], :last-child)\n  [data-slot=\"timeline-connector\"] {\n  display: none;\n}\n\n[data-uiset] [data-slot=\"timeline-title\"] {\n  font-weight: 600;\n}\n\n[data-uiset] :is([data-slot=\"timeline-time\"], [data-slot=\"timeline-description\"]) {\n  color: var(--ui-muted-foreground);\n}\n\n[data-uiset] [data-slot=\"timeline-time\"] {\n  font-size: 0.75rem;\n  font-variant-numeric: tabular-nums;\n}\n\n[data-uiset] [data-slot=\"waterfall\"] {\n  display: grid;\n  gap: 2px;\n  font-size: 0.8125rem;\n}\n\n[data-uiset] :is([data-slot=\"waterfall-row\"], [data-slot=\"waterfall-header-row\"]) {\n  display: grid;\n  grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr);\n  align-items: center;\n  min-height: 1.75rem;\n  border-radius: var(--ui-radius);\n\n  &[data-selected] {\n    background: var(--ui-muted);\n  }\n\n  &:focus-visible {\n    outline: 2px solid var(--ui-ring-border);\n    outline-offset: -2px;\n  }\n}\n\n[data-uiset] [data-slot=\"waterfall-row-header\"] {\n  overflow: hidden;\n  padding-inline-start: calc((var(--waterfall-level, 1) - 1) * 1rem + 0.375rem);\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n[data-uiset] [data-slot=\"waterfall-bar\"] {\n  grid-column: 2;\n  min-width: 2px;\n  width: var(--waterfall-size, 0%);\n  height: 0.625rem;\n  margin-inline-start: var(--waterfall-start, 0%);\n  border-radius: 2px;\n  background: var(--ui-primary);\n}\n\n@media (forced-colors: active) {\n  [data-uiset]\n    :is([data-slot=\"waterfall-bar\"], [data-slot=\"timeline-marker\"][data-complete]) {\n    background: Highlight;\n  }\n}\n\n/* UI SDK's stylesheet puts a trailing trigger inside the date picker's input with\n   display:flex, but the root's earlier flex-direction:column still stacks them. In a row,\n   the column layout's gap would push the trigger past the input's edge, so it goes. */\n[data-uiset]\n  [data-slot=\"date-picker\"]:has(\n    > [data-slot=\"date-picker-input\"] + [data-slot=\"date-picker-trigger\"]\n  ) {\n  flex-direction: row;\n  align-items: center;\n  column-gap: 0;\n}\n\n/* UI SDK's date picker wraps its month header (previous, month, next) in a plain <div>;\n   that row spans the popup and lays out like a calendar's own header. */\n[data-uiset]\n  :is([data-slot=\"date-picker-content\"], [data-slot=\"calendar\"])\n  > div:has(> [data-slot=\"calendar-heading\"]) {\n  display: grid;\n  grid-column: 1 / -1;\n  grid-template-columns: auto 1fr auto;\n  align-items: center;\n}\n\n/* C28: every label above a field reads the same (UI SDK sizes a field label only). */\n[data-uiset] :is([data-slot=\"select-label\"], [data-slot=\"combobox-label\"], [data-slot=\"autocomplete-label\"]) {\n  color: var(--ui-foreground);\n  font-size: calc(var(--ui-font-size) - 0.0625rem);\n  font-weight: 500;\n}\n\n/* C20: a tree row's ring sits inside the row, so a scrolling tree never clips its sides. */\n[data-uiset] [data-slot=\"tree-item\"]:focus-visible > [data-slot=\"tree-label\"] {\n  outline-offset: -2px;\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/base.css"
    },
    {
      "path": "registry/uiset/ui/uiset/feedback.ts",
      "content": "import { elementOf, observe, type ObservedChange } from \"@ui-sdk/core/observe\"\nimport { haptic, type Strength } from \"./haptics\"\nimport { isProfile, play, unlockAudio, type Cue } from \"./sound\"\n\ntype Feedback = { cue: Cue; pitch?: number; strength?: Strength | null }\n\nconst continuous = new Set([\"slider\", \"number-input\", \"color-picker\", \"resizable\"])\nconst textual = new Set([\n  \"input\",\n  \"textarea\",\n  \"password-input\",\n  \"autocomplete\",\n  \"token-input\",\n  \"date-input\",\n  \"time-input\",\n  \"otp-input\",\n  \"trigger-menu\",\n])\nconst pressable =\n  '[data-slot=\"button\"], [data-slot$=\"-trigger\"], [data-slot$=\"-close\"], [data-uiset-press]'\n\nlet installed = false\nconst lastTick = new WeakMap<Element, number>()\nconst reducedMotion =\n  typeof matchMedia === \"function\" ? matchMedia(\"(prefers-reduced-motion: reduce)\") : null\n\nfunction rootOf(element: Element | null) {\n  return element?.closest<HTMLElement>(\"[data-uiset]\") ?? null\n}\n\nfunction settingsAt(element: Element) {\n  const root = rootOf(element)\n  if (!root) return null\n  const style = getComputedStyle(element)\n  const profile = style.getPropertyValue(\"--uiset-sound\").trim() || \"soft\"\n  const volume = Number.parseFloat(style.getPropertyValue(\"--uiset-sound-volume\"))\n  return {\n    sound: root.dataset.sound === \"on\" && profile !== \"none\" && isProfile(profile),\n    haptics: root.dataset.haptics !== \"off\" && !reducedMotion?.matches,\n    typing: style.getPropertyValue(\"--uiset-typing\").trim() === \"on\",\n    profile: isProfile(profile) ? profile : \"soft\",\n    volume: Number.isFinite(volume) ? volume : 0.6,\n  }\n}\n\nfunction cue(element: Element | null, feedback: Feedback) {\n  if (!element) return\n  const settings = settingsAt(element)\n  if (!settings) return\n  if (feedback.cue === \"tick\") {\n    const now = performance.now()\n    if (now - (lastTick.get(element) ?? 0) < 28) return\n    lastTick.set(element, now)\n  }\n  if (feedback.cue === \"key\" && !settings.typing) return\n  if (settings.sound) {\n    play(feedback.cue, {\n      profile: settings.profile,\n      volume: settings.volume,\n      pitch: feedback.pitch,\n    })\n  }\n  if (settings.haptics && feedback.strength !== null) {\n    haptic(feedback.strength ?? (feedback.cue === \"tick\" ? \"light\" : \"medium\"))\n  }\n}\n\nfunction fraction(element: Element, value: unknown) {\n  const input = element.querySelector<HTMLInputElement>('input[type=\"range\"]')\n  const current = Array.isArray(value) ? value[0] : value\n  if (!input || typeof current !== \"number\") return 0.5\n  const min = Number(input.min || 0)\n  const max = Number(input.max || 100)\n  return max > min ? (current - min) / (max - min) : 0.5\n}\n\nfunction feedbackFor(change: ObservedChange, element: Element): Feedback | null {\n  const { key, value, component } = change\n  if (key === \"open\") return { cue: value ? \"open\" : \"close\", strength: null }\n  if (key === \"checked\" || key === \"pressed\") return { cue: value ? \"on\" : \"off\" }\n  if (key !== \"value\") return null\n  if (continuous.has(component)) return { cue: \"tick\", pitch: fraction(element, value) }\n  if (textual.has(component)) return { cue: \"key\", strength: null }\n  return { cue: \"select\" }\n}\n\nfunction onChange(change: ObservedChange) {\n  const element = elementOf(change.ref)\n  if (!element) return\n  const feedback = feedbackFor(change, element)\n  if (feedback) cue(element, feedback)\n}\n\nfunction pressTarget(event: Event) {\n  const target = event.target instanceof Element ? event.target.closest(pressable) : null\n  if (!target || !rootOf(target)) return null\n  if (target.matches(':disabled, [data-disabled], [aria-disabled=\"true\"]')) return null\n  return target\n}\n\nfunction onPointerDown(event: PointerEvent) {\n  if (rootOf(event.target as Element | null)?.dataset.sound === \"on\") unlockAudio()\n  const target = pressTarget(event)\n  if (target) cue(target, { cue: \"press\" })\n}\n\nfunction onPointerUp(event: PointerEvent) {\n  const target = pressTarget(event)\n  if (target) cue(target, { cue: \"release\", strength: null })\n}\n\nfunction onKeyDown(event: KeyboardEvent) {\n  if (rootOf(event.target as Element | null)?.dataset.sound === \"on\") unlockAudio()\n  if (event.repeat || (event.key !== \"Enter\" && event.key !== \" \")) return\n  const target = pressTarget(event)\n  if (target) cue(target, { cue: \"press\" })\n}\n\n// observe() only sees components created after it starts, so this runs when the\n// module is first imported, before the app renders.\nfunction installUISet() {\n  if (installed || typeof document === \"undefined\") return\n  installed = true\n  observe(onChange, { live: true })\n  document.addEventListener(\"pointerdown\", onPointerDown, {\n    capture: true,\n    passive: true,\n  })\n  document.addEventListener(\"pointerup\", onPointerUp, { capture: true, passive: true })\n  document.addEventListener(\"keydown\", onKeyDown, { capture: true })\n}\n\nexport { cue, installUISet }\nexport type { Feedback }\n",
      "type": "registry:file",
      "target": "@ui/uiset/feedback.ts"
    },
    {
      "path": "registry/uiset/ui/uiset/focus.ts",
      "content": "import { keepFocus } from \"@ui-sdk/core\"\n\n/**\n * UI SDK's `keepFocus`, for focus that goes back somewhere after a person clicks.\n *\n * `keepFocus` moves focus to the new element unless the person has put focus somewhere else\n * in the meantime. Safari doesn't focus a button when it's clicked: focus goes to the nearest\n * focusable ancestor instead, often a `<main tabindex=\"-1\">` that an app focuses after\n * navigating. `keepFocus` reads that as focus the person moved, and leaves it there. Here,\n * focus resting on an ancestor of the element counts as lost too.\n */\nfunction returnFocus(element: () => HTMLElement | undefined) {\n  keepFocus(element)\n  const restore = () => {\n    const el = element()\n    const active = el?.ownerDocument.activeElement\n    if (el && active && active !== el && active.contains(el)) el.focus()\n  }\n  queueMicrotask(restore)\n  setTimeout(restore)\n}\n\nexport { returnFocus }\n",
      "type": "registry:file",
      "target": "@ui/uiset/focus.ts"
    },
    {
      "path": "registry/uiset/ui/uiset/haptics.ts",
      "content": "type Strength = \"light\" | \"medium\"\n\nlet iosSwitch: HTMLLabelElement | null = null\n\nfunction canVibrate() {\n  return typeof navigator !== \"undefined\" && typeof navigator.vibrate === \"function\"\n}\n\nfunction isTouchSafari() {\n  if (typeof navigator === \"undefined\") return false\n  const ua = navigator.userAgent\n  return (\n    /iPhone|iPad|iPod/.test(ua) || (/Macintosh/.test(ua) && navigator.maxTouchPoints > 1)\n  )\n}\n\n// iOS Safari has no Vibration API, but toggling a switch-style checkbox through its\n// label plays the system haptic (iOS 18+). It must run inside a user gesture.\nfunction switchHaptic() {\n  if (!iosSwitch) {\n    iosSwitch = document.createElement(\"label\")\n    iosSwitch.setAttribute(\"aria-hidden\", \"true\")\n    iosSwitch.style.cssText =\n      \"position:fixed;inset:auto auto 0 0;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none\"\n    const input = document.createElement(\"input\")\n    input.type = \"checkbox\"\n    input.setAttribute(\"switch\", \"\")\n    input.tabIndex = -1\n    iosSwitch.append(input)\n    document.body.append(iosSwitch)\n  }\n  iosSwitch.click()\n}\n\nfunction haptic(strength: Strength = \"light\") {\n  if (canVibrate()) {\n    navigator.vibrate(strength === \"light\" ? 6 : 12)\n    return\n  }\n  if (isTouchSafari()) switchHaptic()\n}\n\nexport { haptic }\nexport type { Strength }\n",
      "type": "registry:file",
      "target": "@ui/uiset/haptics.ts"
    },
    {
      "path": "registry/uiset/ui/uiset/skins/base.css",
      "content": "/*\n  The base skin. It adopts a shadcn/ui theme when one is on the page (--background,\n  --primary, ...) so UISet drops into an existing app and matches it. Otherwise it\n  derives everything from the key color.\n*/\n\n[data-uiset][data-skin=\"base\"] {\n  --ui-background: var(\n    --background,\n    light-dark(\n      oklch(0.995 0.002 var(--uiset-key-h)),\n      oklch(0.17 0.008 var(--uiset-key-h))\n    )\n  );\n  --ui-foreground: var(\n    --foreground,\n    light-dark(\n      oklch(0.21 0.012 var(--uiset-key-h)),\n      oklch(0.96 0.004 var(--uiset-key-h))\n    )\n  );\n  --ui-muted: var(\n    --muted,\n    light-dark(\n      oklch(0.962 0.006 var(--uiset-key-h)),\n      oklch(0.235 0.01 var(--uiset-key-h))\n    )\n  );\n  --ui-muted-foreground: var(\n    --muted-foreground,\n    light-dark(\n      oklch(0.47 0.016 var(--uiset-key-h)),\n      oklch(0.73 0.012 var(--uiset-key-h))\n    )\n  );\n  --ui-border: var(\n    --border,\n    light-dark(oklch(0.9 0.008 var(--uiset-key-h)), oklch(0.3 0.012 var(--uiset-key-h)))\n  );\n  /* Field and control edges hold 3:1 against the surface (WCAG 1.4.11). */\n  --ui-input: var(\n    --input,\n    light-dark(\n      oklch(0.6 0.014 var(--uiset-key-h)),\n      oklch(0.56 0.014 var(--uiset-key-h))\n    )\n  );\n  --ui-primary: var(--uiset-key);\n  --ui-primary-foreground: var(--uiset-on-key);\n  --ui-ring: color-mix(in oklab, var(--uiset-key) 30%, transparent);\n  --ui-ring-border: light-dark(\n    var(--uiset-key),\n    color-mix(in oklab, var(--uiset-key), white 35%)\n  );\n  --ui-radius: var(--uiset-radius);\n  --ui-font-size: 0.875rem;\n  --ui-shadow:\n    0 1px 2px light-dark(oklch(0.2 0.02 var(--uiset-key-h) / 0.08), oklch(0 0 0 / 0.5)),\n    0 12px 32px -12px\n      light-dark(oklch(0.2 0.04 var(--uiset-key-h) / 0.22), oklch(0 0 0 / 0.7));\n}\n\n[data-uiset][data-skin=\"base\"]:not([data-key]) {\n  --uiset-key: var(--primary, oklch(0.5 0.19 268));\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/skins/base.css"
    },
    {
      "path": "registry/uiset/ui/uiset/skins/blueprint.css",
      "content": "/*\n  Blueprint: a technical drawing. Cyanotype paper, white linework, hatching for\n  filled states, dimension lines for tracks, lettering for labels.\n*/\n\n[data-uiset][data-skin=\"blueprint\"] {\n  color-scheme: dark;\n  --blueprint-paper: oklch(0.36 0.11 254);\n  --blueprint-line: oklch(0.96 0.02 230);\n  --blueprint-faint: oklch(0.96 0.02 230 / 0.16);\n  --blueprint-grid: oklch(0.96 0.02 230 / 0.07);\n  --blueprint-hatch: repeating-linear-gradient(\n    -45deg,\n    var(--blueprint-line) 0 1.5px,\n    transparent 1.5px 5px\n  );\n\n  --ui-background: var(--blueprint-paper);\n  --ui-foreground: var(--blueprint-line);\n  --ui-muted: oklch(0.42 0.11 254);\n  --ui-muted-foreground: oklch(0.86 0.05 235);\n  --ui-border: oklch(0.96 0.02 230 / 0.45);\n  --ui-input: var(--blueprint-line);\n  --ui-primary: var(--blueprint-line);\n  --ui-primary-foreground: var(--blueprint-paper);\n  --ui-ring: oklch(0.96 0.02 230 / 0.35);\n  --ui-ring-border: oklch(0.9 0.13 200);\n  --ui-radius: 0;\n  --ui-shadow: none;\n  --ui-font-sans:\n    \"Barlow Semi Condensed\", \"Arial Narrow\", \"Roboto Condensed\", system-ui, sans-serif;\n  --ui-font-size: 0.9375rem;\n  --uiset-sound: paper;\n  --uiset-solid-bg: var(--blueprint-line);\n  --uiset-solid-fg: var(--blueprint-paper);\n  --uiset-solid-border: var(--blueprint-line);\n  --uiset-solid-hover: oklch(0.86 0.06 220);\n  --uiset-solid-weight: 600;\n  --uiset-popup-radius: 0;\n  --uiset-switch-inset: 4px;\n  /* A whole-pixel border (browsers draw 1.5px as 1 here), so the thumb's gap stays even\n     and the border survives forced colors. */\n  --uiset-switch-border: 1px;\n\n  font-family: var(--ui-font-sans);\n  background-color: var(--blueprint-paper);\n  background-image:\n    linear-gradient(var(--blueprint-grid) 1px, transparent 1px),\n    linear-gradient(90deg, var(--blueprint-grid) 1px, transparent 1px),\n    linear-gradient(var(--blueprint-faint) 1px, transparent 1px),\n    linear-gradient(90deg, var(--blueprint-faint) 1px, transparent 1px);\n  background-size:\n    8px 8px,\n    8px 8px,\n    64px 64px,\n    64px 64px;\n  background-position: -1px -1px;\n\n  &\n    :is(\n      [data-slot=\"field-label\"],\n      [data-slot=\"select-label\"],\n      [data-slot=\"combobox-label\"],\n      [data-slot=\"autocomplete-label\"],\n      [data-slot=\"label\"]:not(:has(> :is([data-slot=\"checkbox\"], [data-slot=\"radio\"], [data-slot=\"switch\"])))\n    ) {\n    font-weight: 500;\n    font-size: 0.75rem;\n    letter-spacing: 0.08em;\n    text-transform: uppercase;\n  }\n\n  /* Lettering on every button, ghost ones too; the drawn outline only where there is one.\n     A menubar's menus are part of the bar, and buttons kits use as rows (a step, a chat, a\n     problem, a suggestion) show content, so they keep its case and get no chrome. */\n  &\n    :is(\n      [data-slot=\"button\"],\n      [data-slot=\"toolbar-button\"],\n      [data-slot=\"dialog-trigger\"],\n      [data-slot=\"alert-dialog-trigger\"],\n      [data-slot=\"drawer-trigger\"],\n      [data-slot=\"popover-trigger\"],\n      button[data-slot=\"tooltip-trigger\"],\n      [data-slot=\"menu-trigger\"],\n      [data-slot=\"file-input-trigger\"],\n      [data-slot=\"dialog-close\"],\n      [data-slot=\"alert-dialog-close\"],\n      [data-slot=\"drawer-close\"],\n      [data-slot=\"popover-close\"]\n    ):not([data-slot=\"menubar\"] [data-slot=\"menu-trigger\"], .stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    letter-spacing: 0.04em;\n    text-transform: uppercase;\n    font-weight: 600;\n  }\n\n  &\n    :is(\n      [data-slot=\"button\"],\n      [data-slot=\"dialog-trigger\"],\n      [data-slot=\"alert-dialog-trigger\"],\n      [data-slot=\"drawer-trigger\"],\n      [data-slot=\"popover-trigger\"],\n      button[data-slot=\"tooltip-trigger\"],\n      [data-slot=\"menu-trigger\"],\n      [data-slot=\"file-input-trigger\"],\n      [data-slot=\"dialog-close\"],\n      [data-slot=\"alert-dialog-close\"],\n      [data-slot=\"drawer-close\"],\n      [data-slot=\"popover-close\"]\n    ):not([data-variant=\"ghost\"], [data-slot=\"menubar\"] [data-slot=\"menu-trigger\"], .stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    border-width: 1.5px;\n  }\n\n  &\n    :is(\n      [data-variant=\"outline\"],\n      :is(\n        [data-slot=\"dialog-trigger\"],\n        [data-slot=\"alert-dialog-trigger\"],\n        [data-slot=\"drawer-trigger\"],\n        [data-slot=\"popover-trigger\"],\n        [data-slot=\"menu-trigger\"],\n        [data-slot=\"file-input-trigger\"],\n        [data-slot=\"dialog-close\"],\n        [data-slot=\"alert-dialog-close\"],\n        [data-slot=\"drawer-close\"],\n        [data-slot=\"popover-close\"]\n      ):not([data-variant], [data-slot=\"menubar\"] [data-slot=\"menu-trigger\"])\n    ):not(.stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    border-color: var(--blueprint-line);\n    background: transparent;\n    color: var(--blueprint-line);\n\n    /* A faint fill; hatching ran through the label (A2). */\n    &:is(:hover, [data-open], [data-popup-open]):not([data-disabled]) {\n      background-color: var(--blueprint-faint);\n      background-image: none;\n    }\n  }\n\n  & [data-slot=\"switch\"] {\n    border: 1px solid var(--blueprint-line);\n    background: transparent;\n\n    &[data-checked] {\n      background-color: transparent;\n      background-image: var(--blueprint-hatch);\n    }\n  }\n\n  & [data-slot=\"switch-thumb\"] {\n    border: 1.5px solid var(--blueprint-line);\n    background: var(--blueprint-paper);\n\n    &[data-checked] {\n      background: var(--blueprint-paper);\n    }\n  }\n\n  & [data-slot=\"slider-track\"]:not([data-orientation=\"vertical\"]) {\n    height: 1.5px;\n    background: var(--blueprint-line);\n\n    &::before,\n    &::after {\n      content: \"\";\n      position: absolute;\n      top: -6px;\n      width: 1.5px;\n      height: 13px;\n      background: var(--blueprint-line);\n    }\n\n    &::before {\n      inset-inline-start: 0;\n    }\n\n    &::after {\n      inset-inline-end: 0;\n    }\n  }\n\n  & [data-slot=\"slider-indicator\"]:not([data-orientation=\"vertical\"]) {\n    height: 7px;\n    translate: 0 -3px;\n    background: var(--blueprint-hatch);\n  }\n\n  & [data-slot=\"slider-thumb\"] {\n    border: 1.5px solid var(--blueprint-line);\n    border-radius: 0;\n    background: var(--blueprint-paper);\n    rotate: 45deg;\n  }\n\n  & [data-slot=\"segmented-control\"] {\n    border: 1.5px solid var(--blueprint-line);\n    background: transparent;\n  }\n\n  & [data-slot=\"segmented-control-indicator\"] {\n    border-radius: 0;\n    background: var(--blueprint-line);\n  }\n\n  & [data-slot=\"segmented-control-item\"] {\n    text-transform: uppercase;\n    letter-spacing: 0.06em;\n\n    &[data-checked] {\n      color: var(--blueprint-paper);\n    }\n  }\n\n  /* Every text box is drawn as a line to write on (A6). */\n  &\n    :is(\n      [data-slot=\"input\"],\n      [data-slot=\"select-trigger\"],\n      [data-slot=\"textarea\"],\n      [data-slot=\"password-input\"],\n      [data-slot=\"date-input\"],\n      [data-slot=\"time-input\"],\n      [data-slot=\"date-picker-input\"],\n      [data-slot=\"combobox-input\"],\n      [data-slot=\"autocomplete-input\"],\n      [data-slot=\"token-input-editor\"],\n      [data-slot=\"color-picker-input\"],\n      [data-slot=\"otp-input-slot\"]\n    ) {\n    border: 0;\n    border-bottom: 1.5px solid var(--blueprint-line);\n    border-radius: 0;\n    background: transparent;\n  }\n\n  &\n    :is(\n      [data-slot=\"select-content\"],\n      [data-slot=\"popover-content\"],\n      [data-slot=\"menu-content\"],\n      [data-slot=\"combobox-content\"],\n      [data-slot=\"autocomplete-content\"],\n      [data-slot=\"hover-card-content\"],\n      [data-slot=\"date-picker-content\"],\n      [data-slot=\"navigation-menu-viewport\"],\n      [data-slot=\"trigger-menu-content\"],\n      [data-slot=\"dialog-content\"],\n      [data-slot=\"alert-dialog-content\"],\n      [data-slot=\"drawer-content\"]\n    ) {\n    border: 1.5px solid var(--blueprint-line);\n    background: var(--blueprint-paper);\n    box-shadow: 6px 6px 0 var(--blueprint-faint);\n  }\n\n  & :is([data-slot=\"select-item\"], [data-slot=\"menu-item\"])[data-highlighted] {\n    background: var(--blueprint-line);\n    color: var(--blueprint-paper);\n  }\n\n  & [data-slot=\"tabs-tab\"][data-selected] {\n    box-shadow: inset 0 -1.5px var(--blueprint-line);\n  }\n\n  /* What isn't reached yet is drawn faint (A3): an empty star, an upcoming step or marker. */\n  & [data-slot=\"rating-item\"]::before {\n    background: linear-gradient(\n      var(--ui-rating-direction),\n      var(--ui-rating-color) calc(var(--rating-fill, 0) * 100%),\n      oklch(0.96 0.02 230 / 0.35) 0\n    );\n  }\n\n  & :is([data-slot=\"timeline-marker\"][data-upcoming], .stepper li[data-state=\"upcoming\"] .stepper-mark) {\n    border-color: oklch(0.96 0.02 230 / 0.45);\n    color: oklch(0.86 0.05 235);\n  }\n\n  /* An invalid field still says so in this skin's field style (C16). */\n  & :is([data-slot=\"input\"], [data-slot=\"select-trigger\"], [data-slot=\"textarea\"], [data-slot=\"password-input\"], [data-slot=\"date-input\"], [data-slot=\"time-input\"], [data-slot=\"date-picker-input\"], [data-slot=\"combobox-input\"], [data-slot=\"autocomplete-input\"], [data-slot=\"token-input-editor\"], [data-slot=\"number-input-control\"], [data-slot=\"otp-input-slot\"]):is([data-invalid], [aria-invalid=\"true\"], :has([aria-invalid=\"true\"])) {\n    border-bottom-color: var(--ui-destructive);\n  }\n\n  /* Plain number fields drop the browser's spinner; NumberInput has real buttons (C37). */\n  & input[type=\"number\"] {\n    appearance: textfield;\n\n    &::-webkit-inner-spin-button,\n    &::-webkit-outer-spin-button {\n      appearance: none;\n      margin: 0;\n    }\n  }\n\n  /* A vertical slider: the same dimension line, standing up (D7). */\n  & [data-slot=\"slider-track\"][data-orientation=\"vertical\"] {\n    width: 1.5px;\n    background: var(--blueprint-line);\n  }\n\n  & [data-slot=\"slider-indicator\"][data-orientation=\"vertical\"] {\n    width: 7px;\n    translate: -3px 0;\n    background: var(--blueprint-hatch);\n  }\n}\n\n/* Hatching is the drawing's fill, and Windows high contrast removes it (Firefox drops it\n   outright), so the states it marks take the system highlight there instead. */\n@media (forced-colors: active) {\n  [data-uiset][data-skin=\"blueprint\"] {\n    & [data-slot=\"switch\"][data-checked],\n    & [data-slot=\"slider-indicator\"]:not([data-orientation=\"vertical\"]),\n    & [data-slot=\"slider-indicator\"][data-orientation=\"vertical\"] {\n      background: Highlight;\n    }\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/skins/blueprint.css"
    },
    {
      "path": "registry/uiset/ui/uiset/skins/ink.css",
      "content": "/*\n  Ink: an electronic-paper reader. A matte grey screen, crisp ink, greys made of dots,\n  a reading serif for headings and long text, a legibility face for controls, and no\n  motion: a change is a redraw. The interface has no color, so meaning never depends on\n  it; only data (charts, calendar events) takes a muted, print-like set.\n  Design plan: docs/ink.md.\n*/\n\n[data-uiset][data-skin=\"ink\"] {\n  color-scheme: light;\n\n  --ink-screen: oklch(0.95 0 0);\n  --ink-ink: oklch(0.2 0 0);\n  --ink-grey: oklch(0.42 0 0);\n  --ink-tint: oklch(0.88 0 0);\n  --ink-rule: oklch(0.74 0 0);\n  --ink-hover: oklch(0.32 0 0);\n  /* Mid-grey as the medium makes it: a fine screen of dots, and 45° hatching. */\n  --ink-dots: radial-gradient(circle, var(--ink-ink) 0.85px, transparent 1.15px);\n  --ink-dots-size: 3px 3px;\n  --ink-hatch: repeating-linear-gradient(45deg, var(--ink-ink) 0 1.5px, transparent 1.5px 5px);\n  --ink-serif: \"Literata\", \"Iowan Old Style\", Georgia, serif;\n\n  --ui-background: var(--ink-screen);\n  --ui-foreground: var(--ink-ink);\n  --ui-muted: var(--ink-tint);\n  --ui-muted-foreground: var(--ink-grey);\n  --ui-border: var(--ink-rule);\n  --ui-input: var(--ink-ink);\n  --ui-primary: var(--ink-ink);\n  --ui-primary-foreground: var(--ink-screen);\n  --ui-destructive: var(--ink-ink);\n  --ui-ring: oklch(0.2 0 0 / 0.25);\n  --ui-ring-border: var(--ink-ink);\n  --ui-radius: 6px;\n  --ui-shadow: none;\n  --ui-font-sans: \"Atkinson Hyperlegible\", \"Atkinson Hyperlegible Next\", system-ui, sans-serif;\n  --ui-font-size: 0.9375rem;\n  --ui-rating-color: var(--ink-ink);\n\n  --uiset-sound: paper;\n  --uiset-solid-bg: var(--ink-ink);\n  --uiset-solid-fg: var(--ink-screen);\n  --uiset-solid-border: var(--ink-ink);\n  --uiset-solid-hover: var(--ink-hover);\n  --uiset-solid-weight: 700;\n  --uiset-popup-radius: 6px;\n  --uiset-switch-border: 2px;\n\n  /* No color for status: an icon and a word say it, a fill pattern backs it up. */\n  --tone-info: var(--ink-ink);\n  --tone-success: var(--ink-ink);\n  --tone-warning: var(--ink-ink);\n  --tone-danger: var(--ink-ink);\n  --tone-neutral: var(--ink-grey);\n\n  --uiset-cable-1: var(--ink-ink);\n  --uiset-cable-2: oklch(0.5 0.12 250);\n  --uiset-cable-3: oklch(0.58 0.15 55);\n  --uiset-cable-4: oklch(0.42 0.15 25);\n  --uiset-cable-5: oklch(0.38 0.15 300);\n\n  /* Code in ink and grey, as the page prints it. */\n  --shiki-token-keyword: var(--ink-ink);\n  --shiki-token-string: var(--ink-grey);\n  --shiki-token-string-expression: var(--ink-grey);\n  --shiki-token-function: var(--ink-ink);\n  --shiki-token-constant: var(--ink-grey);\n  --shiki-token-parameter: var(--ink-ink);\n  --shiki-token-comment: var(--ink-grey);\n  --shiki-token-link: var(--ink-ink);\n\n  --term-black: var(--ink-ink);\n  --term-red: var(--ink-ink);\n  --term-green: var(--ink-ink);\n  --term-yellow: var(--ink-grey);\n  --term-blue: var(--ink-ink);\n  --term-magenta: var(--ink-grey);\n  --term-cyan: var(--ink-grey);\n  --term-white: var(--ink-grey);\n\n  font-family: var(--ui-font-sans);\n  line-height: 1.4;\n  background-color: var(--ink-screen);\n  scroll-behavior: auto;\n\n  /* No motion, whatever the motion setting: a change is a redraw. */\n  &,\n  & *,\n  & ::before,\n  & ::after {\n    transition-duration: 0s;\n    transition-delay: 0s;\n    animation-duration: 0s;\n    animation-delay: 0s;\n    animation-iteration-count: 1;\n  }\n\n  & :not(.ide-code-input)::selection {\n    background: var(--ink-ink);\n    color: var(--ink-screen);\n  }\n\n  /* The reading face for headings and long text; the legibility face for everything else. */\n  &\n    :is(\n      h1,\n      h2,\n      h3,\n      [data-slot=\"dialog-title\"],\n      [data-slot=\"alert-dialog-title\"],\n      [data-slot=\"drawer-title\"],\n      .rich-text-content,\n      .chat-markdown\n    ) {\n    font-family: var(--ink-serif);\n    letter-spacing: 0;\n  }\n\n  & :is(.rich-text-content, .chat-markdown) {\n    line-height: 1.6;\n  }\n\n  &\n    :is(\n      [data-slot=\"field-label\"],\n      [data-slot=\"select-label\"],\n      [data-slot=\"combobox-label\"],\n      [data-slot=\"label\"]:not(:has(> :is([data-slot=\"checkbox\"], [data-slot=\"radio\"], [data-slot=\"switch\"]))),\n      [data-slot=\"autocomplete-label\"]\n    ) {\n    font-size: var(--ui-font-size);\n    font-weight: 700;\n  }\n\n  /* Controls: a firm ink edge. */\n  &\n    :is(\n      [data-slot=\"button\"][data-variant=\"outline\"],\n      [data-slot=\"input\"],\n      [data-slot=\"select-trigger\"],\n      [data-slot=\"textarea\"],\n      [data-slot=\"password-input\"],\n      [data-slot=\"date-input\"],\n      [data-slot=\"time-input\"],\n      [data-slot=\"date-picker-input\"],\n      [data-slot=\"combobox-input\"],\n      [data-slot=\"autocomplete-input\"],\n      [data-slot=\"token-input-editor\"],\n      [data-slot=\"color-picker-input\"],\n      [data-slot=\"otp-input-slot\"],\n      [data-slot=\"number-input-group\"],\n      [data-slot=\"checkbox\"],\n      [data-slot=\"radio\"]\n    ) {\n    border-width: 1.5px;\n    border-color: var(--ink-ink);\n  }\n\n  & :is([data-slot=\"button\"], button[data-slot=\"tooltip-trigger\"], [data-slot=\"toolbar-button\"], [data-slot=\"toggle\"]) {\n    font-weight: 700;\n  }\n\n  /* Danger is a double rule round the button, as well as its word. */\n  & [data-slot=\"button\"][data-variant=\"destructive\"] {\n    border: 4px double var(--ink-ink);\n    background: var(--ink-screen);\n    color: var(--ink-ink);\n\n    &:hover:not([data-disabled]) {\n      background: var(--ink-tint);\n    }\n  }\n\n  /* An invalid field says so with a broken edge as well as its message. */\n  &\n    :is(\n      [data-slot=\"input\"],\n      [data-slot=\"select-trigger\"],\n      [data-slot=\"textarea\"],\n      [data-slot=\"password-input\"],\n      [data-slot=\"date-input\"],\n      [data-slot=\"time-input\"],\n      [data-slot=\"date-picker-input\"],\n      [data-slot=\"combobox-input\"],\n      [data-slot=\"autocomplete-input\"],\n      [data-slot=\"token-input-editor\"],\n      [data-slot=\"number-input-group\"],\n      [data-slot=\"otp-input-slot\"]\n    ):is([data-invalid], [aria-invalid=\"true\"], :has([aria-invalid=\"true\"])) {\n    border-width: 2px;\n    border-style: dashed;\n  }\n\n  /* Popups are a sheet laid on top: the screen, framed in ink. */\n  &\n    :is(\n      [data-slot=\"select-content\"],\n      [data-slot=\"popover-content\"],\n      [data-slot=\"menu-content\"],\n      [data-slot=\"combobox-content\"],\n      [data-slot=\"autocomplete-content\"],\n      [data-slot=\"hover-card-content\"],\n      [data-slot=\"date-picker-content\"],\n      [data-slot=\"navigation-menu-viewport\"],\n      [data-slot=\"trigger-menu-content\"],\n      [data-slot=\"dialog-content\"],\n      [data-slot=\"alert-dialog-content\"],\n      [data-slot=\"drawer-content\"],\n      [data-slot=\"preview-card-content\"]\n    ) {\n    border: 2px solid var(--ink-ink);\n    background: var(--ink-screen);\n    box-shadow: none;\n  }\n\n  /* Chosen and highlighted things are solid ink. */\n  & :is([data-slot$=\"-item\"], [data-slot$=\"-option\"])[data-highlighted],\n  & [data-slot=\"toggle\"][data-pressed],\n  & [data-slot=\"segmented-control-item\"][data-checked] {\n    background: var(--ink-ink);\n    color: var(--ink-screen);\n    /* Inside a solid row, quiet text and chips reverse too (a hint, a shortcut, a count). */\n    --ui-muted: oklch(0.34 0 0);\n    --ui-muted-foreground: oklch(0.84 0 0);\n  }\n\n  & [data-slot=\"tabs-tab\"][data-selected] {\n    box-shadow: inset 0 -3px var(--ink-ink);\n  }\n\n  & [data-slot=\"tabs-indicator\"] {\n    display: none;\n  }\n\n  & [data-slot=\"segmented-control\"] {\n    border: 1.5px solid var(--ink-ink);\n    background: transparent;\n  }\n\n  & [data-slot=\"segmented-control-indicator\"] {\n    background: var(--ink-ink);\n    box-shadow: none;\n  }\n\n  & [data-slot=\"switch\"] {\n    border: 2px solid var(--ink-ink);\n    background: var(--ink-screen);\n\n    &[data-checked] {\n      background: var(--ink-ink);\n    }\n  }\n\n  & [data-slot=\"switch-thumb\"] {\n    background: var(--ink-ink);\n    box-shadow: none;\n\n    &[data-checked] {\n      background: var(--ink-screen);\n    }\n  }\n\n  & :is([data-slot=\"checkbox\"], [data-slot=\"radio\"]) {\n    background: var(--ink-screen);\n    box-shadow: none;\n\n    &:is([data-checked], [data-indeterminate]) {\n      background: var(--ink-ink);\n      color: var(--ink-screen);\n    }\n  }\n\n  & [data-slot=\"slider-track\"] {\n    background: var(--ink-tint);\n    box-shadow: inset 0 0 0 1px var(--ink-ink);\n  }\n\n  & [data-slot=\"slider-thumb\"] {\n    border: 2px solid var(--ink-ink);\n    background: var(--ink-screen);\n    box-shadow: none;\n  }\n\n  & :is([data-slot=\"progress-track\"], [data-slot=\"meter-track\"]) {\n    background: var(--ink-tint);\n    box-shadow: inset 0 0 0 1px var(--ink-ink);\n  }\n\n  /* An empty star is a screen of dots: there, but not filled. */\n  & [data-slot=\"rating-item\"]::before {\n    background:\n      linear-gradient(\n        var(--ui-rating-direction),\n        var(--ui-rating-color) calc(var(--rating-fill, 0) * 100%),\n        transparent 0\n      ),\n      var(--ink-dots) 0 0 / 2.5px 2.5px;\n  }\n\n  /* A placeholder still loading is a screen of dots, not a shimmer. */\n  & [data-slot=\"skeleton\"] {\n    background-color: var(--ink-tint);\n    background-image: var(--ink-dots);\n    background-size: var(--ink-dots-size);\n  }\n\n  /* Status bars: solid for success and information, dots for a warning, hatch for danger. */\n  & .alert {\n    border-color: var(--ink-ink);\n    background: var(--ink-screen);\n\n    &::before {\n      inline-size: 6px;\n    }\n\n    &[data-tone=\"warning\"]::before {\n      background-color: transparent;\n      background-image: var(--ink-dots);\n      background-size: var(--ink-dots-size);\n    }\n\n    &[data-tone=\"danger\"]::before {\n      background-color: transparent;\n      background-image: var(--ink-hatch);\n    }\n  }\n\n  & [data-slot=\"separator\"] {\n    background: var(--ink-rule);\n  }\n\n  & ::placeholder {\n    color: var(--ink-grey);\n    opacity: 1;\n  }\n\n  /* Focus: a heavy ink outline, unmissable on the grey screen. */\n  & :focus-visible {\n    outline-width: 3px;\n  }\n\n  & input[type=\"number\"] {\n    appearance: textfield;\n\n    &::-webkit-inner-spin-button,\n    &::-webkit-outer-spin-button {\n      appearance: none;\n      margin: 0;\n    }\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/skins/ink.css"
    },
    {
      "path": "registry/uiset/ui/uiset/skins/phosphor.css",
      "content": "/*\n  Phosphor: a monochrome video terminal. Green phosphor on a green-grey tube; intensity\n  (dim, glow) for hierarchy and inverse video for what's chosen; a faint bloom on text and\n  static scan lines on the glass. Other phosphors (amber, red, white, blue) are kept for\n  data and status. Design plan: docs/phosphor.md.\n*/\n\n[data-uiset][data-skin=\"phosphor\"] {\n  color-scheme: dark;\n\n  --phosphor-tube: oklch(0.26 0.035 155);\n  --phosphor-raster: oklch(0.3 0.04 155);\n  --phosphor-dim: oklch(0.75 0.11 150);\n  --phosphor-glow: oklch(0.88 0.17 148);\n  --phosphor-glow-high: oklch(0.94 0.12 148);\n  --phosphor-faint: oklch(0.75 0.11 150 / 0.22);\n  --phosphor-amber: oklch(0.84 0.15 75);\n  --phosphor-red: oklch(0.75 0.16 28);\n  --phosphor-white: oklch(0.95 0.02 150);\n  --phosphor-blue: oklch(0.8 0.1 230);\n  /* Bright text blooms in its own color; dim text blooms less. */\n  --phosphor-bloom: 0 0 0.3em color-mix(in oklch, currentColor 38%, transparent);\n  --phosphor-scan: repeating-linear-gradient(\n    to bottom,\n    oklch(0 0 0 / 0.16) 0 1px,\n    transparent 1px 3px\n  );\n\n  --ui-background: var(--phosphor-tube);\n  --ui-foreground: var(--phosphor-glow);\n  --ui-muted: var(--phosphor-raster);\n  --ui-muted-foreground: var(--phosphor-dim);\n  --ui-border: oklch(0.75 0.11 150 / 0.45);\n  --ui-input: var(--phosphor-dim);\n  --ui-primary: var(--phosphor-glow);\n  --ui-primary-foreground: var(--phosphor-tube);\n  --ui-destructive: var(--phosphor-red);\n  --ui-ring: oklch(0.88 0.17 148 / 0.3);\n  --ui-ring-border: var(--phosphor-glow);\n  --ui-radius: 0;\n  --ui-shadow: none;\n  --ui-font-sans: \"Spline Sans Mono\", ui-monospace, \"SF Mono\", Menlo, Consolas, monospace;\n  --ui-font-mono: var(--ui-font-sans);\n  --ui-font-size: 0.875rem;\n\n  --uiset-sound: beep;\n  --uiset-solid-bg: var(--phosphor-glow);\n  --uiset-solid-fg: var(--phosphor-tube);\n  --uiset-solid-border: var(--phosphor-glow);\n  --uiset-solid-hover: var(--phosphor-glow-high);\n  --uiset-solid-weight: 600;\n  --uiset-popup-radius: 0;\n  --uiset-switch-thumb-radius: 0;\n\n  /* Status in the other phosphors, each 4.5:1 on the tube and on raised surfaces. */\n  --tone-info: var(--phosphor-blue);\n  --tone-success: var(--phosphor-glow);\n  --tone-warning: var(--phosphor-amber);\n  --tone-danger: var(--phosphor-red);\n\n  --uiset-cable-1: var(--phosphor-amber);\n  --uiset-cable-2: var(--phosphor-blue);\n  --uiset-cable-3: var(--phosphor-red);\n  --uiset-cable-4: var(--phosphor-white);\n  --uiset-cable-5: oklch(0.84 0.11 300);\n\n  font-family: var(--ui-font-sans);\n  text-shadow: var(--phosphor-bloom);\n  background-color: var(--phosphor-tube);\n  background-image: var(--phosphor-scan);\n  caret-color: var(--phosphor-glow);\n  scrollbar-color: var(--phosphor-dim) transparent;\n\n  & :not(.ide-code-input)::selection {\n    background: var(--phosphor-glow);\n    color: var(--phosphor-tube);\n    text-shadow: none;\n  }\n\n  /* Headings are the same face, heavier; never uppercase. */\n  & :is(h1, h2, h3, h4) {\n    font-family: var(--ui-font-sans);\n    letter-spacing: 0;\n  }\n\n  /* Labels in dim intensity, sentence case. */\n  &\n    :is(\n      [data-slot=\"field-label\"],\n      [data-slot=\"select-label\"],\n      [data-slot=\"combobox-label\"],\n      [data-slot=\"autocomplete-label\"],\n      [data-slot=\"label\"]:not(:has(> :is([data-slot=\"checkbox\"], [data-slot=\"radio\"], [data-slot=\"switch\"]))),\n      [data-slot=\"field-description\"]\n    ) {\n    color: var(--phosphor-dim);\n  }\n\n  &\n    :is(\n      [data-slot=\"field-label\"],\n      [data-slot=\"select-label\"],\n      [data-slot=\"combobox-label\"],\n      [data-slot=\"label\"]:not(:has(> :is([data-slot=\"checkbox\"], [data-slot=\"radio\"], [data-slot=\"switch\"]))),\n      [data-slot=\"autocomplete-label\"]\n    ) {\n    font-size: var(--ui-font-size);\n    font-weight: 500;\n  }\n\n  /* Drawn with box characters: one-pixel edges in dim, a glowing edge where it's raised. */\n  &\n    :is(\n      [data-slot=\"select-content\"],\n      [data-slot=\"popover-content\"],\n      [data-slot=\"menu-content\"],\n      [data-slot=\"combobox-content\"],\n      [data-slot=\"autocomplete-content\"],\n      [data-slot=\"hover-card-content\"],\n      [data-slot=\"date-picker-content\"],\n      [data-slot=\"navigation-menu-viewport\"],\n      [data-slot=\"trigger-menu-content\"],\n      [data-slot=\"dialog-content\"],\n      [data-slot=\"alert-dialog-content\"],\n      [data-slot=\"drawer-content\"],\n      [data-slot=\"preview-card-content\"]\n    ) {\n    border: 1px solid var(--phosphor-glow);\n    background: var(--phosphor-raster);\n    box-shadow: none;\n  }\n\n  /* Inverse video: what's chosen or highlighted is drawn glow-on-tube, reversed. */\n  & :is([data-slot$=\"-item\"], [data-slot$=\"-option\"])[data-highlighted],\n  & [data-slot=\"tabs-tab\"][data-selected],\n  & [data-slot=\"toggle\"][data-pressed]:not([data-slot=\"toolbar\"] *),\n  & [data-slot=\"segmented-control-item\"][data-checked] {\n    background: var(--phosphor-glow);\n    color: var(--phosphor-tube);\n    text-shadow: none;\n    /* Inside reversed video, quiet text and chips reverse too (a hint, a count). */\n    --ui-muted: oklch(0.78 0.14 148);\n    --ui-muted-foreground: oklch(0.34 0.06 152);\n  }\n\n  & [data-slot=\"tabs-indicator\"] {\n    display: none;\n  }\n\n  & [data-slot=\"segmented-control\"] {\n    border: 1px solid var(--phosphor-dim);\n    background: transparent;\n  }\n\n  & [data-slot=\"segmented-control-indicator\"] {\n    border-radius: 0;\n    background: var(--phosphor-glow);\n    box-shadow: none;\n  }\n\n  /* Glow-filled things carry tube-colored text, which doesn't bloom. */\n  &\n    :is(\n      :is([data-slot=\"button\"], button[data-slot=\"tooltip-trigger\"]):not([data-variant=\"outline\"], [data-variant=\"ghost\"], [data-variant=\"link\"], [data-variant=\"destructive\"]),\n      [data-slot=\"badge\"],\n      [data-slot=\"calendar-day\"][data-selected],\n      [data-slot=\"tooltip-content\"],\n      [data-slot=\"kbd\"]\n    ) {\n    text-shadow: none;\n  }\n\n  & :is([data-slot=\"button\"], [data-slot=\"toolbar-button\"], [data-slot=\"toggle\"]) {\n    font-weight: 500;\n  }\n\n  /* A toolbar's pressed toggle: reversed too, with its edge kept for the group. */\n  & [data-slot=\"toolbar\"] [data-slot=\"toggle\"][data-pressed] {\n    border-color: var(--phosphor-glow);\n    background: var(--phosphor-glow);\n    color: var(--phosphor-tube);\n    text-shadow: none;\n  }\n\n  & [data-slot=\"switch\"] {\n    border: 1px solid var(--phosphor-dim);\n    background: transparent;\n\n    &[data-checked] {\n      border-color: var(--phosphor-glow);\n      background: var(--phosphor-glow);\n    }\n  }\n\n  & [data-slot=\"switch-thumb\"] {\n    background: var(--phosphor-dim);\n    box-shadow: none;\n\n    &[data-checked] {\n      background: var(--phosphor-tube);\n    }\n  }\n\n  & [data-slot=\"checkbox\"],\n  & [data-slot=\"radio\"] {\n    border-color: var(--phosphor-dim);\n    background: transparent;\n    box-shadow: none;\n\n    &[data-checked],\n    &[data-indeterminate] {\n      border-color: var(--phosphor-glow);\n      background: var(--phosphor-glow);\n      color: var(--phosphor-tube);\n    }\n  }\n\n  & [data-slot=\"slider-track\"] {\n    background: var(--phosphor-faint);\n  }\n\n  & [data-slot=\"slider-thumb\"] {\n    border: 1px solid var(--phosphor-tube);\n    border-radius: 0;\n    background: var(--phosphor-glow);\n    box-shadow: none;\n  }\n\n  & :is([data-slot=\"progress-track\"], [data-slot=\"meter-track\"]) {\n    border: 1px solid var(--phosphor-dim);\n    background: transparent;\n  }\n\n  /* Fields are boxes drawn in dim; the text box is the tube itself. */\n  &\n    :is(\n      [data-slot=\"input\"],\n      [data-slot=\"select-trigger\"],\n      [data-slot=\"textarea\"],\n      [data-slot=\"password-input\"],\n      [data-slot=\"date-input\"],\n      [data-slot=\"time-input\"],\n      [data-slot=\"date-picker-input\"],\n      [data-slot=\"combobox-input\"],\n      [data-slot=\"autocomplete-input\"],\n      [data-slot=\"token-input-editor\"],\n      [data-slot=\"color-picker-input\"],\n      [data-slot=\"otp-input-slot\"],\n      [data-slot=\"number-input-group\"]\n    ) {\n    background: transparent;\n  }\n\n  & ::placeholder {\n    color: var(--phosphor-dim);\n    opacity: 1;\n  }\n\n  & [data-slot=\"separator\"] {\n    background: var(--phosphor-faint);\n  }\n\n  /* What isn't reached yet is half intensity: an empty star, an upcoming step. */\n  & [data-slot=\"rating-item\"]::before {\n    background: linear-gradient(\n      var(--ui-rating-direction),\n      var(--ui-rating-color) calc(var(--rating-fill, 0) * 100%),\n      oklch(0.75 0.11 150 / 0.45) 0\n    );\n  }\n\n  /* Plain number fields drop the browser's spinner; NumberInput has real buttons. */\n  & input[type=\"number\"] {\n    appearance: textfield;\n\n    &::-webkit-inner-spin-button,\n    &::-webkit-outer-spin-button {\n      appearance: none;\n      margin: 0;\n    }\n  }\n\n  /* The terminal kit in its own phosphors. */\n  --term-black: var(--phosphor-dim);\n  --term-red: var(--phosphor-red);\n  --term-green: var(--phosphor-glow);\n  --term-yellow: var(--phosphor-amber);\n  --term-blue: var(--phosphor-blue);\n  --term-magenta: oklch(0.84 0.11 300);\n  --term-cyan: oklch(0.9 0.1 195);\n  --term-white: var(--phosphor-white);\n\n  /* Code: glow for names, the other phosphors for kinds of words, dim for comments. */\n  --shiki-token-keyword: var(--phosphor-white);\n  --shiki-token-string: var(--phosphor-amber);\n  --shiki-token-string-expression: var(--phosphor-amber);\n  --shiki-token-function: var(--phosphor-blue);\n  --shiki-token-constant: var(--phosphor-amber);\n  --shiki-token-parameter: var(--phosphor-glow);\n  --shiki-token-comment: var(--phosphor-dim);\n  --shiki-token-link: var(--phosphor-blue);\n}\n\n/* Bloom and scan lines are the glass, not the content: they go where they'd get in the way. */\n@media (forced-colors: active) {\n  [data-uiset][data-skin=\"phosphor\"] {\n    text-shadow: none;\n    background-image: none;\n  }\n}\n\n@media (prefers-reduced-transparency: reduce) {\n  [data-uiset][data-skin=\"phosphor\"] {\n    background-image: none;\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/skins/phosphor.css"
    },
    {
      "path": "registry/uiset/ui/uiset/skins/studio.css",
      "content": "/*\n  Studio: a rack of synthesizer modules. Gunmetal faceplates, rubber caps,\n  silk-screened legends, amber lamps. Color is saved for cables and lamps.\n  Design plan: docs/studio.md.\n*/\n\n[data-uiset][data-skin=\"studio\"] {\n  color-scheme: dark;\n\n  --studio-rack: oklch(0.25 0.01 255);\n  --studio-panel: oklch(0.34 0.012 255);\n  --studio-panel-high: oklch(0.42 0.012 255);\n  --studio-panel-low: oklch(0.27 0.01 255);\n  --studio-legend: oklch(0.94 0.012 85);\n  --studio-legend-dim: oklch(0.8 0.012 85);\n  --studio-rubber: oklch(0.19 0.006 255);\n  --studio-rubber-high: oklch(0.3 0.008 255);\n  --studio-metal: oklch(0.86 0.005 255);\n  --studio-metal-low: oklch(0.62 0.006 255);\n  --studio-lamp: oklch(0.82 0.15 72);\n  --studio-lamp-glow: oklch(0.82 0.15 72 / 0.55);\n  --studio-slot: oklch(0.16 0.008 255);\n  --studio-bevel: inset 0 1px 0 oklch(1 0 0 / 0.08), inset 0 -1px 0 oklch(0 0 0 / 0.35);\n\n  --ui-background: var(--studio-panel);\n  --ui-foreground: var(--studio-legend);\n  --ui-muted: var(--studio-panel-low);\n  --ui-muted-foreground: var(--studio-legend-dim);\n  --ui-border: oklch(0.94 0.012 85 / 0.18);\n  --ui-input: oklch(0.62 0.01 255);\n  --ui-primary: var(--studio-lamp);\n  --ui-primary-foreground: oklch(0.2 0.02 70);\n  --ui-ring: oklch(0.82 0.15 72 / 0.3);\n  --ui-ring-border: var(--studio-lamp);\n  --ui-radius: 4px;\n  --ui-shadow: 0 10px 24px -8px oklch(0 0 0 / 0.6);\n  --ui-font-sans:\n    \"Saira Semi Condensed\", \"Barlow Semi Condensed\", \"Arial Narrow\", system-ui, sans-serif;\n  --ui-font-size: 0.875rem;\n\n  --uiset-sound: mechanical;\n  --uiset-solid-bg: var(--studio-lamp);\n  --uiset-solid-fg: oklch(0.2 0.02 70);\n  --uiset-solid-border: oklch(0.7 0.13 70);\n  --uiset-solid-hover: oklch(0.86 0.14 75);\n  --uiset-solid-weight: 600;\n  --uiset-popup-radius: 4px;\n  --uiset-switch-width: 2.25rem;\n  --uiset-switch-thumb: 0.875rem;\n  --uiset-switch-thumb-radius: 3px;\n\n  --uiset-cable-1: oklch(0.62 0.21 27);\n  --uiset-cable-2: oklch(0.66 0.16 245);\n  --uiset-cable-3: oklch(0.74 0.17 150);\n  --uiset-cable-4: oklch(0.84 0.16 92);\n  --uiset-cable-5: oklch(0.62 0.2 305);\n\n  font-family: var(--ui-font-sans);\n  background-color: var(--studio-panel);\n  background-image: repeating-linear-gradient(\n    90deg,\n    oklch(1 0 0 / 0.012) 0 1px,\n    transparent 1px 3px\n  );\n\n  &\n    :is(\n      [data-slot=\"field-label\"],\n      [data-slot=\"select-label\"],\n      [data-slot=\"combobox-label\"],\n      [data-slot=\"autocomplete-label\"],\n      [data-slot=\"label\"]:not(:has(> :is([data-slot=\"checkbox\"], [data-slot=\"radio\"], [data-slot=\"switch\"]))),\n      .knob-label,\n      .fader-label\n    ) {\n    font-size: 0.6875rem;\n    font-weight: 600;\n    letter-spacing: 0.09em;\n    text-transform: uppercase;\n    color: var(--studio-legend);\n  }\n\n  /* Pads. Every button takes the legend lettering, ghost ones too; the pad itself (edge,\n     bevel, travel) is for buttons that are pads. A menubar's menus belong to the bar, and\n     buttons kits use as rows (a step, a chat, a problem, a suggestion) keep their content's\n     case and get no pad. */\n  &\n    :is(\n      [data-slot=\"button\"],\n      [data-slot=\"toolbar-button\"],\n      [data-slot=\"dialog-trigger\"],\n      [data-slot=\"alert-dialog-trigger\"],\n      [data-slot=\"drawer-trigger\"],\n      [data-slot=\"popover-trigger\"],\n      button[data-slot=\"tooltip-trigger\"],\n      [data-slot=\"menu-trigger\"],\n      [data-slot=\"file-input-trigger\"],\n      [data-slot=\"dialog-close\"],\n      [data-slot=\"alert-dialog-close\"],\n      [data-slot=\"drawer-close\"],\n      [data-slot=\"popover-close\"]\n    ):not([data-slot=\"menubar\"] [data-slot=\"menu-trigger\"], .stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    font-size: 0.75rem;\n    letter-spacing: 0.06em;\n    text-transform: uppercase;\n  }\n\n  &\n    :is(\n      [data-slot=\"button\"],\n      [data-slot=\"dialog-trigger\"],\n      [data-slot=\"alert-dialog-trigger\"],\n      [data-slot=\"drawer-trigger\"],\n      [data-slot=\"popover-trigger\"],\n      button[data-slot=\"tooltip-trigger\"],\n      [data-slot=\"menu-trigger\"],\n      [data-slot=\"file-input-trigger\"],\n      [data-slot=\"dialog-close\"],\n      [data-slot=\"alert-dialog-close\"],\n      [data-slot=\"drawer-close\"],\n      [data-slot=\"popover-close\"]\n    ):not([data-variant=\"ghost\"], [data-slot=\"menubar\"] [data-slot=\"menu-trigger\"], .stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    border: 1px solid oklch(0 0 0 / 0.5);\n    border-radius: 6px;\n    box-shadow:\n      var(--studio-bevel),\n      0 2px 0 oklch(0 0 0 / 0.45);\n    transition:\n      translate var(--uiset-fast) var(--uiset-ease),\n      box-shadow var(--uiset-fast) var(--uiset-ease),\n      background-color var(--uiset-fast) var(--uiset-ease);\n\n    &:active:not([data-disabled]) {\n      scale: none;\n      translate: 0 2px;\n      box-shadow:\n        var(--studio-bevel),\n        0 0 0 oklch(0 0 0 / 0.45);\n    }\n  }\n\n  &\n    :is(\n      [data-variant=\"outline\"],\n      :is(\n        [data-slot=\"dialog-trigger\"],\n        [data-slot=\"alert-dialog-trigger\"],\n        [data-slot=\"drawer-trigger\"],\n        [data-slot=\"popover-trigger\"],\n        [data-slot=\"menu-trigger\"],\n        [data-slot=\"file-input-trigger\"],\n        [data-slot=\"dialog-close\"],\n        [data-slot=\"alert-dialog-close\"],\n        [data-slot=\"drawer-close\"],\n        [data-slot=\"popover-close\"]\n      ):not([data-variant], [data-slot=\"menubar\"] [data-slot=\"menu-trigger\"])\n    ):not(.stepper-step, .chat-thread-link, .ide-problem, .ide-status-item, .ide-palette-trigger, .chat-suggestions *, .sidebar-link, .mobile-action, .mobile-tab, .calendar-upcoming-item) {\n    background: var(--studio-rubber);\n    color: var(--studio-legend);\n\n    &:hover:not([data-disabled]) {\n      background: var(--studio-rubber-high);\n    }\n  }\n\n  /* Switch: a latching toggle with a lamp */\n  & [data-slot=\"switch\"] {\n    border: 1px solid oklch(0 0 0 / 0.6);\n    background: var(--studio-slot);\n    box-shadow: inset 0 2px 3px oklch(0 0 0 / 0.6);\n\n    &[data-checked] {\n      border-color: oklch(0 0 0 / 0.6);\n      background: oklch(0.42 0.09 70);\n      box-shadow:\n        inset 0 2px 3px oklch(0 0 0 / 0.4),\n        0 0 10px var(--studio-lamp-glow);\n    }\n  }\n\n  & [data-slot=\"switch-thumb\"] {\n    background: linear-gradient(var(--studio-metal), var(--studio-metal-low));\n    box-shadow: 0 1px 2px oklch(0 0 0 / 0.6);\n\n    &[data-checked] {\n      background: linear-gradient(var(--studio-metal), var(--studio-metal-low));\n    }\n  }\n\n  /* Segmented: illuminated push buttons, the chosen one lit */\n  & [data-slot=\"segmented-control\"] {\n    gap: 4px;\n    padding: 4px;\n    border: 1px solid oklch(0 0 0 / 0.5);\n    /* The buttons' 3px corners, plus the 4px gap and 1px edge around them. */\n    border-radius: 8px;\n    background: var(--studio-slot);\n  }\n\n  & [data-slot=\"segmented-control-indicator\"] {\n    border-radius: 3px;\n    background: var(--studio-rubber-high);\n    box-shadow: var(--studio-bevel);\n  }\n\n  & [data-slot=\"segmented-control-item\"] {\n    position: relative;\n    padding-inline: 0.5rem;\n    font-size: 0.6875rem;\n    font-weight: 600;\n    letter-spacing: 0.08em;\n    text-transform: uppercase;\n    color: var(--studio-legend-dim);\n\n    &[data-checked] {\n      color: var(--studio-lamp);\n      text-shadow: 0 0 8px var(--studio-lamp-glow);\n    }\n  }\n\n  /* Sliders: fader caps in a slot */\n  & [data-slot=\"slider-track\"] {\n    background: var(--studio-slot);\n    box-shadow: inset 0 1px 2px oklch(0 0 0 / 0.7);\n  }\n\n  & [data-slot=\"slider-indicator\"] {\n    background: oklch(0.82 0.15 72 / 0.55);\n  }\n\n  & [data-slot=\"slider-thumb\"] {\n    width: 1.75rem;\n    height: 0.875rem;\n    border: 1px solid oklch(0 0 0 / 0.6);\n    border-radius: 2px;\n    background: linear-gradient(\n      90deg,\n      var(--studio-rubber-high),\n      var(--studio-rubber) 45%,\n      var(--studio-legend) 45% 55%,\n      var(--studio-rubber) 55%\n    );\n    box-shadow: 0 2px 3px oklch(0 0 0 / 0.6);\n  }\n\n  & [data-slot=\"slider-thumb\"][data-orientation=\"horizontal\"] {\n    width: 0.875rem;\n    height: 1.5rem;\n    background: linear-gradient(\n      var(--studio-rubber-high),\n      var(--studio-rubber) 45%,\n      var(--studio-legend) 45% 55%,\n      var(--studio-rubber) 55%\n    );\n  }\n\n  & [data-slot=\"slider-value\"] {\n    font-variant-numeric: tabular-nums;\n    color: var(--studio-legend-dim);\n  }\n\n  /* Fields: recessed */\n  &\n    :is(\n      [data-slot=\"input\"],\n      [data-slot=\"select-trigger\"],\n      [data-slot=\"textarea\"],\n      [data-slot=\"password-input\"],\n      [data-slot=\"date-input\"],\n      [data-slot=\"time-input\"],\n      [data-slot=\"date-picker-input\"],\n      [data-slot=\"combobox-input\"],\n      [data-slot=\"autocomplete-input\"],\n      [data-slot=\"token-input-editor\"],\n      [data-slot=\"color-picker-input\"],\n      [data-slot=\"number-input-control\"],\n      [data-slot=\"otp-input-slot\"]\n    ) {\n    border: 1px solid oklch(0 0 0 / 0.55);\n    background: var(--studio-slot);\n    box-shadow: inset 0 1px 3px oklch(0 0 0 / 0.6);\n    color: var(--studio-legend);\n  }\n\n  &\n    :is(\n      [data-slot=\"select-content\"],\n      [data-slot=\"popover-content\"],\n      [data-slot=\"menu-content\"],\n      [data-slot=\"combobox-content\"],\n      [data-slot=\"autocomplete-content\"],\n      [data-slot=\"hover-card-content\"],\n      [data-slot=\"date-picker-content\"],\n      [data-slot=\"navigation-menu-viewport\"],\n      [data-slot=\"trigger-menu-content\"],\n      [data-slot=\"dialog-content\"],\n      [data-slot=\"alert-dialog-content\"],\n      [data-slot=\"drawer-content\"]\n    ) {\n    border: 1px solid oklch(0 0 0 / 0.6);\n    background: var(--studio-panel);\n    box-shadow: var(--studio-bevel), var(--ui-shadow);\n  }\n\n  & :is([data-slot=\"select-item\"], [data-slot=\"menu-item\"])[data-highlighted] {\n    background: var(--studio-rubber-high);\n    color: var(--studio-lamp);\n  }\n\n  /* Knob: rubber cap, lamp arc, legend pointer */\n  & [data-slot=\"knob\"] {\n    --knob-track: var(--studio-slot);\n    --knob-fill: var(--studio-lamp);\n    --knob-cap: radial-gradient(\n      circle at 50% 35%,\n      var(--studio-rubber-high),\n      var(--studio-rubber) 70%\n    );\n    --knob-cap-edge: oklch(0 0 0 / 0.7);\n    --knob-pointer: var(--studio-legend);\n  }\n\n  & [data-slot=\"knob\"]::before {\n    box-shadow:\n      0 3px 6px oklch(0 0 0 / 0.55),\n      inset 0 1px 0 oklch(1 0 0 / 0.1);\n  }\n\n  & [data-slot=\"knob-indicator\"] {\n    filter: drop-shadow(0 0 3px var(--studio-lamp-glow));\n  }\n\n  & [data-slot=\"knob-value\"] {\n    font-size: 0.75rem;\n    color: var(--studio-legend-dim);\n  }\n\n  /* Jacks: a nut around a dark socket */\n  & [data-slot=\"patch-bay-jack\"] {\n    border: 3px solid var(--studio-metal-low);\n    background: radial-gradient(circle, var(--studio-slot) 40%, oklch(0.3 0.005 255) 42%);\n    box-shadow:\n      0 0 0 2px oklch(0 0 0 / 0.4),\n      inset 0 1px 0 oklch(1 0 0 / 0.25);\n\n    &::before {\n      background: oklch(0.08 0 0);\n      opacity: 1;\n    }\n  }\n\n  /* Meter: an LED ladder */\n  & [data-slot=\"meter-track\"] {\n    border: 1px solid oklch(0 0 0 / 0.5);\n    background: repeating-linear-gradient(\n      90deg,\n      var(--studio-slot) 0 6px,\n      oklch(0.12 0 0) 6px 8px\n    );\n  }\n\n  & [data-slot=\"meter-indicator\"] {\n    background:\n      repeating-linear-gradient(90deg, transparent 0 6px, oklch(0.12 0 0) 6px 8px),\n      linear-gradient(\n        90deg,\n        oklch(0.74 0.17 150) 0 60%,\n        var(--studio-lamp) 60% 85%,\n        oklch(0.62 0.21 27) 85%\n      );\n    background-size:\n      auto,\n      var(--meter-full, 100%) 100%;\n  }\n\n  /* Steps */\n  & [data-slot=\"toggle\"] {\n    border: 1px solid oklch(0 0 0 / 0.5);\n    border-radius: 4px;\n    background: var(--studio-rubber);\n    box-shadow:\n      var(--studio-bevel),\n      0 2px 0 oklch(0 0 0 / 0.45);\n    color: var(--studio-legend-dim);\n\n    &[data-pressed] {\n      background: oklch(0.42 0.09 70);\n      color: var(--studio-lamp);\n      box-shadow:\n        var(--studio-bevel),\n        0 0 10px var(--studio-lamp-glow);\n    }\n  }\n\n  /* A toggle group is a row of separate pads with a gap, not pads jammed edge to edge (A13). */\n  & [data-slot=\"toggle-group\"] {\n    gap: 4px;\n  }\n\n  & [data-slot=\"toggle-group\"] [data-slot=\"toggle\"] {\n    margin-inline-start: 0;\n  }\n\n  /* An invalid field still says so in this skin's field style (C16). */\n  & :is([data-slot=\"input\"], [data-slot=\"select-trigger\"], [data-slot=\"textarea\"], [data-slot=\"password-input\"], [data-slot=\"date-input\"], [data-slot=\"time-input\"], [data-slot=\"date-picker-input\"], [data-slot=\"combobox-input\"], [data-slot=\"autocomplete-input\"], [data-slot=\"token-input-editor\"], [data-slot=\"number-input-control\"], [data-slot=\"otp-input-slot\"]):is([data-invalid], [aria-invalid=\"true\"], :has([aria-invalid=\"true\"])) {\n    border-color: var(--ui-destructive);\n  }\n\n  /* Plain number fields drop the browser's spinner; NumberInput has real buttons (C37). */\n  & input[type=\"number\"] {\n    appearance: textfield;\n\n    &::-webkit-inner-spin-button,\n    &::-webkit-outer-spin-button {\n      appearance: none;\n      margin: 0;\n    }\n  }\n\n  /* In a toolbar, pads are 3px like the segmented control's, and the toolbar's corners are\n     theirs plus the 2px gap and 1px edge, so the curves share a center. The repeated\n     [data-slot] outranks the pad rule above (whose list includes button[…]). */\n  & [data-slot=\"toolbar\"] {\n    border-radius: 6px;\n  }\n\n  & [data-slot=\"toolbar\"] :is([data-slot=\"toolbar-button\"], [data-slot=\"toggle\"], [data-slot=\"button\"], [data-slot=\"menu-trigger\"], [data-slot=\"popover-trigger\"], [data-slot=\"select-trigger\"])[data-slot][data-slot] {\n    border-radius: 3px;\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/skins/studio.css"
    },
    {
      "path": "registry/uiset/ui/uiset/sound.ts",
      "content": "type Cue =\n  | \"press\"\n  | \"release\"\n  | \"on\"\n  | \"off\"\n  | \"tick\"\n  | \"select\"\n  | \"open\"\n  | \"close\"\n  | \"key\"\n  | \"error\"\n\ntype Profile = \"soft\" | \"mechanical\" | \"beep\" | \"paper\"\n\ntype PlayOptions = {\n  profile: Profile\n  volume: number\n  pitch?: number\n}\n\nlet context: AudioContext | null = null\nlet output: GainNode | null = null\nlet noise: AudioBuffer | null = null\n\nfunction audio() {\n  if (context) return context\n  if (typeof AudioContext === \"undefined\") return null\n  context = new AudioContext({ latencyHint: \"interactive\" })\n  output = context.createGain()\n  const limiter = context.createDynamicsCompressor()\n  limiter.threshold.value = -10\n  limiter.ratio.value = 12\n  output.connect(limiter).connect(context.destination)\n  noise = context.createBuffer(1, context.sampleRate * 0.25, context.sampleRate)\n  const samples = noise.getChannelData(0)\n  for (let i = 0; i < samples.length; i++) samples[i] = Math.random() * 2 - 1\n  return context\n}\n\n// Browsers keep audio suspended until a user gesture, so this runs from one.\nfunction unlockAudio() {\n  const ctx = audio()\n  if (ctx && ctx.state === \"suspended\") void ctx.resume()\n}\n\nfunction envelope(ctx: AudioContext, peak: number, attack: number, decay: number) {\n  const gain = ctx.createGain()\n  const now = ctx.currentTime\n  gain.gain.setValueAtTime(0.0001, now)\n  gain.gain.exponentialRampToValueAtTime(Math.max(peak, 0.0002), now + attack)\n  gain.gain.exponentialRampToValueAtTime(0.0001, now + attack + decay)\n  return gain\n}\n\nfunction tone(\n  ctx: AudioContext,\n  frequency: number,\n  duration: number,\n  level: number,\n  type: OscillatorType = \"sine\",\n  glideTo?: number,\n  delay = 0,\n) {\n  const oscillator = ctx.createOscillator()\n  const start = ctx.currentTime + delay\n  oscillator.type = type\n  oscillator.frequency.setValueAtTime(frequency, start)\n  if (glideTo)\n    oscillator.frequency.exponentialRampToValueAtTime(glideTo, start + duration)\n  const gain = envelope(ctx, level, 0.002, duration)\n  oscillator.connect(gain).connect(output!)\n  oscillator.start(start)\n  oscillator.stop(start + duration + 0.02)\n}\n\nfunction burst(\n  ctx: AudioContext,\n  duration: number,\n  frequency: number,\n  q: number,\n  level: number,\n  sweepTo?: number,\n) {\n  const source = ctx.createBufferSource()\n  source.buffer = noise\n  source.playbackRate.value = 0.9 + Math.random() * 0.2\n  const filter = ctx.createBiquadFilter()\n  filter.type = \"bandpass\"\n  filter.frequency.value = frequency\n  filter.Q.value = q\n  if (sweepTo) {\n    filter.frequency.exponentialRampToValueAtTime(sweepTo, ctx.currentTime + duration)\n  }\n  const gain = envelope(ctx, level, 0.001, duration)\n  source.connect(filter).connect(gain).connect(output!)\n  source.start()\n  source.stop(ctx.currentTime + duration + 0.02)\n}\n\ntype Voice = (ctx: AudioContext, pitch: number) => void\n\nconst voices: Record<Profile, Partial<Record<Cue, Voice>>> = {\n  soft: {\n    press: (ctx) => {\n      burst(ctx, 0.012, 3200, 1.2, 0.22)\n      tone(ctx, 190, 0.028, 0.16)\n    },\n    release: (ctx) => burst(ctx, 0.008, 4400, 1.6, 0.1),\n    on: (ctx) => tone(ctx, 620, 0.06, 0.14, \"sine\", 930),\n    off: (ctx) => tone(ctx, 620, 0.06, 0.12, \"sine\", 410),\n    tick: (ctx, pitch) => tone(ctx, 1300 + 700 * pitch, 0.012, 0.07),\n    select: (ctx) => {\n      burst(ctx, 0.01, 3000, 1, 0.12)\n      tone(ctx, 880, 0.035, 0.08)\n    },\n    open: (ctx) => burst(ctx, 0.07, 900, 0.8, 0.07, 2600),\n    close: (ctx) => burst(ctx, 0.06, 2400, 0.8, 0.06, 800),\n    key: (ctx) => burst(ctx, 0.006, 5200, 2, 0.06),\n    error: (ctx) => {\n      tone(ctx, 240, 0.08, 0.14, \"triangle\")\n      tone(ctx, 200, 0.1, 0.14, \"triangle\", undefined, 0.1)\n    },\n  },\n  mechanical: {\n    press: (ctx) => {\n      burst(ctx, 0.02, 1700, 0.8, 0.42)\n      tone(ctx, 95, 0.05, 0.34)\n    },\n    release: (ctx) => {\n      burst(ctx, 0.012, 2800, 1.2, 0.26)\n      tone(ctx, 140, 0.02, 0.12)\n    },\n    on: (ctx) => {\n      burst(ctx, 0.016, 2200, 1, 0.38)\n      tone(ctx, 150, 0.04, 0.26, \"triangle\")\n    },\n    off: (ctx) => {\n      burst(ctx, 0.016, 1600, 1, 0.34)\n      tone(ctx, 110, 0.04, 0.24, \"triangle\")\n    },\n    tick: (ctx, pitch) => burst(ctx, 0.005, 2200 + 2400 * pitch, 5, 0.16),\n    select: (ctx) => {\n      burst(ctx, 0.014, 2000, 1.4, 0.3)\n      tone(ctx, 120, 0.03, 0.18)\n    },\n    open: (ctx) => burst(ctx, 0.05, 700, 1, 0.12, 1800),\n    close: (ctx) => burst(ctx, 0.04, 1800, 1, 0.1, 600),\n    key: (ctx) => burst(ctx, 0.01, 2600, 1.5, 0.2),\n    error: (ctx) => tone(ctx, 110, 0.14, 0.3, \"square\"),\n  },\n  beep: {\n    press: (ctx) => tone(ctx, 1180, 0.02, 0.05, \"square\"),\n    release: (ctx) => tone(ctx, 1580, 0.012, 0.03, \"square\"),\n    on: (ctx) => {\n      tone(ctx, 990, 0.03, 0.05, \"square\")\n      tone(ctx, 1480, 0.04, 0.05, \"square\", undefined, 0.035)\n    },\n    off: (ctx) => {\n      tone(ctx, 1480, 0.03, 0.05, \"square\")\n      tone(ctx, 990, 0.04, 0.05, \"square\", undefined, 0.035)\n    },\n    tick: (ctx, pitch) => tone(ctx, 700 + 900 * pitch, 0.008, 0.035, \"square\"),\n    select: (ctx) => tone(ctx, 1320, 0.025, 0.05, \"square\"),\n    open: (ctx) => tone(ctx, 660, 0.05, 0.04, \"square\", 1320),\n    close: (ctx) => tone(ctx, 1320, 0.05, 0.04, \"square\", 660),\n    key: (ctx) => tone(ctx, 1760, 0.008, 0.025, \"square\"),\n    error: (ctx) => {\n      tone(ctx, 330, 0.07, 0.06, \"square\")\n      tone(ctx, 330, 0.07, 0.06, \"square\", undefined, 0.1)\n    },\n  },\n  paper: {\n    press: (ctx) => burst(ctx, 0.03, 900, 0.5, 0.2),\n    release: (ctx) => burst(ctx, 0.02, 1400, 0.6, 0.08),\n    on: (ctx) => burst(ctx, 0.04, 1200, 0.7, 0.18, 2200),\n    off: (ctx) => burst(ctx, 0.04, 2200, 0.7, 0.16, 1100),\n    tick: (ctx, pitch) => burst(ctx, 0.008, 1500 + 1200 * pitch, 0.9, 0.06),\n    select: (ctx) => burst(ctx, 0.025, 1600, 0.6, 0.16),\n    open: (ctx) => burst(ctx, 0.12, 600, 0.4, 0.1, 2000),\n    close: (ctx) => burst(ctx, 0.1, 2000, 0.4, 0.08, 600),\n    key: (ctx) => burst(ctx, 0.012, 2600, 0.8, 0.08),\n    error: (ctx) => burst(ctx, 0.08, 400, 0.6, 0.22),\n  },\n}\n\nfunction isProfile(value: string): value is Profile {\n  return value in voices\n}\n\nfunction play(cue: Cue, { profile, volume, pitch = 0.5 }: PlayOptions) {\n  const ctx = audio()\n  if (!ctx || ctx.state !== \"running\" || !output) return\n  const voice = voices[profile][cue]\n  if (!voice) return\n  output.gain.value = Math.min(Math.max(volume, 0), 1)\n  voice(ctx, Math.min(Math.max(pitch, 0), 1))\n}\n\nexport { isProfile, play, unlockAudio }\nexport type { Cue, Profile }\n",
      "type": "registry:file",
      "target": "@ui/uiset/sound.ts"
    },
    {
      "path": "registry/uiset/ui/uiset/tokens.css",
      "content": "[data-uiset] {\n  --uiset-key-l: 0.5;\n  --uiset-key-c: 0.19;\n  --uiset-key-h: 268;\n  --uiset-key: oklch(var(--uiset-key-l) var(--uiset-key-c) var(--uiset-key-h));\n  --uiset-on-key: white;\n\n  --uiset-radius: var(--radius, 0.5rem);\n  --uiset-ease: cubic-bezier(0.2, 0.8, 0.2, 1);\n  --uiset-ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);\n  --uiset-fast: 120ms;\n  --uiset-medium: 200ms;\n\n  --uiset-sound: soft;\n  --uiset-sound-volume: 0.6;\n  --uiset-typing: off;\n\n  /* Skins set these; base.css consumes them. Because they inherit, the nearest\n     [data-uiset] root always wins, so skins can nest without leaking. */\n  --uiset-solid-bg: var(--ui-primary);\n  --uiset-solid-fg: var(--ui-primary-foreground);\n  --uiset-solid-border: var(--ui-primary);\n  --uiset-solid-hover: color-mix(in oklab, var(--ui-primary), var(--ui-foreground) 14%);\n  --uiset-solid-weight: 500;\n  --uiset-popup-radius: calc(var(--ui-radius) * 1.5);\n\n  --uiset-cable-1: oklch(0.6 0.2 25);\n  --uiset-cable-2: oklch(0.6 0.16 250);\n  --uiset-cable-3: oklch(0.68 0.16 150);\n  --uiset-cable-4: oklch(0.72 0.15 80);\n  --uiset-cable-5: oklch(0.58 0.18 310);\n\n  --uiset-switch-width: 2rem;\n  --uiset-switch-thumb: 0.75rem;\n  --uiset-switch-inset: 3px;\n  /* The track's corners follow the thumb's, so the two always nest. */\n  --uiset-switch-thumb-radius: 999px;\n  --uiset-switch-border: 1px;\n}\n\n/* White text on the key below L 0.565, black above: both clear 4.5:1 there. */\n@supports (color: oklch(from red l c h)) {\n  [data-uiset] {\n    --uiset-on-key: oklch(from var(--uiset-key) clamp(0, (0.565 - l) * 1000, 1) 0 0);\n  }\n}\n\n[data-uiset][data-theme=\"light\"] {\n  color-scheme: light;\n}\n\n[data-uiset][data-theme=\"dark\"] {\n  color-scheme: dark;\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/tokens.css"
    },
    {
      "path": "registry/uiset/ui/uiset/uiset.css",
      "content": "@layer ui-sdk, uiset.tokens, uiset.base, uiset.skin;\n\n@import \"@ui-sdk/core/web.css\";\n@import \"./tokens.css\" layer(uiset.tokens);\n@import \"./base.css\" layer(uiset.base);\n@import \"./skins/base.css\" layer(uiset.skin);\n@import \"./skins/blueprint.css\" layer(uiset.skin);\n@import \"./skins/studio.css\" layer(uiset.skin);\n@import \"./skins/phosphor.css\" layer(uiset.skin);\n@import \"./skins/ink.css\" layer(uiset.skin);\n\n@layer ui-sdk {\n  :where([data-slot][hidden]:not([hidden=\"until-found\"])) {\n    display: none !important;\n  }\n}\n",
      "type": "registry:file",
      "target": "@ui/uiset/uiset.css"
    }
  ],
  "docs": "Wrap your app, or any part of it, in <UISet skin=\"base\"> from @/components/ui/uiset. Pass keyColor={{ l: 0.5, c: 0.19, h: 268 }} for the accent, sound to turn interaction sounds on, and skin=\"blueprint\", \"studio\", \"phosphor\" or \"ink\" for a themed skin (each names the faces it uses in the README). Every UI SDK component inside is styled by the skin.",
  "categories": [
    "theme"
  ],
  "type": "registry:ui"
}