Skip to content

leandergangso/vscode-hsl-colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HSL Colors

Quick and simple HSL color highlighter for tailwind configs. Supported HSL format: xxx yy% zz%

Example usage

styles.css

@layer base {
  :root {
    /* colors here will be highlighted */
    --color-primary: 234 40% 18%;
    --color-secondary: 422 40% 18%;
  }
}

tailwind.config.js

theme: {
  colors: {
    primary: "hsl(var(--color-primary) / <alpha-value>)",
    secondary: "hsl(var(--color-secondary) / <alpha-value>)",
  }
}

Setup

I will not publish this extension, so to use you need to follow the steps bellow:

  • Clone/download repo
  • Use vsce command to build
    • Don't have it? npm install -g @vscode/vsce
  • Run command vsce package
  • Go to vscode add select 'install from VSIX'

About

HSL color highlighting for tailwind variables.

Resources

License

Stars

Watchers

Forks

Packages

No packages published