Sugar High

Super lightweight syntax highlighter for JSX, 1KB after minified and gizpped.

Highlight your code with sugar-high

import { highlight } from 'sugar-high'

const html = highlight(code)

/* 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;
}