Design Tokens

Design tokens are the single source of truth to name design decisions.

Exciting news! Our new Design Tokens 5.0 are live, offering an enhanced design experience.

Dive in and elevate your designs & code today!

Discover our Figma variable for designers

This page is a work in progress. More tokens are available in code and will be displayed here soon.

In order not to overcharge the page, we chose not to show the totality of our tokens. We omitted some color variations that exist in code, such as states (hovered, focused, pressed) and alphas (translucent).

Token taxonomy

A design token’s name describes how it should be used, and each part communicates one piece of its usage.

  1. 1

    Prefix: Namespace as a unique identifier and the tier the token belongs to (core, semantic or component)

  2. 2

    Family: The type of visual design attribute or foundational style, such as color or elevation.

  3. 3

    Property: The UI element the token is being applied to, such as a border, background, shadow, or other property.

  4. 4

    Modifier(s): Additional details about the token’s purpose, such as its color role, emphasis, or interaction state. Not every token has a modifier.

Discover the complete guide to design tokens on the getting started figma file

Colors

Background colors

Neutral backgrounds

Preview light
Preview dark

var(--nj-semantic-color-background-neutral-primary-default)

Sets the background color to white, provides a clean and minimalist canvas for the interface. Classic foundation for content and components.

var(--nj-semantic-color-background-neutral-secondary-default)

Provides a subtle contrast with the primary background. Use to add a touch of visual interest without overpowering the content.

var(--nj-semantic-color-background-neutral-tertiary-default)

Provides a slightly stronger contrast with the primary background. Use to enhances the visual separation between different sections or elements.

var(--nj-semantic-color-background-neutral-solid-default)

Provides a distinct and noticeable contrast with the primary background. Adds a robust and substantial presence, use it to make the element stand out.

var(--nj-semantic-color-background-neutral-inverse-default)

Applies white as the background color, creating a striking visual effect when used on a dark-colored surface. Use to ensure readability and visual appeal in specific UI components or sections.

var(--nj-semantic-color-background-neutral-spotlight-default)

Creates a high contrast with the primary background. Use it for critical elements or components that require maximum emphasis and visual impact.

Brand backgrounds

Preview light
Preview dark

var(--nj-semantic-color-background-brand-secondary-default)

Establishes a subtle contrast with the primary background while using the brand color. Use it to add a touch of brand interest without overpowering the content.

var(--nj-semantic-color-background-brand-tertiary-default)

Creates a slightly stronger contrast with the primary background while using the brand color. Use it to enhances the visual separation between different sections or elements.

var(--nj-semantic-color-background-brand-solid-default)

Use to add a robust and substantial brand presence, making the elements stand out using the brand color.

var(--nj-semantic-color-background-brand-spotlight-default)

Creates a high contrast with the primary background while reminiscing of the brand identity. Use it for critical elements or components that require maximum emphasis and visual impact.

Status backgrounds

Preview light
Preview dark

Danger

var(--nj-semantic-color-background-status-danger-secondary-default)

var(--nj-semantic-color-background-status-danger-tertiary-default)

var(--nj-semantic-color-background-status-danger-solid-default)

Indicate a state of danger or criticality in your interface. Use for elements that require immediate attention due to errors, warnings, or potentially harmful actions. Serves as a powerful visual cue to alert users to potential issues and encourages careful consideration of their actions.

var(--nj-semantic-color-background-status-danger-spotlight-default)

Success

var(--nj-semantic-color-background-status-success-secondary-default)

var(--nj-semantic-color-background-status-success-tertiary-default)

var(--nj-semantic-color-background-status-success-solid-default)

Associated with successful or positive states in your interface. Apply it to elements or components that confirm successful actions or completion of tasks.

var(--nj-semantic-color-background-status-success-spotlight-default)

Warning

var(--nj-semantic-color-background-status-warning-secondary-default)

var(--nj-semantic-color-background-status-warning-tertiary-default)

var(--nj-semantic-color-background-status-warning-solid-default)

Conveys a warning or cautionary state in your interface. Use for elements that signify non-critical but important information, such as alerts, notices, or reminders. Helps users recognize situations that require their attention without implying immediate danger.

var(--nj-semantic-color-background-status-warning-spotlight-default)

Discovery

var(--nj-semantic-color-background-status-discovery-secondary-default)

var(--nj-semantic-color-background-status-discovery-tertiary-default)

var(--nj-semantic-color-background-status-discovery-solid-default)

Employed to highlight discovery or exploration-related content in your interface. Use to draw attention to new features, recommendations, or content suggestions. Invites users to explore and engage with new offerings, creating an exciting and engaging experience.

var(--nj-semantic-color-background-status-discovery-spotlight-default)

Information

var(--nj-semantic-color-background-status-information-solid-default)

Used for informational elements in your interface. Conveys non-critical information or provides additional details. Use for components or supplementary content that enhances the user's understanding of the interface without causing distraction.

var(--nj-semantic-color-background-status-information-secondary-default)

var(--nj-semantic-color-background-status-information-tertiary-default)

var(--nj-semantic-color-background-status-information-spotlight-default)

Planet

var(--nj-semantic-color-background-status-planet-solid-default)

var(--nj-semantic-color-background-status-planet-secondary-default)

var(--nj-semantic-color-background-status-planet-tertiary-default)

var(--nj-semantic-color-background-status-planet-spotlight-default)

Accent backgrounds

Preview light
Preview dark

Pink

var(--nj-semantic-color-background-accent-pink-secondary-default)

Subtle touch of pink with no meaning tied to the color.

var(--nj-semantic-color-background-accent-pink-tertiary-default)

Soft pink background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-pink-solid-default)

Suitable for pink backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-pink-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Red

var(--nj-semantic-color-background-accent-red-secondary-default)

Subtle touch of red with no meaning tied to the color.

var(--nj-semantic-color-background-accent-red-tertiary-default)

Soft red background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-red-solid-default)

Suitable for red backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-red-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Orange

var(--nj-semantic-color-background-accent-orange-secondary-default)

Subtle touch of orange with no meaning tied to the color.

var(--nj-semantic-color-background-accent-orange-tertiary-default)

Soft orange background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-orange-solid-default)

Suitable for orange backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-orange-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Yellow

var(--nj-semantic-color-background-accent-yellow-secondary-default)

Subtle touch of yellow with no meaning tied to the color.

var(--nj-semantic-color-background-accent-yellow-tertiary-default)

Soft yellow background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-yellow-solid-default)

Suitable for yellow backgrounds when there is no meaning tied to the color. No minimum contrast requirement met!

var(--nj-semantic-color-background-accent-yellow-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Green

var(--nj-semantic-color-background-accent-green-secondary-default)

Subtle touch of green with no meaning tied to the color.

var(--nj-semantic-color-background-accent-green-tertiary-default)

Soft green background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-green-solid-default)

Suitable for green backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-green-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Grey

var(--nj-semantic-color-background-accent-grey-secondary-default)

Subtle touch of grey with no meaning tied to the color.

var(--nj-semantic-color-background-accent-grey-tertiary-default)

Soft grey background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-grey-solid-default)

Suitable for grey backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-grey-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Blue

var(--nj-semantic-color-background-accent-blue-secondary-default)

Subtle touch of blue with no meaning tied to the color.

var(--nj-semantic-color-background-accent-blue-tertiary-default)

Soft blue background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-blue-solid-default)

Suitable for blue backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-blue-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Ultramarine

var(--nj-semantic-color-background-accent-ultramarine-secondary-default)

Subtle touch of ultramarine with no meaning tied to the color.

var(--nj-semantic-color-background-accent-ultramarine-tertiary-default)

Soft ultramarine background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-ultramarine-solid-default)

Suitable for ultramarine backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-ultramarine-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Purple

var(--nj-semantic-color-background-accent-purple-secondary-default)

Subtle touch of purple with no meaning tied to the color.

var(--nj-semantic-color-background-accent-purple-tertiary-default)

Soft purple background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-purple-solid-default)

Suitable for purple backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-purple-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Teal

var(--nj-semantic-color-background-accent-teal-secondary-default)

Subtle touch of teal with no meaning tied to the color.

var(--nj-semantic-color-background-accent-teal-tertiary-default)

Soft teal background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-teal-solid-default)

Suitable for teal backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-teal-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Lime

var(--nj-semantic-color-background-accent-lime-secondary-default)

Subtle touch of lime with no meaning tied to the color.

var(--nj-semantic-color-background-accent-lime-tertiary-default)

Soft lime background with no meaning tied to the color, slightly stronger visual contrast than the secondary.

var(--nj-semantic-color-background-accent-lime-solid-default)

Suitable for lime backgrounds when there is no meaning tied to the color. Ensures the minimum contrast requirements (at least 4.55:1).

var(--nj-semantic-color-background-accent-lime-spotlight-default)

Reserved for highlighting and drawing maximum attention when there is no meaning tied to the color. Use sparingly to create important focal points in your interface

Additional backgrounds

Preview light
Preview dark

var(--nj-semantic-color-background-additional-engie-ray-default)

ENGIE's brand gradient. We strongly advise to refer to the brand guidelines for its usage.

var(--nj-semantic-color-background-additional-signature-default)

ENGIE's additional brand color. We strongly advise to refer to the brand guidelines for its usage.

Border colors

Neutral borders

Preview light
Preview dark

var(--nj-semantic-color-border-neutral-minimal)

Almost imperceptible, provides a gentle visual separation between elements without drawing much attention to itself. Used for separators.

var(--nj-semantic-color-border-neutral-subtle)

Offers a subtle visual distinction between elements, without overpowering the content. Used for separators and cards.

var(--nj-semantic-color-border-neutral-moderate)

Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming. Use for tags and inputs.

var(--nj-semantic-color-border-neutral-strong)

Bold border, creates a striking visual division between elements. Use for notifications, inline messages and focus ring.

var(--nj-semantic-color-border-neutral-heavy)

Highest level of visual differentiation. Has a strong contrast with the background, making it visually prominent and attention-grabbing. Use for important alerts.

var(--nj-semantic-color-border-neutral-inverse)

Allows the application of a border when used on a contrasted background. Use for inverse buttons or inverse cards.

Brand borders

Preview light
Preview dark

var(--nj-semantic-color-border-brand-subtle)

Provides a gentle visual separation between elements, with a touch of Engie's brand identity.Suitable for elements where a subtle brand presence is desired.

var(--nj-semantic-color-border-brand-moderate)

Provides a clear separation between elements with the brand identity. Use for tags and inputs.

var(--nj-semantic-color-border-brand-strong)

Bold brand border, creates a striking visual division between elements. Use for borders or visual indicators of elements that reinforce Engie's brand, such as notifications, inline messages and focus ring.

Status borders

Preview light
Preview dark

Danger

var(--nj-semantic-color-border-status-danger-subtle)

Subtle way to communicate critical information without overpowering the content. Use for separators and cards.

var(--nj-semantic-color-border-status-danger-moderate)

Communicates critical information in your interface. Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming. Use for tags and inputs.

var(--nj-semantic-color-border-status-danger-strong)

Intended to indicate a state of danger or criticality in your interface. Use for elements that require immediate attention due to errors, warnings, or potentially harmful actions. Serves as a powerful visual cue to alert users to potential issues and encourages careful consideration of their actions.

Warning

var(--nj-semantic-color-border-status-warning-subtle)

Subtle way to communicate warning information without overpowering the content. Use for separators and cards.

var(--nj-semantic-color-border-status-warning-moderate)

Communicates warning information in your interface. Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming.

var(--nj-semantic-color-border-status-warning-strong)

Conveys a warning or cautionary state in your interface. Use for elements that signify non-critical but important information, such as alerts, notices, or reminders. Helps users recognize situations that require their attention without implying immediate danger.

Success

var(--nj-semantic-color-border-status-success-subtle)

Subtle way to communicate success information or positive states without overpowering the content. Use for separators and cards.

var(--nj-semantic-color-border-status-success-moderate)

Communicates successful or positive states in your interface. Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming.

var(--nj-semantic-color-border-status-success-strong)

Associated with successful or positive states in your interface. Apply it to elements or components that confirm successful actions or completion of tasks.

Discovery

var(--nj-semantic-color-border-status-discovery-subtle)

Subtle way to highlight discovery or exploration-related content in your interface without overpowering the content. Use for separators and cards.

var(--nj-semantic-color-border-status-discovery-moderate)

Highlights discovery or communicates exploration-related content in your interface. Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming.

var(--nj-semantic-color-border-status-discovery-strong)

Employed to highlight discovery or exploration-related content in your interface. Use to draw attention to new features, recommendations, or content suggestions. Invites users to explore and engage with new offerings, creating an exciting and engaging experience.

Information

var(--nj-semantic-color-border-status-information-subtle)

Subtle way to highlight informational elements in your interface without overpowering the content. Use for separators and cards.

var(--nj-semantic-color-border-status-information-moderate)

Highlights informational elements in your interface. Provides a clear separation between elements, ensuring they stand out without becoming too overwhelming.

var(--nj-semantic-color-border-status-information-strong)

Used for informational elements in your interface. Conveys non-critical information or provides additional details. Use for components or supplementary content that enhances the user's understanding of the interface without causing distraction.

Planet

var(--nj-semantic-color-border-status-planet-subtle)

var(--nj-semantic-color-border-status-planet-moderate)

var(--nj-semantic-color-border-status-planet-strong)

Accent borders

Preview light
Preview dark

Pink

var(--nj-semantic-color-border-accent-pink-subtle)

var(--nj-semantic-color-border-accent-pink-moderate)

Suitable for pink borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-pink-strong)

Red

var(--nj-semantic-color-border-accent-red-subtle)

var(--nj-semantic-color-border-accent-red-moderate)

Suitable for red borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-red-strong)

Orange

var(--nj-semantic-color-border-accent-orange-subtle)

var(--nj-semantic-color-border-accent-orange-moderate)

Suitable for orange borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-orange-strong)

Yellow

var(--nj-semantic-color-border-accent-yellow-subtle)

var(--nj-semantic-color-border-accent-yellow-moderate)

Suitable for yellow borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-yellow-strong)

Green

var(--nj-semantic-color-border-accent-green-subtle)

var(--nj-semantic-color-border-accent-green-moderate)

Suitable for green borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-green-strong)

Grey

var(--nj-semantic-color-border-accent-grey-subtle)

var(--nj-semantic-color-border-accent-grey-moderate)

Suitable for grey borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-grey-strong)

Blue

var(--nj-semantic-color-border-accent-blue-subtle)

var(--nj-semantic-color-border-accent-blue-moderate)

Suitable for blue borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-blue-strong)

Ultramarine

var(--nj-semantic-color-border-accent-ultramarine-subtle)

var(--nj-semantic-color-border-accent-ultramarine-moderate)

Suitable for ultramarine borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-ultramarine-strong)

Purple

var(--nj-semantic-color-border-accent-purple-subtle)

var(--nj-semantic-color-border-accent-purple-moderate)

Suitable for purple borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-purple-strong)

Teal

var(--nj-semantic-color-border-accent-teal-subtle)

var(--nj-semantic-color-border-accent-teal-moderate)

Suitable for teal borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-teal-strong)

Lime

var(--nj-semantic-color-border-accent-lime-subtle)

var(--nj-semantic-color-border-accent-lime-moderate)

Suitable for lime borders when there is no meaning tied to the color.

var(--nj-semantic-color-border-accent-lime-strong)

Text colors

Neutral texts

Preview light
Preview dark

var(--nj-semantic-color-text-neutral-primary-default)

Reserved for the most critical and visually prominent content in the interface. Should be employed for elements like page titles and section headings, where it commands attention and establishes hierarchy.

Aa
Aa

var(--nj-semantic-color-text-neutral-primary-not-invertible-default)

Aa
Aa

var(--nj-semantic-color-text-neutral-secondary-default)

Harmonious and legible contrast for various content types. Well-suited for subtitles, subheadings, and regular content, ensures a balanced and readable appearance throughout the interface.

Aa
Aa

var(--nj-semantic-color-text-neutral-tertiary-default)

Slightly lighter, suitable for secondary subtitles or contextual information. Ideal for additional information.

Aa
Aa

var(--nj-semantic-color-text-neutral-contrast-default)

Emphasizes elements with higher contrast to create visual hierarchy and draw attention.

Aa
Aa

var(--nj-semantic-color-text-neutral-inverse-default)

Used for light text on a dark background for readability and visual appeal in specific UI components.

Aa
Aa

var(--nj-semantic-color-text-neutral-inverse-not-invertible-default)

Aa
Aa

Brand texts

Preview light
Preview dark

var(--nj-semantic-color-text-brand-primary-default)

Powerful tool to reinforce the brand's presence and create visual emphasis. Use strategically for text elements that are central to the brand identity or require heightened attention, such as brand names, key headlines, or links.

Aa
Aa

var(--nj-semantic-color-text-brand-contrast-default)

Used on secondary backgrounds to keep the the contrast ratio for accessibility reasons.

Aa
Aa

Status texts

Preview light
Preview dark

Danger

var(--nj-semantic-color-text-status-danger-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-danger-contrast-default)

Aa
Aa

Warning

var(--nj-semantic-color-text-status-warning-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-warning-contrast-default)

Aa
Aa

Success

var(--nj-semantic-color-text-status-success-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-success-contrast-default)

Aa
Aa

Information

var(--nj-semantic-color-text-status-information-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-information-contrast-default)

Aa
Aa

Discovery

var(--nj-semantic-color-text-status-discovery-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-discovery-contrast-default)

Aa
Aa

Planet

var(--nj-semantic-color-text-status-planet-primary-default)

Aa
Aa

var(--nj-semantic-color-text-status-planet-contrast-default)

Aa
Aa

Accent texts

Preview light
Preview dark

Pink

var(--nj-semantic-color-text-accent-pink-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-pink-contrast-default)

Aa
Aa

Red

var(--nj-semantic-color-text-accent-red-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-red-contrast-default)

Aa
Aa

Orange

var(--nj-semantic-color-text-accent-orange-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-orange-contrast-default)

Aa
Aa

Yellow

var(--nj-semantic-color-text-accent-yellow-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-yellow-contrast-default)

Aa
Aa

Green

var(--nj-semantic-color-text-accent-green-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-green-contrast-default)

Aa
Aa

Grey

var(--nj-semantic-color-text-accent-grey-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-grey-contrast-default)

Aa
Aa

Blue

var(--nj-semantic-color-text-accent-blue-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-blue-contrast-default)

Aa
Aa

Ultramarine

var(--nj-semantic-color-text-accent-ultramarine-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-ultramarine-contrast-default)

Aa
Aa

Purple

var(--nj-semantic-color-text-accent-purple-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-purple-contrast-default)

Aa
Aa

Teal

var(--nj-semantic-color-text-accent-teal-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-teal-contrast-default)

Aa
Aa

Lime

var(--nj-semantic-color-text-accent-lime-primary-default)

Aa
Aa

var(--nj-semantic-color-text-accent-lime-contrast-default)

Aa
Aa

Additional texts

Preview light
Preview dark

var(--nj-semantic-color-text-additional-signature-default)

Aa
Aa

Icon colors

Neutral icons

Preview light
Preview dark

var(--nj-semantic-color-icon-neutral-primary-default)

Use for visible and prominent icons, ensures they are easily recognizable and stand out. Typically used for essential actions or navigation elements that require immediate user attention.

var(--nj-semantic-color-icon-neutral-secondary-default)

Use for less visible icons, offering a subtle presence that complements the primary content. Used for secondary actions or to support elements within the interface.

var(--nj-semantic-color-icon-neutral-tertiary-default)

Use for icons with even lower visibility, providing a more understated appearance. These icons are used for tertiary actions or optional elements, contributing to a more streamlined and unobtrusive user experience.

var(--nj-semantic-color-icon-neutral-contrast-default)

These icons utilizes higher contrast or distinct visual treatments to create emphasis and draw attention. It is employed for icons that require enhanced visibility or a stronger visual impact.

var(--nj-semantic-color-icon-neutral-inverse-default)

Use for icons on dark backgrounds. Ensures readability and visual appeal, particularly in scenarios where icons are placed on contrasting surfaces.

Brand icons

Preview light
Preview dark

var(--nj-semantic-color-icon-brand-primary-default)

var(--nj-semantic-color-icon-brand-contrast-default)

Status icons

Preview light
Preview dark

Danger

var(--nj-semantic-color-icon-status-danger-primary-default)

var(--nj-semantic-color-icon-status-danger-contrast-default)

Success

var(--nj-semantic-color-icon-status-success-primary-default)

var(--nj-semantic-color-icon-status-success-contrast-default)

Warning

var(--nj-semantic-color-icon-status-warning-primary-default)

var(--nj-semantic-color-icon-status-warning-contrast-default)

Discovery

var(--nj-semantic-color-icon-status-discovery-primary-default)

var(--nj-semantic-color-icon-status-discovery-contrast-default)

Information

var(--nj-semantic-color-icon-status-information-primary-default)

var(--nj-semantic-color-icon-status-information-contrast-default)

Planet

var(--nj-semantic-color-icon-status-planet-primary-default)

var(--nj-semantic-color-icon-status-planet-contrast-default)

Accent icons

Preview light
Preview dark

Pink

var(--nj-semantic-color-icon-accent-pink-primary-default)

var(--nj-semantic-color-icon-accent-pink-contrast-default)

Red

var(--nj-semantic-color-icon-accent-red-primary-default)

var(--nj-semantic-color-icon-accent-red-contrast-default)

Orange

var(--nj-semantic-color-icon-accent-orange-primary-default)

var(--nj-semantic-color-icon-accent-orange-contrast-default)

Yellow

var(--nj-semantic-color-icon-accent-yellow-primary-default)

var(--nj-semantic-color-icon-accent-yellow-contrast-default)

Green

var(--nj-semantic-color-icon-accent-green-primary-default)

var(--nj-semantic-color-icon-accent-green-contrast-default)

Grey

var(--nj-semantic-color-icon-accent-grey-primary-default)

var(--nj-semantic-color-icon-accent-grey-contrast-default)

Blue

var(--nj-semantic-color-icon-accent-blue-primary-default)

var(--nj-semantic-color-icon-accent-blue-contrast-default)

Ultramarine

var(--nj-semantic-color-icon-accent-ultramarine-primary-default)

var(--nj-semantic-color-icon-accent-ultramarine-contrast-default)

Purple

var(--nj-semantic-color-icon-accent-purple-primary-default)

var(--nj-semantic-color-icon-accent-purple-contrast-default)

Teal

var(--nj-semantic-color-icon-accent-teal-primary-default)

var(--nj-semantic-color-icon-accent-teal-contrast-default)

Lime

var(--nj-semantic-color-icon-accent-lime-primary-default)

var(--nj-semantic-color-icon-accent-lime-contrast-default)

Additional icons

Preview light
Preview dark

var(--nj-semantic-color-icon-additional-signature-default)

Fonts

Font family

  1. family
  2. sans-serif

var(--nj-semantic-font-family-sans-serif)

"Lato", -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"

  1. family
  2. monospace

var(--nj-semantic-font-family-monospace)

"SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace

  1. family
  2. default

var(--nj-semantic-font-family-default)

"Lato", -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Helvetica Neue", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"

Font weight

  1. weight
  2. light

var(--nj-semantic-font-weight-light)

300

  1. weight
  2. normal

var(--nj-semantic-font-weight-normal)

400

  1. weight
  2. bold

var(--nj-semantic-font-weight-bold)

700

  1. weight
  2. black

var(--nj-semantic-font-weight-black)

900

Motions

Motion easing

  1. easing
  2. fast-out-slow-in

var(--nj-semantic-motion-easing-fast-out-slow-in)

  1. easing
  2. linear-out-slow-in

var(--nj-semantic-motion-easing-linear-out-slow-in)

  1. easing
  2. fast-out-linear-in

var(--nj-semantic-motion-easing-fast-out-linear-in)

Sizes

Border sizes

Width

  1. border
  2. width

var(--nj-semantic-size-border-width)

0.0625rem

radius

  1. border
  2. radius
  3. none

var(--nj-semantic-size-border-radius-none)

0

  1. border
  2. radius
  3. sm

var(--nj-semantic-size-border-radius-sm)

0

  1. border
  2. radius
  3. md

var(--nj-semantic-size-border-radius-md)

0

  1. border
  2. radius
  3. lg

var(--nj-semantic-size-border-radius-lg)

0

  1. border
  2. radius
  3. pill

var(--nj-semantic-size-border-radius-pill)

9999px

focus-ring

  1. border
  2. focus-ring
  3. width

var(--nj-semantic-size-border-focus-ring-width)

0.125rem

  1. border
  2. focus-ring
  3. offset

var(--nj-semantic-size-border-focus-ring-offset)

0.125rem

Font sizes

content

  1. font
  2. content
  3. 1

var(--nj-semantic-size-font-content-1)

Content 1

1rem

  1. font
  2. content
  3. 2

var(--nj-semantic-size-font-content-2)

Content 2

0.875rem

  1. font
  2. content
  3. 3

var(--nj-semantic-size-font-content-3)

Content 3

0.75rem

heading

  1. font
  2. heading
  3. 1

var(--nj-semantic-size-font-heading-1)

Heading 1

3.375rem

  1. font
  2. heading
  3. 2

var(--nj-semantic-size-font-heading-2)

Heading 2

2.25rem

  1. font
  2. heading
  3. 3

var(--nj-semantic-size-font-heading-3)

Heading 3

1.75rem

  1. font
  2. heading
  3. 4

var(--nj-semantic-size-font-heading-4)

Heading 4

1.5rem

  1. font
  2. heading
  3. 5

var(--nj-semantic-size-font-heading-5)

Heading 5

1.25rem

  1. font
  2. heading
  3. 6

var(--nj-semantic-size-font-heading-6)

Heading 6

1.125rem

display

  1. font
  2. display
  3. 1

var(--nj-semantic-size-font-display-1)

Display 1

4.75rem

Icon sizes

  1. icon
  2. xs

var(--nj-semantic-size-icon-xs)

0.75rem

  1. icon
  2. sm

var(--nj-semantic-size-icon-sm)

1rem

  1. icon
  2. md

var(--nj-semantic-size-icon-md)

1.5rem

  1. icon
  2. lg

var(--nj-semantic-size-icon-lg)

2rem

  1. icon
  2. xl

var(--nj-semantic-size-icon-xl)

3rem

  1. icon
  2. xxl

var(--nj-semantic-size-icon-xxl)

4rem

  1. icon
  2. 3xl

var(--nj-semantic-size-icon-3xl)

5rem

  1. icon
  2. 4xl

var(--nj-semantic-size-icon-4xl)

6rem

  1. icon
  2. 5xl

var(--nj-semantic-size-icon-5xl)

7rem

  1. icon
  2. 6xl

var(--nj-semantic-size-icon-6xl)

8rem

Spacing sizes

  1. spacing
  2. 0

var(--nj-semantic-size-spacing-0)

0

  1. spacing
  2. 2

var(--nj-semantic-size-spacing-2)

0.125rem

  1. spacing
  2. 4

var(--nj-semantic-size-spacing-4)

0.25rem

  1. spacing
  2. 8

var(--nj-semantic-size-spacing-8)

0.5rem

  1. spacing
  2. 12

var(--nj-semantic-size-spacing-12)

0.75rem

  1. spacing
  2. 16

var(--nj-semantic-size-spacing-16)

1rem

  1. spacing
  2. 20

var(--nj-semantic-size-spacing-20)

1.25rem

  1. spacing
  2. 24

var(--nj-semantic-size-spacing-24)

1.5rem

  1. spacing
  2. 32

var(--nj-semantic-size-spacing-32)

2rem

  1. spacing
  2. 48

var(--nj-semantic-size-spacing-48)

3rem

  1. spacing
  2. 64

var(--nj-semantic-size-spacing-64)

4rem

  1. spacing
  2. 80

var(--nj-semantic-size-spacing-80)

5rem

  1. spacing
  2. 96

var(--nj-semantic-size-spacing-96)

6rem

  1. spacing
  2. 112

var(--nj-semantic-size-spacing-112)

7rem

Elevations

Shadow elevations

  1. shadow
  2. 2-dp

var(--nj-semantic-elevation-shadow-2-dp)

  1. shadow
  2. 4-dp

var(--nj-semantic-elevation-shadow-4-dp)

  1. shadow
  2. 6-dp

var(--nj-semantic-elevation-shadow-6-dp)

  1. shadow
  2. 8-dp

var(--nj-semantic-elevation-shadow-8-dp)

  1. shadow
  2. 16-dp

var(--nj-semantic-elevation-shadow-16-dp)

  1. shadow
  2. 24-dp

var(--nj-semantic-elevation-shadow-24-dp)

Z-index elevations

  1. z-index
  2. dropdown

var(--nj-semantic-elevation-z-index-dropdown)

1000

  1. z-index
  2. sticky

var(--nj-semantic-elevation-z-index-sticky)

1020

  1. z-index
  2. fixed

var(--nj-semantic-elevation-z-index-fixed)

1030

  1. z-index
  2. modal-backdrop

var(--nj-semantic-elevation-z-index-modal-backdrop)

1040

  1. z-index
  2. modal

var(--nj-semantic-elevation-z-index-modal)

1050

  1. z-index
  2. popover

var(--nj-semantic-elevation-z-index-popover)

1060

  1. z-index
  2. tooltip

var(--nj-semantic-elevation-z-index-tooltip)

1070

  1. z-index
  2. toast-container

var(--nj-semantic-elevation-z-index-toast-container)

1080

  1. z-index
  2. toast

var(--nj-semantic-elevation-z-index-toast)

1080

Changelog

All notable changes to Fluid Design Tokens will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

📦 5.6.0 - 2024-01-31

🚀 Added

  • Add nj-fab component variables for its size:
    • --nj-component-fab-size-sm: var(--nj-core-size-48);
    • --nj-component-fab-size-base: var(--nj-core-size-64);
  • Add new semantic.size.icon.xs token, representing the smallest icon size.

📦 5.5.0 - 2023-12-15

🚀 Added

  • Provide Fluid tokens for Tailwind as a theme preset. This preset is in Beta and we will be improving it by gathering more feedback. Core color palette (ex: blue-100) is overriding and not extended. But you can still override it in your own config.

    Here is how you can import these presets in your tailwind.configs.

    import {FluidTailwindPresets} from '@engie-group/fluid-design-tokens';
      
    /** @type {import('tailwindcss').Config} */
    module.exports = {
      presets: [
        FluidTailwindPresets
      ],
      // Your config here
      content: [
        "./src/**/*.{js,jsx,ts,tsx}",
      ],
      ...
    }
      
    

    Exemple usage in code:

      
    <div class="bg-nj-brand-tertiary-default flex flex-col space-y-8">
      <h1
          class="text-nj-accent-blue-primary-default border-2 border-nj-brand-moderate p-8 m-8 font-nj-default font-nj-bold text-nj-heading-1">
        Title
      </h1>
      <h2 class="opacity-nj-disabled">This should have disabled opacity</h2>
      <a class="text-nj-accent-pink-primary-default hover:text-nj-accent-pink-primary-hovered space-y-12"
         href="#">Link</a>
    </div>
    

    Note: all default gap- classes like gap-x-1 or gap-1 are overridden by classes using our tokens.

    For e.g: gap-1 becomes gap-4 gap-x-1 becomes gap-x-4

    You can find here the default gaps with their values in px

  • Add values semantic.size.border.radius.lg and semantic.size.border.radius.pill

🐛 Fixed

  • Fix value of semantic.size.icon.xl from 116px to 112px

📦 5.4.3 - 2023-10-27

🚀 Added

  • Add new token descriptions for
    • backgrounds
    • icons
    • borders
    • texts

🐛 Fixed

  • Fix some hex values missing # in core-color tokens

📦 5.4.2 - 2023-10-23

🖍 Changed

  • Fix missing files from npm pack

📦 5.4.1 - 2023-10-23

🖍 Changed

  • Improve migration documentation

📦 5.4.0 - 2023-10-20

⚠️ Breaking changes
  • Add typescript support
    • we now provide css, js, ts and json formats.
  • Remove .scss tokens. Clean scss variables will be added in the future, stay tuned!
  • Change the general nomenclature of the tokens:
    • new tiers:
      • core (corresponding to the old palette and base)
      • and semantic
  • We provide a new CLI @engie-group/fluid-cli with a script to migrate v5.3.0 to v5.4.0, see the migration guide.
  • To learn more about the tokens, check out the dedicated page on engie.design (coming soon).

📦 5.3.0 - 2023-07-06

  • Add new component.skeleton.color.background.gradient tokens
  • Add new component.avatar.size tokens : sm, base, lg and xl.
  • Add new size.space.96 token
  • Add new color.background.brand.tertiary.transparent, color.background.brand.tertiary.transparent.hovered, color.background.brand.tertiary.transparent.focused, color.background.brand.tertiary.transparent.pressed tokens

📦 5.2.0 - 2023-05-04

🚀 Added

  • Add new color.background.grey, color.border.grey, color.icon.grey, color.text.grey tokens
  • Add new color.palette.purple alphas
  • Add new color.base.discovery and color.base.information (100 to 900, alpha)
  • Add new color.background.discovery and color.background.information (_, secondary, tertiary, hovered, pressed, transparent)
  • Add new color.border.discovery and color.border.information (subtle, moderate, bold, strong)
  • Add new subtle variation to color.border tokens:
    • color.border.danger.subtle,
    • color.border.warning.subtle,
    • color.border.success.subtle,
  • Add new color.text tokens:
    • color.text.danger.secondary,
    • color.text.warning: primary, secondary, high_contrast
    • color.text.success: primary, secondary, high_contrast
    • color.text.information: primary, secondary, high_contrast
    • color.text.discovery: primary, secondary, high_contrast
  • Add new transparent variations to background semantic color tokens (_, hovered, focused, pressed, selected, tertiary):
    • color.background.success.transparent, color.background.success.tertiary.transparent
    • color.background.warning.transparent, color.background.warning.tertiary.transparent
    • color.background.danger.transparent, color.background.danger.tertiary.transparent
    • color.background.information.transparent, color.background.information.tertiary.transparent
    • color.background.discovery.transparent, color.background.discovery.tertiary.transparent

📦 5.1.0 - 2023-04-04

🚀 Added

[FLUTTER]
  • Added first version of Flutter tokens

📦 5.0.0 - 2023-03-02

🚀 Added

[GLOBAL]
  • Add possibility to import tokens as js object You can import tokens in JS this way
import * as FluidTokens from '@engie-group/fluid-design-tokens';

const tokens = FluidTokens.Tokens;
  • Add exporting of every single variable in JS, all variables are prefixed with nj and in camelCase e.g: size.icon.lg is njSizeIconLg
// ====>  Object import
import {Token} from '@engie-group/fluid-design-system-tokens';

let easing = Token.motion.bezier["linear-out-slow-in"];

// ====> Added single token export
import {njMotionBezierLinearOutSlowIn} from '@engie-group/fluid-design-tokens';

easing = njMotionBezierLinearOutSlowIn; 
[COLORS]
  • Add new color palette to match Brand Guidelines
  • Add alpha tokens for grey, blue, green, orange and red to palette
  • Add opacity tokens
  • Add color.base.neutral that points by default to grey just like color.base.brand points to blue by default
[FONT]
  • Add font.family category eg: font.familly.default
[SIZE]
  • Add new icon size tokens
  • Add new size tokens

🖍 Changed

[COLORS]
  • Change value of color.border.*.moderate to get value from color.*.500 to color.*.400
  • Replace flat tokens values with alpha colors instead of solid colors. Since components using flat backgrounds should work on all allowed surfaces
  • Rename color.*.flat to color.*.transparent
  • Rename color.*.hover to color.*.hover
  • Rename color.*.focus to color.*.focused
  • Rename color.*.active to color.*.pressed
  • Rename color.base.theme.THEME_NAME.* to color.base.THEME_NAME.*
  • Rename color.background.theme.THEME_NAME.* to color.background.THEME_NAME.*
  • Rename color.border.theme.THEME_NAME.* to color.border.THEME_NAME.*
  • Rename color.text.theme.THEME_NAME.* to color.text.THEME_NAME.*
  • Rename color.icon.theme.THEME_NAME.* to color.base.THEME_NAME.*
[FONT]
  • Rename weight.font.* to font.weight.*
[SIZE]
  • ⚠️ Breaking changes replace space tokens, here’s a mapping between old and new tokens
**Did not exist** ==> var(--nj-size-space-2)
var(--nj-size-space-0) ==> var(--nj-size-space-4)
var(--nj-size-space-1) ==> var(--nj-size-space-8)
var(--nj-size-space-1-2) ==> var(--nj-size-space-12)
var(--nj-size-space-2) ==> var(--nj-size-space-16)
var(--nj-size-space-3) ==> var(--nj-size-space-24)
var(--nj-size-space-4) ==> var(--nj-size-space-32)
var(--nj-size-space-5) ==> var(--nj-size-space-48)
var(--nj-size-space-6) ==> var(--nj-size-space-64)
var(--nj-size-space-7) ==> ❌ Removed
var(--nj-size-space-8) ==> ❌ Removed

👎 Deprecated

[GLOBAL]
  • Move deprecated tokens to package @engie-group/fluid-4-deprecated and prefix them with nj-deprecated
  --nj-deprecated-color-backdrop-modal
  --nj-deprecated-color-background-body
  --nj-deprecated-color-background-components
  --nj-deprecated-color-background-components-active
  --nj-deprecated-color-background-hr
  --nj-deprecated-color-background-progress-track
  --nj-deprecated-color-base-black-100
  --nj-deprecated-color-base-black-200
  --nj-deprecated-color-base-black-300
  --nj-deprecated-color-base-black-400
  --nj-deprecated-color-base-black-500
  --nj-deprecated-color-base-black-600
  --nj-deprecated-color-base-black-700
  --nj-deprecated-color-base-black-800
  --nj-deprecated-color-base-black-900
  --nj-deprecated-color-base-black
  --nj-deprecated-color-base-blue-allports
  --nj-deprecated-color-base-blue-allports-active
  --nj-deprecated-color-base-blue-allports-hover
  --nj-deprecated-color-base-blue-bigstone
  --nj-deprecated-color-base-blue-bigstone-active
  --nj-deprecated-color-base-blue-bigstone-hover
  --nj-deprecated-color-base-blue-corporate
  --nj-deprecated-color-base-blue-corporate-active
  --nj-deprecated-color-base-blue-corporate-hover
  --nj-deprecated-color-base-blue-engie
  --nj-deprecated-color-base-blue-rhino
  --nj-deprecated-color-base-blue-rhino-active
  --nj-deprecated-color-base-blue-rhino-hover
  --nj-deprecated-color-base-blue-venice
  --nj-deprecated-color-base-blue-venice-active
  --nj-deprecated-color-base-blue-venice-hover
  --nj-deprecated-color-base-cerise
  --nj-deprecated-color-base-cerise-active
  --nj-deprecated-color-base-cerise-hover
  --nj-deprecated-color-base-danger
  --nj-deprecated-color-base-danger-active
  --nj-deprecated-color-base-danger-hover
  --nj-deprecated-color-base-disabled
  --nj-deprecated-color-base-gradient-primary
  --nj-deprecated-color-base-gray-100
  --nj-deprecated-color-base-gray-200
  --nj-deprecated-color-base-gray-300
  --nj-deprecated-color-base-gray-400
  --nj-deprecated-color-base-gray-500
  --nj-deprecated-color-base-gray-600
  --nj-deprecated-color-base-gray-700
  --nj-deprecated-color-base-gray-800
  --nj-deprecated-color-base-gray-900
  --nj-deprecated-color-base-green
  --nj-deprecated-color-base-green-active
  --nj-deprecated-color-base-green-hover
  --nj-deprecated-color-base-green-fun
  --nj-deprecated-color-base-green-fun-active
  --nj-deprecated-color-base-green-fun-hover
  --nj-deprecated-color-base-green-java
  --nj-deprecated-color-base-green-java-active
  --nj-deprecated-color-base-green-java-hover
  --nj-deprecated-color-base-green-pine
  --nj-deprecated-color-base-green-pine-active
  --nj-deprecated-color-base-green-pine-hover
  --nj-deprecated-color-base-green-riogrande
  --nj-deprecated-color-base-green-riogrande-active
  --nj-deprecated-color-base-green-riogrande-hover
  --nj-deprecated-color-base
  --nj-deprecated-color-base-active
  --nj-deprecated-color-base-hover
  --nj-deprecated-color-base-orange
  --nj-deprecated-color-base-orange-active
  --nj-deprecated-color-base-orange-hover
  --nj-deprecated-color-base-orange-crusta
  --nj-deprecated-color-base-orange-crusta-active
  --nj-deprecated-color-base-orange-crusta-hover
  --nj-deprecated-color-base-primary
  --nj-deprecated-color-base-primary-active
  --nj-deprecated-color-base-primary-hover
  --nj-deprecated-color-base-primary-focus
  --nj-deprecated-color-base-purple
  --nj-deprecated-color-base-purple-active
  --nj-deprecated-color-base-purple-hover
  --nj-deprecated-color-base-red
  --nj-deprecated-color-base-red-active
  --nj-deprecated-color-base-red-hover
  --nj-deprecated-color-base-red-mandy
  --nj-deprecated-color-base-red-mandy-active
  --nj-deprecated-color-base-red-mandy-hover
  --nj-deprecated-color-base-success
  --nj-deprecated-color-base-success-active
  --nj-deprecated-color-base-success-hover
  --nj-deprecated-color-base-violet
  --nj-deprecated-color-base-violet-active
  --nj-deprecated-color-base-violet-hover
  --nj-deprecated-color-base-violet-eggplant
  --nj-deprecated-color-base-violet-eggplant-active
  --nj-deprecated-color-base-violet-eggplant-hover
  --nj-deprecated-color-base-warning
  --nj-deprecated-color-base-warning-active
  --nj-deprecated-color-base-warning-hover
  --nj-deprecated-color-base-white-100
  --nj-deprecated-color-base-white-200
  --nj-deprecated-color-base-white-300
  --nj-deprecated-color-base-white-400
  --nj-deprecated-color-base-white-500
  --nj-deprecated-color-base-white-600
  --nj-deprecated-color-base-white-700
  --nj-deprecated-color-base-white-800
  --nj-deprecated-color-base-white-900
  --nj-deprecated-color-base-white
  --nj-deprecated-color-base-white-active
  --nj-deprecated-color-base-white-hover
  --nj-deprecated-color-base-yellow
  --nj-deprecated-color-base-yellow-active
  --nj-deprecated-color-base-yellow-hover
  --nj-deprecated-color-base-yellow-bright-sun
  --nj-deprecated-color-base-yellow-bright-sun-active
  --nj-deprecated-color-base-yellow-bright-sun-hover
  --nj-deprecated-color-border-input
  --nj-deprecated-color-border-input-disabled
  --nj-deprecated-color-icon-input
  --nj-deprecated-color-placeholder-input
  --nj-deprecated-color-placeholder-input-disabled
  --nj-deprecated-color-placeholder-input-hover
  --nj-deprecated-color-placeholder-input-focus
  --nj-deprecated-color-text-background-base
  --nj-deprecated-color-text-background-blue-allports
  --nj-deprecated-color-text-background-blue-bigstone
  --nj-deprecated-color-text-background-blue-corporate
  --nj-deprecated-color-text-background-blue-engie
  --nj-deprecated-color-text-background-blue-rhino
  --nj-deprecated-color-text-background-blue-venice
  --nj-deprecated-color-text-background-cerise
  --nj-deprecated-color-text-background-danger
  --nj-deprecated-color-text-background-gradient-primary
  --nj-deprecated-color-text-background-gray-100
  --nj-deprecated-color-text-background-gray-200
  --nj-deprecated-color-text-background-gray-300
  --nj-deprecated-color-text-background-gray-400
  --nj-deprecated-color-text-background-gray-500
  --nj-deprecated-color-text-background-gray-600
  --nj-deprecated-color-text-background-gray-700
  --nj-deprecated-color-text-background-gray-800
  --nj-deprecated-color-text-background-gray-900
  --nj-deprecated-color-text-background-green
  --nj-deprecated-color-text-background-green-fun
  --nj-deprecated-color-text-background-green-java
  --nj-deprecated-color-text-background-green-pine
  --nj-deprecated-color-text-background-green-riogrande
  --nj-deprecated-color-text-background
  --nj-deprecated-color-text-background-orange
  --nj-deprecated-color-text-background-orange-crusta
  --nj-deprecated-color-text-background-primary
  --nj-deprecated-color-text-background-purple
  --nj-deprecated-color-text-background-red
  --nj-deprecated-color-text-background-red-mandy
  --nj-deprecated-color-text-background-success
  --nj-deprecated-color-text-background-violet
  --nj-deprecated-color-text-background-violet-eggplant
  --nj-deprecated-color-text-background-warning
  --nj-deprecated-color-text-background-white
  --nj-deprecated-color-text-background-yellow
  --nj-deprecated-color-text-background-yellow-bright-sun
  --nj-deprecated-color-text-body
  --nj-deprecated-color-text-body-inverted
  --nj-deprecated-color-text-label
  --nj-deprecated-color-text-label-focus
  --nj-deprecated-color-text-label-inner-focus
  --nj-deprecated-color-text-input
  --nj-deprecated-color-text-progress

❌ Removed

[GLOBAL]
⚠️ Breaking changes
  • Remove token-color-palette.js and token-color-palette.json and remove export of ColorPalette from js, all tokens are now in tokens.json or tokens.js. You can export a single token in js like this:
import {njMotionBezierLinearOutSlowIn} from '@engie-group/fluid-design-tokens';

const easing = njMotionBezierLinearOutSlowIn;
[SIZE]
  • Remove tokens
  --nj-size-height-navbar-small: 3.5rem;
  --nj-size-height-navbar-normal: 6rem;
  --nj-size-height-button-small: 2rem;
  --nj-size-height-button-normal: 2.75rem;
  --nj-size-height-button-large: 3.75rem;
  --nj-size-padding-modal: 1.5rem;

📦 5.0.0 FOR THOSE MOVING FROM RC2 - 2023-03-02

🚀 Added

  • Add alpha tokens for grey, blue, green, orange and red to palette
  • Add opacity tokens
  • Add color.base.neutral that points by default to grey just like color.base.brand points to blue by default
  • Add exporting of every single variable in JS, all variables are prefixed with nj and in camelCase e.g: size.icon.lg is njSizeIconLg
  • Add font.family category eg: font.familly.default
// ====>  Present before
import {Token} from '@engie-group/fluid-design-system-tokens';

let easing = Token.motion.bezier["linear-out-slow-in"];

// ====> Added
import {njMotionBezierLinearOutSlowIn} from '@engie-group/fluid-design-tokens';

easing = njMotionBezierLinearOutSlowIn; 

🖍 Changed

  • Change value of color.border.*.moderate to get value from color.*.500 to color.*.400
  • Replace flat tokens values with alpha colors instead of solid colors. Since components using flat backgrounds should work on all allowed surfaces
  • Rename color.*.flat to color.*.transparent
  • Rename color.*.hover to color.*.hover
  • Rename color.*.focus to color.*.focused
  • Rename color.*.active to color.*.pressed
  • Rename color.base.theme.THEME_NAME.* to color.base.THEME_NAME.*
  • Rename color.background.theme.THEME_NAME.* to color.background.THEME_NAME.*
  • Rename color.border.theme.THEME_NAME.* to color.border.THEME_NAME.*
  • Rename color.text.theme.THEME_NAME.* to color.text.THEME_NAME.*
  • Rename color.icon.theme.THEME_NAME.* to color.base.THEME_NAME.*
  • Rename weight.font.* to font.weight.*

👎 Deprecated

  • Move deprecated tokens to package @engie-group/fluid-4-deprecated and prefix them with nj-deprecated
  --nj-deprecated-color-backdrop-modal
  --nj-deprecated-color-background-body
  --nj-deprecated-color-background-components
  --nj-deprecated-color-background-components-active
  --nj-deprecated-color-background-hr
  --nj-deprecated-color-background-progress-track
  --nj-deprecated-color-base-black-100
  --nj-deprecated-color-base-black-200
  --nj-deprecated-color-base-black-300
  --nj-deprecated-color-base-black-400
  --nj-deprecated-color-base-black-500
  --nj-deprecated-color-base-black-600
  --nj-deprecated-color-base-black-700
  --nj-deprecated-color-base-black-800
  --nj-deprecated-color-base-black-900
  --nj-deprecated-color-base-black
  --nj-deprecated-color-base-blue-allports
  --nj-deprecated-color-base-blue-allports-active
  --nj-deprecated-color-base-blue-allports-hover
  --nj-deprecated-color-base-blue-bigstone
  --nj-deprecated-color-base-blue-bigstone-active
  --nj-deprecated-color-base-blue-bigstone-hover
  --nj-deprecated-color-base-blue-corporate
  --nj-deprecated-color-base-blue-corporate-active
  --nj-deprecated-color-base-blue-corporate-hover
  --nj-deprecated-color-base-blue-engie
  --nj-deprecated-color-base-blue-rhino
  --nj-deprecated-color-base-blue-rhino-active
  --nj-deprecated-color-base-blue-rhino-hover
  --nj-deprecated-color-base-blue-venice
  --nj-deprecated-color-base-blue-venice-active
  --nj-deprecated-color-base-blue-venice-hover
  --nj-deprecated-color-base-cerise
  --nj-deprecated-color-base-cerise-active
  --nj-deprecated-color-base-cerise-hover
  --nj-deprecated-color-base-danger
  --nj-deprecated-color-base-danger-active
  --nj-deprecated-color-base-danger-hover
  --nj-deprecated-color-base-disabled
  --nj-deprecated-color-base-gradient-primary
  --nj-deprecated-color-base-gray-100
  --nj-deprecated-color-base-gray-200
  --nj-deprecated-color-base-gray-300
  --nj-deprecated-color-base-gray-400
  --nj-deprecated-color-base-gray-500
  --nj-deprecated-color-base-gray-600
  --nj-deprecated-color-base-gray-700
  --nj-deprecated-color-base-gray-800
  --nj-deprecated-color-base-gray-900
  --nj-deprecated-color-base-green
  --nj-deprecated-color-base-green-active
  --nj-deprecated-color-base-green-hover
  --nj-deprecated-color-base-green-fun
  --nj-deprecated-color-base-green-fun-active
  --nj-deprecated-color-base-green-fun-hover
  --nj-deprecated-color-base-green-java
  --nj-deprecated-color-base-green-java-active
  --nj-deprecated-color-base-green-java-hover
  --nj-deprecated-color-base-green-pine
  --nj-deprecated-color-base-green-pine-active
  --nj-deprecated-color-base-green-pine-hover
  --nj-deprecated-color-base-green-riogrande
  --nj-deprecated-color-base-green-riogrande-active
  --nj-deprecated-color-base-green-riogrande-hover
  --nj-deprecated-color-base
  --nj-deprecated-color-base-active
  --nj-deprecated-color-base-hover
  --nj-deprecated-color-base-orange
  --nj-deprecated-color-base-orange-active
  --nj-deprecated-color-base-orange-hover
  --nj-deprecated-color-base-orange-crusta
  --nj-deprecated-color-base-orange-crusta-active
  --nj-deprecated-color-base-orange-crusta-hover
  --nj-deprecated-color-base-primary
  --nj-deprecated-color-base-primary-active
  --nj-deprecated-color-base-primary-hover
  --nj-deprecated-color-base-primary-focus
  --nj-deprecated-color-base-purple
  --nj-deprecated-color-base-purple-active
  --nj-deprecated-color-base-purple-hover
  --nj-deprecated-color-base-red
  --nj-deprecated-color-base-red-active
  --nj-deprecated-color-base-red-hover
  --nj-deprecated-color-base-red-mandy
  --nj-deprecated-color-base-red-mandy-active
  --nj-deprecated-color-base-red-mandy-hover
  --nj-deprecated-color-base-success
  --nj-deprecated-color-base-success-active
  --nj-deprecated-color-base-success-hover
  --nj-deprecated-color-base-violet
  --nj-deprecated-color-base-violet-active
  --nj-deprecated-color-base-violet-hover
  --nj-deprecated-color-base-violet-eggplant
  --nj-deprecated-color-base-violet-eggplant-active
  --nj-deprecated-color-base-violet-eggplant-hover
  --nj-deprecated-color-base-warning
  --nj-deprecated-color-base-warning-active
  --nj-deprecated-color-base-warning-hover
  --nj-deprecated-color-base-white-100
  --nj-deprecated-color-base-white-200
  --nj-deprecated-color-base-white-300
  --nj-deprecated-color-base-white-400
  --nj-deprecated-color-base-white-500
  --nj-deprecated-color-base-white-600
  --nj-deprecated-color-base-white-700
  --nj-deprecated-color-base-white-800
  --nj-deprecated-color-base-white-900
  --nj-deprecated-color-base-white
  --nj-deprecated-color-base-white-active
  --nj-deprecated-color-base-white-hover
  --nj-deprecated-color-base-yellow
  --nj-deprecated-color-base-yellow-active
  --nj-deprecated-color-base-yellow-hover
  --nj-deprecated-color-base-yellow-bright-sun
  --nj-deprecated-color-base-yellow-bright-sun-active
  --nj-deprecated-color-base-yellow-bright-sun-hover
  --nj-deprecated-color-border-input
  --nj-deprecated-color-border-input-disabled
  --nj-deprecated-color-icon-input
  --nj-deprecated-color-placeholder-input
  --nj-deprecated-color-placeholder-input-disabled
  --nj-deprecated-color-placeholder-input-hover
  --nj-deprecated-color-placeholder-input-focus
  --nj-deprecated-color-text-background-base
  --nj-deprecated-color-text-background-blue-allports
  --nj-deprecated-color-text-background-blue-bigstone
  --nj-deprecated-color-text-background-blue-corporate
  --nj-deprecated-color-text-background-blue-engie
  --nj-deprecated-color-text-background-blue-rhino
  --nj-deprecated-color-text-background-blue-venice
  --nj-deprecated-color-text-background-cerise
  --nj-deprecated-color-text-background-danger
  --nj-deprecated-color-text-background-gradient-primary
  --nj-deprecated-color-text-background-gray-100
  --nj-deprecated-color-text-background-gray-200
  --nj-deprecated-color-text-background-gray-300
  --nj-deprecated-color-text-background-gray-400
  --nj-deprecated-color-text-background-gray-500
  --nj-deprecated-color-text-background-gray-600
  --nj-deprecated-color-text-background-gray-700
  --nj-deprecated-color-text-background-gray-800
  --nj-deprecated-color-text-background-gray-900
  --nj-deprecated-color-text-background-green
  --nj-deprecated-color-text-background-green-fun
  --nj-deprecated-color-text-background-green-java
  --nj-deprecated-color-text-background-green-pine
  --nj-deprecated-color-text-background-green-riogrande
  --nj-deprecated-color-text-background
  --nj-deprecated-color-text-background-orange
  --nj-deprecated-color-text-background-orange-crusta
  --nj-deprecated-color-text-background-primary
  --nj-deprecated-color-text-background-purple
  --nj-deprecated-color-text-background-red
  --nj-deprecated-color-text-background-red-mandy
  --nj-deprecated-color-text-background-success
  --nj-deprecated-color-text-background-violet
  --nj-deprecated-color-text-background-violet-eggplant
  --nj-deprecated-color-text-background-warning
  --nj-deprecated-color-text-background-white
  --nj-deprecated-color-text-background-yellow
  --nj-deprecated-color-text-background-yellow-bright-sun
  --nj-deprecated-color-text-body
  --nj-deprecated-color-text-body-inverted
  --nj-deprecated-color-text-label
  --nj-deprecated-color-text-label-focus
  --nj-deprecated-color-text-label-inner-focus
  --nj-deprecated-color-text-input
  --nj-deprecated-color-text-progress

❌ Removed

  • Remove newly added disabled tokens (border, text, background…), since disabled state is handled by opacity only
  • Remove newly added ‘rgb’ from grey and blue palette since we now have dedicated tokens for transparent values
  • Remove newly added color.base.transparence.* and color.palette.transparent.*
⚠️ Breaking changes
  • Remove token-color-palette.js and token-color-palette.json and remove export of ColorPalette from js, all tokens are now in tokens.json or tokens.js. You can export a single token in js like this:
import {njMotionBezierLinearOutSlowIn} from '@engie-group/fluid-design-tokens';

const easing = njMotionBezierLinearOutSlowIn;
  • Remove tokens
--nj-size-height-navbar-small: 3.5rem;
--nj-size-height-navbar-normal: 6rem;
--nj-size-height-button-small: 2rem;
--nj-size-height-button-normal: 2.75rem;
--nj-size-padding-modal: 1.5rem;
--nj-size-height-button-large: 3.75rem;

📦 5.0.0-rc.2 - 2022-12-08

🚀 Added

  • Add new icon size tokens
  • Add new size tokens

🐛 Fixed

  • Fix Pink 600 hex value

📦 5.0.0-rc.1 - 2022-10-18

🚀 Added

  • Add new size tokens

🖍 Changed

  • Warning background has moved from orange.500 to orange.400

❌ Removed

  • ⚠️ Breaking changes replace space tokens, here’s a mapping between old and new tokens
**Did not exist** ==> var(--nj-size-space-2)
var(--nj-size-space-0) ==> var(--nj-size-space-4)
var(--nj-size-space-1) ==> var(--nj-size-space-8)
var(--nj-size-space-1-2) ==> var(--nj-size-space-12)
var(--nj-size-space-2) ==> var(--nj-size-space-16)
var(--nj-size-space-3) ==> var(--nj-size-space-24)
var(--nj-size-space-4) ==> var(--nj-size-space-32)
var(--nj-size-space-5) ==> var(--nj-size-space-48)
var(--nj-size-space-6) ==> var(--nj-size-space-64)
var(--nj-size-space-7) ==> ❌ Removed
var(--nj-size-space-8) ==> ❌ Removed

📦 5.0.0-beta.1 - 2022-09-30

🚀 Added

  • Add new engie-blue color in palette tokens
  • Add new gradient property in base tokens
  • Add new brand.high-contrast property in color background tokens
  • Add new transparence and multiple background properties
  • Add new inverse property values in border tokens
  • Add new neutral property in background tokens
  • Add new size.border properties
  • Add new color.background.neutral states
  • Add new text colors tokens
  • Add new icon colors tokens
  • Add new high-contrast property in color background tokens

🖍 Changed

  • Update inverse property values in text tokens

📦 5.0.0-beta.0 - 2022-09-13

🚀 Added

  • Add new color palette and color tokens

🖍 Changed

  • Update radius variables to reflect new guidelines
  • Update shadow variables
  • Use rem for spacing instead of px

📦 5.0.0-alpha.2 - 2022-08-03

🖍 Changed

  • Update dependencies to work with Node latest LTS v16.16 and npm 8.15

📦 5.0.0-alpha.1 - 2022-07-19

🚀 Added

  • Add toast and toast-container elevation tokens

📦 5.0.0-alpha.0 - 2022-05-17

🚀 Added

  • Add some size space variables
  • Add motion tokens
  • Add possibility to import tokens as js object You can import tokens in JS this way
import * as FluidTokens from '@engie-group/fluid-design-tokens';

const tokens = FluidTokens.Tokens;
const colorPalette = FluidTokens.ColorPalette;

🖍 Changed

  • Bump tokens lib version to match Fluid product version

📦 2.0.0-alpha.2 - 2022-04-26

🖍 Changed

  • update dependencies

📦 2.0.0-alpha.1 - 2022-04-15

🖍 Changed

  • update dependencies

📦 1.1.2 - 2022-02-25

🖍 Changed

  • Update dependencies

📦 1.1.1 - 2022-02-16

🖍 Changed

  • Update dependencies

📦 2.0.0-alpha.0 - 2022-02-04

🖍 Changed

  • update icon.size.m to icon.size.md and change values of icon.size.sm

📦 1.1.0 - 2022-02-03

🖍 Changed

  • Change size.border.radius to size.border.radius.md

🚀 Added

  • Add size.border.radius.sm

📦 1.0.5 - 2021-12-16

🖍 Changed

  • Modal padding token
  • Icon sizes

📦 UNRELEASED_NEXT

🖍 Changed

  • Update dependencies

📦 1.0.4 - 2021-10-05

🖍 Changed

  • Update placeholder color

🐛 Fixed

  • Fix packages version

📦 1.0.3 - 2021-02-15

🚀 Added

  • add size.padding.modal

📦 1.0.2 - 2021-02-02

🚀 Added

  • Add new tokens-color-palette.json containing main engie color palette

🐛 Fixed

  • Placeholder input color tokens

📦 1.0.1 - 2020-11-10

🚀 Added

  • Add colors/utils.json to simplify getting theme variables

📦 1.0.0 - 2020-11-10

  • Fluid design tokens as an independent package