1. docs
  2. utilities

Utilities

Skeleton operates as a superset of Tailwind, extending and adding powerful utility classes and styles.

The following features are provided by Skeleton’s feature-rich Tailwind Plugin. This dramatically extend the feature set of Tailwind, including: base styles, colors, typography, and more. Learn how to use each custom utility class or access theme CSS custom properties directly.


Base

Provides a set of opinionated base styles to your document.

View Base Styles

These can be disabled in the Skeleton plugin settings.

tailwind.config
plugins: [
skeleton({
base: false,
})
]

Components

Skeleton introduces a suite of powerful Tailwind component. See the Tailwind section for more information.


Extends

The following are considered extensions to the existing Tailwind capabilities.

Colors

Please refer to Colors for details.

ClassTheme Property
[style]-[color]-[shade]—color-[color]-[shade]
[style]-[color]-contrast-[shade]—color-[color]-contrast-[shade]
--—color-[color]-contrast-light
--—color-[color]-contrast-dark
body-color—body-background-color
body-color-dark—body-background-color-dark

Edges

ClassTheme Property
rounded—radii-container
rounded-container—radii-container
border—border-width-default
ring—ring-width-defaautl
outline—outline-width-default
divide—divide-width-default

Spacing

Please refer to Spacing for details.


Utilities

New and powerful utility classes provided by Skeleton.

Color Pairings

Please refer to Color Pairings for details.

Presets

Please refer to Presets for details.

Typography

Please refer to Typography for details. A typography scale is generated using the following formula.

calc({remSize} * var(--type-scale-factor))
ClassTheme PropertyRemPixels
type-scale-1—type-scale-10.75rem12px
type-scale-2—type-scale-20.875rem14px
type-scale-3—type-scale-31rem16px
type-scale-4—type-scale-41.125rem18px
type-scale-5—type-scale-51.25rem20px
type-scale-6—type-scale-61.5rem24px
type-scale-7—type-scale-71.875rem30px
type-scale-8—type-scale-82.25rem36px
type-scale-9—type-scale-93rem48px
type-scale-10—type-scale-103.75rem60px
type-scale-11—type-scale-114.5rem72px
type-scale-12—type-scale-126rem96px
type-scale-13—type-scale-138rem128px
ClassTheme Property
base-font-color—base-font-color
base-font-color-dark—base-font-color-dark
base-font-family—base-font-family
base-font-size—base-font-size
base-line-height—base-line-height
base-font-weight—base-font-weight
base-font-style—base-font-style
base-letter-spacing—base-letter-spacing
ClassTheme Property
heading-font-color—heading-font-color
heading-font-color-dark—heading-font-color-dark
heading-font-family—heading-font-family
heading-font-size—heading-font-size
heading-line-height—heading-line-height
heading-font-weight—heading-font-weight
heading-font-style—heading-font-style
heading-letter-spacing—heading-letter-spacing
ClassTheme Property
anchor-font-color—anchor-font-color
anchor-font-color-dark—anchor-font-color-dark
anchor-font-family—anchor-font-family
anchor-font-size—anchor-font-size
anchor-line-height—anchor-line-height
anchor-font-weight—anchor-font-weight
anchor-font-style—anchor-font-style
anchor-letter-spacing—anchor-letter-spacing
anchor-text-decoration—anchor-text-decoration
anchor-text-decoration-active—anchor-text-decoration-active
anchor-text-decoration-focus—anchor-text-decoration-focus
anchor-text-decoration-hover—anchor-text-decoration-hover