# @dopt/core-theme

> A package which contains base themes and utilities for styling Dopt's React components

Latest version **2.3.1** (published 2024-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dopt/core-theme
pnpm add @dopt/core-theme
yarn add @dopt/core-theme
bun add @dopt/core-theme
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.1 |
| Published | 2024-04-18 |
| First published | 2023-06-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | kseth, alexchantastic, pankaj-avhad-dopt, chasebish, joemckenney |

## Links

- npm: https://www.npmjs.com/package/@dopt/core-theme
- Repository: https://github.com/dopt/odopt
- Homepage: https://github.com/dopt/odopt/tree/main/components/%40dopt/core/theme
- Issues: https://github.com/dopt/odopt/issues
- npm.io page: https://npm.io/package/@dopt/core-theme

## Dependencies (3)

- [clsx](https://npm.io/package/clsx.md) 1.2.1
- [lodash.merge](https://npm.io/package/lodash.merge.md) 4.6.2
- [@vanilla-extract/css](https://npm.io/package/@vanilla-extract/css.md) 1.11.1

## Recent versions

- 2.3.1 (latest) — 2024-04-18
- 2.3.0 — 2024-02-26
- 2.2.0 — 2024-02-22
- 2.1.0 — 2023-08-28
- 2.0.0 — 2023-07-31
- 1.0.0 — 2023-07-25
- 0.0.2 — 2023-07-07
- 0.0.1 — 2023-06-29

## README

# @dopt/core-theme

This package contains Dopt's core themes and related utilities used for styling across Dopt's React component libraries via [@dopt/react-theme](https://www.npmjs.com/package/@dopt/react-theme).

[Learn more about Dopt's styling and theming →](https://docs.dopt.com/components/react/styling/).

## Theme interface

```ts
interface Theme {
  colors?: {
    black?: string;
    white?: string;
    primary?: string;
    primaryLight?: string;
    primaryDark?: string;
    secondary?: string;
    secondaryLight?: string;
    secondaryDark?: string;
    content?: string;
    contentLight?: string;
    contentContrast?: string;
    border?: string;
    overlay?: string;
    background?: string;
  };
  space?: {
    1?: string;
    2?: string;
    3?: string;
    4?: string;
    5?: string;
    6?: string;
    7?: string;
    8?: string;
    9?: string;
    10?: string;
    12?: string;
    16?: string;
  };
  sizes?: {
    1?: string;
    2?: string;
    3?: string;
    4?: string;
    5?: string;
    6?: string;
    7?: string;
    8?: string;
    9?: string;
    10?: string;
    12?: string;
    16?: string;
  };
  radii?: {
    1?: string;
    2?: string;
    round?: string;
  };
  shadows?: {
    1?: string;
    2?: string;
  };
  fonts?: {
    sans?: string;
    mono?: string;
  };
  fontSizes?: {
    base?: string;
    xs?: string;
    sm?: string;
    md?: string;
    lg?: string;
  };
  fontWeights?: {
    normal?: string;
    medium?: string;
    bold?: string;
  };
  lineHeights?: {
    base?: string;
    sm?: string;
    md?: string;
    lg?: string;
  };
  borderWidths?: {
    1?: string;
    2?: string;
  };
  transitions?: {
    linear?: string;
    linearFast?: string;
    ease?: string;
    easeFast?: string;
  };
}
```

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