# vue-background

> Vue Background

Latest version **1.0.0** (published 2023-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-background
pnpm add vue-background
yarn add vue-background
bun add vue-background
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-06-10 |
| First published | 2023-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Iman Malekian |
| Maintainers | iman-malekian |
| Keywords | vue, directive, background, vue-background, tailwind, color |

## Links

- npm: https://www.npmjs.com/package/vue-background
- Repository: https://github.com/imanmalekian31/vue-background
- Homepage: https://github.com/imanmalekian31/vue-background#readme
- Issues: https://github.com/imanmalekian31/vue-background/issues
- npm.io page: https://npm.io/package/vue-background

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-06-10

## README

# Vue background

`vue-background` is a simple directive that allows you to apply [TailwindCss colors](https://tailwindcss.com/docs/customizing-colors) to an element's background.

## Installation

```bash
# npm
npm install vue-background
# yarn
yarn add vue-background
```

## Usage

```js
import bgDirective from "vue-background";

const app = createApp(App);
app.use(bgDirective);
app.mount("#app");
```

```html
<template>
  <h1 v-bg="'slate-500'" class="text-3xl font-bold underline">Hello world!</h1>
  <button v-bg="'lime-600'">Submit</button>
</template>
```

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