Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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-unlearn

Usage

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

About

A red-accented dark Shiki code theme for Unlearn

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages