layout: default
Description
The layout: default
layout is probably the most common slide type. It is a full screen slide with a title and content. The title is displayed in a large font size and the content is displayed in a smaller font size.
Frontmatter
layout: default
(required).color:
(optional) can be any of the color scheme options. If not provided, the default color iswhite
.
Example:
yaml
---
layout: default
color: white
---
Slots
This default
slide has no explicitly slots, using only the default slot.
Examples
Basic example
md
---
layout: default
---
# This is the `default` layout
This is kind of the basic slide. The main content is interpreted as
markdown and rendered in the center of the slide.
Speaking of markdown, you can use markdown to make things **bold** or
_italic_ or even `code` like `this`. In **Neversink** you can also
==highlight things using the double equals signs like this== thanks
to the `markdown-it-mark` plugin.
Of course you can make bullet lists:
- Hi
- There
- Bananas
and use all the Slidev [markdown features](https://sli.dev/guide/syntax) like LaTeX math $x^2$, etc...
Renders as:
Dark and stormy
md
---
layout: default
color: navy
---
# This is the `default` layout
This is kind of the basic slide. The main content is interpreted as
markdown and rendered in the center of the slide.
Speaking of markdown, you can use markdown to make things **bold** or
_italic_ or even `code` like `this`. In **Neversink** you can also
==highlight things using the double equals signs like this== thanks
to the `markdown-it-mark` plugin.
Of course you can make bullet lists:
- Hi
- There
- Bananas
and use all the Slidev [markdown features](https://sli.dev/guide/syntax) like LaTeX math $x^2$, etc...
Renders as: