docs: Script that copies all CSS variables used on any website and converts them to the nearest catppuccin color #1250
+434
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi, here's a script I made that you might find useful - it creates buttons on any website with two functionalities:
For example, on node.js we get:
2nd functionality (most coolest):
It accounts for opacity by using LESS
fade()
function and variables referencing other variables withvar()
Example usage
On node.js website
Before
After
As you can see, it was able to make an OK theme, (which I think is awesome for a script we can copy and paste) - manual intervention will still be required ofc (like the text is not legible on the bright backgrounds there)
The following CSS has been automatically generated and all I did was copy and paste it into the console:
Also I added a reference
tips-and-tricks.md
a reference inhow-to-write-a-userstyle
since I think that would be a good ideaFollow up from #1247
Script (minified) - try to copy-paste this into github's console!:
Full version: https://gist.github.com/nikitarevenco/f5470f16f562062cd88c9882aeb86611