---
title: "Custom Popup Styles for WordPress – Modal Kit Pro"
description: "Make your own modal styles in WordPress with Modal Kit Pro’s Style editor: colours, fonts, corners and shadow, a live preview and contrast checks."
language: "en-US"
canonical_url: "https://modalkitwp.com/style-editor/"
source_url: "https://modalkitwp.com/style-editor/"
content_type: "text/markdown"
---

Style editor · Pro

# Make a style of your *own*.

The Style editor in Settings → Styles changes a style’s colours, fonts, corners and shadow while a live preview shows the result. When two colours are hard to read together, it suggests the closest one that passes. Modals that use the style change as soon as you save.

[Get Pro](https://modalkitwp.com/pricing/)

[See what it changes](#controls)

13

**Colours**

Panel, accent, overlay and full screen, each with a colour picker and a field for the value.

3

**Font roles**

Headings, text and codes, from fonts your site has or a stack you type.

4.5:1

**Contrast for text**

What text aims for against the colour behind it. Field borders aim for 3:1.

100

**Undo steps**

Kept while the editor is open, with Ctrl+Z and Ctrl+Shift+Z.

Where you start

## A new style, one of yours, or a copy

Everything happens in **Modal Kit → Settings → Styles**, which lists each style with its source and the modals that use it. Pro adds the editor to that table.

**New style**

Above the table

Opens the editor on a copy of Fieldnote, called New style. Give it a name and change what you like.

**Edit**

Styles listed as Yours or Imported

Changes the style itself. Every modal that uses it changes when you save.

**Edit a copy**

Built-in styles: Fieldnote, Harbor and Night

Built-in styles can’t change, so the editor opens a copy named after the original, such as “Harbor copy”.

![The Style editor open on a new style: the About and Panel groups on the left with the name and the surface, text and muted text colours; on the right the Centred, Desktop and Light page switches over a sample offer modal; along the bottom “Contrast passes”, undo, redo, Reset and Save.](https://modalkitwp.com/content/modules/modalkitwp-blocks/assets/docs/style-editor.webp)




		New style opens the editor: the controls on the left, the live preview on the right.

What you can change

## Colours, fonts, corners and shadow

The controls sit on the left in groups, with the preview beside them. Every colour has WordPress’s colour picker and a field for a hex or rgba value. A value a setting can’t take is pointed out and isn’t applied.

**Panel**

Surface · Text · Muted text · Lines · Field borders

The modal’s background, its text, and the lines and field borders inside it.

**Accent**

Accent · Accent, strong · Text on accent · Tint

Buttons take the accent, with **Text on accent** on top of it.

**Overlay and full screen**

Overlay · Full-screen background · Full-screen text · Full-screen accent

The colour behind the modal, and the full-screen layout’s own background, text and accent.

**Fonts**

Headings · Text · Codes

Fonts your site already has (Modal Kit’s, your theme’s and the Font Library’s) or a **Custom stack…**. Headings also take a weight, letter spacing and size.

**Corners**

Panel · Buttons · Fields

Sliders from 0 to 40px. **Pill** makes buttons fully round.

**Shadow**

None · Soft · Medium · Strong · Custom

Four ready-made shadows, or any CSS box-shadow of your own.

Live preview

## See it on a modal while you work

The preview is a sample modal, an offer with an email field and two buttons, drawn with your site’s own modal stylesheet and fonts. It follows every change as you make it. Try its three switches here.



				Centred
				Full screen


				Desktop
				Phone


				Light page
				Dark page















				×
				Members
				15% off your first order
				Join the list and we’ll email the code.
				you@example.com
				Send my codeNo thanks




Contrast checks

## It tells you when text is hard to read

Once you’ve picked a colour (the picker closed, or you left the field), a colour that’s hard to read against another says so, with its ratio and the one to aim for.

**Use #…** offers the closest colour of the same tint that passes against every colour it clashes with. One click applies it.

It’s a suggestion. You can keep your colour and save; the bar along the bottom says how many pairs fall short.

It’s the same check an import runs, and your site checks the values again when you save.

On a colour

Hard to read with Tint: 1.6:1 (aim for 4.5:1). **Use #7c6253**

Along the bottom, when pairs fall short

2 colour pairs may be hard for visitors to read. You can still save: Muted text / Surface 1.8:1, Muted text / Tint 1.6:1

And when they all pass

✓ Contrast passes: text 14.3:1, buttons 6.8:1.

How the suggestion is found: it keeps the colour’s hue and saturation and changes only how light or dark it is, 1% at a time in both directions, until every pair passes (the WCAG 2 contrast formula). So you get the nearest colour that works, not the starkest. If no lightness gets there, there’s no suggestion.

Undo and save

## Try things, step back, then save

Styles you make here are listed as **Yours**, and export and import like any other.

**Undo and Redo**

Every change is a step, up to 100 while the editor is open. Dragging a slider or typing in one field counts as one step. Ctrl+Z and Ctrl+Shift+Z work too.

**Reset**

Takes the style back to how it was when you opened the editor.

**Save or Save as new**

Save replaces the style. Save as new asks for a name and makes a copy, leaving the original as it was.

**Renaming**

A new name also renames the style’s export file and its class. Modals that use it follow.

**Modals change on save**

Every modal that uses the style changes as soon as you save. A static export needs exporting again.

**Nothing lost by accident**

Closing with unsaved changes asks “Discard your changes?” first, so you can keep editing.

In the free plugin

## Six styles, with import and export

The Style editor is the Pro part. Picking, importing and exporting styles is free, so a style you make can go to any site with Modal Kit.

**Native** (the default), **Soft** and **Editorial** follow your theme’s colours and fonts.

**Fieldnote**, **Harbor** and **Night** bring their own colours and fonts, served from your site, never from Google Fonts. Each can take your theme’s primary colour or an accent you pick.

Pick one from the tiles in the Modal block’s **Styles** tab. Hover a tile, or use the arrow keys, to preview it on the canvas.

**Import style…** checks a .json file first: missing colours come from Fieldnote, anything that isn’t a colour or size is dropped, and text that may be hard to read is pointed out.

In **Settings → Styles**, export one style as .json or several as .zip, with **Include font files** if you want them, or **Duplicate** a built-in style.

![The Modal block’s Styles tab in the block editor: tiles for Native, Soft and Editorial under Follows your theme, and Fieldnote, Harbor and Night under Modal Kit styles, beside a modal on the canvas.](https://modalkitwp.com/content/modules/modalkitwp-blocks/assets/docs/styles.webp)




		The style tiles in the block editor, free in every plan.

In the docs

[Styles →](https://modalkitwp.com/docs/styles/)

[Defaults for new modals →](https://modalkitwp.com/docs/defaults/)

## Your colours and fonts, in every modal.

[Get Pro](https://modalkitwp.com/pricing/)

[Compare Free and Pro](https://modalkitwp.com/free-vs-pro/)
