0.4.0 • Published 11 months ago

tailwindcss-question-mark v0.4.0

Weekly downloads
173
License
MIT
Repository
github
Last release
11 months ago

tailwindcss-question-mark

A plugin that provides a helpful ? dev time utility.

Demo: https://play.tailwindcss.com/fXhD65EpG4?layout=horizontal

example

Installation

Install the plugin from npm:

# Using npm
npm install tailwindcss-question-mark

# Using Yarn
yarn add tailwindcss-question-mark

Then add the plugin to your tailwind.config.js file:

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require("tailwindcss-question-mark"),
    // ...
  ],
};

Usage

Simply add the ? utility class to any element that you'd like to highlight.

Demo: https://play.tailwindcss.com/fXhD65EpG4?layout=horizontal

Customizing

Below is an example of how you can customize the plugin with the available configuration options and their defaults.

// tailwind.config.js
module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require("tailwindcss-question-mark")({
      animationDuration: "0.6s",
      enableAnimation: true,
      highlightColorStart: "#f16bc9",
      highlightColorEnd: "#f71fb6",
      widthStart: "8px",
      widthEnd: "12px",
    }),
    // ...
  ],
};
0.3.0

11 months ago

0.2.0

11 months ago

0.4.0

11 months ago

0.3.1

11 months ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago