tanstack-highlight-theme-and-annotate-code
Installation
SKILL.md
Theme and Annotate Code
Setup
Generate light and dark CSS independently from highlighted markup:
import { createThemeCss } from '@tanstack/highlight/theme'
import { githubDarkTheme } from '@tanstack/highlight/themes/github-dark'
import { githubLightTheme } from '@tanstack/highlight/themes/github-light'
export const syntaxThemeCss = createThemeCss({
light: githubLightTheme,
dark: githubDarkTheme,
lightSelector: ':root',
darkSelector: '.dark',
})