# unified-components

> ## Capabilities

Latest version **0.6.27** (published 2025-03-12) · 0 weekly downloads

## Install

```sh
npm install unified-components
pnpm add unified-components
yarn add unified-components
bun add unified-components
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; low quality score; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.27 |
| Published | 2025-03-12 |
| First published | 2023-11-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 38 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| Maintainers | yooneskh |

## Links

- npm: https://www.npmjs.com/package/unified-components
- npm.io page: https://npm.io/package/unified-components

## Dependencies (9)

- [pluralize](https://npm.io/package/pluralize.md) 8.0.0
- [nuxt-radash](https://npm.io/package/nuxt-radash.md) 1.0.0
- [@unocss/nuxt](https://npm.io/package/@unocss/nuxt.md) 65.4.2
- [@vueuse/core](https://npm.io/package/@vueuse/core.md) 13.0.0
- [@vueuse/nuxt](https://npm.io/package/@vueuse/nuxt.md) 13.0.0
- [@unocss/reset](https://npm.io/package/@unocss/reset.md) 65.4.2
- [@floating-ui/vue](https://npm.io/package/@floating-ui/vue.md) 1.1.6
- [@iconify-json/mdi](https://npm.io/package/@iconify-json/mdi.md) 1.2.3
- [nuxt-unified-confetti](https://npm.io/package/nuxt-unified-confetti.md) 0.1.1

## Recent versions

- 0.6.27 (latest) — 2025-03-12
- 0.6.26 — 2025-01-20
- 0.6.25 — 2025-01-20
- 0.6.24 — 2025-01-20
- 0.6.23 — 2025-01-11
- 0.6.22 — 2025-01-04
- 0.6.21 — 2024-12-21
- 0.6.20 — 2024-12-15
- 0.6.19 — 2024-12-14
- 0.6.18 — 2024-10-24
- 0.6.17 — 2024-10-20
- 0.6.16 — 2024-10-03
- 0.6.15 — 2024-09-17
- 0.6.14 — 2024-09-17
- 0.6.13 — 2024-09-02
- … 35 more at https://npm.io/package/unified-components/versions

## README

# Unified Components

## Capabilities

General capabilities added through UnoCSS
- [Variant groups](https://unocss.dev/transformers/variant-group)
  - `class="hover:(text-black underline)"`
- [Directives](https://unocss.dev/transformers/directives)
  - ```css
      .custom-div {
        --at-apply: "text-center my-0 font-medium";
      }
    ```
  - `@screen xs { ... }`
  - `@screen lt-lg { ... }`
  - `@screen at-lg { ... }`
  - `background-color: theme('colors.blue.500');`
- [Compile classes](https://unocss.dev/transformers/compile-class)
  - `<div class=":uno: text-center sm:text-left">...</div>`
- Auto import access to all functions in the [VueUse](https://vueuse.org/)
- Auto import access to all functions in the [Radash](https://radash-docs.vercel.app/)

## How to use

1- Install

```bash
bun i unified-components --exact
```

2- Configure

`~/uno.config.js`

```js
import { defineConfig, transformerCompileClass, transformerDirectives, transformerVariantGroup } from 'unocss';
import config from 'unified-components/uno.config.js';

export default defineConfig({
  presets: [
    config,
  ],
  transformers: [
    transformerVariantGroup(),
    transformerDirectives(),
    transformerCompileClass(),
  ],
});
```

`~/nuxt.config.js`

```js
export default defineNuxtConfig({
  extends: [
    'unified-components',
  ],
});
```

`~/app/app.vue`

```html
<style>
  :root {
    color: theme('colors.on-surface');
    background-color: theme('colors.surface');
  }
</style>
```

## Theming

The theme is automatically applied to all components. You can override the theme by passing a theme object to the module.

`~/nuxt.config.js`

```js
export default defineNuxtConfig({
  extends: [
    'unified-components',
  ],
  unifiedComponents: {
    theme: {
      'surface': '#FAFAFA',
      'on-surface': '#212121',
      'neutral': '#212121',
      'on-neutral': '#FAFAFA',
      'primary': '#3B82F6',
      'on-primary': '#FAFAFA',
      'success': '#22C55E',
      'on-success': '#212121',
      'danger': '#EF4444',
      'on-danger': '#212121',
    },
  },
});
```

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