JSPM

@roots/bud-tailwindcss

3.0.72-alpha.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2140
  • Score
    100M100P100Q129240F
  • License MIT

Adds tailwindcss support to Bud

Package Exports

  • @roots/bud-tailwindcss

Readme

Bud

MIT License Follow Roots

@roots/bud-tailwindcss

Overview

A plugin which adds tailwindcss support to @roots/bud projects.

Installation

yarn add @roots/bud-tailwindcss --dev

Usage

bud.use('@roots/bud-tailwindcss')

You should now be good to utilize tailwind in your project. You can use it with scss or postcss. The parser used is based on the extension you save the source file with.

Configuration

bud.tailwind(...options)

Use the tailwind config function to specify a tailwindcss file to use in your project.

This only applies if your tailwind file is not locatable in the root of your project with the name tailwind.config.js.

  bud.tailwind(bud.project('path/to/config.js'))

You can also provide your tailwind config as an object, should you prefer.

bud.tailwind({
  theme: ({theme}) => ({
    colors: {},
  }),
})

Contributing

Contributions are welcome from everyone.

We have contributing guidelines to help you get started.

Bud sponsors

Help support our open-source development efforts by becoming a patron.

Community

Keep track of development and community news.