Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

A script for converting your STYL files to SCSS

Notifications You must be signed in to change notification settings

nordicfactory/styl-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

styl-migration

A script for converting your STYL files to SCSS

Installing

You have to install zx globally for this script to work.

Running

Hint: For Windows you have to provide the executing shell executable. Easiest thing if you want to execute it is to run:

npx zx --shell=C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe ./stylus.migration.mjs

Known Limits

  • Using CSS variables it might duplicate the var(--name) to var(var(--name)).
  • base64 encoded strings are converted incorrectly, removing the ; inbetween the format and base64.
  • divisions might be fucked after the migration because SCSS disallows the usage of /. You have to convert division to use math.div(4,2) or calc(4/2)

Why?

Don't want to manually edit hundreds of files.

img

About

A script for converting your STYL files to SCSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published