# @equinor/fusion-wc-theme

> [![Published on npm](https://img.shields.io/npm/v/@equinor/fusion-wc-theme.svg)](https://www.npmjs.com/package/@equinor/fusion-wc-theme)

Latest version **1.2.6** (published 2026-10-29) · ISC license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2026-10-29 |
| First published | 2021-06-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 67.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 13 |
| Maintainers | _odin_, nogglings, eikeland |

## Links

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

## Dependencies (4)

- [lit](https://npm.io/package/lit.md) 3.3.3
- [@material/theme](https://npm.io/package/@material/theme.md) ^14.0.0
- [@equinor/fusion-wc-core](https://npm.io/package/@equinor/fusion-wc-core.md) ^2.0.3
- [@equinor/fusion-web-theme](https://npm.io/package/@equinor/fusion-web-theme.md) ^0.1.12

## Recent versions

- 1.2.6 (latest) — 2026-10-29
- 0.2.34-next.1 (next) — 2023-09-20
- 1.2.5 — 2026-10-22
- 1.2.4 — 2026-08-12
- 1.2.3 — 2026-05-11
- 1.2.2 — 2026-05-05
- 1.2.1 — 2026-04-28
- 1.2.0 — 2026-04-20
- 1.1.2 — 2024-08-23
- 1.1.1 — 2024-03-15
- 1.1.0 — 2023-11-24
- 1.0.0 — 2023-09-22
- 0.2.35 — 2023-09-22
- 0.2.34 — 2023-09-21
- 0.2.34-next.0 — 2023-09-20
- … 30 more at https://npm.io/package/@equinor/fusion-wc-theme/versions

## README

# @equinor/fusion-wc-theme

[![Published on npm](https://img.shields.io/npm/v/@equinor/fusion-wc-theme.svg)](https://www.npmjs.com/package/@equinor/fusion-wc-theme)

## Install
```sh
npm install @equinor/fusion-wc-theme
```

Fusion Web Components are base of [Material Web Components](https://github.com/material-components/material-web),
but uses the [EDS (Equinor Design System)](https://eds.equinor.com/) for styling / theming.
This component is necessary to override the css attributes used in [MD (material design)](https://material.io/design)

## Usage

### Vanilla JS/HTML

```html
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>My Example App</title>
  </head>
  <body>
    <!-- Add the Fusion Theme variables to the DOM. -->
    <fwc-theme>
      <!-- The rest of your app code... -->
      <div id="my-app"></div>
    </fwc-theme>
    <!-- The Fusion Web Components use standard JavaScript modules. -->
    <script type="module">
      import '@equinor/fusion-wc-theme';
    </script>
  </body>
</html>
```

### React

```tsx
import Theme from '@equinor/fusion-wc-theme';
Theme;

export const App => {
  return (
      <fwc-theme>
        <!-- The rest of your react app code. -->
        <MyComponent />
      </fwc-theme>
  );
}
```

## Color scheme

`fwc-theme` always sets `data-color-scheme="light"` on itself when connected (overwriting any existing value).
Fusion does not support dark mode yet, so EDS variables inside `<fwc-theme>` always resolve to light values, regardless of the OS/browser `prefers-color-scheme` preference.
This is temporary until Fusion supports dark mode.

> [!NOTE]
> Content rendered outside `<fwc-theme>` (e.g. portals attached to `document.body`) and the `html`/`body` background are not covered.

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