Created
November 2, 2021 11:23
-
-
Save nkezhaya/4a16b06d92f31a5f009ca5d92650f30a to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # putty | |
| rg -l "putty-50" | xargs perl -pi -e 's/putty-50/off-white-500/g' | |
| rg -l "putty-100" | xargs perl -pi -e 's/putty-100/gray-50/g' | |
| rg -l "putty-200" | xargs perl -pi -e 's/putty-200/gray-100/g' | |
| rg -l "putty-300" | xargs perl -pi -e 's/putty-300/gray-200/g' | |
| rg -l "putty-400" | xargs perl -pi -e 's/putty-400/gray-300/g' | |
| rg -l "putty-500" | xargs perl -pi -e 's/putty-500/gray-400/g' | |
| # gray | |
| rg -l "gray-500" | xargs perl -pi -e 's/gray-500/gray-400/g' | |
| rg -l "gray-600" | xargs perl -pi -e 's/gray-600/gray-500/g' | |
| rg -l "gray-700" | xargs perl -pi -e 's/gray-700/gray-600/g' | |
| # blacks become gray | |
| rg -l "black-600" | xargs perl -pi -e 's/black-600/gray-600/g' | |
| rg -l "black-700" | xargs perl -pi -e 's/black-700/gray-800/g' | |
| rg -l "black-800" | xargs perl -pi -e 's/black-800/gray-900/g' | |
| rg -l "black-900" | xargs perl -pi -e 's/black-900/black-500/g' | |
| rg -l "blue-400" | xargs perl -pi -e 's/blue-400/blue-200/g' | |
| rg -l "blue-500" | xargs perl -pi -e 's/blue-500/fy-blue-500/g' | |
| rg -l "blue-600" | xargs perl -pi -e 's/blue-600/blue-400/g' | |
| # blue without -500 becomes "fy-blue-500" | |
| rg -l "text-blue\b" | xargs perl -pi -e 's/text-blue([^-])/text-fy-blue-500\1/g' | |
| rg -l "border-blue-500\b" | xargs perl -pi -e 's/border-blue-500([^-])/border-fy-blue-500\1/g' | |
| rg -l "bg-blue\b" | xargs perl -pi -e 's/bg-blue([^-])/bg-fy-blue-500\1/g' | |
| # red 400 becomes 300 | |
| rg -l "red-400" | xargs perl -pi -e 's/red-400/red-300/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment