Skip to content

Commit

Permalink
changing the text color to the color itself cause black doesn't show … (
Browse files Browse the repository at this point in the history
#8)

* changing the text color to the color itself cause black doesn't show up in dark mode :(

* Update color swatches

* Update generate-swatches.yml

* Update generate-swatches.yml to run on PRs and not throw up if no color was added

* Update generate-swatches.yml

run on prs

* Update .gitignore

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

* Update generate-swatches.yml

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
maddymontaquila and github-actions[bot] authored Sep 18, 2024
1 parent c905661 commit a484c6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified assets/color-swatches.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion generate-swatches.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function generateSwatches(hexColors, outputFile) {
const truncatedName = truncateText(ctx, colorName, swatchDiameter);

// Draw the truncated color name below the swatch
ctx.fillStyle = '#000';
ctx.fillStyle = colorHex;
ctx.fillText(truncatedName, x, y + swatchRadius + 25);
});

Expand Down

0 comments on commit a484c6e

Please sign in to comment.