Skip to content
Rami Omran

Design systems · Salesforce

SLDS 2 is a migration, not a theme

Switching a Salesforce org to the Cosmos theme looks like one setting. For every custom component it is a migration, and nobody has set a deadline for it.

By Rami Omran · Published 15 July 2025 · Updated November 2026 · 5 min read

  • Design systems
  • Salesforce

The admin opens the theme settings in a sandbox and switches from Lightning Blue to Salesforce Cosmos. The standard pages change at once. One reviewer describes the new look as “more rounded boxes and buttons” with a default density that is “a bit too generous with white space”. It looks like a theme switch, and for the pages Salesforce built, it mostly is.

Then the advisor opens a record page that carries a custom component, built in house two years ago. Community write-ups from 2026 describe what can happen next: grey text on grey cards, badges that cannot be seen. Nothing throws an error. The component has simply stopped agreeing with the page around it.

A Salesforce account record page split in two. The left half shows the new rounded cards and pill buttons; the right half shows the older square cards for contacts, opportunities and cases.
One account page split down the middle: the new look on the left, the old look on the right. Screenshot: Salesforce.

A theme changes what Salesforce built, and the migration is everything you built on top of it.

Four layers, four fates

Cosmos is the theme of SLDS 2, the second Salesforce Lightning Design System. It was reported as a beta in Spring '25 and as generally available in all editions in Winter '26, in October 2025. A custom component can be styled in four ways, and each one meets the new system differently.

  • Global styling hooks. The shared values the theme sets. This is the layer that carries over. Even here, practitioners report limits: global hooks do not reach toasts, help text or form elements.
  • Component styling hooks. The --slds-c- hooks set on a single component. They are reported as unsupported in SLDS 2, and Salesforce's developer guide is reported to advise orgs that depend on them to stay on SLDS 1. No date is given.
  • Old tokens. The --lwc- tokens are reported absent from SLDS 2 themes, so anything that reads them has nothing to read.
  • Hard-coded values. A hex typed into the CSS belongs to no theme. It stays exactly as written while everything around it changes.

The same reports add deprecated class names and selectors that reach inside base components, and they note that there is no compatibility matrix to check against.

Then there is the code nobody in the building can edit. Visualforce has reportedly been supported on SLDS 2 since Winter '26, so the open question is how it looks. In a September post in the Design Trailblazers community group, an admin wrote that “some of our managed package Visualforce pages have significantly degraded appearance”. Trailhead says those fixes depend on the package vendor.

Why it is still open in November 2026

I have found no end date for SLDS 1. Switching on SLDS 2 is reported to remain an admin's choice. That sounds kind, and it is the reason the work drifts: a migration with no date loses to every project that has one.

The way back is also very easy. A Salesforce Help article dated 21 June 2026, still titled “SLDS 2 (Beta) and Salesforce Cosmos Theme”, says that “deactivating SLDS 2 immediately resolves the visual bugs”. That is true, and it postpones the work.

Some teams met the problem without choosing to. In early September 2026, a vendor status page quoting Salesforce described Winter '27 sandboxes switching from Lightning Blue to Cosmos “without any admin action”. Salesforce said production orgs would not be switched automatically. I do not know the current status of that issue.

The tooling is real and it is partial. The SLDS Linter has covered CSS since version 1.2.0 in February 2026, and version 2.0.0, on 13 November 2026, added React linting in beta. It is reported to be rule-based: its automatic fix handles the mechanical cases, and it cannot read managed package code. Agentforce Vibes reportedly shipped a skill for applying SLDS in June 2026, alongside validate and uplift skills. A tool can swap a token for a hook. It cannot say whether the screen still reads.

What I would do as the designer

  1. An inventory, sorted by layer. Every custom component, grouped by how it is styled: global hooks, component hooks, old tokens, hard-coded values. The sort is the plan. The first group needs a look; the other three need work.
  2. One rule for custom work. Global styling hooks only. No component hooks, no old tokens, no hex values. An exception is written down with its reason, so the next change of theme starts from a short list.
  3. A before and after review in a sandbox. Not every page: the screens the advisor and the service agent live in. I would check text on cards, badges, form elements, toasts and help text, in both the comfy and the compact density, and write down each difference as a decision: fix, accept or raise.
  4. A list of what cannot be fixed in house. Each managed package page that degrades, the vendor asked, and a choice beside it: wait, replace or live with it. Each line has an owner.
  5. Switching on by group. In December 2025 Salesforce promised “group-based SLDS 2 activation with the Winter '27 release”. Its arrival is reported, not confirmed, so I would check it in the org first. If it is there, the first group is the one whose screens passed the review.

None of this is a visual refresh. It is the audit a design system asks for every time its foundations move, and the theme setting is only the last step of it.

Sources

More essays

All posts