A red-accented dark Shiki code theme for Unlearn. Syntax
is highlighted with the brand red accent (#ff3b30) over neutral greys, instead
of a default multicolour palette.
npm i -D shiki-unlearnimport { codeToHtml } from 'shiki'
import { unlearn } from 'shiki-unlearn'
const html = await codeToHtml(code, { lang: 'ts', theme: unlearn })import { defineShikiSetup } from '@slidev/types'
import { unlearn } from 'shiki-unlearn'
export default defineShikiSetup(() => ({
themes: {
dark: unlearn,
light: unlearn,
},
}))MIT