@ottili/foundation-ui
v1.0.13
Published
Foundation design system: SoT §14 tokens, themes, density, and the §47 component inventory.
Readme
@ottili/foundation-ui
Foundation design system: SoT §14 tokens, themes, density, and the §47 component inventory.
Install
npm install @ottili/foundation-uiThis package is part of the Ottili Foundation Framework. See docs/OTTILI_FOUNDATION_FRAMEWORK_SOURCE_OF_TRUTH.md for the canonical spec.
Public API
- Design tokens:
LIGHT_TOKENS,DARK_TOKENS,PRODUCT_ACCENTS,SPACING,RADIUS,TYPOGRAPHY, and helpers likebestAccentForeground. - Primitives:
Button,IconButton,Form,MultiSelect,DatePicker,Combobox,Radio, and more. - Data, overlays, navigation, and platform components:
DataGrid,Dialog,Toast,MobileNav,SearchBox,ErrorBoundary. - Import the stylesheet once:
import "@ottili/foundation-ui/styles.css";.
Usage
import "@ottili/foundation-ui/styles.css";
import { Button, Form } from "@ottili/foundation-ui";
<Form
onSubmit={(e) => save(e)}
actions={<Button type="submit" variant="primary">Save</Button>}
>
{/* fields */}
</Form>