[READ-ONLY] Mirror of https://github.com/hacknug/tailwindcss-text-indent. Text-indent utilities for Tailwind CSS. www.npmjs.com/package/tailwindcss-text-indent
0

Configure Feed

Select the types of activity you want to include in your feed.

2 4 0

Clone this repository

https://tangled.org/nestor.rip/tailwindcss-text-indent https://tangled.org/did:plc:hflesqj67d6apjumns3ijn42
git@tangled.org:nestor.rip/tailwindcss-text-indent git@tangled.org:did:plc:hflesqj67d6apjumns3ijn42

For self-hosted knots, clone URLs may differ based on your setup.



readme.md

Tailwind CSS Text Indent Plugin#

Greenkeeper badge

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; }