Spacing

Set a dynamic scale for application whitespace.

Skeleton utilizes the power of Tailwind to provide a universal system for customizing spacing throughout your application. While enabling this customization per each theme.

--spacing: 0.25rem

How It Works

In recent versions of Skeleton, this is implemented using the official Tailwind Spacing property.

@layer theme { :root { --spacing: 0.25rem; } }

However, this can be customized to each Skeleton theme.

[data-theme='cerberus'] { --spacing: 0.25rem; } [data-theme='mona'] { --spacing: 0.2rem; }

Supported Properties

The scaling system supports all relevant Tailwind utility classes, including, but not limited to:

padding, margin, width, minWidth, maxWidth, height, minHeight, maxHeight, gap, inset, space, translate

Core API

For more information on theme properties, please refer to the Core API documentation.

View page on GitHub