@kcascend/liquid-ui
v0.0.2
Published
`@kcascend/liquid-ui` is the reusable UI package for Liquid Design System consumers.
Readme
Liquid UI Package
@kcascend/liquid-ui is the reusable UI package for Liquid Design System consumers.
Local development
- Run
npm installfrom the repository root to install the local file dependency. - Run
npm run build:uito rebuild the package outputs inpackages/liquid-ui/dist. - Run
npm run storybookto rebuild the package and launch Storybook against the package boundary.
Grid usage
The package exposes a grid primitive through GridLayout and GridColumn.
import { GridColumn, GridLayout } from '@kcascend/liquid-ui';
export function Example() {
return (
<GridLayout as="div">
<GridColumn sm={4} md={4} lg={8}>
Primary
</GridColumn>
<GridColumn sm={2} md={2} lg={4}>
Secondary A
</GridColumn>
<GridColumn sm={2} md={2} lg={4}>
Secondary B
</GridColumn>
</GridLayout>
);
}Supported layout features:
- Responsive spans through
sm,md,lg,xlg, andmax. - Offset columns with object values like
md={{ span: 4, offset: 2 }}. - Gutter modes with
narrowandcondensed. withRowGapto keep vertical spacing aligned with the active gutter.fullWidthfor viewport-spanning layouts.subgridfor nested grids that inherit the parent column scaffold.- Auto columns when a
GridColumnis rendered without explicit breakpoint props.
Figma governance
Every reusable component must record an approved Figma reference in story metadata or component documentation before it is considered ready for review. The initial workflow example in this package uses the Liquid token source in Figma
Storybook now demonstrates both patterns:
- a package-consumed button component with Figma and accessibility metadata
- a token values reference story that reads directly from the generated
tokensexport
Accessibility verification
Each component review must include:
- Keyboard interaction expectations when the component is interactive.
- Name, role, and state guidance for assistive technologies.
- Color contrast and focus treatment verification.
- Storybook documentation that explains any usage constraints needed to stay WCAG 2.1 aligned.
