Sugar High

Super lightweight syntax highlighter

Highlight your code with sugar-high

install.sh
import { highlight } from 'sugar-high'const html = highlight(code)

color.css
/* styles.css */:root {  --sh-class: #2d5e9d;  --sh-identifier: #354150;  --sh-sign: #8996a3;  --sh-property: #0550ae;  --sh-entity: #249a97;  --sh-jsxliterals: #6266d1;  --sh-string: #00a99a;  --sh-keyword: #f47067;  --sh-comment: #a19595;}

Usage with remark.js

Remark.js is a powerful markdown processor, you can use the sugar-high remark plugin with remark.js to highlight code blocks in markdown.