Omarchy Theme Provider

ui

Applies the selected Omarchy palette to shadcn semantic CSS variables.

bunx --bun shadcn@latest add yamz8/omarchy-shadcn-registry/omarchy-theme-provider

Dependencies

registry
yamz8/omarchy-shadcn-registry/use-omarchy-theme

Source

registry/ui/omarchy-theme-provider.tsx
"use client"

import type { ReactNode } from "react"

import { useOmarchyTheme } from "@/hooks/use-omarchy-theme"

/** Applies the selected Omarchy palette to shadcn's semantic CSS variables. */
export function OmarchyThemeProvider({ children }: { children: ReactNode }) {
  useOmarchyTheme()

  return children
}