Idea: Style migrations #24219
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[Package] Base styles
/packages/base-styles
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
When SASS variable definitions are renamed or replaced by others (e.g. #23202, #23648), projects that rely on them (via
@wordpress/base-styles
) need to manually track them down and update them accordingly. Example: Automattic/wp-calypso#42835Describe the solution you'd like
It'd be cool if we could include a set of migrations with Gutenberg (e.g. in
@wordpress/base-styles
or@wordpress/scripts
) that allow to run a script on a codebase to update these variables (at least for simple cases). Think database migrations -- there's a script that updates an exisiting database schema to a newer version, based on a set of files that specify what to replace with what.Maybe there's a SASS parser out there somewhere that allows doing something like that. Alternatively, a sed or awk based script might do the trick.
cc/ @sirreal @jasmussen
The text was updated successfully, but these errors were encountered: