UI kit reference
code/shiki-theme
import { … } from 'zidane-ui'ui/src/code/shiki-theme.ts
Functions#
defaultShikiThemeFunction#
The neutral code theme for an appearance: what a theme without a designed counterpart uses.
function defaultShikiTheme(appearance: Appearance): CodeThemeIdParameters
| Name | Type | Description |
|---|---|---|
| appearance | Appearance |
|
Returns
CodeThemeIdgithub-dark-default or github-light-default.
shikiThemeForFunction#
The bundled code theme for a kit theme: its designed counterpart (Catppuccin, Gruvbox…), else the neutral theme of its appearance.
function shikiThemeFor(themeId: string, appearance: Appearance): CodeThemeIdParameters
| Name | Type | Description |
|---|---|---|
| themeId | string | The kit theme's id ( |
| appearance | Appearance | The theme's appearance, for the fallback. |
Returns
CodeThemeIdA code theme id.