0.2.2 • Published 9 months ago

gasket-plugin-tailwind v0.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

gasket-plugin-tailwind

This plugin adds Tailwind CSS support to your Gasket application.

Installation

npm i gasket-plugin-tailwind

Update your gasket file plugin configuration:

// gasket.js

+ import pluginTailwind from 'gasket-plugin-tailwind';

export default makeGasket({
  plugins: [
+   pluginTailwind
  ]
});

Configuration

You can configure Tailwind CSS options in your gasket.js file:

export default makeGasket({
  plugins: [
    pluginTailwindcss
  ],
  tailwindConfig: {
    // Your Tailwind CSS config options here
  }
});

Lifecycles

tailwindConfig

Executed before the Tailwind CSS configuration is finalized. It receives the initial Tailwind config and allows you to modify it.

export default {
  name: 'my-plugin',
  hooks: {
    tailwindConfig(gasket, config) {
      // Modify the Tailwind config
      return {
        ...config,
        // Your modifications here
      };
    }
  }
};

License

MIT

0.2.2

9 months ago

0.2.1

9 months ago

0.2.0

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago