@abstractframework/ui-kit
v0.1.3
Published
Shared UI tokens + themes for AbstractFramework thin clients (AbstractFlow, AbstractObserver, etc.).
Maintainers
Readme
@abstractframework/ui-kit
Shared theme tokens + small UI primitives used across AbstractUIC packages and host apps.
This package provides:
- Theme tokens (CSS variables + theme classes):
ui-kit/src/theme.css - Theme + typography helpers:
applyTheme(...),applyTypography(...) - Common inputs:
AfSelect,ThemeSelect,ProviderModelSelect, etc. - Icons:
Icon(used by@abstractframework/panel-chat)
Install / peer dependencies
This is a React package with peer dependencies on react@^18 and react-dom@^18 (see ui-kit/package.json).
Install
- Workspace: add a dependency on
@abstractframework/ui-kit - npm (once published):
npm i @abstractframework/ui-kit
Usage
Import the theme tokens once in your app:
import "@abstractframework/ui-kit/theme.css";Apply a theme at runtime (optional):
import { applyTheme } from "@abstractframework/ui-kit";
applyTheme("dark"); // sets a `theme-*` class on <html>Use UI components:
import { ThemeSelect, Icon } from "@abstractframework/ui-kit";Exported API
See ui-kit/src/index.ts for the authoritative export list.
Related docs
- Getting started:
docs/getting-started.md - API reference:
docs/api.md - Repo docs index:
docs/README.md - Architecture:
docs/architecture.md
