Skip to content

Fix exported color name#44

Merged
psd-coder merged 3 commits into
mainfrom
fix-exported-color-name
Jul 6, 2025
Merged

Fix exported color name#44
psd-coder merged 3 commits into
mainfrom
fix-exported-color-name

Conversation

@psd-coder

Copy link
Copy Markdown
Member

This PR handles few problems which might be encountered during export and which are described well here:

  1. Final color names are converted into kebab-case, to have valid names and handle spaces in the names, for example.
  2. Trailing semicolon is removed from CSS variables export
  3. CSS variables and tailwind config exports now include comment with the link to Harmonizer website. It allows editing palette in a bit easier way. Other targets don't include it, since they are JSON and JSON doesn't support comments (only JSONC, which aren't well-supported).

@psd-coder psd-coder self-assigned this Jul 6, 2025
@github-actions

github-actions Bot commented Jul 6, 2025

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 521421a):

https://harmonizer-web--pr44-fix-exported-color-n-d5fals4t.web.app

(expires Sun, 13 Jul 2025 17:30:30 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0b46b8946d697564b3f98633c5cd230a6ede1236

…). Use it for comments in the CSS variables and tailwind config export targets (Other targets are JSON, which aren't support comments out of the box)
@psd-coder psd-coder force-pushed the fix-exported-color-name branch from 0aa8e0f to 521421a Compare July 6, 2025 17:29
@psd-coder psd-coder merged commit b6d308a into main Jul 6, 2025
4 checks passed
@psd-coder psd-coder deleted the fix-exported-color-name branch July 6, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant