GitShow/antfu/shiki-transformer-color-highlight
antfu

shiki-transformer-color-highlight

Shiki transformer that highlights colors

by antfu
Star on GitHubForkWebsitenpm

TypeScript

70 stars3 forks3 contributorsQuiet · 6mo agoSince 2024v1.1.0MIT

Meet the team

See all 3 on GitHub →
antfu
antfu10 contributions
libondev
libondev2 contributions
KazariEX
KazariEX1 contribution

Languages

View on GitHub →
TypeScript54.1%
HTML45.5%
JavaScript0.4%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

5 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template✓PR Template

Recent PRs & issues

Quiet · 1 in progress · Last activity 6mo ago
See all on GitHub →
benjamincanac
feat!: migrate to shiki v4OpenPR

Description Reopens #4 (closed accidentally by deleting the fork). Bumps and from to (and the devDependency to match). Consumers that upgraded to shiki v4 (e.g. nuxt/ui#6679) currently end up with two copies of (v3 from this package, v4 from shiki), which fails typecheck: Since is recursive ( references from its own copy), the two majors can never be reconciled structurally — the only fix is resolving a single copy. No source changes needed: shiki v4 only drops Node 18 and removes deprecated typo-APIs, none of which are used here (, , transformer hooks are all unchanged). Verified: tests, typecheck, build, lint all pass passes (vitepress still bundles shiki v3 — runtime compatible) packed tarball installed next to dedupes to a single and the previously failing assignment typechecks BREAKING CHANGE Requires shiki v4 (Node ≥ 20). Consumers still on shiki v3 would hit the mirrored type error, so this should be released as a new major.

benjamincanac · 1mo ago

Recent fixes

View closed PRs →
benjamincanac
feat!: migrate to shiki v4MergedPR

Description Bumps and from to (and the devDependency to match). Consumers that upgraded to shiki v4 (e.g. nuxt/ui#6679) currently end up with two copies of (v3 from this package, v4 from shiki), which fails typecheck: Since is recursive ( references from its own copy), the two majors can never be reconciled structurally — the only fix is resolving a single copy. No source changes needed: shiki v4 only drops Node 18 and removes deprecated typo-APIs, none of which are used here (, , transformer hooks are all unchanged). Verified: tests, typecheck, build, lint all pass passes (vitepress still bundles shiki v3 — runtime compatible) packed tarball installed next to dedupes to a single and the previously failing assignment typechecks BREAKING CHANGE Requires shiki v4 (Node ≥ 20). Consumers still on shiki v3 would hit the mirrored type error, so this should be released as a new major.

benjamincanac · 1mo ago
KazariEX
feat: support `hwb`, `lab`, `lch`, `oklab` and `oklch` colorsMergedPR
KazariEX · 6mo ago
libondev
feat: support named colorsMergedPR

Description This pr implements support for named colors. Linked Issues Additional context !image

libondev · 6mo ago
Structured data for AI agents

Repository: antfu/shiki-transformer-color-highlight. Description: Shiki transformer that highlights colors Stars: 70, Forks: 3. Primary language: TypeScript. Languages: TypeScript (54.1%), HTML (45.5%), JavaScript (0.4%). License: MIT. Homepage: https://shiki-color-highlight.netlify.app/ Latest release: v1.1.0 (6mo ago). Open PRs: 1, open issues: 0. Last activity: 6mo ago. Community health: 85%. Top contributors: antfu, libondev, KazariEX.

·@ofershap

Replace github.com with gitshow.dev