Layouts preset
The layouts
preset extends Tailwind default configurations to help you out with layouts. It also contains plugins that work together with Splendid Layouts.
-->
The layouts
preset extends Tailwind default configurations to help you out with layouts. It also contains plugins that work together with Splendid Layouts.
Tailwind is kinda irritating because it has a weird spacing scale. We fixed that by introducing a consistent spacing scale for most of the units you’ll ever need.
inherit
1px
to 8px
0ch
to 100ch
in steps of 0.25ch
0em
to 100em
in steps of 0.25em
0rem
to 100rem
in steps of 0.25rem
0
to 100
in steps of 0.25
. (Each integer is 1rem
according to tailwind’s convention). No more []
for ch em, and rem values from 0 to 100!
It’s a best practice to change your breakpoints according to your design. Unfortunately, Tailwind only provides device-breakpoints like 768px
.
We fixed this by giving you a whole slew of breakpoints (from 50px
to 2000px
) so you can design to your hearts’ content ❤️!
Breakpoints
Container Breakpoints
Why does Tailwind only give us 0
, 1px
, 2px
, 4px
, and 8px
values for border widths? We don’t understand and we find that to be a problem.
We fixed this by making all spacing values available for border-width
.
Now you can use any unit you like. Without []
too!
You can use the layouts preset in your Tailwind config.js file like this.
This preset adds the following values to your Tailwind config
inherit
1px
to 8px
0ch
to 100ch
in steps of 0.25ch
0em
to 100em
in steps of 0.25em
0rem
to 100rem
in steps of 0.25rem
0
to 100
in steps of 0.25
. (Each integer represents 1rem according to tailwind’s convention).0.5r
radius
1.5r
to 3r
, in steps of 0.5r
r
represents the CSS variable --radius
that you may use in Splendid
Layouts and Splendid Styles. The integers represent
the multiple used.
bp0.5
to bp20
in steps of 0.5
Each integer value represents 100px
.
To use container breakpoints, you need to prefix @
before the breakpoint value.
The following plugins are included in this preset:
Splendid Labz is free because we love developers and we want to contribute back to the ecosystem.
We only charge for access to the documentation to keep the project going. If you don't wish to pay, feel free to use the content from the features tab, our blogs or our videos as your guide.
You can use the layouts preset in your Tailwind config.js file like this.
This preset adds the following values to your Tailwind config
inherit
1px
to 8px
0ch
to 100ch
in steps of 0.25ch
0em
to 100em
in steps of 0.25em
0rem
to 100rem
in steps of 0.25rem
0
to 100
in steps of 0.25
. (Each integer represents 1rem according to tailwind’s convention).0.5r
radius
1.5r
to 3r
, in steps of 0.5r
r
represents the CSS variable --radius
that you may use in Splendid
Layouts and Splendid Styles. The integers represent
the multiple used.
bp0.5
to bp20
in steps of 0.5
Each integer value represents 100px
.
To use container breakpoints, you need to prefix @
before the breakpoint value.
The following plugins are included in this preset: