logoAnt Design X

DesignDevelopmentComponentsX SDKX MarkdownPlayground
  • Introduction
  • Code Examples
  • Streaming Rendering
  • Components
  • Themes
  • Plugins
    • Overview
    • LatexFormula
    • HighlightCode
    • MermaidDiagram
    • CustomPlugins

Themes

Resources

Ant Design
Ant Design Charts
Ant Design Pro
Pro Components
Ant Design Mobile
Ant Design Mini
Ant Design Web3
Ant Design Landing-Landing Templates
Scaffolds-Scaffold Market
Umi-React Application Framework
dumi-Component doc generator
qiankun-Micro-Frontends Framework
Ant Motion-Motion Solution
China Mirror 🇨🇳

Community

Awesome Ant Design
Medium
Twitter
yuque logoAnt Design in YuQue
Ant Design in Zhihu
Experience Cloud Blog
seeconf logoSEE Conf-Experience Tech Conference

Help

GitHub
Change Log
FAQ
Bug Report
Issues
Discussions
StackOverflow
SegmentFault

Ant XTech logoMore Products

yuque logoYuQue-Document Collaboration Platform
AntV logoAntV-Data Visualization
Egg logoEgg-Enterprise Node.js Framework
Kitchen logoKitchen-Sketch Toolkit
Galacean logoGalacean-Interactive Graphics Solution
xtech logoAnt Financial Experience Tech
Theme Editor
Made with ❤ by
Ant Group and Ant Design Community

How to Import Themes

Import from @ant-design/x-markdown/themes/theme-name.css

tsx
import { XMarkdown } from '@ant-design/x-markdown';
import '@ant-design/x-markdown/themes/light.css';
return <XMarkdown className="x-markdown-light" content="" />;

Browser Import

Use script and link tags to directly import files in browser, and inject className to the component.

html
<script src="**/dist/themes/light.css"></script>

Demos

Contributing Themes

light
CodeSandbox Icon
codepen icon
External Link Icon
expand codeexpand code
dark
CodeSandbox Icon
codepen icon
External Link Icon
expand codeexpand code