Skip to content

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 ​

FeatureSyntax ExampleNotes
Headings# H1, ## H2, ### H3Use for structure
Lists- item, 1. itemOrdered & unordered
Links[Warp](https://warp-ds.dev)
Images![alt text](https://example.com/image.jpg)Local or remote
Code (inline)`const x = 5;`Inline code
Code blockjs\nconst hello = 'world';\nconsole.log(hello);\nSyntax highlighting
TablesCreate simple data tables, SEE Example further down
Blockquote> This is a tip or noteUse for callouts or tips

Full Examples ​

Headings ​

md
# Heading lvl 1
## Heading lvl 2
### Heading lvl3

Bullet list ​

  • Apple
  • Banana
  • Cherry
md
- Apple
- Banana
- Cherry

Numbered list ​

  1. First step
  2. Second step
  3. Final step
md
1. First step
2. Second step
3. Final step

Visit Warp DS

md
[Visit Warp DS](https://warp-ds.dev)

Images ​

THE Warp

md
![THE Warp](/images/la01.jpg)

Inline Code ​

To declare a variable: const x = 10;

md
To declare a variable: `const x = 10;`

Code Block ​

js
function greet(name) {
  return `Hello, ${name}!`;
}
```js
function greet(name) {
  return `Hello, ${name}!`;
}
```

Tables ​

FeatureStatus
Tabsβœ…
Cardsβœ…
Alerts❌
md
| Feature | Status |
|---------|--------|
| Tabs    | βœ…     |
| Cards   | βœ…     |
| Alerts  | ❌     |

Blockquote ​

Always write semantic markup.

md
> Always write semantic markup.

Custom Markdown Blocks ​

Each container styles the block with matching color and icon. Use them for notes, cautions, warnings, and callouts.

::: tip (blue) ​

TIP

Use consistent spacing in UI.

md
::: tip
Use consistent spacing in UI.
:::
::: warning (yellow) ​

WARNING

Avoid mixing multiple icon styles.

md
::: warning
Avoid mixing multiple icon styles.
:::
::: danger (red) ​

DANGER

Never override token values directly.

md
::: danger
Never override token values directly.
:::
::: image-block ​

THE Warp

md
::: image-block
![THE Warp](/images/la01.jpg)
:::

Keyboard Keys with <kbd> ​

Tab key opens field

↓

Hit the W Key to move forewards

md
<kbd>Tab</kbd> key opens field
<kbd aria-label="Arrow Down">↓</kbd>
Hit the <kbd>W</kbd> Key to move forewards
KeySyntax
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 and other cryptic letters to help screen readers


(βŒβ– _β– ) Advanced features ​

Frontmatter Options ​

This is the main configuration for each main page (typically a index.md in the structure). If you are making a new page from an excisting structure its probably easier to copy a already excisting page as a startingpoint. Add these at the top of any new .md file:

yaml
---
title: My Page Title
description: Short SEO text
layout: doc
aside: true
outline: [2, 3]
---

<card> and <cards> ​

md
<cards>
  <card>Text content</card>
  <card imgurl="/images/la01.jpg" imgalt="An image">With image</card>
</cards>
  • Use <cards> to lay out multiple <card> items
  • Props: imgurl, imgalt

<ComponentStatus> ​

md
<ComponentStatus
  react="released"
  vue="developing"
  elements="planned"
  android="unsupported"
  ios="unsupported"
/>
StatusColor
releasedgreen
developingyellow
plannedblue
unsupportedred

<do>, <do not>, <dodonts> ​

md
<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> ​

md
<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.

🎨 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

Need help? Reach out to a developer or maintainer for guidance on using these features in Markdown.