🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

tailwindcss-textglow

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-textglow

A Tailwind CSS v3.0+ plugin to add glow effects with customizable blur sizes and colors.

1.0.0
latest
Source
npm
Version published
Maintainers
0
Created
Source

Tailwind CSS v3.0+ TextGlow Plugin

Tailwind CSS TextGlow is a simple yet powerful plugin that lets you add text glow effects to your Tailwind CSS v3.0+ projects. Customize blur sizes and glow colors to create vibrant and eye-catching designs.

🚀 Features

  • Add glow effects to text elements effortlessly.
  • Customize blur sizes (glow-sm, glow-lg, etc.).
  • Use any Tailwind CSS color for the glow effect (glow-blue-500, glow-red-300, etc.).

🌟 Inspiration

This project is inspired by ycs77/tailwindcss-glowing. Special thanks to its creator for the idea of adding glowing effects to Tailwind CSS.

📦 Installation

Install the plugin using npm or yarn:

npm i -D tailwindcss-textglow
# or yarn
yarn add -D tailwindcss-textglow

🔧 Usage

  • Add the plugin to your tailwind.config.js:

    const textGlow = require('tailwindcss-textglow');
    
    module.exports = {
      plugins: [textGlow],
    };
    
  • Use the utilities in your HTML or components:

    <h1 class="glow-lg glow-blue-500">
      Glowing Text Example
    </h1>
    

✨ Options

Glow Sizes

Use the following utilities for controlling blur size:

ClassBlur Size
glow-sm2px
glow4px (Default)
glow-md6px
glow-lg10px
glow-xl15px
glow-2xl25px
glow-3xl35px

Glow Colors

Apply any Tailwind color as the glow color:

  • glow-red-500
  • glow-blue-400
  • glow-green-300
  • Or any custom color from your Tailwind theme.

🌟 Example

<div class="text-4xl font-bold glow-xl glow-purple-600">
  Glowing Text Example
</div>

📄 License

This project is licensed under the MIT License.

🌍 Connect

Enjoy crafting glowing text with Tailwind CSS TextGlow Plugin! ✨

Keywords

tailwind

FAQs

Package last updated on 11 Jan 2025

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