@fluix-ui/core
v0.0.9
Published
Core logic for Fluix UI components. Framework-agnostic state machines, primitives, and APIs.
Readme
@fluix-ui/core
Core logic for Fluix UI components.
This package contains framework-agnostic primitives, state machines, and the imperative fluix API used by all adapters.
Install
npm install @fluix-ui/coreHighlights
- Toast state machine and API
- Notch machine and adapter-ready config types
- Shared primitives (store, spring, dismiss)
- Type-safe exports for adapters and consumers
- Theme plugin system —
"light","dark", or any custom string
Theming
The theme option accepts any string, not just "light" or "dark". Built-in themes (light, dark) work out of the box. Custom themes are pure CSS — no JS configuration needed.
fluix.success({ title: "Saved!", theme: "midnight" });The SVG background color is derived from the CSS variable --fluix-surface-contrast, so custom themes control it entirely through CSS. You can still override it per-toast with the fill option.
See @fluix-ui/css for how to create custom themes.
Docs
- Official docs: https://fluix.ivanlopezdev.es
- Source code: https://github.com/ivanlhz/fluix
