Shared UI kit and theme system for AlphaNav and Alphafoam.
packages/ui: component library + theme systemapps/demo: demo app with component gallery and theme editor
- Install dependencies
npm install
- Run demo
npm run dev
- Run tests
npm test
- Build library
npm run build
Use git tags + GitHub repo dependency.
- In consumer repo
package.json:"@alpha/ui": "git+ssh://git@github.com:<org>/alpha-ui.git#v0.1.0"
- Bump by tagging a new version and updating the hash.
import { ThemeGlobals, StandardButton } from "@alpha/ui";function App() {
return (
<>
<ThemeGlobals />
<StandardButton>Click</StandardButton>
</>
);
}- The theme exposes AlphaNav tokens (
--color-*,--radius-*) and Alphafoam tokens (--accent-color,--background-color, etc.). - The WidgetGrid / BaseWidget are included for apps that use grid-based widgets.