# @animus-ui/core

> Animus core — framework-neutral design system builder: tokens, prop groups, the cascade chain, class resolution

Latest version **0.2.0** (published 2026-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @animus-ui/core
pnpm add @animus-ui/core
yarn add @animus-ui/core
bun add @animus-ui/core
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2026-11-27 |
| First published | 2022-01-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | codecaaron |
| Maintainers | animus-dev |
| Keywords | css, css-in-js, design-system, theming, tokens, typescript, variants, zero-runtime |

## Links

- npm: https://www.npmjs.com/package/@animus-ui/core
- Repository: https://github.com/codecaaron/animus
- Homepage: https://github.com/codecaaron/animus/tree/main/packages/core#readme
- Issues: https://github.com/codecaaron/animus/issues
- npm.io page: https://npm.io/package/@animus-ui/core

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2026-11-27
- 0.1.0-next.37 (next) — 2026-04-03
- 0.2.0-dd01c1b3.4 (canary) — 2025-07-01
- 0.1.0-next.36 — 2026-04-02
- 0.1.0-next.34 — 2026-04-01
- 0.1.0-next.32 — 2026-03-31
- 0.1.0-next.31 — 2026-03-31
- 0.1.0-next.30 — 2026-03-31
- 0.1.0-next.23 — 2026-03-29
- 0.1.0-next.21 — 2026-03-29
- 0.1.0-next.18 — 2026-03-28
- 0.1.0-next.17 — 2026-03-27
- 0.1.0-next.16 — 2026-03-27
- 0.1.0-next.10 — 2026-03-27
- 0.1.0-next.9 — 2026-03-27
- … 76 more at https://npm.io/package/@animus-ui/core/versions

## README

# @animus-ui/core

The framework-neutral half of Animus: tokens and themes, the system builder,
the cascade-ordered style chain, prop groups, and class resolution. It imports
no UI framework. Styles extract to static CSS at build time.

Most projects install a binding, which builds on this package:

- [`@animus-ui/react`](https://github.com/codecaaron/animus/tree/main/packages/react): React components, slot composition, the component runtime.
- [`@animus-ui/effect-ui`](https://github.com/codecaaron/animus/tree/main/packages/effect-ui): Effect UI element builders.

Use this package directly where no binding fits, such as Svelte or plain
templates: define styles with `.asClass()` and resolve class names at runtime
with `@animus-ui/core/class-resolver`.

## Install

```bash
npm install @animus-ui/core
```

Pair with an extraction driver: `@animus-ui/vite-plugin`,
`@animus-ui/next-plugin`, `@animus-ui/unplugin`, or the `@animus-ui/cli`.

## Exports

| Path                                    | What it holds                                                                |
| --------------------------------------- | ---------------------------------------------------------------------------- |
| `@animus-ui/core`                       | `createTheme`, `createSystem`, the style chain ending in `.asClass()`, types |
| `@animus-ui/core/groups`                | Pre-built prop groups: `space`, `color`, `typography`, `layout`, and more    |
| `@animus-ui/core/class-resolver`        | `createClassResolver`: class resolution with no component runtime            |
| `@animus-ui/core/runtime`               | For binding packages: what a component runtime imports, without the builder  |
| `@animus-ui/core/binding`               | For binding packages: the chain's runtime class and its config helpers       |
| `@animus-ui/core/appearance`            | The stored color-mode record and its write path                              |
| `@animus-ui/core/appearance/controller` | `createColorModeController`                                                  |
| `@animus-ui/core/appearance/svelte`     | `colorModeStore`: the controller as a Svelte store                           |
| `@animus-ui/core/bootstrap`             | `createAppearanceBootstrap`: build-time only                                 |

## Writing a binding

A binding adds its terminals to the chain and inherits every earlier step. It
registers one key on `ChainTerminals` by module augmentation, then names its
chain root as `ChainRoot<'its-key', PropRegistry, GroupRegistry>`. At runtime
it subclasses `AnimusChain`, from `@animus-ui/core/binding`, and its component
runtime imports only `@animus-ui/core/runtime`. `@animus-ui/react` is the
reference.

---
_Source: https://npm.io/package/@animus-ui/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
