mirror of
https://github.com/luxfi/design.git
synced 2026-10-30 16:58:57 +00:00
Monochrome, dark by default. One hue rendered through an opacity ladder. Tokens (color, type, spacing, radius, elevation, motion) + core/forms/navigation/ overlays components + brand guidelines + ui kit. The single source of truth for every Lux surface — loadable and editable.
10 lines
577 B
TypeScript
10 lines
577 B
TypeScript
/** The Lux button. Monochrome: primary is white-on-black, everything else is a hairline or nothing.
|
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
/** primary = white fill (the one CTA per view). destructive is the only hued variant. */
|
|
variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'link' | 'destructive';
|
|
size?: 'sm' | 'default' | 'lg' | 'icon';
|
|
/** Fully rounded. Marketing CTAs and nav actions are pills; app-surface buttons are not. */
|
|
pill?: boolean;
|
|
}
|
|
export function Button(props: ButtonProps): JSX.Element;
|