# @mirage-ui/colors

> The ultimate color system for developers and designers.

Latest version **0.1.1** (published 2023-09-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install @mirage-ui/colors
pnpm add @mirage-ui/colors
yarn add @mirage-ui/colors
bun add @mirage-ui/colors
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2023-09-18 |
| First published | 2023-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | cr34t1ve |
| Keywords | mirage, ui, colors, theme, design, system |

## Links

- npm: https://www.npmjs.com/package/@mirage-ui/colors
- npm.io page: https://npm.io/package/@mirage-ui/colors

## Dependencies (1)

- [@changesets/cli](https://npm.io/package/@changesets/cli.md) ^2.26.2

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2023-09-18
- 0.1.0 — 2023-09-18

## README

# Mirage UI Colors

The ultimate color system for developers and designers.

## Installation

yarn

```bash
yarn add @mirage-ui/colors
```

npm

```bash
npm install @mirage-ui/colors
```

## Usage

Tailwind CSS

```js
// tailwind.config.js
const { warning, functional, success } = require("@mirage-ui/colors");

module.exports = {
  theme: {
    colors: {
      ...warning,
      ...functional,
      ...success,
    },
  },
};
```

Vanilla CSS

```css
@import "@mirage-ui/colors/warning";
@import "@mirage-ui/colors/functional";
@import "@mirage-ui/colors/success";

--warning: var(--warning-200);
--black: var(--functional-black);
--success: var(--success-200);

.warning {
  color: var(--warning);
}

.functional {
  color: var(--black);
}

.success {
  color: var(--success);
}
```

Stitches

```js
import { createCss } from "@stitches/react";
import { warning, functional, success } from "@mirage-ui/colors";

const { styled } = createCss({
  theme: {
    colors: {
      ...warning,
      ...functional,
      ...success,
    },
  },
});

const Warning = styled("div", {
  color: "$warning500",
});
```

React

```js
import { primary, success, functional } from '@mirage-ui/colors'

export fuction SomePage(){
    return(
        <div>
            <h1 style={{color: primary}}>Primary</h1>
            <h1 style={{color: success}}>Success</h1>
            <h1 style={{color: functional}}>Functional</h1>
        </div>
    )
}

```

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