0.8.0 • Published 12 months ago

@leedomjs/tailwindcss-color-preset v0.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@leedomjs/tailwindcss-color-preset

npm

Collect some UI Frameworks' theme colors for Tailwind CSS.

Usage

Install

pnpm add -D tailwindcss @leedomjs/tailwindcss-color-preset

Config tailwind.config.js

!NOTE You could provide different param:

1.Object that contains some fields element, naive, vant.

If your project depends on element-ui, element-plus, naive-ui, vant-ui, the color will be enable automatically. Setting to false will disable the color, otherwise will enabled.

2.Boolean

If true, all options are enabled, otherwise disabled.

3.Empty

Auto-detected based on deps

const color = require('@leedomjs/tailwindcss-color-preset')

/** @type {import('tailwindcss').Config} */
module.exports = {
  presets: [
    /**
     * color()
     * color(true)
     * color(false)
     */
    color({
      element: true,
      naive: true,
      vant: true,
    }),
  ],
  content: [...],
  theme: {
    extend: {},
  },
  plugins: [],
  ...
}

License

MIT License © 2024-present Leedom

0.8.0

12 months ago

0.7.0

1 year ago

0.3.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.6.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago