Skip to content

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