Skip to content

feat: Add SCSS mixins and variables for animation design tokens (#1116)#1217

Merged
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
Sweksha-Kakkar:feat/scss-mixins-variables-1116
Jun 4, 2026
Merged

feat: Add SCSS mixins and variables for animation design tokens (#1116)#1217
SAPTARSHI-coder merged 2 commits into
SAPTARSHI-coder:mainfrom
Sweksha-Kakkar:feat/scss-mixins-variables-1116

Conversation

@Sweksha-Kakkar
Copy link
Copy Markdown
Contributor

Changes Made

Closes #1116

Problem:

CSS bundle size was growing due to repetitive hardcoded values (cubic-bezier curves, durations, delays) written explicitly in every utility class.

Solution:

Created a new scss/ folder with reusable SCSS design tokens:

New Files:

  • scss/_variables.scss — Central animation tokens:

    • 12 easing curves (linear, cubic, quart, bounce, elastic)
    • 5 duration tokens (100ms → 1000ms)
    • 4 delay tokens
    • Fill mode constants
  • scss/_mixins.scss — Reusable animation mixins:

    • animate() — base animation mixin
    • transition() — transition shorthand
    • fade-in(), fade-out()
    • slide-in-up(), slide-in-down()
    • scale-in(), scale-out()
    • bounce(), pulse()
  • scss/_index.scss — Single entry point for all SCSS imports

Benefits:

  • Eliminates repetitive hardcoded cubic-bezier values
  • DRY architecture for future animation additions
  • Easy to extend with new easing tokens

Checklist

  • I have read the CONTRIBUTING.md
  • My code follows the style guidelines of this project
  • I have tested my changes locally
  • This PR is linked to an issue
  • I have added a proper description of my changes

@Sweksha-Kakkar
Copy link
Copy Markdown
Contributor Author

@SAPTARSHI-coder
Please look into this and merge it I have raised the PR.

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 4, 2026
@SAPTARSHI-coder SAPTARSHI-coder merged commit a124d0c into SAPTARSHI-coder:main Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optimize CSS bundle size by refactoring repetitive utility classes into SCSS mixins

2 participants