🎨

Extended Markdown Editor - Typography

Welcome! If you navigate to the editor (after logging in with Google) you can create pages like this one by using a mixture of markdown and extra components.

  • B toggles sidebar.
  • K toggles search.
  • E toggles preview.
    • E toggles fullscreen preview.
  • Editor shortcuts (while typing in editor):
    • / opens command pallet, search for any markdown or component syntax without needing to memorize.
      • Also search for any icon () and special key binding ( ).
      • Search "Upload Image" to download an image and have the markdown automatically generated to point to your freshly uploaded image!
    • B bold (also works for highlighted characters).
    • I italic (also works for highlighted characters).
    • V paste formatted text gets translated and pasted as markdown.

For any color properties, here are your options:

ColorDescription
primaryMain brand color, used as the default color for components.
secondarySecondary color to complement the primary color.
successUsed for success states.
warningUsed for warning states.
infoUsed for informational states.
neutralNeutral color for backgrounds, text, etc.

This is an h1

While Nuxt UI is free and open source, Nuxt UI Pro is a premium product that helps sustain Nuxt OSS development, check out the License section to learn more.

strong text (can be triggered with B)

Emphasized text (can be triggered with I)

The world is flat We now know that the world is round.

I need to highlight these very important words.

x2 is a square

H2O

  • I'm a list item.
    • I'm nested.
  • I'm the last list item.
  1. I'm a list item.
    1. I'm another list item. Use tab or 2 spaces to indent for a nested list
  2. I'm the last list item.
PropDefaultType
namestring
sizemdstring
colorneutralstring

Nuxt Social Image

Inline code

inline code

You can style inline code with any of the colors

inline code

Syntax highlight inline code by adding a language using the lang prop:

const isFalse = (b: boolean) => !b

PropDefaultType
langstring
colorneutral"error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"

Syntax highlight by adding a language

    
      
const isFalse = (b: boolean) => {
return !b
}

Add a name or filename:

is-true.ts
    
      
const isTrue = (b: boolean) => {
return b
}

Energy ee and mass mm are related in the following way: e=mc2e = mc^2

y=i=0n1(1+r/12)12ni=0n1r0ir0ny = \sum_{i=0}^{n-1} (1 + r/12)^{12n} - \sum_{i=0}^{n-1} r_0^i - r_0^n

Just add a link to a youtube video and it will render as a playable video on the page

PropDefaultType
type"single""multiple" | "single"

Label here

PropDefaultType
color"primary""error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"

Lorem velit voluptate ex reprehenderit ullamco et culpa.

PropDefaultType
color"neutral""error" | "primary" | "secondary" | "success" | "info" | "warning" | "neutral"
iconstring
linkstring

You can also use the notetip, warning and caution shortcuts with pre-defined icons and colors:

Here's some additional information.

Here's a helpful suggestion.

Be careful with this action as it might have unexpected results.

This action cannot be undone.

main.css

    
      
@import "tailwindcss";
@import "@nuxt/ui";
@theme static {
--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;
}
PropDefaultType
icon'chevron-down'string The icon displayed to toggle the code.
namestring The name displayed in the trigger label.
openText'Expand'string The text displayed when the code is collapsed.
closeText'Collapse'string The text displayed when the code is expanded.
openfalseboolean

Wrap your code-blocks around a code-group component to group them together in tabs.

    
      
pnpm add @nuxt/ui
PropDefaultType
'defaultValue'0number | string
app.config.ts
    
      
export default defineAppConfig({
ui: {
colors: {
primary: 'sky',
colors: 'slate'
}
}
})
PropsDefaultType
defaultValuestring The default tab to select.
expandAllfalseboolean Expand all directories by default.
PropsDefaultType
icon'chevron-down'string The icon displayed to toggle the show/hide button
namestring The name displayed in the trigger label
openText'Show'string The text displayed when the content is collapsed
closeText'Hide'string The text disolayed when the content is expanded

A field, prop or parameter to display in your content.

name
stringrequired

The description can be set here with inline markdown support.

PropDefaultType
namestring
typestring
requiredfalseboolean
analytics
boolean

Default to false - Enables analytics for your project (coming soon).

blob
boolean

Default to false - Enables blob storage to store static assets, such as images, videos and more.

cache
boolean

Default to false - Enables cache storage to cache your server route responses or functions using Nitro's cachedEventHandler and cachedFunction

database
boolean

Default to false - Enables SQL database to store your application's data.

Find icon names from heroicons or just type / and search for the icon you are looking for.

Icons can be displayed inline:

PropDefaultType
namestring

Search for special keys by typing / such as   and 

Search by pressing K

PropDefaultType
valuestring

Use the tabs and tabs-item components to display tabs in your content.

    
      
::callout
Lorem velit voluptate ex reprehenderit ullamco et culpa.
::
PropsDefaultType
defaultValue0string

Wrap your headings with the Steps component to display a list of steps.

Use the level prop to define which heading will be used for the steps.

nuxt.config.ts
    
      
export default defineNuxtConfig({
modules: ['@nuxt/ui']
})
assets/css/main.css
    
      
@import "tailwindcss";
@import "@nuxt/ui";
Step -1 of 0
PropDefaultType
level'3'"3" | "2" | "4"