You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
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.

0.1.0
Source
npmnpm
Version published
Weekly downloads
544
-7.01%
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 npm
npm install --save-dev tailwindcss-text-indent

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

Usage

Because the plugin preprends a dash to the class name when the value is negative, if you want both positive and negative classes to share the same name, you'll have to require the plugin twice. If you have a better idea on how to deal with this, feel free to open an issue to discuss it.

require('tailwindcss-text-indent')({
  indents: {
    'sm': '2rem',
    'md': '3rem',
    'lg': '4rem',
  },
  variants: ['responsive'],
})
require('tailwindcss-text-indent')({
  indents: {
    'sm': '-2rem',
    'md': '-3rem',
    'lg': '-4rem',
  },
  variants: ['responsive'],
})
.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

tailwind

FAQs

Package last updated on 06 Jul 2018

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