top of page
DESIGN SYSTEM

Dark Theme — a Colour token Case Study

Degree-rafiki.png

PROBLEM STATEMENT

Create a system which can support designs for both dark and light theme.

ROLE

Product Designer

TEAM

Srishti - Designer, Another Designer

TIMELINE

June, 2024

TOOLS

Figma

OPPORTUNITY

While aligning with the orginisation's new brand framework, we revamped key UI elements like the logo, typography, and colors. This was the perfect opportunity to introduce dark mode, enhancing both user experience and accessibility, while staying in line with modern design trends.

Approaching the Colour System

The first step was to explore the organisation's colour palette, designed to support the brand’s diverse expressions. The palette includes 10 color sets, each with four tones, along with black and white.

Frame 501.jpg

The organisation's Design System default colour theme reflects masterbrand corporate colour usage and has been allocated with default colours from the red and blue colour sets. Of these colour, Brand Dark is the only fixed colour that cannot be changed.

Frame 522.jpg
Frame 523.png

As per brand guidelines, masterbrand corporate has access to a limited colour palette of greys, blues and reds, plus black and white.

Additional colours

In addition to NSW Government colour palette, Digital Design System uses additional colours for use in digital products like status.

Playground

Since we were provided with both dark and light colour from the brand, we didn’t need to focus on creating an accent color. When transitioning between dark and light palettes, simply inverting the colors isn’t ideal. Although invert or hue rotate might seem reasonable initially, the result often appears unnatural once applied.

Before

Frame 505.jpg

After

After (1).jpg

"Dark mode is not just a simple inversion of colours."

Next steps

The next step was to create color tokens for various layers, including Brand, Background, Text, Neutral, Status, and Border. These tokens ensured consistency and flexibility across the design, making it easier to apply colors across different components and states.

Step 1

Documenting the existing GEL 2 theme colour tokens along with organisation's primitives.

Brand Tokens

GEL 2 Tokens

Screenshot 2024-09-08 at 10.20.26 AM.png
Screenshot 2024-09-08 at 10.20.36 AM.png

Step 2

The next step was to list all the GEL 2 color tokens and incorporate the GEL 3 Dark tokens alongside them. This ensured a smooth transition between themes while maintaining consistency.

Frame 524.jpg
Screenshot 2024-09-08 at 10.49.53 AM.png
Screenshot 2024-09-08 at 10.56.45 AM.png

Then we created colour tokens for all the layers which includes Brand, Background, Text, Neutral, Status, and Border.

Step 3

Next, we began creating tokens in Figma while experimenting with a few components. One key observation was that certain components, like loaders, had their own specific color tokens rather than using the general palette.

Loader

Skeletal loader 

Text.jpg

There are some mixed naming conventions in the table because multiple references.

  • Existing GEL 2 tokens uses camel case eg. darkGrey

  • NSW / DDS colour uses space and indicated by a prefix eg. dds/blue 04 or dds/off white

The neutral color naming convention follows a scale where "0" represents no tint, and higher values indicate progressively more tint.

In such situations, it’s important to document the tokens and collaborate closely with engineers to ensure proper implementation and consistency across the design and development process.

RESULTS

FINALISING COLOUR TOKENS

Colour tokens.jpg

Next steps

Collaborate with engineers to successfully roll out the dark theme across both the website and mobile app, ensuring seamless integration and functionality.
  • LinkedIn
  • Instagram
bottom of page