Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dart Sass 🎯 #59

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Dart Sass 🎯 #59

wants to merge 3 commits into from

Conversation

lvwvm
Copy link

@lvwvm lvwvm commented Oct 24, 2021

Dart Sass 🎯

  • Changed @import to @forward due to deprecation.
  • Refactored all variable uses to their namespaced equivalents
  • Ava test requires dart-sass
  • 'main' package.json set to tachyons.scss (for js module importing)

@lvwvm
Copy link
Author

lvwvm commented Oct 24, 2021

Adds "@use variables" to the top of all files

awk -i inplace -e 'BEGINFILE{print "@use \"variables\";"}{print $0}' scss/*.scss

for refactoring variables

sed -e 's/\(variables\.\)\?\(\$.*[^;}]\)/variables.\2/gi' -i scss/_*.scss 

creating spaces between variable and negative sign

sed -e 's/[-]\(variables\..*[^;]\)/-\ \1/gi' -i scss/_negative-margins.scss 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant