Skip to content

bradlc/tailwindcss-inset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tailwindcss-inset

top, right, bottom, and left utilities for Tailwind CSS

Installation

$ npm install --save-dev tailwindcss-inset

Then add tailwindcss-inset to your Tailwind configuration:

"plugins": [
  require('tailwindcss-inset')({
    variants: ['responsive'], // default: []
    insets: {
      '1/2': '50%',
      'full': '100%'
    }
  })
]

Example

Configuration:

{
  variants: [],
  insets: {
    'full': '100%'
  }
}

Generated utilities:

.inset-full {
  top: 100%;
  right: 100%;
  bottom: 100%;
  left: 100%;
}
.inset-t-full {
  top: 100%;
}
.inset-r-full {
  right: 100%;
}
.inset-b-full {
  bottom: 100%;
}
.inset-l-full {
  left: 100%;
}

About

top, right, bottom, and left utilities for Tailwind CSS

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published