Utilities

Themes

Themes apply a set of color styles to an area.

About Themes#

Use a color theme to apply color to the background and text. Some color themes apply a background image or texture.

Base#

This is a default theme and here is a link.

<div class="slds-box slds-theme_default">
  <p>This is a
    <strong>default</strong> theme and here is a
    <a href="#">link</a>.</p>

Examples#

Shade#

This is a default theme and here is a link.

<div class="slds-box slds-theme_shade">
  <p>This is a
    <strong>default</strong> theme and here is a
    <a href="#">link</a>.</p>

Texture#

This theme has the alert texture added to the default theme and has a link.

<div class="slds-box slds-theme_shade slds-theme_alert-texture">
  <p>This theme has the
    <strong>alert texture</strong> added to the default theme and has a
    <a href="#">link</a>.</p>

Overview of CSS Classes#

Selector.slds-theme_default
Summary

Sets the background color to white

Restrict*
ModifierTrue
Selector.slds-theme_shade
Summary

Sets the background color to gray

Restrict*
ModifierTrue
Selector.slds-theme_inverse
Summary

Sets the background color to dark blue

Restrict*
ModifierTrue
Selector.slds-theme_alt-inverse
Summary

Sets the background color to darker blue

Restrict*
ModifierTrue
Selector.slds-theme_success
Summary

Sets the background color to green

Restrict*
ModifierTrue
Selector.slds-theme_info
Summary

Sets the background color to gray-ish blue

Restrict*
ModifierTrue
Selector.slds-theme_warning
Summary

Sets the background color to yellow

Restrict*
ModifierTrue
Selector.slds-theme_error
Summary

Sets the background color to red

Restrict*
ModifierTrue
Selector.slds-theme_offline
Summary

Sets the background color to black

Restrict*
ModifierTrue
Selector.slds-theme_alert-texture
Summary

Adds striped background

Restrict*
ModifierTrue

Themes Utility Release Notes