Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bly-th/tailwind-css-variables
https://github.com/bly-th/tailwind-css-variables
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bly-th/tailwind-css-variables
- Owner: bly-th
- License: mit
- Created: 2023-02-14T10:08:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-27T08:51:18.000Z (5 months ago)
- Last Synced: 2024-09-29T10:46:45.699Z (about 2 months ago)
- Language: JavaScript
- Size: 662 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).