Installation
Installing Splendid Layouts
You can install Splendid Layouts through npm.
Then you can import Splendid Layouts into your project to use it.
Installing Tailwind (Optional)
We recommend using Tailwind to get the most out of Splendid Layouts.
Don’t worry about Tailwind polluting your DOM with classes — that’s not going to happen. See our philosophy for reasons why. 😉
How to install Tailwind:
- If you’re using Astro, use Astro’s Tailwind integration.
- If you’re not using Astro, use Tailwind’s official docs.
Tailwind Configuration
We recommend removing Tailwind’s preflight
styles because it contains an overly-aggressive CSS reset. We’ve got you covered with our own reset.
Splendid Tailwind Presets
We recommend installing our layouts preset to make layouts easier to use. You can find out more about the layouts preset in its documentation.
Usage without Tailwind
If you don’t want to use Tailwind, you need to add our utilities to your project. This file gives you the utilities that are needed to use Splendid Layouts.
Splendid Layouts work perfectly without Tailwind. Give it a try without Tailwind if you’re on the fence about Tailwind.