1.0.1 • Published 12 months ago

tailwindcss-extra v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

tailwindcss-extra

tailwindcss plugin for extra styles

Install

npm install tailwindcss-extra --save-dev

Usage

// tailwind.config.js
/** @type {import('tailwindcss').Config} */

module.exports = {
  content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
  theme: {
    extend: {},
  },

  plugins: [require('tailwindcss-extra')],
};

complete table of provided classes:

namekinddescription
flex-centerstaticboth horizontal and vertical center in flex display
absolute-centerstaticboth horizontal and vertical center in absolute position
absolute-center-xstatichorizontal center in absolute position
absolute-center-ystaticvertical center in absolute position
fullstaticset width and height as 100% to its parent
screenstaticset width as 100vw and height as 100vh
circlematchuse clip-path to make a circle
squarematchmake a square box via setting both width and height
translate-1/2statictranslate x and y axis by 1/2
-translate-1/2statictranslate x and y axis by -1/2
1.0.1

12 months ago

1.0.0

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

2 years ago

0.0.1

2 years ago