Skip to content

RodSarhan/tstypecolorpreview

Repository files navigation

TS Type Color Preview

This extension allows previewing the colors of typescript types and union types that correspond to color values

Features

Hover on a variable with a color value as its type to see a preview of the possible colors

Before

type before 1 hover before 1

type before 2 hover before 2

After

hover after 1 hover after 2

Notes

This extension was inteded for my own use, if you notice any issues feel free to suggest a fix or open a PR.

Known Issues

  • Types originating files other than the active one might be cached and not up to date with the latest changes. This can be fixed by quickly hovering on something in the original file.

Release Notes

0.0.6

Now supports most color formats

0.0.4

Better representation of transparent colors

0.0.1

Initial release


Enjoy!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published