Skip to main content
SuperDoc’s CSS variables were restructured into a three-tier token system. This page maps every old name to its new equivalent.
Old names still work. New tokens fall back to old names automatically. You don’t need to change your code immediately.

What changed

The old system used flat names (--sd-comment-bg, --sd-track-insert-border). The new system uses a structured pattern:
The JavaScript config API is unchanged. Only CSS variable names moved.

Full mapping

Surfaces

Text

Borders

Actions

Typography and radius

Comment card

Comment text

Comment highlights

--sd-comment-highlight-opacity and --sd-comment-highlight-opacity-active were removed. The new system uses pre-computed RGBA colors (--sd-comments-highlight-external: #b1124b40). Override the full value directly.

Tracked changes

Removed

These have no replacement:

How backward compatibility works

New tokens in variables.css fall back to old names via var():
CSS resolves var() at computed-value time. If you set --sd-comment-bg on any element, the new token picks it up in that scope:
Setting the new name directly works too — it overrides the whole fallback expression.
Old-name fallbacks will be removed in the next major version. Migrate to the new names when convenient.