@luke-ui/react#
Luke UI is a React design system built on react-aria-components and vanilla-extract.
Install#
pnpm add @luke-ui/react
Setup#
Import the component stylesheet and one bundled theme stylesheet. Apply the theme root and identity classes to the same element.
The shared stylesheet owns reset, theme-root, recipe, and utility rules in reset, theme,
recipes, utilities order.
import '@luke-ui/react/stylesheet.css';
import '@luke-ui/react/themes/tactile.css';
import { themeRootClassName } from '@luke-ui/react/theme';
import { tactileThemeClassName } from '@luke-ui/react/themes';
import { cx } from '@luke-ui/react/utils';
export function App() {
return <div className={cx(themeRootClassName, tactileThemeClassName)}>{/* your app */}</div>;
}
Components and docs#
Full component documentation, interactive examples, and API reference are at lukebennett88.github.io/luke-ui/docs.
AI agents can fetch documentation at:
- llms.txt: component index.
- llms-full.txt: full docs.
- Any docs URL with
.mdappended: per-page Markdown.
Components follow three tiers:
- Atoms: single units such as
Text,Icon, andHeading. - Composed components: opinionated combinations such as
ButtonandTextField. - Primitives: lower-level public APIs for library authors, such as
button/primitiveandfield/primitive.
Atoms and composed components are app-developer-facing. Primitives are documented in hosted docs for library authors, separate from the primary component path.
License#
MIT