Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 557 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 557 Bytes

vscode-auto-cssinjs-color

Auto replace your css color variables by a command

Start

Ctrl + Shift + P -> AutoCssInJsColor

Config

edit settings.json

{
  "autoCssInJsColor": {
    "colorPrefix": "Color",
    "importPath": "import { Color } from '@styles';",
    "color": {
      "@color-primary-1": "#4d67be",
      "@color-info-1": "#5b97bd",
      "@color-success-1": "#47a992",
      "@color-warning-1": "#cb9433",
      "@color-error-1": "#e16f64",
      "@color-grey-1": "#0d0f12",
      "@color-chart-color-1": "#303c46"
    }
  }