Beginner Guide


Table of Content


I. Utility-First Workflow - Basic Grammar

1. Background

When setting a background color, we use

bg-<color>-<number>

Example bg-blue-100

2. Padding

When we don’t want an item to take up a whole space, we can set a padding to that item. We use

p-<number>

Example p-2

Additionally, we can also set a padding direction: left, right, top, bottom