An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {SyntaxTheme} from '@astryxdesign/core/theme';
import {dracula} from '@astryxdesign/core/theme/syntax';
import {CodeBlock} from '@astryxdesign/core/CodeBlock';
const code = `function greet(name: string) {
return \`Hello, \${name}!\`;
}`;
export default function SyntaxThemeDarkPreset() {
return (
<SyntaxTheme theme={dracula}>
<CodeBlock code={code} language="tsx" title="Dracula preset" />
</SyntaxTheme>
);
}