mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): new home page, docs, and design system (#566)
Co-authored-by: Darius Cepulis <dcepulis@mux.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Darius Cepulis
Claude Opus 4.6
parent
f2f9e6ddc3
commit
351a3e8bda
@@ -12,7 +12,7 @@ export default function Shared({ code, lang, highlighter }: SharedProps) {
|
||||
const hast = highlighter.codeToHast(code, {
|
||||
lang,
|
||||
themes: {
|
||||
light: 'gruvbox-light-hard',
|
||||
light: 'gruvbox-dark-hard',
|
||||
dark: 'gruvbox-dark-soft',
|
||||
},
|
||||
});
|
||||
@@ -39,7 +39,7 @@ export default function Shared({ code, lang, highlighter }: SharedProps) {
|
||||
const { class: codeClassName } = codeProps;
|
||||
|
||||
return (
|
||||
<pre className={clsx('shiki', preClassName)}>
|
||||
<pre className={clsx('shiki text-manila-light', preClassName)}>
|
||||
<code className={clsx('font-mono text-code', codeClassName)} dangerouslySetInnerHTML={{ __html: html }} />
|
||||
</pre>
|
||||
);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { createHighlighter as libCreateHighlighter } from 'shiki';
|
||||
import gruvboxDarkHard from 'shiki/themes/gruvbox-dark-hard.mjs';
|
||||
import gruvboxDarkSoft from 'shiki/themes/gruvbox-dark-soft.mjs';
|
||||
import gruvboxLightHard from 'shiki/themes/gruvbox-light-hard.mjs';
|
||||
|
||||
export default function createHighlighter(config: Omit<Parameters<typeof libCreateHighlighter>[0], 'themes'>) {
|
||||
return libCreateHighlighter({
|
||||
...config,
|
||||
themes: [gruvboxLightHard, gruvboxDarkSoft],
|
||||
themes: [gruvboxDarkHard, gruvboxDarkSoft],
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user