UNPKG

tailwind-colorize-plugin

Version:

The fluent and expressive way to manipulate colors in Tailwind CSS.

35 lines 1.06 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const colors_1 = __importDefault(require("tailwindcss/colors")); const plugin_js_1 = __importDefault(require("tailwindcss/plugin.js")); const lib_1 = require("./lib"); module.exports = plugin_js_1.default.withOptions((opts) => { return () => { // }; }, (opts) => { const { expand } = (0, lib_1.useColors)(opts.colors || colors_1.default); return { theme: { extend: { colors: expand(opts.expand, opts.interval) } } }; }); // const plugin = require('tailwindcss/plugin'); // // const colors = require('./src/colors.js'); // console.log(1); // /** // * @type {import('postcss').PluginCreator} // */ // module.exports = plugin.withOptions((opts = {}) => { // return ({ theme }) => { // console.log(opts); // } // }, function (opts) { // console.log(opts); // }) //# sourceMappingURL=extra-colors.js.map