Sub-Themes: A Product Identity Layer

Company / Client
ResearchGate
Year
2026
My part
Concept, Figma library and the AI-assisted plugin, with frontend engineering
Technology
Theme provider in the React component library, dedicated Figma library, AI-assisted Figma plugin

Context

For products that live inside the ResearchGate platform, we needed a way to give each its own identity without drifting away from the platform. The goal was to make each one recognisable at a glance while it stays part of one design system, with an approach that scales to every product that follows.

Impact

  • Two themes live, a third ready
  • Usage nearly doubled in two months
  • 17 themed components, no fork of the core library
  • A new product needs a theme, not a redesign
  • Designers theme in place with the plugin
28
production files themed
32
themed sections
8
product areas in eight months
0
lines of custom CSS

A coat over the component

The provider wraps any library component or whole view and injects the product's palette into its CSS variables, in light and dark mode. The component's own colour schemes are overwritten; its markup, props and behaviour stay exactly as they are. Three rules keep it in check: theme whole sections such as promos and popovers, never nest one sub-theme in another, and make every colour pair meet WCAG 2.1 contrast.

ModeLightDark
SubThemeProvider
ComponentcolorScheme
  • Accent
  • Basic
  • Brand
  • Inverse
  • Info
  • Success
  • Danger
  • Warning
  • Product A
  • Product B
  • Product C
<SubThemeProvider product="productA">
  <Promo … />
</SubThemeProvider>

Tokens name a role, the product supplies the colour

Each token points at a step of the product's colour ramp, not a fixed colour, so swapping the ramp re-skins everything. 26 production files already use it.

TokenStepProduct AProduct BProduct C
Product ramp
subTheme/sm/color/bg-color/subtle100#ddece1#ebe3fc#fbe3ec
subTheme/sm/color/border-color/default200#bbd9c4#d5c6f8#f5c3d6
subTheme/sm/color/text-color/primary900#091610#1c0f3b#330818
subTheme/cmp/button/color/bg-color700#0f412d#45238f#7a1439
Product A values from the SubTheme library; Products B and C are illustrative.

The library: where it started

I built the first 17 sub-theme components by hand in a dedicated Figma library. They proved the approach and became the training material for the plugin's AI. Today the library is the documentation, and the place where I iterate on colour definitions for components and views before the AI learns them.

PrimarySecondaryTertiaryLink
Heading primaryHeading secondaryHeading tertiary
BadgeVerified title
HeadingTextLink
HeadingTextLink

Theme in place, like in code

Swapping a component for its themed twin in Figma meant re-entering its content. The plugin wraps the selected component in a sub-theme and unwraps it again, just as the provider does in code. Its AI, trained on the sub-theme library, applies product colours flexibly across the coat instead of mapping accent or brand one to one, and never themes functional colours or form controls.

LayerssubThemePromo · GreenPromo
subThemePromo
SmallText
HeadingText
ButtonButton
Social proof
SubTheme Wrapper