Complete Syntax Guide

Master every feature of Taildown's elegant markup language.


Quick Navigation

Basics

Components

Reference


Markdown Compatibility

Taildown is a superset of Markdown - every valid Markdown document is also valid Taildown.

Headings

# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6

Text Formatting

*italic* or _italic_
**bold** or __bold__
***bold italic***
~~strikethrough~~

Lists

Unordered:

- Item one
- Item two
  - Nested item
  - Another nested

Ordered:

1. First item
2. Second item
   1. Nested ordered
   2. Another nested

Links and Images

[Link text](https://example.com)
[Link with title](https://example.com "Title text")

![Alt text](image.jpg)
![Image with title](image.jpg "Image title")

Code

Inline code:

Use `backticks` for inline code

Blockquotes

> This is a blockquote
> It can span multiple lines
>
> > And can be nested

Tables

| Feature | Status | Notes |
|---------|--------|-------|
| Tables  || Full GFM support |
| Alignment || Left, center, right |

Horizontal Rules

---
***
___

Inline Attributes

Add styling to any element using curly brace notation.

Basic Syntax

Attributes use {...} at the end of elements:

# Heading {large-bold center}
Paragraph {muted}
[Link](#){button primary}

Attribute Types

1. CSS Classes (prefix with .):

{.text-4xl .font-bold .text-center}

2. Plain English Shorthands:

{large-bold center primary}

3. Component Variants:

{button primary large}
{badge success}
{alert error}

4. Key-Value Pairs:

{id="unique-id"}
{modal="Modal content"}
{tooltip="Help text"}

Where to Use Them

Headings:

# Main Title {huge-bold center}
## Subtitle {large-primary}
### Section {muted}

Paragraphs:

This is large bold text. {large-bold}

This is centered and muted. {center muted}

Links:

[Regular link](https://example.com)
[Button link](#){button primary}
[Badge link](#){badge success}

Multiple Attributes

Combine multiple attributes with spaces:

{large-bold center primary rounded}
{button primary large hover-lift}
{subtle-glass padded-xl rounded-xl}

Plain English Styling

Style using natural English instead of CSS classes.

The Natural English Principle

Taildown uses adjective-noun order (how English works), not property-value order (how CSS works).

Natural English

Reads like natural language!

CSS Style (Don't use)

Unnatural and confusing.

Typography

Sizes:

{xs} {small} {base} {large} {xl} {2xl} {3xl} {huge} {massive}

Weights:

{thin} {light} {normal} {medium} {semibold} {bold} {extra-bold} {black}

Combinations:

{large-bold} {huge-bold} {xl-semibold} {small-light}

Colors:

{primary} {secondary} {success} {warning} {error} {info} {muted}

Styles:

{italic} {uppercase} {lowercase} {capitalize}

Layout

Alignment:

{center} {left} {right} {justify}

Flexbox:

{flex} {flex-col} {flex-row} {flex-center}

Grid:

{grid-2} {grid-3} {grid-4}
{cols-2} {cols-3} {cols-4}

Spacing:

{padded} {padded-sm} {padded-lg} {padded-xl}
{gap} {gap-sm} {gap-lg} {gap-xl}
{tight} {relaxed} {loose}

Visual Effects

Borders:

{rounded} {rounded-sm} {rounded-lg} {rounded-xl} {rounded-full}

Shadows:

{shadow} {shadow-sm} {shadow-lg} {elevated} {floating}

Glassmorphism:

{subtle-glass} {light-glass} {glass} {heavy-glass}

Animations:

{fade-in} {slide-up} {slide-down} {zoom-in}
{hover-lift} {hover-glow} {hover-scale}
{fast} {smooth} {slow}

Icon Syntax

Embed beautiful SVG icons anywhere with :icon[name] syntax.

Basic Usage

:icon[home]
:icon[heart]
:icon[star]

Result:

With Attributes

:icon[check]{success}
:icon[alert-triangle]{warning large}
:icon[heart]{error xl}
:icon[zap]{primary huge}

Result:

Size Keywords

:icon[star]{tiny}    → 12px
:icon[star]{xs}      → 16px
:icon[star]{sm}      → 20px
:icon[star]{md}      → 24px (default)
:icon[star]{lg}      → 32px
:icon[star]{xl}      → 40px
:icon[star]{2xl}     → 48px
:icon[star]{huge}    → 64px

Color Keywords

:icon[circle]{primary}
:icon[circle]{secondary}
:icon[circle]{success}
:icon[circle]{warning}
:icon[circle]{error}
:icon[circle]{info}

Result:

In Lists

Icons at the start of list items automatically hide the bullet:

- :icon[check]{success} Completed task
- :icon[circle]{warning} In progress
- :icon[x]{error} Failed task

Result:

Popular Icons

Navigation: home, menu, search, settings, user, bell, mail
Actions: check, x, plus, minus, edit, trash, download, upload
Arrows: arrow-right, arrow-left, chevron-right, chevron-down
Status: check-circle, x-circle, alert-circle, alert-triangle, info
UI: heart, star, bookmark, share, link, eye, calendar
Social: github, twitter, facebook, linkedin, youtube

Browse all 1000+ icons at lucide.dev →


Component Blocks

Wrap content in components using :::name fences.

Basic Syntax

:::card
Content inside a card
:::

With Attributes

:::card {glass padded rounded-xl}
Beautiful glassmorphic card
:::

Nesting

:::grid {cols-2}
:::card
Column 1
:::

:::card
Column 2
:::
:::

Standard Components

Layout:

Feedback:

Navigation:


Interactive Components

Zero-config JavaScript generation for interactive components.

Tabs

Create tabbed interfaces using headings:

:::tabs
## Tab One
Content for first tab

## Tab Two
Content for second tab

## Tab Three
Content for third tab
:::

Features:

Accordion

Expandable sections using bold text:

:::accordion
**First Section**
Content for first section

**Second Section**
Content for second section

**Third Section**
Content for third section
:::

Features:

Carousel

Slideshow using horizontal rules:

:::carousel
First slide content

---

Second slide content

---

Third slide content
:::

Features:

Modal & Tooltip

Attachable to any element:

[Click me](#){button modal="Simple alert!"}
[Hover me](#){tooltip="Help text"}

With ID references:

[Open Modal](#){button modal="#my-modal"}

:::modal {id="my-modal"}
# Modal Title
Rich content with **markdown** support
:::

Features:

Math Equations

LaTeX math rendering with zero runtime JS:

Inline math: $E = mc^2$ is Einstein's famous equation.

Display math (centered):

$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$

Features:

Common Examples:

Greek letters: $\alpha$, $\beta$, $\gamma$

Fractions: $\frac{numerator}{denominator}$

Summations: $\sum_{i=1}^{n} i$

Integrals: $\int_{-\infty}^{\infty} e^{-x^2} dx$

Matrices:

$$
\begin{bmatrix}
1 & 0 \\
0 & 1
\end{bmatrix}
$$

Timeline

Chronological events and milestones:

:::timeline
## Project Kickoff {completed}

Initial planning and requirements gathering.

## Development Sprint 1 {current}

Building core features and functionality.

## Testing & QA

Comprehensive testing phase.
:::

Features:

Variants:

:::timeline {centered}
Alternating left/right alignment

:::timeline {compact}
Smaller markers, tighter spacing

:::timeline {glass}
Glassmorphism effect on content

:::timeline {elevated}
Shadow elevation on content cards

:::timeline {bordered}
Primary color border on content

Examples:

# Project Roadmap

:::timeline {glass}
## Phase 1: Research {completed}
User research and market analysis  
Duration: 4 weeks

## Phase 2: Design {completed}
Wireframes and prototypes  
Duration: 6 weeks

## Phase 3: Development {current}
Building core features  
Duration: 12 weeks (in progress)

## Phase 4: Launch
Testing and deployment  
Duration: 4 weeks (upcoming)
:::

# Daily Schedule

:::timeline {compact}
## 9:00 AM {completed}
Team standup meeting

## 12:00 PM {current}
Lunch break

## 2:00 PM
Code review session
:::

Quick Reference Card

Inline Attributes

# Text {attributes}
Paragraph {attributes}
[Link](#){attributes}

Types:

Icons

:icon[name]
:icon[name]{size}
:icon[name]{color size}

Sizes: tiny, xs, sm, md, lg, xl, 2xl, huge
Colors:primary, success, warning, error, info

Components

:::component-name
Content
:::

:::component {attributes}
Content with attributes
:::

Common:card, grid, tabs, accordion, carousel, modal, tooltip, alert, navbar, table, compare-images

Plain English

Typography:

Layout:

Effects:


Enhanced Table Component

Professional tables with sorting, zebra striping, and glass effects - zero JavaScript unless you need sorting.

Basic Syntax

Tables use standard GitHub Flavored Markdown with an attribute block:

| Name | Role | Status |
|------|------|--------|
| Alice | Developer | Active |
| Bob | Designer | Active |
{sortable zebra}

Live Example - Sortable Table

Employee Department Salary Status
Alice Chen Engineering $95,000 Active
Bob Smith Design $82,000 Active
Charlie Davis Product $105,000 Active
Diana Wilson Marketing $78,000 Active

Try clicking the headers to sort!

Variants

Styling:

Sizes:

Usage Examples

# Data table with sorting
| ID | Name | Value |
|----|------|-------|
| 1 | Item A | 100 |
| 2 | Item B | 200 |
{sortable bordered}

# Metrics dashboard
| Metric | Q1 | Q2 | Q3 |
|--------|-----|-----|-----|
| Revenue | $1.2M | $1.5M | $1.8M |
| Users | 10.5K | 12.3K | 14.8K |
{glass sticky-header zebra}

# Compact data list
| Key | Value |
|-----|-------|
| Version | 2.1.0 |
| License | MIT |
{compact sm}

Image Comparison Slider

Interactive before/after comparisons with draggable slider - perfect for showcasing transformations.

Basic Syntax

:::compare-images {horizontal}
before: https://example.com/before.jpg
after: https://example.com/after.jpg
alt: Transformation showcase
:::

Orientation Variants

Horizontal (default):

:::compare-images {horizontal}
before: /images/old-workspace.jpg
after: /images/new-workspace.jpg
alt: Office renovation
:::

Vertical:

:::compare-images {vertical}
before: /images/design-v1.png
after: /images/design-v2.png
alt: Design evolution
:::

With Labels

Add {labels} to show "Before" and "After" overlays:

:::compare-images {horizontal labels}
before: /photos/original.jpg
after: /photos/edited.jpg
alt: Photo editing showcase
:::

Size Variants

Control the height with size modifiers:

# Small (280px, great for thumbnails)
:::compare-images {sm}
before: /img/a.jpg
after: /img/b.jpg
:::

# Medium (450px, default)
:::compare-images {md}
before: /img/a.jpg
after: /img/b.jpg
:::

# Large (580px)
:::compare-images {lg labels}
before: /img/a.jpg
after: /img/b.jpg
:::

# Extra Large (700px, for hero sections)
:::compare-images {xl labels glass}
before: /img/a.jpg
after: /img/b.jpg
:::

Visual Effects

Glass Effect:

:::compare-images {glass labels}
before: /img/before.jpg
after: /img/after.jpg
:::

Enhanced Shadow:

:::compare-images {shadow labels}
before: /img/before.jpg
after: /img/after.jpg
:::

Features

Interaction:

Accessibility:

Zero-Config Beauty:


Complete Component List

Component Purpose Usage Variants
card Content container :::card glass, elevated, padded
grid Column layout :::grid {cols-3} cols-2, cols-3, cols-4
button-group Button layout :::button-group left, center, right
alert Messages :::alert {success} info, success, warning, error
navbar Site navigation :::navbar glass, solid, minimal
tabs Tabbed interface :::tabs Uses headings as tabs
accordion Expandable sections :::accordion Uses bold text as triggers
carousel Slideshow :::carousel Uses --- as dividers
modal Dialog overlay Attach with modal="..." Inline or ID-referenced
tooltip Contextual help Attach with tooltip="..." Inline or ID-referenced
badge Inline label [Text](#){badge} primary, success, warning
button Button styling [Text](#){button} primary, secondary, outline
table Enhanced tables GFM table + {attributes} sortable, zebra, glass, sticky-header
compare-images Image comparison :::compare-images horizontal, vertical, labels, glass

Complete Shorthand Reference

Typography Shorthands

Shorthand CSS Equivalent Description
xs text-xs Extra small (12px)
small text-sm Small (14px)
base text-base Base (16px)
large text-lg Large (18px)
xl text-xl Extra large (20px)
2xl text-2xl 2X large (24px)
3xl text-3xl 3X large (30px)
huge text-4xl Huge (36px)
massive text-5xl Massive (48px)
thin font-thin Thin weight (100)
light font-light Light weight (300)
normal font-normal Normal weight (400)
medium font-medium Medium weight (500)
semibold font-semibold Semibold (600)
bold font-bold Bold (700)
extra-bold font-extrabold Extra bold (800)
black font-black Black (900)

Color Shorthands

Shorthand Description
primary Primary brand color (blue)
secondary Secondary color (purple)
accent Accent color
success Success green
warning Warning yellow/orange
error Error red
info Info blue
muted Muted gray

Layout Shorthands

Shorthand Description
center Center align text
left Left align text
right Right align text
padded Standard padding
padded-sm Small padding
padded-lg Large padding
padded-xl Extra large padding
gap Standard gap
gap-sm Small gap
gap-lg Large gap
flex Flex display
flex-col Flex column direction
flex-center Flex centered
grid-2 2 column grid
grid-3 3 column grid
grid-4 4 column grid

Effect Shorthands

Shorthand Description
rounded Rounded corners
rounded-lg Large rounded corners
rounded-xl Extra large rounded
rounded-full Fully rounded (pill)
shadow Standard shadow
shadow-lg Large shadow
elevated Elevated shadow
subtle-glass Subtle glass effect
light-glass Light glass effect
glass Standard glass effect
heavy-glass Heavy glass effect
fade-in Fade in animation
slide-up Slide up animation
hover-lift Lift on hover
hover-glow Glow on hover
hover-scale Scale on hover

Combination Shorthands

Natural combinations work automatically:


Next Steps

You're now a Taildown expert!

Ready to build something beautiful?