Skip to content

A Chrome extension to format the colors given in the style-guide.md file from frontendmentor.io challenges.

Notifications You must be signed in to change notification settings

waikoo/FormatColors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This extension can be useful to you only if you're doing frontendmentor.io challenges

Table of contents

What is this?

This is a Chrome extension that converts any numbers of colors given on frontendmentor.io style-guide.md files in the following format:


### Neutral

- Almost White: hsl(0, 0%, 98%)
- Medium Gray: hsl(0, 0%, 41%)
- Almost Black: hsl(0, 0%, 8%)

to SCSS or CSS readable format by fetching more exact color names from thecolorapi.com API and adding specific prefixes. It extracts only the HSL values from the input field so don't worry about leaving something like ### Neutral inside, it can handle it.

Example output SCSS:

$Alabaster: hsl(0, 0%, 98%);
$GraniteGray: hsl(0, 0%, 41%);
$EerieBlack: hsl(0, 0%, 8%);

Example output CSS:

--clr-Alabaster: hsl(0, 0%, 98%);
--clr-GraniteGray: hsl(0, 0%, 41%);
--clr-EerieBlack: hsl(0, 0%, 8%);

How to install

Linux

  1. Think about an appropriate location on your computer to save this to
  2. Open Terminal
  3. Open appropriate location, copy & paste
    git clone https://github.com/waikoo/FormatColors
    
  4. Open Google Chrome
  5. In the addres bar write
    chrome://extensions
    
  6. Upper right hand corner enable Developer Mode by clicking the toggle
  7. Upper left hand side Load unpacked
  8. Navigate to where you downloaded it
  9. For ease of use, pin it by clicking on the Extensions icon next to your address bar and clicking the little pin icon

Windows

Mac

  1. Find a location on your computer to save this to
  2. Open your terminal
  3. Open the location, copy & paste
    git clone https://github.com/waikoo/FormatColors
    
  4. Open Google Chrome
  5. In the addres bar write
    chrome://extensions
    
  6. Upper right hand corner enable Developer Mode by clicking the toggle
  7. Upper left hand side Load unpacked
  8. Navigate to where you downloaded it
  9. For ease of use, pin it by clicking on the Extensions icon next to your address bar and clicking the little pin icon

How to use

Acknowledgments

Designed by: https://www.dribbble.com/Lyonixa

About

A Chrome extension to format the colors given in the style-guide.md file from frontendmentor.io challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published