View Code? Open in Web Editor
NEW
An cerebro plugin to convert code color fast as lightning.
JavaScript 95.08%
CSS 4.92%
cerebro-convertcolor's Introduction
Hey, I'm Rafael Acioly ๐
I'm a Back-end Developer based in Brazil
- ๐ Degree in Information Systems
- โ๏ธ I use daily:
.groovy
, .kt
, .ts
, .sql
- ๐ฑ Iโm currently learning Golang and Kotlin
- ๐ฏ Iโm looking to collaborate on social impact projects
- ๐ฌ Ask me about Python, Design patterns and meditation
- โค๏ธ Things I deeply care about: software architecture, design patterns and customers
- ๐ซ How to reach me: Email
![TWITTER](https://camo.githubusercontent.com/3b51eb103dcc132ff8a29fc1cf21bed6e8542b9313c27675cf0cb5d842723d47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f547769747465722d626c61636b3f7374796c653d666f722d7468652d6261646765266c6f676f3d74776974746572)
cerebro-convertcolor's People
Watchers
cerebro-convertcolor's Issues
Hey, @rafa-acioly! Could you please publish latest changes to npm? Currently latest published version is 1.1.0 that is missing some features
Hey, @rafa-acioly!
Your plugin looks good and for a long time I had this plugin in my list of ideas:)
So, now I have few thoughts about how to improve this plugin, that I want to discuss:
- Add support for rgba colors, like
rgba(255, 255, 100, 0.5)
or rgba(255, 255, 100, .5)
- Remove
convertColor
keyword. I think it makes sense to use this plugin just by regexp, so plugin could be used for all inputs that match:
#
+6 chars it is color, like #cceebb
rgb(...,...,...)
More ideas could be taken from google preview:
![image](https://cloud.githubusercontent.com/assets/594298/24815609/0f7d6074-1bd6-11e7-9af3-eb5365b452a2.png)
So, they support some more formats (I'm not sure they are useful, but could be for designers) and also they have colorpicker in their preview.
What do you think?
Example: #000
is a valid HEX color
Would be useful to preview results, like rgba(255, 50, 50, .5)
Some numbers in results should be rounded, like in this example:
![image](https://user-images.githubusercontent.com/594298/29023155-c51a0da6-7b6c-11e7-94e1-2e105af9c392.png)
Hey!
Thanks for this great plugin! One thing that would be nice to fix is overriding global styles. You can found details in this issue.