Installation

Installing Splendid Layouts

You can install Splendid Layouts through npm.

Terminal window
npm install @splendidlabz/layouts

Then you can import Splendid Layouts into your project to use it.

// styles.scss
@use '@splendidlabz/layouts';

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:

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.

tailwind.config.cjs
module.exports = {
corePlugins: { preflight: false },
}

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.

npm install @splendidlabz/tailwind

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.

// styles.scss
@use '@splendidlabz/layouts/utilities';
Tip

Splendid Layouts work perfectly without Tailwind. Give it a try without Tailwind if you’re on the fence about Tailwind.