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

tailwindcss-text-indent

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss-text-indent

Text-indent utilities for Tailwind CSS.

1.0.2
latest
Source
npm
Version published
Weekly downloads
492
-32.14%
Maintainers
1
Weekly downloads
 
Created
Source

Tailwind CSS Text Indent Plugin

This plugin adds utilities to use text-indent with Tailwind CSS.

Installation

Add this plugin to your project:

# Install using pnpm
pnpm install --save-dev tailwindcss-text-indent

# Install using npm
npm install --save-dev tailwindcss-text-indent

# Install using yarn
yarn add -D tailwindcss-text-indent

Usage

// tailwind.config.js
{
  theme: { // defaults to these values
    textIndent: (theme, { negative }) => ({
      ...{
        // sm: '2rem',
        // md: '3rem',
        // lg: '4rem',
      },
      ...negative({
        // sm: '2rem',
        // md: '3rem',
        // lg: '4rem',
      }),
    }),
  },

  variants: { // all the following default to ['responsive']
    textIndent: ['responsive'],
  },

  plugins: [
    require('tailwindcss-text-indent')(), // no options to configure
  ],
}
.indent-sm { text-indent: 2rem; }
.indent-md { text-indent: 3rem; }
.indent-lg { text-indent: 4rem; }

.-indent-sm { text-indent: -2rem; }
.-indent-md { text-indent: -3rem; }
.-indent-lg { text-indent: -4rem; }

Keywords

plugin

FAQs

Package last updated on 05 Jun 2019

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