niram-css:0.2.0#4838
Open
nandac wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am submitting
Description:
Support different CSS color name conventions.
CSS color names appear in the wild in several forms — the spec uses concatenated lowercase (mediumvioletred), web tooling often uses camelCase or PascalCase (mediumVioletRed, MediumVioletRed), design tools and CLIs prefer kebab-case (medium-violet-red), and prose naturally reads as spaced Title Case (Medium Violet Red). Previously,
niram-cssonly accepted the canonical lowercase form, forcing users to memorize or look up the exact spelling. Inputs are now normalized internally, so any common casing or separator (including snake_case and SCREAMING_SNAKE_CASE) resolves to the same color — letting authors write color names in whatever form reads most naturally in context.Restructured and improved the manual and README to add more information about the package.
The initial release shipped with minimal documentation, which left common questions unanswered: why
greenin Typst differs fromgreenin CSS, why the list contains 147 names but only 138 unique hex values, and where the names came from historically. The manual now covers usage examples across fills, strokes, underlines, and shapes; a side-by-side comparison of Typst's built-in palette against the CSS equivalents; the X11/CSS history behind the names; and a complete reference table. TheREADMEmirrors the introduction, so users land on the same framing whether they arrive from GitHub or the PDF.I have read and followed the submission guidelines and, in particular, I
typst.tomlfile with all required keysREADME.mdwith documentation for my packageLICENSEfile or linked one in myREADME.mdexcluded PDFs or README images, if any, but not the LICENSE