You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, theme authors largely modify SCSS variables from core Paragon by creating a _variables.scss file and importing it after the core Paragon SCSS styles in consuming applications (e.g., micro-frontends). Doing so, SCSS will override the original variables' values defined by core Paragon with the new SCSS from the @edx/brand theme.
With design tokens, theme authors will instead override core Paragon tokens by defining their own JSON tokens that get deep merged alongside the core Paragon tokens, thus overriding any tokens that were defined by the theme author.
Deprecation
There is no plan to mark the code for deprecation. This will be a one time switch.
Migration
There are plans to create a how-to document for migrating existing brand packages to design tokens, as well as discussions being had around building out automated tooling to assist in the process.
As of writing, the following information is available:
frontend-platform documentation (step by step guide to migration)
mfe upgrades - upgrade every MFE to use design tokens
tooling for tutor - tooling for building and hosting CSS variables
Additionally work has already been done to upgrade paragon to support design tokens, and frontend-app-discussions has been built on a pilot branch to use design tokens, proving out the system.
These MFEs are considered out of scope for the conversion:
Proposal Date
2024-07-19
Target Ticket Acceptance Date
2024-08-02
Earliest Open edX Named Release Without This Functionality
Teak - 2025-01
Rationale
https://github.com/openedx/paragon/blob/master/docs/decisions/0019-scaling-styles-with-design-tokens.rst
https://github.com/openedx/paragon/tree/alpha?tab=readme-ov-file#design-tokens
Removal
from https://github.com/openedx/paragon/blob/master/docs/decisions/0019-scaling-styles-with-design-tokens.rst#implications-for-theme-authors-eg-edxbrand-packages
Replacement
from https://github.com/openedx/paragon/blob/master/docs/decisions/0019-scaling-styles-with-design-tokens.rst#implications-for-theme-authors-eg-edxbrand-packages
Deprecation
There is no plan to mark the code for deprecation. This will be a one time switch.
Migration
There are plans to create a how-to document for migrating existing brand packages to design tokens, as well as discussions being had around building out automated tooling to assist in the process.
As of writing, the following information is available:
Additional Info
No response
Task List
There are 3 main phases:
Additionally work has already been done to upgrade paragon to support design tokens, and frontend-app-discussions has been built on a pilot branch to use design tokens, proving out the system.
These MFEs are considered out of scope for the conversion:
The text was updated successfully, but these errors were encountered: