Getting Started with Docus

Docus and Markdown

Docus feature, markdown and component

Basic Syntax

Header 1

Header 2 {#custom-id}

bold text

blockquote message

italicized text

--- (This is a horizontal line)

code

Markdown Guide

List

  1. First item
  2. Second item
  • First item
  • Second item
    • x
    • y

Image

alt text

Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

Table

SyntaxDescription
HeaderTitle
ParagraphText

term : definition Here's a sentence with a footnote. Look at the footnote at the bottom of the page. ^1The world is flat.

  • Tasklist example
  • Tasklist example

That is so funny! 😂

I need to highlight these ==very important words==.

H2O X^2^

Programming Language

Declare the codeblock with the language's code to auto format in codeblock.

nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@nuxt/ui"],
});

MDC (Nuxt Specific Markdown Component)

:: used to declare a special component in the md file. # used to define a named slot.

Code Preview

The code below show how it will be displayed in the final page.

nuxt.config.ts
export default defineNuxtConfig({
  modules: ["@nuxt/ui"],
});

Tip

Icons are already defined by default, but you can customize them in your app.config.ts:
app.config.ts
export default defineAppConfig({
  ui: {
    prose: {
      codeIcon: {
        terminal: "i-ph-terminal-window-duotone",
      },
    },
  },
});

CodeGroup

Group code blocks in tabs using code-group. code-group is perfect for showing code examples in multiple languages or package managers.

pnpm add @nuxt/ui

CodeTree

Display code blocks in a file tree view using code-tree. code-tree is excellent for showcasing project structures and file relationships.

app/app.config.ts
export default defineAppConfig({
  ui: {
    colors: {
      primary: 'sky',
      colors: 'slate'
    }
  }
})

CodePreview

Use code-preview to show code output alongside the code. code-preview is ideal for interactive examples and demonstrating code results. Write the code to be previewed in the default slot and the actual code in the #code slot.

inline code
`inline code`

CodeCollapse

Use code-collapse for long code blocks to keep pages clean. code-collapse allows users to expand code blocks only when needed, improving readability.

main.css
@import "tailwindcss";
@import "@nuxt/ui";

@theme {
  --font-sans: "Public Sans", sans-serif;

  --breakpoint-3xl: 1920px;

  --color-green-50: #effdf5;
  --color-green-100: #d9fbe8;
  --color-green-200: #b3f5d1;
  --color-green-300: #75edae;
  --color-green-400: #00dc82;
  --color-green-500: #00c16a;
  --color-green-600: #00a155;
  --color-green-700: #007f45;
  --color-green-800: #016538;
  --color-green-900: #0a5331;
  --color-green-950: #052e16;
}

Accordion

Use the accordion and accordion-item components to display an Accordion in your content.

Collapsible

Wrap your content with the collapsible component to display a Collapsible in your content.

Callout

Here's some additional information for you.
Here's a helpful suggestion.
Be careful with this action as it might have unexpected results.
This action cannot be undone.

Card and CardGroup

Card group together in a grid layout.

Dashboard

A dashboard with multi-column layout.

SaaS

A template with landing, pricing, docs and blog.

Docs

A documentation with @nuxt/content.

Landing

A landing page you can use as starting point.

Custom Components

Icon

In the Docus and Nuxt UI ecosystem, icons are powered by Iconify. It's coded as i-<source>-<icon-name>. In default, nuxt use lucide icons. We can add custom icons by configuring nuxt.config.ts. View Icones to view all available icons.

Icon NameIcon
i-lucide-github
i-mdi-github
i-logos-vue

Styles on Markdown

The framework use standard tailwindcss for styling. Simply wrap the text with [] and add the style with {}. Example: [styled text]{.text-primary.font-bold}.

Mermaid Diagrams

Mermaid allows you to create diagrams and visualizations using text and code. name must be provided.

Mermaid Diagram: demo-diagram

Copyright © 2026 Nut17. All rights reserved.