# Style a presentation with CSS and LESS

[Canonical article](https://slides.com/docs/custom-css)

Available on: Pro

The CSS editor lets you freely author custom styles for your presentation. It&#39;s available as an option inside of the Style panel of the editor.

The editor supports [LESS](https://lesscss.org/), and plain CSS works as well. Styles are previewed as you type. When saved, they are automatically scoped within a `.reveal {}` selector to prevent conflicts with the surrounding page.

## Custom fonts
You can load custom fonts from Typekit and Google fonts and apply them to your content using CSS.

[Find out more](/docs/custom-fonts).

## Developer mode
If you turn on the [developer mode](/docs/developer-mode) you&#39;ll be able to easily add custom classes to any focused element. This is a great way to apply your CSS to specific elements.

## Slide classes

Use the special `//= class-name` syntax to make custom class names available in the presentation editor. This example adds a class that blurs a slide:

```less
//= blurry-slide
.blurry-slide { filter: blur(5px); }
```

&lt;img src=&quot;https://static.slid.es/help/custom-css-pro/slide-custom-class-27084ab7.png&quot; alt=&quot;Slide classes popup with a custom blur class selected&quot; width=&quot;1782&quot; height=&quot;1384&quot;&gt;

## Example selectors

These selectors target common presentation elements:

```less
// Apply a background color to all slides
.slide-background {
    background-color: indigo;
}

// Control arrow color
.controls button {
    color: #ff0000;
}

// Fill color for the presentation progress bar
.progress span {
    background: #ff0000;
}

// Body text color
.slides {
    color: #009999;
}

// Link color
.slides a {
    color: red;
}

// Turn text white if the slide has a dark background
.has-dark-background {
    color: #fff;
}

// Larger slide numbers (if slide numbers are enabled for the deck)
.slide-number {
    font-size: 20px;
}

// Add a blue border to all slides (each slide is a &lt;section&gt;)
.slides section {
    outline: 1px solid blue;
}

// Add a red border to all vertical stacks of slides
.slides section.stack {
    outline: 1px solid red;
}

// Include a custom font
@font-face {
  font-family: &quot;Cabin Sketch&quot;;
  src: url(&quot;https://s3.amazonaws.com/static.slid.es/fonts/cabinsketch/cabinsketch-regular.woff&quot;) format(&quot;woff&quot;),
       url(&quot;https://s3.amazonaws.com/static.slid.es/fonts/cabinsketch/cabinsketch-regular.ttf&quot;) format(&quot;truetype&quot;);
}

.slides h1, .slides h2, .slides h3 {
    font-family: &quot;Cabin Sketch&quot;;
}
```

Here&#39;s where you can access the CSS editor from inside of the Style panel:

&lt;img src=&quot;https://static.slid.es/help/custom-css-pro/css-editor-1.png&quot; alt=&quot;CSS editor option in the Style panel&quot; width=&quot;3414&quot; height=&quot;1290&quot;&gt;

A screenshot of the editor:

&lt;img src=&quot;https://static.slid.es/help/custom-css-pro/css-editor-2.png&quot; alt=&quot;Custom CSS editor with a live presentation preview&quot; width=&quot;3414&quot; height=&quot;1290&quot;&gt;
