Padding

Add padding using classes like p-4 (all sides), px-4 (horizontal), py-4 (vertical).

Example:

<div class="m-4 p-2">Spaced content</div>

Margins

Add margins using classes like m-4 (all sides), mx-4 (horizontal), my-4 (vertical).
Use negative margins with -m-4, -mx-4, etc.

Example:

<div class="m-4">Content with margin</div>

Borders

Add borders using border, border-2, etc., up to border-8.
Control border color with border-gray-500, border-blue-300, etc.
Set border styles using border-solid, border-dashed, or border-dotted.

Example:

<div class="border-2 border-blue-500 border-dashed">Bordered content</div>

Background

Set background colors using bg-red-500, bg-gray-200, etc.
Control background opacity with bg-opacity-50, bg-opacity-75, etc.

Example:

<div class="bg-red-500 bg-opacity-50">Content with background</div>