@cocoframe/ui
v0.0.4
Published
Server-first semantic UI components, charts, syntax highlighting, and utilities for CocoFrame.
Maintainers
Readme
@cocoframe/ui
Semantic server-first UI primitives, application patterns, charts, design tokens, and collision-safe utilities.
Import components from @cocoframe/ui, syntax highlighting from
@cocoframe/ui/syntax, and styles through the exported CSS subpaths when tooling
does not inject them automatically.
import { Alert, Button, FormField, Input, Stack } from "@cocoframe/ui";
export const Profile = () => (
<Stack><Alert>Server rendered</Alert><FormField label="Name"><Input /></FormField><Button>Save</Button></Stack>
);Theme accepts typed, allow-listed semantic token overrides for project color,
spacing, radius, typography, and elevation customization. It emits server-side
custom properties and rejects unsafe or unknown values.
Components render semantic HTML without browser runtime by default. Use an island
only when interaction genuinely requires it, and prefer an existing primitive
before creating an application-specific equivalent. The live /components
catalog is the complete props and accessibility reference. Verify with
tests/ui.test.ts, project documentation tests, and responsive E2E.
