You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently created a Go library that uses a large portion of the work done here, and windowsterminalthemes.dev/, for Go-based terminal applications. As part of that, I wanted a simple way of representing all of the color palettes/themes, so I essentially have my code-gen process also generate SVG's that have embedded HTML tables, with all of the colors, and figured this might be something you'd be interested in.
If not, no worries, just figured it might be a bit easier than managing the screenshots, and creates a bit more consistency.
To summarize how I generate this page, it's three parts:
Generate the SVG using this template, and these helper template functions (primarily just to convert hex to rgba). This could easily be ported into whatever templating engine works best for your codegen solution.
Reference it in the GH markdown like so (width and height being critical).
An example of one of them:
The text was updated successfully, but these errors were encountered:
Hey that's really cool! I may be able to make use of this sometime in the future!
lrstanley
changed the title
suggesstion: generare svg color tables that can be embedded into readme
suggesstion: generate svg color tables that can be embedded into readme
Nov 6, 2022
lrstanley
changed the title
suggesstion: generate svg color tables that can be embedded into readme
suggestion: generate svg color tables that can be embedded into readme
Nov 8, 2022
I recently created a Go library that uses a large portion of the work done here, and windowsterminalthemes.dev/, for Go-based terminal applications. As part of that, I wanted a simple way of representing all of the color palettes/themes, so I essentially have my code-gen process also generate SVG's that have embedded HTML tables, with all of the colors, and figured this might be something you'd be interested in.
If not, no worries, just figured it might be a bit easier than managing the screenshots, and creates a bit more consistency.
To summarize how I generate this page, it's three parts:
rgba
). This could easily be ported into whatever templating engine works best for your codegen solution.width
andheight
being critical).An example of one of them:
The text was updated successfully, but these errors were encountered: