Storybook
  • Theme

  • Light
  • Dark
  • System
  • Light tone

  • Light
  • Light high contrast
  • Light colorblind
  • Light Tritanopia
  • Dark tone

  • Dark
  • Dark dimmed
  • Dark high contrast
  • Dark colorblind
  • Dark Tritanopia
  • Reset to default

Styled HTML

Adds styling to HTML. This can be used to format HTML generated by a Markdown library, or to create consistent layout of HTML content.

Text

Text can be bold, italic, or strikethrough. Links should be blue with no underlines (unless hovered over).

Paragraph

There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.

There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.

Blockquote

There should be no margin above this first sentence.

Blockquotes should be a lighter gray with a gray border along the left side.

There should be no margin below this final sentence.

This is a normal paragraph following a blockquote.

Heading

Heading 1

This is a normal paragraph following a heading.

Heading 2

This is a normal paragraph following a heading.

Heading 3

This is a normal paragraph following a heading.

Heading 4

This is a normal paragraph following a heading.

Heading 5

This is a normal paragraph following a heading.

Heading 6

This is a normal paragraph following a heading.

Code

Code snippets like var foo = "bar"; can be shown inline.

Also, this should vertically align with this and this.

Code can also be shown in a block element.

var foo = "bar";

Code can also use syntax highlighting.

var foo = "bar";
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
var foo = "The same thing is true for code with syntax highlighting. A single line of code should horizontally scroll if it is really long.";

Inline code inside table cells should still be distinguishable.

Language Code
JavasScript var foo = "bar";
Ruby foo = "bar"

List

Unordered list:

  • This is an unordered list.
  • This is an unordered list.
  • This is an unordered list.

Ordered list:

  1. This is an ordered list.
  2. This is an ordered list.
  3. This is an ordered list.

Ordered task list:

  • Create a sample markdown document
  • Add task lists to it
  • Take a vacation

"Mixed" task list:

  • Steal underpants
  • ?
  • Profit!

Nested list:

  • Jackson 5
    • Michael
    • Tito
    • Jackie
    • Marlon
    • Jermaine
  • TMNT
    • Leonardo
    • Michelangelo
    • Donatello
    • Raphael

Definition list

Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green

Table

What Follows
A table A header
A table A header
A table A header

Tables should have bold headings and alternating shaded rows.

Artist Album Year
David Bowie Scary Monsters 1980
Prince Purple Rain 1982
Beastie Boys License to Ill 1986
Janet Jackson Rhythm Nation 1814 1989

If a table is too wide, it should condense down and/or scroll horizontally.

Artist Album Year Label Songs
David Bowie Scary Monsters 1980 RCA Records It's No Game (No. 1), Up the Hill Backwards, Scary Monsters (And Super Creeps), Ashes to Ashes, Fashion, Teenage Wildlife, Scream Like a Baby, Kingdom Come, Because You're Young, It's No Game (No. 2)
Prince Purple Rain 1982 Warner Brothers Records Let's Go Crazy, Take Me With U, The Beautiful Ones, Computer Blue, Darling Nikki, When Doves Cry, I Would Die 4 U, Baby I'm a Star, Purple Rain
Beastie Boys License to Ill 1986 Def Jam Rhymin & Stealin, The New Style, She's Crafty, Posse in Effect, Slow Ride, Girls, Fight for Your Right, No Sleep till Brooklyn, Paul Revere, "Hold It Now, Hit It", Brass Monkey, Slow and Low, Time to Get Ill
Janet Jackson Rhythm Nation 1814 1989 A&M Interlude: Pledge, Rhythm Nation, Interlude: T.V., State of the World, Interlude: Race, The Knowledge, Interlude: Let's Dance, Miss You Much, Interlude: Come Back, Love Will Never Do (Without You), Livin' in a World (They Didn't Make), Alright, Interlude: Hey Baby, Escapade, Interlude: No Acid, Black Cat, Lonely, Come Back to Me, Someday Is Tonight, Interlude: Livin'...In Complete Darkness

Rule


There's a horizontal rule above and below this.


Samp

The samp HTML element is used to enclose inline text which represents sample (or quoted) output from a computer program. Here an example of an error message: File not found

Image

Small images should be shown at their actual size.

Large images should always scale down and fit in the content container.

Footnote

Here's a simple footnote,1 and here's a longer one.2

Footnotes

  1. This is the first footnote.

  2. Here's one with multiple paragraphs and code.

    Indent paragraphs to include them in the footnote.

    { my code }

    Add as many paragraphs as you like.