Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

gasket-plugin-tailwind

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gasket-plugin-tailwind

Adds Tailwind CSS support to your Gasket application

latest
npmnpm
Version
0.2.2
Version published
Maintainers
1
Created
Source

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

Keywords

gasket

FAQs

Package last updated on 08 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts