GithubHelp home page GithubHelp logo

0xdaksh / vscode-hex-to-rgba Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 1.0 172 KB

Hex-to-RGBA Allows designers to convert selected Hex Code to RGBA on VSCode easily.

Home Page: https://marketplace.visualstudio.com/items?itemName=dakshmiglani.hex-to-rgba

TypeScript 100.00%
hex-to-rgba vscode typescript javascript designers

vscode-hex-to-rgba's Introduction

Hex-To-RGBA Extension

Visual Studio Marketplace Downloads Visual Studio Marketplace Installs Visual Studio Marketplace Version Visual Studio Marketplace Rating (Stars)

Hex-to-RGBA Allows designers to convert selected Hex Code to RGBA and vice-versa.

demo gif

Shortcuts

converts selected text to RGBA

  • Windows/Linux: ctrl-alt-r
  • MacOS: cmd-alt-r

converts selected text to HEX

  • Windows/Linux: ctrl-alt-h
  • MacOS: cmd-alt-h

Toggle between hex and rgba

  • Windows/Linux: ctrl-shift-t
  • MacOS: ctrl-shift-t

Awesome Tip: Postfix the opacity to the hex followed by _ to add the opacity to the converted rgba.

Example: #333333_86 to generate rgba(51, 51, 51, 0.86).

vscode-hex-to-rgba's People

Contributors

0xdaksh avatar dependabot[bot] avatar gaui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

harrybawsac

vscode-hex-to-rgba's Issues

does not support hex alpha channel

I have a use case where a designer gave me values in HEX + Alpha %. This tool is great for this, since it can take HEX_%% and convert to rgba. But, in playing with it, I noticed that it does not support alpha hex channels OOTB. For example, #d9e0e7a6 (transparent grey) should become rgba(217,224,231,0.65), but instead it becomes rgba(221, 153, 238, 1) (opaque purple-pink).

Format of converted RGBA is not optimal

Hey there,

thank you for creating this very useful little extension. Just downloaded it and it helped me a lot already!

When I convert a hex-color to rgba the format of the rgba looks like this: rgba(128, 255 ,255, 0.05)
The second and third value are currently formatted without proper spacing.

My suggestion/wish is that you would change the format to this: rgba(128, 255, 255, 0.05)

It's just something that would be the icing on the cake so to speak. Making the extension even better!

Greetings
julian

add multi cursor support

This is already an awesome tool, but it would be even better if it could convert ALL selected colors at once.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.