hexstring

A small command-line utility to convert colors in CSS notations to a more widely accepted color hex code.

I initially made this to use with the Github CLI, as it doesn’t support CSS color notations in the gh label create command:

gh label create --color red

does not work, so, with hexstring, you can do this instead of having to manually type hex color codes:

gh label create --color $(hexstring red)
aliases: null
finished: 2024-04-28T00:00:00.000Z
started: 2024-04-28T00:00:00.000Z
madeWith: null
tags:
  - id: command-line
    collection: tags
thumbnail: ""
titleStyle: ""
colors:
  primary: ""
  secondary: ""
  tertiary: ""
pageBackground: ""
wip: false
private: false
additionalMetadata:
  created: null
databaseMetadata:
  Partial: true
P S T