Menu

Colors

The Tabler color palette with base colors, light variants, neutral fills, the gray scale and social brand colors, each with background and text utilities.

Base colors

These are the base colors. Each one has bg-* and text-* utilities, and the components use the same names for their color variants.

Blue
Azure
Indigo
Purple
Pink
Red
Orange
Yellow
Lime
Green
Teal
Cyan

Light colors

Every base color also has a light shade with the -lt suffix. It works as a background for text or an icon in the base color.

Blue Light
Azure Light
Indigo Light
Purple Light
Pink Light
Red Light
Orange Light
Yellow Light
Lime Light
Green Light
Teal Light
Cyan Light

Fill colors

Fills are background tints for controls and small surfaces. They are the text color over a transparent background, so the same fill reads the same on the page, a card, a dropdown or a modal, in both color modes. Use them from the strongest to the faintest:

  • --tblr-fill-primary (16%) for the inactive track of a slider and other strong neutral shapes. --tblr-fill is an alias for it.
  • --tblr-fill-secondary (8%) for progress tracks and the hover state of neutral badges.
  • --tblr-fill-tertiary (4% in light mode, 6% in dark) for neutral badges, avatars, code and the hover state of quiet controls. --tblr-hover-bg points at it.
  • --tblr-fill-quaternary (2%) for faint section backgrounds.
bg-fill-primary
bg-fill-secondary
bg-fill-tertiary
bg-fill-quaternary
<div class="row g-3">
  <div class="col-6 col-md-3">
    <div class="bg-fill-primary p-4 rounded">bg-fill-primary</div>
  </div>
  <div class="col-6 col-md-3">
    <div class="bg-fill-secondary p-4 rounded">bg-fill-secondary</div>
  </div>
  <div class="col-6 col-md-3">
    <div class="bg-fill-tertiary p-4 rounded">bg-fill-tertiary</div>
  </div>
  <div class="col-6 col-md-3">
    <div class="bg-fill-quaternary p-4 rounded">bg-fill-quaternary</div>
  </div>
</div>

Gray palette

The gray scale is used for backgrounds, borders and muted text. Tabler ships several gray palettes and switches between them with data-bs-theme-base; see theme base colors.

Gray 50
Gray 100
Gray 200
Gray 300
Gray 400
Gray 500
Gray 600
Gray 700
Gray 800
Gray 900
Gray 950

Gray utilities

Every shade of the gray palette has a background and a text utility, from 50 to 950. Use bg-gray-* for surfaces and text-gray-* for muted text, and pick a pair with enough contrast between them.

Light surface with dark text
Dark surface with light text

Muted paragraph with text-gray-500

<div class="bg-gray-100 text-gray-700 p-3 rounded mb-2">Light surface with dark text</div>
<div class="bg-gray-800 text-gray-100 p-3 rounded mb-2">Dark surface with light text</div>
<p class="text-gray-500 mb-0">Muted paragraph with text-gray-500</p>

Social colors

The brand colors of popular services are available too, for social buttons and icons.

Facebook
Twitter
X
Linkedin
Google
Youtube
Vimeo
Dribbble
Github
Instagram
Pinterest
VK
RSS
Flickr
Bitbucket
Tabler

Accessibility

  • A color name is not a meaning. text-red looks like an error to most users, but a screen reader announces nothing, so keep the meaning in the text.
  • Body text needs a contrast ratio of at least 4.5:1, and large text at least 3:1. The lighter -lt variants are backgrounds for dark text, not text colors.
  • Check both color modes. A pair that passes in light can fail in dark, and Tabler switches many tokens with light-dark().
  • The social colors are brand colors. They are picked to be recognizable, not readable - do not use them for text on a white background without checking.
  • Never separate two states by hue alone. Add a label, an icon, or a shape.