shiki-unlearn
v0.0.1
Published
A red-accented dark Shiki code theme for Unlearn
Maintainers
Readme
shiki-unlearn
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.
Install
npm i -D shiki-unlearnUsage
Shiki
import { codeToHtml } from 'shiki'
import { unlearn } from 'shiki-unlearn'
const html = await codeToHtml(code, { lang: 'ts', theme: unlearn })Slidev (setup/shiki.ts)
import { defineShikiSetup } from '@slidev/types'
import { unlearn } from 'shiki-unlearn'
export default defineShikiSetup(() => ({
themes: {
dark: unlearn,
light: unlearn,
},
}))License
MIT
