@daikin-dsv/tailwind

1.0.0-alpha.2 • Public • Published

tailwind

Tailwind plugin utilizing Daikin-specific styles

Installation

Install the plugin from npm:

npm install -D @daikin-dsv/tailwind

Then add to your tailwind configuration file:

const daikinPlugin = require('@daikin-dsv/tailwind');

module.exports = {
    content: ['./src/**/*.js'],
    theme: {},
    variants: {
        extend: {}
    },
    plugins: [daikinPlugin(), ...otherPlugins]
};

Basic Usage

Colors

You can use extended colors anywhere you usually would.

<button class="text-daikinBlue-500 border-daikinBlue-500 hover:bg-daikinBlue-100">
    My Button
</button>

Available extensions:

daikinBlue
daikinNeutral
daikinRed
daikinYellow
daikinGreen

Available weight:

50
100
200
300
400
500
600
700
800
900
1000

All extensions have a default weight except for daikinNeutral.

Font Family

A daikinSerif fontFamily option has been added.

<h1 class="text-xl font-medium font-daikinSerif">Text</h1>

Note that the current default font is Roboto, so you would have to import that on your own.

Package Sidebar

Install

npm i @daikin-dsv/tailwind

Weekly Downloads

1,053

Version

1.0.0-alpha.2

License

MIT

Unpacked Size

8.19 kB

Total Files

4

Last publish

Collaborators

  • hiro-daikin