npm.io
0.1.3 • Published 9 years agoCLI

@maxfield/vscode-color-theme-template

Licence
MIT
Version
0.1.3
Deps
1
Vulns
0
Weekly
0

vscode-color-theme-template

Build Status Coverage Status

Features

  • Color variables
  • Alpha value variables

Example

$ vscode-color-theme-template ./theme.json ./out/theme.json


# Result
# {
#     "foreground": "$blue@mid", => will be replaced with "#0000FF80"
#
#     "colorPalette": {
#         "$blue": "#0000FF", <= Color definition
#         "@mid": "80"        <= Alpha value definition
#     }
# }

Format

// $color -> Hex Color (e.g. #000, #CDCDCD)
// @alpha -> Alpha value (e.g. FF, 80)
// $alias -> Alias (e.g. $blue, $blue@mid)

{
    "colorPalette": {
        "$blue": "#0000FF",
        "@mid": "80"
    },
    "alias": {
        "$string-color": "$blue",
        "$medium": "@mid"
    }
}

Author

Maxfield Walker

License

MIT