Tailwindcss Highlights screenshot

Tailwindcss Highlights

Author Avatar Theme by Jln13x
Updated: 9 Oct 2024
177 Stars

A plugin for tailwindcss to add highlights to your text

Overview:

The tailwindcss-highlights is a plugin for Tailwind CSS that provides utility classes for easily adding highlights to texts. It offers various options to customize the highlights such as colors, spread sizes, and variants.

Features:

  • Default Highlight: Easily add default highlights to text elements.
  • Color Customization: Customize the color of the highlight using a wide range of colors from the theme.
  • Variants: Choose from different variants to style the highlights differently.
  • Spread Utility: Use the spread utility to control the spread of the highlight in different directions.
  • Additional Styling: Add additional styles using the ::after-pseudo element for further customization.

Installation:

To install the tailwindcss-highlights plugin, run the following command:

npm install tailwindcss-highlights

Add the plugin to the tailwind.config.js file in:

module.exports = {
  plugins: [
    require('tailwindcss-highlights')
  ]
}

Summary:

The tailwindcss-highlights plugin for Tailwind CSS is a useful tool for enhancing text elements with highlights. With features like color customization, spread utility, and variant options, it provides a range of ways to style highlights to suit different design needs. Whether it’s adding default highlights or applying custom styles, this plugin offers versatility in text highlighting within Tailwind CSS projects.