@ayato-san/tailwind-plugin
v2.0.1
Published
My custom tailwind plugin
Downloads
144
Maintainers
Readme
Features
- Designed to work with Tailwind
- Super easy to use ( one line of code )
- 3 integrated plugin
Install
npm install -D tailwindcss @ayato-san/tailwind-plugin
Utilities
enabling by adding this line in
{
plugins: [ require('@ayato-san/tailwind-plugin') ],
}
list of different classes
animation-delay-<delay>
animation-duration-<duration>
text-shadow-<size>
usingshadow-<color>
to change the text shadow colorinteract-<state>
disable all the interaction for an elementbg-image-<image>
add images in themeimages
list of different variant
child:
select childssibling:
select siblingnot-data:
when not have specified data taggroup-not-data:
when not have specified data tag on group elmentpeer-not-data:
when not have specified data tag on sibling element
list of differents theme customization
animationDelay
(same default values as transitionDelay)animationDuration
(same default values as transitionDuration)textShadow
(same default values as boxShadow)interact
([none, initial] by default)
Gradient Mask
enabling by adding this line in
{
plugins: [ require('@ayato-san/tailwind-plugin/gradient_mask') ],
}
list of different classes
gradient-mask-t-<percentage>
gradient-mask-r-<percentage>
gradient-mask-b-<percentage>
gradient-mask-l-<percentage>
[!TIP] Mask can be stacked
list of differents theme customization
gradientSteps
([0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100] by default)
Responsive Grid
enabling by adding this line in
{
plugins: [ require('@ayato-san/tailwind-plugin/grid') ],
}
list of different classes
grid-container
define the gridcol-full
make the data take full sizecol-breakout
make the data take breakout sizecol-content
make the data take default size
list of differents theme customization
paddingInline
(2rem by default)contentMaxWidth
(90ch by default)breakoutMaxWidth
(110ch by default)
Pattern background
enabling by adding this line in
{
plugins: [ require('@ayato-san/tailwind-plugin/pattern_bg') ],
}
list of different classes
bg-pattern
define the background patternpattern
define the pattern size / colorbg
modify the default background definitionpattern-fade
creates a fading effect for the background pattern.