feat: add SCSS variables and mixins to reduce repetitive CSS#1270
Merged
SAPTARSHI-coder merged 3 commits intoJun 4, 2026
Merged
Conversation
…APTARSHI-coder#1116) - Add scss/_variables.scss with easing curve and duration tokens - Add scss/_mixins.scss with ease-transition() and ease-animation() mixins - Add scss/_animations.scss refactored from core/animations.css - Eliminates repeated cubic-bezier and transition declarations - Reduces bundle size and keeps codebase DRY
Contributor
Author
|
Hi @SAPTARSHI-coder , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Adds SCSS variables and mixins (
_variables.scss,_mixins.scss) to centralize easing curves and duration tokens, eliminating repetitive cubic-bezier and transition declarations. Fixes #1116.Type of Change
Submission Checklist
scss/demo.htmlstyle.cssREADME.mdcore/components/Feature Description
What does this add?
_variables.scsswith easing curve and duration tokens, and_mixins.scsswithease-transition()andease-animation()helper mixins.How does a developer use it?
Why does it fit EaseMotion CSS?
Eliminates repeated cubic-bezier and transition declarations across the codebase, reduces bundle size and keeps the code DRY.
Demo
demo.htmlworks by opening directly in a browser)Browser Testing
Notes for Maintainer
Non-breaking SCSS tooling addition. Existing compiled CSS is completely unchanged — this only adds SCSS source files for developers using a build pipeline.
Closes #1116