forked from unom/punktfunk
Move the management console (web/) off shadcn/ui to the shared @unom/ui design system the marketing site + docs are built on, on the punktfunk violet brand over dark chrome: - Add @unom/ui/@unom/style/motion/radix-ui/zod + Geist; web/.npmrc maps the @unom scope (packages are public-read, so CI needs no npm auth). - styles.css: one dark-violet palette (#141019/#1c1530, brand #6c5bf3 -> #a79ff8) exposed under BOTH the shadcn token names the routes use and @unom/ui's contract, so routes + components both resolve; pulls in @unom/ui's material gloss + easings. - components/ui/* now back onto @unom/ui (AnimatedButton/InputText/Label/ AnimatedCard); brand-mark/wordmark/logo replace the generic Radio icon in the shell + login. - MaterialProvider (specular gloss) at the root. No UI sounds, like the site. docs-site: new /api route renders the host management REST API as an interactive Scalar reference (reads public/openapi.json, a snapshot of docs/api/openapi.json), branded violet and linked from the top nav, the docs sidebar, the landing page, and host-cli.md. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
13 lines
555 B
TypeScript
13 lines
555 B
TypeScript
import type { ComponentProps } from 'react'
|
|
import { AnimatedButton, buttonVariants } from '@unom/ui/button'
|
|
|
|
// The console's Button IS @unom/ui's animated button — pill shape, specular
|
|
// material gloss + UI click/hover sounds (enabled via UnomProviders), driven by
|
|
// the shared brand tokens. Same variant/size vocabulary the routes already use
|
|
// (default/destructive/outline/secondary/ghost/link + default/sm/lg/icon).
|
|
export type ButtonProps = ComponentProps<typeof AnimatedButton>
|
|
|
|
export const Button = AnimatedButton
|
|
|
|
export { buttonVariants }
|