@chisquare-tech/origine-ngx-ui
v0.4.0
Published
Origine's own UI kit (canon: `index/prototype/`). Standalone Angular components with `o-` selectors and `--o-*` tokens; no Bootstrap, FontAwesome or `@thescaffold/ngx-ui` dependency in the new code. The older `x-element-*` components and `theme/legacy` st
Downloads
266
Readme
@chisquare-tech/origine-ngx-ui
Origine's own UI kit (canon: index/prototype/). Standalone Angular components with o- selectors and --o-* tokens; no Bootstrap, FontAwesome or @thescaffold/ngx-ui dependency in the new code. The older x-element-* components and theme/legacy stay only until PLAN M1-P8.
Use
@use '@chisquare-tech/origine-ngx-ui/theme/theme'; // tokens + base + controls (Angular's build resolves this; plain sass needs pkg:)Load Hanken Grotesk, JetBrains Mono and (landing only) Instrument Serif in the host page. Switch themes with ThemeService (<html data-theme>); ViewportService answers phone/tablet/desktop for structural choices; use theme/breakpoints (o-up, o-down) in SCSS.
Primitives o-icon o-button o-pill o-card o-alert o-field + oInput o-toggle o-segmented o-avatar o-progress o-loader o-skeleton o-empty o-diff o-evidence o-stages o-dialog (modal, side drawer, bottom sheet on phones) o-menu + oMenuItem o-toast-host + ToastService.
Checks (run before changing a colour or a primitive)
node projects/ui/tools/contrast.mjs— WCAG AA for every token pair in both themes.npx ng build gallerythen servedist/gallery/browser— every primitive on one page; look at it at 360 and 1280 px, light and dark.CHROME_BIN=<chrome> npx ng test ui --watch=false --browsers=ChromeHeadless.- Rules: a block that scrolls sideways gets
tabindex="0"and anaria-label; touch targets are at least--o-tap(44px) on coarse pointers; never reduce a button's opacity to show busy.
