# @equinor/fusion-web-theme

> fusion web theme

Latest version **0.1.12** (published 2026-10-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @equinor/fusion-web-theme
pnpm add @equinor/fusion-web-theme
yarn add @equinor/fusion-web-theme
bun add @equinor/fusion-web-theme
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

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

## Facts

| | |
|---|---|
| Version | 0.1.12 |
| Published | 2026-10-22 |
| First published | 2021-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 38.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 10 |
| Author | odin thomas rochmann |
| Maintainers | _odin_, nogglings, eikeland |
| Keywords | style, theme, eds |

## Links

- npm: https://www.npmjs.com/package/@equinor/fusion-web-theme
- Repository: https://github.com/equinor/fusion-react-components
- Homepage: https://github.com/equinor/fusion-react-components/tree/main/packages/theme#readme
- Issues: https://github.com/equinor/fusion-react-components/issues
- npm.io page: https://npm.io/package/@equinor/fusion-web-theme

## Dependencies (2)

- [csstype](https://npm.io/package/csstype.md) ^3.1.3
- [@equinor/eds-tokens](https://npm.io/package/@equinor/eds-tokens.md) 0.9.2

## Recent versions

- 0.1.12 (latest) — 2026-10-22
- 0.1.11 — 2026-10-20
- 0.1.10 — 2024-03-14
- 0.1.9 — 2024-03-11
- 0.1.7 — 2021-11-16
- 0.1.6 — 2021-09-27
- 0.1.5 — 2021-09-16
- 0.1.4 — 2021-09-15
- 0.1.3 — 2021-09-14
- 0.1.2 — 2021-06-02
- 0.1.1 — 2021-05-11
- 0.1.0-alpha.4 — 2021-03-18
- 0.1.0-alpha.3 — 2021-03-18
- 0.1.0-alpha.2 — 2021-03-18
- 0.1.0-alpha.1 — 2021-03-18
- … 1 more at https://npm.io/package/@equinor/fusion-web-theme/versions

## README

# @equinor/fusion-web-theme

Fusion theme style properties and CSS declarations for colors, elevation, spacing,
and typography.

## Apply the theme

Importing the package only creates theme data: it does not inject CSS, access the
DOM, or change HTML attributes. Consumers must emit the exported declarations in
their root stylesheet, for example with their existing CSS-in-JS integration:

```ts
import { attributes } from '@equinor/fusion-web-theme';

const rootCss = `:root { ${attributes.join(';')}; }`;
```

Apply this CSS to the document root before the first paint to cover native controls
from startup, including controls in overlays mounted under `body`. Scoping the
declarations to an app container does not cover overlays outside that container.
If the consuming stylesheet loads later, protection only starts when it applies.

## Temporary native-control light mode

`colorVariables` (from `src/styles/colors`) includes a standalone
`color-scheme: only light` declaration. The public aggregate `attributes` inherits
it once. This keeps browser-native controls on a light scheme while Fusion does
not support dark mode, including when the OS preference changes at runtime.
Remove this single entry when Fusion supports dark mode.

This is **not** a complete EDS dark-mode lock. The existing legacy EDS 0.9.2 tokens
use CSS variable references with light fallbacks. Modern EDS token stylesheets can
select dark values through `prefers-color-scheme`; `color-scheme` does not disable
that media query. Consumers using modern EDS must explicitly set
`data-color-scheme="light"` on `html` to select its light palette. This package
does not set that attribute or choose a modern EDS palette.

## Development

From the repository root:

```sh
bun run --cwd packages/theme test
bun run --cwd packages/theme build
bun run check -- packages/theme
```

The test command builds the package first so the DOM-free import check exercises
the published entry point. The committed color snapshot preserves the 75 legacy
declarations and their order; review any snapshot update as a public-output change.

---
_Source: https://npm.io/package/@equinor/fusion-web-theme · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
