{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "theme-switcher",
  "title": "Theme switcher",
  "description": "Light, dark or the device’s own, as an icon button, a Segmented control or a Menu’s radio group. Saved and on the page before it paints, every switcher stays in step, and the page crosses over to the new theme.",
  "dependencies": [
    "@ui-sdk/react",
    "@ui-sdk/core"
  ],
  "registryDependencies": [
    "https://kinoui.com/r/button.json",
    "https://kinoui.com/r/menu.json",
    "https://kinoui.com/r/theme.json",
    "https://kinoui.com/r/preferences.json",
    "https://kinoui.com/r/segmented-control.json",
    "https://kinoui.com/r/tooltip.json",
    "https://kinoui.com/r/highlight.json",
    "https://kinoui.com/r/pill.json"
  ],
  "files": [
    {
      "path": "registry/components/kino/theme-switcher.tsx",
      "content": "'use client'\n\nimport { Button } from '@/registry/components/kino/button'\nimport {\n  MenuGroupLabel,\n  MenuRadioGroup,\n  MenuRadioItem,\n} from '@/registry/components/kino/menu'\nimport { colorSchemePreference } from '@/registry/components/kino/preferences'\nimport {\n  SegmentedControl,\n  SegmentedControlItem,\n} from '@/registry/components/kino/segmented-control'\nimport {\n  Tooltip,\n  TooltipContent,\n  type TooltipContentProps,\n  TooltipTrigger,\n} from '@/registry/components/kino/tooltip'\nimport { IconPlaceholder } from '@/registry/icons/icon-placeholder'\nimport {\n  followPick,\n  followPointer,\n  highlightClassName,\n  itemMatching,\n  pickClassName,\n} from '@/registry/lib/highlight'\nimport {\n  pillBackdropClassName,\n  pillClassName,\n  pillItemClassName,\n  pillItemLayout,\n  pillRowClassName,\n  pillTrackClassName,\n} from '@/registry/lib/pill'\nimport { reducesMotion } from '@/registry/lib/reduce-motion'\nimport type { ChangeReason, ChangeSource } from '@ui-sdk/core'\nimport { withSource } from '@ui-sdk/core/observe'\nimport { MenuRadioItem as MenuRadioItemPrimitive } from '@ui-sdk/react/menu'\nimport { usePreference } from '@ui-sdk/react/preferences'\nimport {\n  type ComponentProps,\n  type ReactNode,\n  useEffect,\n  useId,\n  useRef,\n  useSyncExternalStore,\n} from 'react'\nimport { flushSync } from 'react-dom'\n\nimport { cn } from '@/lib/utils'\n\n/*\n * Light, dark or the device's own, through the `preferences` item's colour\n * scheme: saved, on the page before it paints, and shared by every switcher\n * on it. Three ways to pick: an icon button that flips between light and\n * dark, a Segmented control and a Dropdown menu's radio group.\n *\n * The toggle's icon `roll`s as every Button icon does, or is drawn: the\n * `eclipse` sun becomes a crescent as its shadow slides in, and the `dial`\n * turns half a circle so the sun sets as the moon rises. The page crosses\n * over to the new theme with a view transition where the browser has them:\n * a `fade`, a circle that grows from the control (`reveal`), or a `band`\n * that opens from its row. A change while it crosses over turns it round\n * from where it is, and under reduced motion the change is instant.\n */\n\ntype Theme = 'system' | 'light' | 'dark'\n\n/** What a choice shows: `system` is the device's scheme, light while it isn't known. */\nfunction resolveTheme(\n  value: Theme,\n  system: 'light' | 'dark' | 'unknown',\n): 'light' | 'dark' {\n  const resolved = value === 'system' ? system : value\n  return resolved === 'dark' ? 'dark' : 'light'\n}\n\nconst THEMES: readonly { value: Theme; label: string; icon: ReactNode }[] = [\n  {\n    value: 'system',\n    label: 'System',\n    icon: (\n      <IconPlaceholder\n        lucide='MonitorIcon'\n        tabler='IconDeviceDesktop'\n        hugeicons='ComputerIcon'\n        phosphor='MonitorIcon'\n        remixicon='RiComputerLine'\n        aria-hidden\n      />\n    ),\n  },\n  {\n    value: 'light',\n    label: 'Light',\n    icon: (\n      <IconPlaceholder\n        lucide='SunIcon'\n        tabler='IconSun'\n        hugeicons='Sun03Icon'\n        phosphor='SunIcon'\n        remixicon='RiSunLine'\n        aria-hidden\n      />\n    ),\n  },\n  {\n    value: 'dark',\n    label: 'Dark',\n    icon: (\n      <IconPlaceholder\n        lucide='MoonIcon'\n        tabler='IconMoon'\n        hugeicons='Moon02Icon'\n        phosphor='MoonIcon'\n        remixicon='RiMoonLine'\n        aria-hidden\n      />\n    ),\n  },\n]\n\n/** How the toggle's icon changes. */\ntype ThemeIcon = 'roll' | 'eclipse' | 'dial'\n\n/** How the page crosses over to the new theme. */\ntype ThemeCrossover = 'fade' | 'reveal' | 'band'\n\ninterface Point {\n  x: number\n  y: number\n}\n\n/** The centre of the control the person used, which a reveal or a band opens from. */\nfunction originOf(event: Event | undefined): Point | null {\n  const target = event?.target\n  if (!(target instanceof Element)) return null\n  const box = (target.closest('button, [role]') ?? target).getBoundingClientRect()\n  return { x: box.left + box.width / 2, y: box.top + box.height / 2 }\n}\n\n// A fade is the new theme arriving, on `enter`. A reveal and a band spread\n// along their length, on `draw`, which never bounces, so the old theme\n// never peeks back at the far edges.\nconst timing = (role: 'enter' | 'draw') =>\n  `animation-duration:var(--motion-${role}-duration);animation-timing-function:var(--motion-${role}-easing)`\n\n// Only the new theme moves: the old one stays still beneath it.\nconst CLIPPED =\n  '::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}'\n\n/**\n * The view transition's CSS for a crossover. Pure, so its geometry can be\n * tested. Without a control to start from, a reveal grows from the top\n * centre, and a band opens from the top for dark and the bottom for light.\n */\nfunction crossoverCss(\n  crossover: ThemeCrossover,\n  {\n    origin,\n    toDark,\n    width,\n    height,\n  }: {\n    origin: Point | null\n    toDark: boolean\n    /** The viewport, in px. */\n    width: number\n    height: number\n  },\n): string {\n  if (crossover === 'fade') {\n    return `::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){${timing('enter')}}`\n  }\n  let from: string\n  let to: string\n  if (crossover === 'reveal') {\n    const { x, y } = origin ?? { x: width / 2, y: 0 }\n    // Far enough to reach the corner furthest from where it starts.\n    const radius = Math.ceil(Math.hypot(Math.max(x, width - x), Math.max(y, height - y)))\n    from = `circle(0px at ${x}px ${y}px)`\n    to = `circle(${radius}px at ${x}px ${y}px)`\n  } else {\n    const y = origin?.y ?? (toDark ? 0 : height)\n    from = `inset(${y}px 0 ${Math.max(0, height - y)}px 0)`\n    to = 'inset(0)'\n  }\n  return `${CLIPPED}::view-transition-new(root){animation-name:kino-theme-crossover;${timing('draw')}}@keyframes kino-theme-crossover{from{clip-path:${from}}to{clip-path:${to}}}`\n}\n\n/** What a switcher hands on with a change: its `onValueChange` reads them all. */\ntype ThemeChange = {\n  reason?: ChangeReason\n  event?: Event\n  source?: ChangeSource\n}\n\n/** The crossover running now: the theme it leaves, whether it is turning back to it, and the change asked for last. */\nlet crossing: {\n  from: 'light' | 'dark'\n  back: boolean\n  value: Theme\n  change: ThemeChange\n} | null = null\n\n/**\n * Sets the preference with the change's reason and event, as the person or\n * agent who asked: a crossover sets it after the press is over, when ui-sdk\n * would read the source as `programmatic`.\n */\nfunction setTheme(value: Theme, { reason, event, source }: ThemeChange) {\n  withSource(source, () => colorSchemePreference.set(value, { reason, event }))\n}\n\n// The value asked for last while a crossover runs. A turned-back crossover\n// sets the preference only once it closes, so the switchers show this instead.\nlet asked: Theme | null = null\nconst askedListeners = new Set<() => void>()\n\nfunction setAsked(value: Theme | null) {\n  if (value === asked) return\n  asked = value\n  for (const listener of askedListeners) listener()\n}\n\nfunction subscribeAsked(listener: () => void) {\n  askedListeners.add(listener)\n  return () => {\n    askedListeners.delete(listener)\n  }\n}\n\n/**\n * The theme as the switchers show it: the one asked for last, even while the\n * page turns back. For a switcher of your own, such as a submenu's row that\n * names the theme.\n */\nfunction useTheme() {\n  const preference = usePreference(colorSchemePreference)\n  const value = useSyncExternalStore(\n    subscribeAsked,\n    () => asked,\n    () => null,\n  )\n  const shown = value ?? preference.value\n  return { value: shown, resolved: resolveTheme(shown, preference.system) }\n}\n\nfunction crossoverAnimations() {\n  return document\n    .getAnimations()\n    .filter((animation) =>\n      (animation.effect as KeyframeEffect | null)?.pseudoElement?.startsWith(\n        '::view-transition',\n      ),\n    )\n}\n\n/**\n * Sets the theme, crossing the page over to it where the browser can. A\n * change while it crosses over turns the crossover round from where it is.\n */\nfunction changeTheme(value: Theme, crossover: ThemeCrossover, change: ThemeChange = {}) {\n  const { system } = colorSchemePreference.get()\n  const resolved = resolveTheme(value, system)\n  if (crossing) {\n    crossing.value = value\n    crossing.change = change\n    setAsked(value)\n    const back = resolved === crossing.from\n    if (back !== crossing.back) {\n      crossing.back = back\n      for (const animation of crossoverAnimations()) animation.reverse()\n    }\n    // Going on to the same look, such as from dark to a system that is dark, changes nothing on screen.\n    if (!back) setTheme(value, change)\n    return\n  }\n  const from = resolveTheme(colorSchemePreference.get().value, system)\n  if (resolved === from || !('startViewTransition' in document) || reducesMotion()) {\n    setTheme(value, change)\n    return\n  }\n  const style = document.createElement('style')\n  style.textContent = crossoverCss(crossover, {\n    origin: originOf(change.event),\n    toDark: resolved === 'dark',\n    width: window.innerWidth,\n    height: window.innerHeight,\n  })\n  document.head.append(style)\n  const current = { from, back: false, value, change }\n  crossing = current\n  setAsked(value)\n  // The page is captured as the callback leaves it, so React renders the new theme at once.\n  const transition = document.startViewTransition(() =>\n    flushSync(() => setTheme(value, change)),\n  )\n  void transition.ready.then(async () => {\n    await Promise.allSettled(crossoverAnimations().map((animation) => animation.finished))\n    // Turned back: the old theme returns under the closed crossover, before the page shows again.\n    if (current.back) flushSync(() => setTheme(current.value, current.change))\n  })\n  void transition.finished.finally(() => {\n    style.remove()\n    if (crossing === current) {\n      // Turned back after the crossover closed, before the transition ended: nothing above has set it.\n      if (current.back) flushSync(() => setTheme(current.value, current.change))\n      crossing = null\n      setAsked(null)\n    }\n  })\n}\n\nconst noSubscription = () => () => {}\n\n/** False on the server and while hydrating, when the saved theme isn't known yet. */\nfunction useMounted() {\n  return useSyncExternalStore(\n    noSubscription,\n    () => true,\n    () => false,\n  )\n}\n\n/**\n * Each theme's icon is its own keyed span, so the Button's swap rolls from\n * one to the next. Before hydration both are drawn and the page's `dark`\n * class shows one; the change to the known theme comes before the first\n * paint settles, so it takes its place without moving.\n */\nfunction RollMark({ dark }: { dark: boolean | null }) {\n  return dark === null ? (\n    <span key='unknown' className='grid *:col-start-1 *:row-start-1'>\n      <span className='flex dark:hidden'>{THEMES[1].icon}</span>\n      <span className='hidden dark:flex'>{THEMES[2].icon}</span>\n    </span>\n  ) : (\n    <span key={dark ? 'dark' : 'light'} className='flex'>\n      {dark ? THEMES[2].icon : THEMES[1].icon}\n    </span>\n  )\n}\n\nconst RAYS = [\n  [12, 2, 12, 4],\n  [12, 20, 12, 22],\n  [4.93, 4.93, 6.34, 6.34],\n  [17.66, 17.66, 19.07, 19.07],\n  [2, 12, 4, 12],\n  [20, 12, 22, 12],\n  [6.34, 17.66, 4.93, 19.07],\n  [17.66, 6.34, 19.07, 4.93],\n] as const\n\n// Everything turns about the centre of the 24-unit box.\nconst ABOUT_CENTRE = '[transform-box:view-box] [transform-origin:12px_12px]'\nconst MORPH =\n  'transition-[transform,opacity] duration-(--motion-morph-duration) ease-(--motion-morph-easing) motion-reduce:transition-none'\n// The disc's outline is two filled circles, one unit either side of its\n// edge, so it stays two units wide as the disc grows from the sun's 4 to the\n// moon's 9: 5 and 3 for the sun, 10 and 8 for the moon.\nconst OUTER = `${ABOUT_CENTRE} ${MORPH} [transform:scale(0.5)] dark:[transform:scale(1)]`\nconst INNER = `${ABOUT_CENTRE} ${MORPH} [transform:scale(0.375)] dark:[transform:scale(1)]`\n// The shadow waits beyond the top end corner, and slides in to bite the moon.\nconst SHADOW = `${MORPH} [transform:translate(9px,-9px)] dark:[transform:translate(0,0)]`\nconst BOX = { x: -12, y: -12, width: 48, height: 48 }\n\n/** A sun that becomes a crescent moon as the page turns dark, drawn by the page's `dark` class. */\nfunction EclipseMark() {\n  const id = useId()\n  const outline = `${id}-outline`\n  const lit = `${id}-lit`\n  return (\n    <svg\n      viewBox='0 0 24 24'\n      fill='none'\n      stroke='currentColor'\n      strokeWidth={2}\n      strokeLinecap='round'\n      aria-hidden\n      data-slot='theme-toggle-mark'\n    >\n      {/* The lit part of the disc: all of it, less the shadow's own edge. */}\n      <mask id={lit} maskUnits='userSpaceOnUse' {...BOX}>\n        <rect {...BOX} fill='white' stroke='none' />\n        <circle\n          cx={17.5}\n          cy={6.5}\n          r={7.4}\n          fill='black'\n          stroke='none'\n          className={SHADOW}\n        />\n      </mask>\n      {/* The crescent's outline: the disc's ring, less the shadow, and less the lit part's inside. */}\n      <mask id={outline} maskUnits='userSpaceOnUse' {...BOX}>\n        <circle cx={12} cy={12} r={10} fill='white' stroke='none' className={OUTER} />\n        <circle\n          cx={17.5}\n          cy={6.5}\n          r={5.4}\n          fill='black'\n          stroke='none'\n          className={SHADOW}\n        />\n        <g mask={`url(#${lit})`}>\n          <circle cx={12} cy={12} r={8} fill='black' stroke='none' className={INNER} />\n        </g>\n      </mask>\n      <g\n        className={`${ABOUT_CENTRE} ${MORPH} dark:[transform:rotate(45deg)_scale(0.5)] dark:opacity-0`}\n      >\n        {RAYS.map(([x1, y1, x2, y2]) => (\n          <line key={`${x1}-${y1}`} x1={x1} y1={y1} x2={x2} y2={y2} />\n        ))}\n      </g>\n      <rect {...BOX} fill='currentColor' stroke='none' mask={`url(#${outline})`} />\n    </svg>\n  )\n}\n\n/** A crescent: the disc's 9-unit edge, less a 6.4-unit shadow from the top end corner. */\nconst MOON = 'M21 11.86A9 9 0 1 1 12.14 3a6.4 6.4 0 0 0 8.86 8.86Z'\n\n/** The sun above the box and the moon below it, upside down, on a dial the page's `dark` class turns. */\nfunction DialMark() {\n  return (\n    <svg\n      viewBox='0 0 24 24'\n      fill='none'\n      stroke='currentColor'\n      strokeWidth={2}\n      strokeLinecap='round'\n      strokeLinejoin='round'\n      aria-hidden\n      data-slot='theme-toggle-mark'\n      className='overflow-hidden'\n    >\n      <g\n        className={`${MORPH} [transform-box:view-box] [transform-origin:12px_24px] dark:[transform:rotate(180deg)]`}\n      >\n        <circle cx={12} cy={12} r={4} />\n        {RAYS.map(([x1, y1, x2, y2]) => (\n          <line key={`${x1}-${y1}`} x1={x1} y1={y1} x2={x2} y2={y2} />\n        ))}\n        <path d={MOON} transform='rotate(180 12 24)' />\n      </g>\n    </svg>\n  )\n}\n\n/**\n * An icon button that flips between light and dark, named in a tooltip. On\n * `system`, it shows what the device asks for and flips away from it.\n */\nfunction ThemeToggle({\n  icon = 'roll',\n  crossover = 'fade',\n  variant = 'ghost',\n  size = 'icon',\n  tooltipProps,\n  onClick,\n  ...props\n}: Omit<ComponentProps<typeof Button>, 'children'> & {\n  /** How its icon changes: rolling as a Button's icon does, or a drawn `eclipse` or `dial`. */\n  icon?: ThemeIcon\n  /** How the page crosses over to the new theme. */\n  crossover?: ThemeCrossover\n  /** The tooltip that names it. */\n  tooltipProps?: Omit<TooltipContentProps, 'children'>\n}) {\n  const { resolved } = useTheme()\n  const mounted = useMounted()\n  const dark = mounted ? resolved === 'dark' : null\n  const label =\n    dark === null\n      ? 'Switch the theme'\n      : dark\n        ? 'Switch to the light theme'\n        : 'Switch to the dark theme'\n  return (\n    <Tooltip>\n      <TooltipTrigger\n        render={\n          <Button\n            data-theme-toggle=''\n            variant={variant}\n            size={size}\n            aria-label={label}\n            onClick={(event, details) => {\n              onClick?.(event, details)\n              if (!event.defaultPrevented) {\n                changeTheme(dark ? 'light' : 'dark', crossover, {\n                  event: event.nativeEvent,\n                  source: details.source,\n                })\n              }\n            }}\n            {...props}\n          />\n        }\n      >\n        {icon === 'eclipse' ? (\n          <EclipseMark />\n        ) : icon === 'dial' ? (\n          <DialMark />\n        ) : (\n          <RollMark dark={dark} />\n        )}\n      </TooltipTrigger>\n      <TooltipContent {...tooltipProps}>{label}</TooltipContent>\n    </Tooltip>\n  )\n}\n\n/** System, light and dark in a Segmented control, with their icons and labels or the icons alone. */\nfunction ThemeSegmentedControl({\n  iconOnly = false,\n  crossover = 'fade',\n  ...props\n}: Omit<\n  ComponentProps<typeof SegmentedControl<Theme>>,\n  'className' | 'value' | 'defaultValue' | 'onValueChange' | 'children'\n> & {\n  className?: string\n  /** Icons alone, each named for a screen reader: for a header or a footer. */\n  iconOnly?: boolean\n  /** How the page crosses over to the new theme. */\n  crossover?: ThemeCrossover\n}) {\n  const { value } = useTheme()\n  return (\n    <SegmentedControl<Theme>\n      data-theme-segmented-control=''\n      aria-label='Theme'\n      value={value}\n      onValueChange={(next, details) => {\n        if (next) changeTheme(next, crossover, details)\n      }}\n      {...props}\n    >\n      {THEMES.map((theme) => (\n        <SegmentedControlItem\n          key={theme.value}\n          value={theme.value}\n          aria-label={iconOnly ? theme.label : undefined}\n        >\n          {theme.icon}\n          {iconOnly ? null : theme.label}\n        </SegmentedControlItem>\n      ))}\n    </SegmentedControl>\n  )\n}\n\n/**\n * System, light and dark as a Dropdown menu's radio group, for a menu of\n * your own: rows under a heading, or `inline`, one row with the heading at\n * its start and the three as icons in a Segmented control's track, the pill\n * sliding to the pick. Each is still a radio item, reached with the arrows.\n */\nfunction ThemeMenuRadioGroup({\n  label = 'Theme',\n  crossover = 'fade',\n  inline = false,\n  className,\n  ...props\n}: Omit<\n  ComponentProps<typeof MenuRadioGroup<Theme>>,\n  'value' | 'defaultValue' | 'onValueChange' | 'children' | 'className'\n> & {\n  className?: string\n  /** The group's heading, which names it for a screen reader; `null` for none, with an `aria-label` instead. */\n  label?: ReactNode\n  /** How the page crosses over to the new theme. */\n  crossover?: ThemeCrossover\n  /** One row, the three as icons beside the heading. */\n  inline?: boolean\n}) {\n  const { value } = useTheme()\n  return (\n    <MenuRadioGroup<Theme>\n      data-theme-menu-radio-group=''\n      value={value}\n      onValueChange={(next, details) => changeTheme(next, crossover, details)}\n      className={cn(\n        inline && 'flex items-center gap-3 py-0.5 ps-(--control-padding) pe-0.5',\n        className,\n      )}\n      {...props}\n    >\n      {inline ? (\n        <>\n          <MenuGroupLabel className='text-foreground min-w-0 flex-1 p-0 text-sm font-normal'>\n            {label}\n          </MenuGroupLabel>\n          <ThemeMenuSegments />\n        </>\n      ) : (\n        <>\n          {label === null ? null : <MenuGroupLabel>{label}</MenuGroupLabel>}\n          {THEMES.map((theme) => (\n            <MenuRadioItem key={theme.value} value={theme.value}>\n              {theme.icon}\n              {theme.label}\n            </MenuRadioItem>\n          ))}\n        </>\n      )}\n    </MenuRadioGroup>\n  )\n}\n\nconst SEGMENT = '[data-theme-menu-segment]'\n\n// The row and the pill's copy of it share this, so every icon sits exactly on its twin.\nconst segmentRow = cn('flex', pillRowClassName)\n\n// Square, as tall as the track less its inset, so each is a 24px target or more.\nconst segmentLayout = cn(\n  pillItemLayout,\n  'size-[calc(var(--control-height-sm)_-_2px)] min-h-6 min-w-6 px-0',\n)\n\n/** The three as icons in a track, as the Segmented control draws them, the pill on the pick. */\nfunction ThemeMenuSegments() {\n  const trackRef = useRef<HTMLSpanElement>(null)\n  const pillRef = useRef<HTMLSpanElement>(null)\n  const backdropRef = useRef<HTMLSpanElement>(null)\n  useEffect(() => {\n    const track = trackRef.current\n    if (!track || !pillRef.current || !backdropRef.current) return\n    const stopPick = followPick(track, pillRef.current, {\n      picked: () => track.querySelector<HTMLElement>(`:scope > ${SEGMENT}[data-checked]`),\n      attributes: ['data-checked'],\n    })\n    // The menu moves focus to the item it highlights, from the keyboard and\n    // the pointer alike, so the backdrop follows that.\n    const stopHover = followPointer(track, backdropRef.current, {\n      itemOf: itemMatching(track, SEGMENT),\n      focus: true,\n    })\n    return () => {\n      stopPick()\n      stopHover()\n    }\n  }, [])\n  return (\n    <span\n      ref={trackRef}\n      data-slot='theme-menu-segments'\n      className={cn(pillTrackClassName, segmentRow, 'relative isolate shrink-0')}\n    >\n      {THEMES.map((theme) => (\n        <MenuRadioItemPrimitive\n          key={theme.value}\n          value={theme.value}\n          label={theme.label}\n          aria-label={theme.label}\n          data-theme-menu-segment=''\n          className={cn(segmentLayout, pillItemClassName, 'cursor-default')}\n        >\n          {theme.icon}\n        </MenuRadioItemPrimitive>\n      ))}\n      <span\n        ref={backdropRef}\n        aria-hidden\n        className={cn(highlightClassName, pillBackdropClassName)}\n      />\n      <span\n        ref={pillRef}\n        aria-hidden\n        inert\n        className={cn(pickClassName, pillClassName, 'z-10')}\n      >\n        <span className={cn(segmentRow, 'h-full')}>\n          {THEMES.map((theme) => (\n            <span key={theme.value} className={segmentLayout}>\n              {theme.icon}\n            </span>\n          ))}\n        </span>\n      </span>\n    </span>\n  )\n}\n\nexport { ThemeMenuRadioGroup, ThemeSegmentedControl, ThemeToggle }\n\nexport { crossoverCss, resolveTheme, THEMES as themeOptions, useTheme }\n\nexport type { Theme, ThemeCrossover, ThemeIcon }\n",
      "type": "registry:component",
      "target": "@components/kino/theme-switcher.tsx"
    }
  ],
  "type": "registry:component"
}