Example - Fluid Topics - Latest

Fluid Topics Designer Guide

Category
Reference Guides
Audience
public
Version
Latest

The following example shows a designed Header with a Custom component to switch between two themes. In this case, there is a light mode, represented by a sun icon, and a dark mode, represented by a moon icon:

A dark-themed navigation bar from a software interface labeled 'Fluid Topics'. It features a circular logo and options including 'Need help?', 'Publishing', 'Administration', 'Analytics', 'My Library', and a user profile named 'John Doe'. There is a search bar on the right with a magnifying glass icon, and a sun icon, representing a switch to light mode.

A light-themed navigation bar from a software interface labeled 'Fluid Topics'. It features a circular logo and options including 'Need help?', 'Publishing', 'Administration', 'Analytics', 'My Library', and a user profile named 'John Doe'. There is a search bar on the right with a magnifying glass icon, and a moon icon, representing a switch to dark mode.

This example relies on the following Theme studio configuration:

Color name CSS variable Dark mode Light mode
background --ft-custom-background #121212 #FAFAFA
text --ft-custom-text #FAFAFA #121212

The header background references the --ft-custom-background variable. The text and icon colors of individual components reference the --ft-custom-text variable.

The Fluid Topics logo is an SVG image, in which the letters have the following inline style:

fill: var(--ft-custom-text);

This allows for the letters to adapt to the current theme.