πΎ Markdown Cheat Sheet for Warp Docs β
This guide is for designers, content editors, and anyone writing documentation in Warp's VitePress-based system. It shows what you can do in Markdown, with optional Vue components and styling extensions.
π Basic Markdown Syntax β
Feature | Syntax Example | Notes |
---|---|---|
Headings | # H1 , ## H2 , ### H3 | Use for structure |
Lists | - item , 1. item | Ordered & unordered |
Links | [Warp](https://warp-ds.dev) | |
Images |  | Local or remote |
Code (inline) | `const x = 5;` | Inline code |
Code block | js\nconst hello = 'world';\nconsole.log(hello);\n | Syntax highlighting |
Tables | Create simple data tables, SEE Example further down | |
Blockquote | > This is a tip or note | Use for callouts or tips |
Full Examples β
Headings β
# Heading 1
## Heading 2
### Heading 3
Lists β
- Apple
- Banana
- Cherry
1. First step
2. Second step
3. Final step
Links β
[Visit Warp DS](https://warp-ds.dev)
Images β

Inline Code β
To declare a variable: `const x = 10;`
Code Block β
```js
function greet(name) {
return `Hello, ${name}!`;
}
```
Tables β
| Feature | Status |
|---------|--------|
| Tabs | β
|
| Cards | β
|
| Alerts | β |
Blockquote β
> Always write semantic markup.
π£ Custom Markdown Blocks β
These are VitePress-native containers, enabled by default:
β ::: tip (green) β
TIP
Use consistent spacing in UI.
β οΈ ::: warning (yellow) β
WARNING
Avoid mixing multiple icon styles.
π« ::: danger (red) β
DANGER
Never override token values directly.
βΉοΈ ::: info (blue) β
INFO
You can contribute to the design system documentation.
Each container styles the block with matching color and icon. Use them for notes, cautions, warnings, and callouts.
π Frontmatter Options β
Add these at the top of any new .md
file:
---
title: My Page Title
description: Short SEO text
layout: doc
aside: true
outline: [2, 3]
---
π¦ Custom Components β
<card>
and <cards>
β
<cards>
<card>Text content</card>
<card imgurl="/img.jpg" imgalt="An image">With image</card>
</cards>
- Use
<cards>
to lay out multiple<card>
items - Props:
imgurl
,imgalt
<ComponentStatus>
β
<ComponentStatus
react="released"
vue="developing"
elements="planned"
android="unsupported"
ios="unsupported"
/>
Status | Color |
---|---|
released | green |
developing | yellow |
planned | blue |
unsupported | red |
<do>
, <do not>
, <dodonts>
β
<dodonts>
<do imgurl="/right.png" imgalt="Right">Do this</do>
<do not imgurl="/wrong.png" imgalt="Wrong">Avoid this</do not>
</dodonts>
- Props:
imgurl
,imgalt
,darkmode
- Use
<dodonts>
to automatically layout left/right pairs
<tabs-content>
β
<tabs-content variant="main">
<template #Overview>
Overview content
</template>
<template #Code>
Code snippet here
</template>
</tabs-content>
- Tabs auto-generated from slot names
- Props:
variant="main"
(or other styling), slots like#Overview
,#Usage
, etc.
π£ Custom Markdown Blocks β
::: image-block
<img src="/img.jpg" alt="Decorative" />
:::
- Renders a styled
<div class="styled-image-block">
block - Used for grouping or spotlighting content
βοΈ Keyboard Keys with <kbd>
β
<kbd>Tab</kbd> key opens field
<kbd aria-label="Arrow Down">β</kbd>
Key | Syntax |
---|---|
Enter | <kbd>Enter</kbd> |
Arrow Up | <kbd aria-label="Arrow Up">β</kbd> |
Arrow Down | <kbd aria-label="Arrow Down">β</kbd> |
Arrow Left | <kbd aria-label="Arrow Left">β</kbd> |
Arrow Right | <kbd aria-label="Arrow Right">β</kbd> |
Always use
aria-label
for arrows to help screen readers
π¨ Styling with UnoCSS β
Warp Docs uses @warp-ds/uno
and @warp-ds/preset-docs
:
- Utility classes like
pd-text-sm
,bg-[--vp-c-bg-soft]
,text-[--vp-c-text-1]
- Shortcuts like
ex-box
,ex-font
,ex-pic-no
- Many layout helpers are safelisted and available directly
π§ Tips for Contributors β
- You can use all HTML inside Markdown if needed
- Component names and props are case-sensitive
- Keep slot names simple:
#Overview
,#Usage
, etc. - Ask a dev if a component isnβt rendering β it may need safelisting or registration
β Summary Table β
Feature | Syntax / Component | Notes |
---|---|---|
Tabbed content | <tabs-content> + named slots | Dynamic tab views |
Do/Donβt layout | <dodonts> , <do> | Side-by-side visual guidance |
Status display | <ComponentStatus> | Platform availability by framework |
Cards | <card> , <cards> | Reusable UI content blocks |
Keyboard keys | <kbd> | Document key inputs |
Custom containers | ::: image-block | Highlight visuals/content |
Styling utilities | UnoCSS classes | Utility-first styling |
Need help? Reach out to a developer or maintainer for guidance on using these features in Markdown.