Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bly-th/tailwind-css-variables


https://github.com/bly-th/tailwind-css-variables

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# tailwind-css-variables

> Generates custom property values from tailwind config

Install the plugin from npm:

```
$ npm install tailwind-css-variables
```

Then add the plugin to your `tailwind.config.js` file:

```js
// tailwind.config.js
module.exports = {
plugins: [
// ...
require('tailwind-css-variables'),
// ...
],
};
```

This plugin will generate following CSS:

```css
/* ... */
:root {
--color-primary: #000;
}
/* ... */
```

## License

tailwind-css-variables is licensed under the MIT License.

## Credits

Created with [create-tailwind-plugin](https://github.com/Landish/create-tailwind-plugin).