Skip to content

UI Colors

Note: The documented colors are part of the Siemens branding and cannot be used for none Siemens applications. The color definitions are not part of the OSS package. Element comes with a default theme that is not part of the Siemens branding. The default theme is not documented.

Colors are a foundational aspect of any user interface. Maintaining consistent and engaging UIs requires specific color usage guidelines. To address this challenge, our system uses a combination of semantic naming and a layer of abstraction in both our designs and code.

Application of the color palette brings a unified and consistent experience to our products and interfaces. The theme includes a variety of solid colors and gradients to ensure that a consistent look is carried through any application. For example, action, base, and status colors are all strategically used to communicate different actions and content throughout the experience.

Element supports two modes: light and dark. Color variables use the same semantic naming in both modes.

For a detailed explanation on how dark mode is implemented and how to implement dark mode for applications and custom components, see here.

Tokens

Color tokens describe the semantic usage of primitives in a given context. More specifically, semantic colors act as an intermediary level of specificity, between the raw value of colors in the base palette and the usage of those colors in specific components. There can be various levels of semantic hierarchies, although we should strive to keep these as simple as possible.

Naming colors semantically has two benefits:

  1. It helps designers and developers decide what color to use.
  2. It makes our color system more efficient and flexible.

The following categories are defined in our system:

UI

UI colors are used on structural properties and icons and provide good contrast when used over any background.

Value lightValue darkTokenUseAssociated color - lightAssociated color - dark
$element-ui-0Logo, selected (active) elements$siemens-interactive-blue-500$siemens-interactive-coral
$element-ui-0-hoverSelected/active (ui-0) + hover$siemens-teal$siemens-bold-green
$element-ui-1Primary icons$siemens-deep-blue-900$siemens-white
$element-ui-2Secondary icons$siemens-deep-blue-600$siemens-deep-blue-400
$element-ui-3Disabled$siemens-deep-blue-400$siemens-deep-blue-600
$element-ui-4Borders$siemens-deep-blue-100$siemens-deep-blue-700
$element-ui-5Inverse$siemens-white$siemens-deep-blue-800
$element-ui-6Shadows$siemens-black$siemens-black

Base

Base colors are used as backgrounds of containers.

Value lightValue darkTokenUseAssociated color - lightAssociated color - dark
$element-base-0Page background$siemens-light-sand$siemens-deep-blue-900
$element-base-1Header, navigation, card, table, tree, menu background$siemens-white$siemens-deep-blue-800
$element-base-1-hoverHover on base-1 backgrounds, like table, tree, or menu$siemens-light-sand$siemens-dark-grayish-navy
$element-base-1-selectedSelected on base-1 backgrounds, like table, tree, or menu$siemens-sand$siemens-grayish-navy
$element-base-2Page background with higher contrast pages in dark mode$siemens-white$siemens-deep-blue-900
$element-base-3Background that works on base-0 and base-1 with elevation$siemens-white$siemens-grayish-navy
$element-base-informationInformational component background for e.g. badges$siemens-blue-100$siemens-blue-900
$element-base-successSuccess component background for e.g. badges$siemens-green-100$siemens-green-900
$element-base-cautionCaution component background for e.g. badges$siemens-yellow-100$siemens-yellow-900
$element-base-warningWarning component background for e.g. badges$siemens-orange-100$siemens-orange-900
$element-base-dangerDanger component background for e.g. badges$siemens-red-100$siemens-red-900
$element-base-criticalCritical component background for e.g. status$siemens-red-100$siemens-red-900
$element-base-translucent-1Translucent, e.g. backdroprgba($siemens-black, 0.3)rgba($siemens-black, 0.7)
$element-base-translucent-2Slightly translucent background, e.g. toastsrgba($siemens-deep-blue, 0.88)rgba($siemens-white, 0.88)

Actions

Action colors are used to indicate actions that users can perform.

Value lightValue darkTokenUseAssociated color - lightAssociated color - dark
$element-action-primaryPrimary interaction$siemens-interactive-blue-500$siemens-interactive-coral
$element-action-primary-hoverPrimary action on hover$siemens-teal$siemens-bold-green
$element-action-primary-textPrimary text color$siemens-white$siemens-deep-blue-900
$element-action-secondarySecondary interactiontransparenttransparent
$element-action-secondary-hoverSecondary interaction on hover$siemens-light-bold-green$siemens-dark-bold-green
$element-action-secondary-textSecondary text color$siemens-interactive-blue-500$siemens-interactive-coral
$element-action-secondary-text-hoverSecondary text hover color$siemens-teal$siemens-bold-green
$element-action-secondary-borderSecondary border color$siemens-interactive-blue-500$siemens-interactive-coral
$element-action-secondary-border-hoverSecondary border hover color$siemens-teal$siemens-bold-green
$element-action-secondary-warningSecondary warning text/border$siemens-orange-900$siemens-orange-500
$element-action-secondary-dangerSecondary danger text/border$siemens-red-500$siemens-red-300
$element-action-warningWarning$siemens-orange-700$siemens-orange-500
$element-action-warning-hoverWarning action on hover$siemens-orange-900$siemens-orange-700
$element-action-warning-textWarning text color$siemens-white$siemens-deep-blue-900
$element-action-dangerDanger$siemens-red-500$siemens-red-500
$element-action-danger-hoverDanger action on hover$siemens-red-700$siemens-red-700
$element-action-danger-textDanger text color$siemens-white$siemens-white
$element-focus-defaultDefault focus shadow color$siemens-focus$siemens-focus

Text

Similarly, categories for typography colors are also defined in this system.

Value lightValue darkTokenUseAssociated color - lightAssociated color - dark
$element-text-primaryPrimary$siemens-deep-blue-900$siemens-white
$element-text-secondarySecondary$siemens-deep-blue-700$siemens-deep-blue-300
$element-text-disabledDisabled$siemens-deep-blue-500$siemens-deep-blue-600
$element-text-inverseInverse$siemens-white$siemens-deep-blue-900
$element-text-activeActive$siemens-interactive-blue-500$siemens-interactive-coral
$element-text-informationInformational$siemens-blue-700$siemens-blue-100
$element-text-successSuccess$siemens-green-700$siemens-green-100
$element-text-cautionCaution$siemens-yellow-900$siemens-yellow-100
$element-text-warningWarning$siemens-orange-900$siemens-orange-100
$element-text-dangerDanger$siemens-red-700$siemens-red-100

Status

Status colors are used to describe and/or report on the status of different things.

Value lightValue darkTokenUseAssociated color - lightAssociated color - dark
$element-status-informationInformational$siemens-blue-500$siemens-blue-500
$element-status-information-contrastInformation contrast for e.g. composite icons$siemens-white$siemens-white
$element-status-successSuccess$siemens-green-700$siemens-green-500
$element-status-success-contrastSuccess contrast for e.g. composite icons$siemens-white$siemens-deep-blue-900
$element-status-cautionCaution$siemens-yellow-500$siemens-yellow-300
$element-status-caution-contrastCaution contrast for e.g. composite icons$siemens-deep-blue-900$siemens-deep-blue-900
$element-status-warningWarning$siemens-orange-700$siemens-orange-500
$element-status-warning-contrastWarning contrast for e.g. composite icons$siemens-white$siemens-deep-blue-900
$element-status-dangerDanger$siemens-red-500$siemens-red-500
$element-status-danger-contrastDanger contrast for e.g. composite icons$siemens-white$siemens-white
$element-status-criticalCritical$siemens-red-900$siemens-red-700
$element-status-critical-contrastCritical contrast for e.g. composite icons$siemens-white$siemens-white

Except where otherwise noted, content on this site is licensed under MIT License.