npm.io
0.5.0 • Published 2 years ago

enwind

Licence
Version
0.5.0
Deps
1
Size
101 kB
Vulns
0
Weekly
0

enwind

enwind: v. to wind in or about

A simple design system written for use in my personal projects. I had a set of Tailwind components I was copy/pasting between projects that needed consolidating. I had a few hours to myself on a flight, so I whipped up this library.

Usage

npm install enwind

Add the plugin to your tailwind.config.js file:

import enwind from "enwind";

export default {
    // ...
    theme: {
        extend: {},
    },
    plugins: [
        enwind({
            // you can optionally enable strict mode to remove all non-enwind utility classes; defaults to `false`
            strict: true,
        }),
    ],
};

Colors

Colors can be overridden in the enwind section of your Tailwind config:

{
    "theme": {
        "extend": {
            "enwind": {
                "colors": {
                    "dark": {
                        "body": {
                            "DEFAULT": "#ccc"
                        }
                    }
                }
            }
        }
    }
}

Default values can be found in colors.ts.