Colors

Every Honeycomb's component in any given variation or state (hover, disabled, etc.) is mapped to one of the predefined colors. Constraining the interface to a limited number of colors ensures a high level of consistency between products.

We provide several types of colors:

  • Brand colors (normally should not be used in components as they represent a brand related content);
  • UI colors (main colors giving your interface an identity)
  • Aliases (utility colors that have assigned meanings and are used consistently throughout Honeycomb to set expectations of meaning for users)
  • Grayscales

As the best practice we recommend to not use colors directly with their HEX codes or RGB values. You should only be using one of the provided color abstractions when creating your components or variations of existing elements. This makes them theming compatible out of the box.

Remember to use the correct abstraction for your purpose: look through aliases and choose wisely as success-color may not be the same as primary-ui-color. Always pick the variable that matches your use case as precisely as possible.

Colors and themes

Starting from Honeycomb 4.0 we offer theming functionality (yay!). In order to ensure your components are compatible with themes you need to make sure you're reusing the proper variables/tokens in your custom components or variations.

Bellow is the main set of color variables. The complete list can be found in Themes section. Note that themes provide way more than just color variables, things such as spacing, typography, border-radius and others can also be subject to theming.

Brand colors

  • --flix-primary-brand-color
  • --flix-secondary-brand-color

UI colors

  • --flix-primary-ui-color
  • --flix-primary-ui-light-color
  • --flix-primary-ui-dark-color
  • --flix-secondary-ui-color
  • --flix-secondary-ui-light-color
  • --flix-secondary-ui-dark-color

Grayscale colors

  • --flix-grayscale-0-color
  • --flix-grayscale-10-color
  • --flix-grayscale-30-color
  • --flix-grayscale-50-color
  • --flix-grayscale-70-color
  • --flix-grayscale-90-color
  • --flix-grayscale-100-color

Utility colors

  • --flix-neutral-color
  • --flix-success-color
  • --flix-success-dark-color
  • --flix-warning-color
  • --flix-warning-dark-color
  • --flix-danger-color
  • --flix-danger-dark-color
  • --flix-primary-bg-color
  • --flix-secondary-bg-color
  • --flix-box-bg-color
  • --flix-highlight-color
  • --flix-overlay-bg-color
  • --flix-focus-outline-color
  • --flix-primary-content-color
  • --flix-secondary-content-color
  • --flix-danger-content-color
  • --flix-heading-font-color
  • --flix-link-color
  • --flix-primary-line-color
  • --flix-primary-icon-color
  • --flix-box-shadow-color
  • --flix-box-shadow-subtle-color
  • --flix-header-bg-color
  • --flix-header-bottom-border-color
  • --flix-header-color
  • --flix-header-nav-bg-color-tablet
  • --flix-header-nav-border-color-tablet
  • --flix-input-border-color
  • --flix-hover-layer-color
  • --flix-pressed-layer-color