# Theme token reference

This page lists the foundation tokens and the semantic tokens of the CKEditor 5 UI theme. These are the CSS variables that you override most often:

* **Foundation tokens** are the raw values of the theme: the color palette, such as `--ck-color-base-action`, and the scales, such as the spacing steps `--ck-spacing-sm` and `--ck-spacing-md`. Override them for a broad change, such as a new brand color or a denser UI.
* **Semantic tokens** name a design role shared by many components, such as the background of a panel or the focus ring of a control. Override them to change one role across the whole UI, or to fine-tune the result of a broad change.

The [Theme customization](theme-customization.md) guide explains how to choose a layer and where to set an override.

The list is generated from the theme source files at every documentation build, so it always matches the theme of this version. The component tokens are not on this page.

<a id="how-to-read-the-list"></a>

## How to read the list

Each row shows the name of a token, the first sentence of its description, and its value in the default theme, with a preview. The details of a row hold the rest of the description, the default value as the theme declares it, the value that it resolves to, the tokens that it follows and that follow it, and the contrast pairs.

The steps of a scale, such as `--ck-spacing-sm`, have no description of their own. The description of their file, above their rows, explains the whole scale and, when the scale has one, the token that resizes it, such as `--ck-spacing-base`.

On the page, the filter above the list matches the names, the descriptions, and the values. A row must contain every word that you type, so `surface overlay` finds the tokens that mention both words.

<a id="token-chains"></a>

### Token chains

Most tokens read the value of another token. The details show this chain in both directions:

* **Follows** names the tokens that the token reads. A legacy name or a deprecated alias in between is skipped, so the list names the token to override.
* **Followed by** names the tokens on this page whose default declaration on `:root` (or `:host` in a shadow root) reads the token, directly or through other tokens. They change when you override the token on `:root`. An override on a narrower selector does not change them, because the theme resolves them on `:root`. The [Theme customization](theme-customization.md#global-vs-scoped-overrides) guide explains global and scoped overrides.

For example, the theme declares the fill of the primary buttons like this:

```css
:root {
	--ck-color-base-action: hsl(227.7 62.7% 55.9%);
	--ck-color-interactive-primary-surface: var(--ck-color-base-action);
}
```

The details of `--ck-color-interactive-primary-surface` show `--ck-color-base-action` under **Follows**, and the details of `--ck-color-base-action` show `--ck-color-interactive-primary-surface` under **Followed by**. Where you override `--ck-color-base-action` decides whether the primary buttons change:

```css
/* Changes the token and every token that follows it,
   so the primary buttons turn green. */
:root {
	--ck-color-base-action: hsl(150 60% 30%);
}

/* Changes only the token itself. The theme resolves
   `--ck-color-interactive-primary-surface` on `:root`, so the
   primary buttons inside `.my-editor` keep the default color. */
.my-editor {
	--ck-color-base-action: hsl(150 60% 30%);
}
```

Check **Followed by** when you plan a broad change. One brand color is often spread over several foundation colors. For example, `--ck-color-base-action` colors the primary buttons, `--ck-color-base-active` colors the accent text and the text of the toggled-on buttons, `--ck-color-base-selected` tints the background of the selected and toggled-on elements, and `--ck-color-base-focus` colors the focus rings. Override all of them, together with their variants, such as `-hover` and `-muted`. Some semantic colors do not follow any foundation color, so a new brand color does not change them. For example, the pulsing glow of the buttons that insert a paragraph next to a widget comes from `--ck-color-interactive-focus-border-coordinates`, which holds the default focus color as fixed values. Override such tokens too:

```css
:root {
	--ck-color-base-action: hsl(150 60% 30%);
	--ck-color-base-action-hover: hsl(150 60% 25%);
	--ck-color-base-action-muted: hsl(150 45% 93%);
	--ck-color-base-action-disabled: hsl(150 60% 70%);
	--ck-color-base-active: hsl(150 60% 30%);
	--ck-color-base-active-focus: hsl(150 60% 25%);
	--ck-color-base-selected: hsl(150 45% 95%);
	--ck-color-base-selected-hover: hsl(150 45% 92%);
	--ck-color-base-focus: hsl(150 60% 30%);
	--ck-color-base-focus-shadow: hsl(150 60% 30% / .22);
	--ck-color-base-focus-shadow-faded: hsl(150 60% 30% / .10);

	/* Does not follow any foundation color, so set it too. */
	--ck-color-interactive-focus-border-coordinates: 150, 60%, 30%;
}
```

A scale can follow another scale. The widths of panels, such as `--ck-width-md`, grow with the font size, so **Followed by** of `--ck-font-size-base` lists them too, and a new font size also resizes the panels. The focus tokens of the foundation, such as `--ck-focus-shadow`, read semantic tokens, such as `--ck-color-interactive-focus-shadow`, so their **Follows** points to the semantic layer.

**Followed by** lists only the tokens on this page, and it traces only their declarations on `:root` (or `:host` in a shadow root). The components and other tokens of the theme can read a token as well, so a token without **Followed by** is not necessarily unused. A token that the theme declares again under another selector can depend on more tokens there. For example, `--ck-radius-corners` reads `--ck-radius-base` inside `.ck-rounded-corners`, so a new base radius changes it too, although **Followed by** of `--ck-radius-base` does not list it. Its description explains this.

<a id="contrast-pairs"></a>

### Contrast pairs

A contrast pair names the content drawn on a background token, such as text or icons. If you change a background, check the contrast of each of its pairs too. The theme marks a pair on the background token only, as described in the [Contrast pairs](theme-token-naming.md#contrast-pairs) section of the Theme token naming guide. This page shows it on both tokens: the background lists its pairs under **Contrast pairs**, and the content token lists its backgrounds under **Used on**.

```css
/**
 * The fill of primary controls.
 * @pair --ck-color-interactive-primary-text
 * @pair --ck-color-surface-canvas
 */
--ck-color-interactive-primary-surface: var(--ck-color-base-action);
```

Here, `--ck-color-interactive-primary-surface` lists both tokens under **Contrast pairs**, and each of them lists `--ck-color-interactive-primary-surface` under **Used on**. The text colors the labels of the action buttons, and the canvas color colors the thumb of a switch that is on.

A light fill needs dark content, so change the fill, its variants, and both pairs together. The canvas color is the background of the whole UI, so do not change it. Override the thumb of a switch that is on with its component token instead:

```css
:root {
	/* A light brand fill and its variants. */
	--ck-color-interactive-primary-surface: hsl(50 100% 60%);
	--ck-color-interactive-primary-surface-hover: hsl(50 100% 50%);
	--ck-color-interactive-primary-surface-muted: hsl(50 100% 93%);
	--ck-color-interactive-primary-surface-disabled: hsl(50 100% 80%);

	/* The default text is white, which has a contrast ratio
	   of 1.34:1 on this fill. */
	--ck-color-interactive-primary-text: hsl(0 0% 10%);
}

/* The white thumb has the same contrast ratio. A switch that is off
   keeps it, because a dark thumb is hard to see on its gray fill. */
.ck.ck-switchbutton.ck-on {
	--ck-switch-button-inner-background-color: hsl(0 0% 10%);
}
```

The page computes the contrast ratio of every pair in the default theme. A translucent background is first composited over the canvas color, `--ck-color-surface-canvas`. The ratios are rounded down, so the page never shows a ratio higher than it is.

A pair does not tell what its content is, such as text, an icon, or a decoration, so the page shows the ratio without a verdict. Compare it with the minimum for the content. The Web Content Accessibility Guidelines require 4.5:1 for normal text and 3:1 for large text in [Contrast (Minimum)](https://www.w3.org/WAI/WCAG22/Understanding/contrast-minimum.html), and 3:1 for icons, borders, and other parts of the UI that you need to see to use it in [Non-text Contrast](https://www.w3.org/WAI/WCAG22/Understanding/non-text-contrast.html).

If the page cannot read a color of a pair, for example a color that is not `hsl()`, it shows **contrast not computed** instead of the ratio.

<a id="deprecated-tokens"></a>

### Deprecated tokens

A token marked as deprecated is kept for compatibility, as described in the [Deprecated tokens](theme-token-naming.md#deprecated-tokens) section of the Theme token naming guide. The theme still declares it, but new code and new overrides should use the token named in its details under **Use instead**. Being deprecated does not mean that the token will be removed.

<a id="foundation"></a>

## Foundation

<a id="foundation-colors"></a>

### Colors

Source: `colors/_foundation.css`

The raw color palette of the theme. Semantic tokens give these colors a role. Read the semantic tokens in components, not these.

* <a id="--ck-color-base-foreground"></a>

  `--ck-color-base-foreground`: Background color of subtle surfaces.

  * Default: `hsl(0 0% 97%)`
  * Followed by:
    * [`--ck-color-surface-subtle`](#--ck-color-surface-subtle)

* <a id="--ck-color-base-background"></a>

  `--ck-color-base-background`: Default background color across the UI.

  * Default: `hsl(0 0% 100%)`

  * Followed by:

    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas)
    * [`--ck-color-surface-control`](#--ck-color-surface-control)
    * [`--ck-color-surface-container`](#--ck-color-surface-container)
    * [`--ck-color-text-inverse`](#--ck-color-text-inverse)
    * [`--ck-color-interactive-primary-text`](#--ck-color-interactive-primary-text)

* <a id="--ck-color-base-border"></a>

  `--ck-color-base-border`: Default border color across the UI.

  * Default: `hsl(214.7 21.3% 82.5%)`

  * Followed by:

    * [`--ck-color-border-control`](#--ck-color-border-control)
    * [`--ck-color-border-container`](#--ck-color-border-container)
    * [`--ck-color-divider`](#--ck-color-divider)
    * [`--ck-border-control`](#--ck-border-control)
    * [`--ck-border-surface`](#--ck-border-surface)

* <a id="--ck-color-base-border-light"></a>

  `--ck-color-base-border-light`: Border color for low-emphasis borders and separators.

  * Default: `hsl(214 39% 93%)`
  * Followed by:
    * [`--ck-color-border-subtle`](#--ck-color-border-subtle)

* <a id="--ck-color-base-action"></a>

  `--ck-color-base-action`: Main color of primary actions.

  * Default: `hsl(227.7 62.7% 55.9%)`
  * Followed by:
    * [`--ck-color-interactive-primary-surface`](#--ck-color-interactive-primary-surface)

* <a id="--ck-color-base-action-hover"></a>

  `--ck-color-base-action-hover`: Primary action color on hover.

  * Default: `hsl(227 58% 49%)`
  * Followed by:
    * [`--ck-color-interactive-primary-surface-hover`](#--ck-color-interactive-primary-surface-hover)

* <a id="--ck-color-base-action-muted"></a>

  `--ck-color-base-action-muted`: Primary action color for muted surfaces.

  * Default: `hsl(228 47% 93%)`
  * Followed by:
    * [`--ck-color-interactive-primary-surface-muted`](#--ck-color-interactive-primary-surface-muted)

* <a id="--ck-color-base-action-disabled"></a>

  `--ck-color-base-action-disabled`: Primary action color in the disabled state.

  * Default: `hsl(227.7 62.7% 77.9%)`
  * Followed by:
    * [`--ck-color-interactive-primary-surface-disabled`](#--ck-color-interactive-primary-surface-disabled)

* <a id="--ck-color-base-focus"></a>

  `--ck-color-base-focus`: Color of focus indicators.

  * Default: `hsl(227.7 62.7% 55.9%)`

  * Followed by:

    * [`--ck-focus-ring`](#--ck-focus-ring)
    * [`--ck-focus-border-color`](#--ck-focus-border-color)
    * [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border)
    * [`--ck-color-focus-border`](#--ck-color-focus-border)
    * [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring)
    * [`--ck-interactive-focus-border-color`](#--ck-interactive-focus-border-color)

* <a id="--ck-color-base-text"></a>

  `--ck-color-base-text`: Default text color across the UI.

  * Default: `hsl(216 41% 12%)`

  * Followed by:

    * [`--ck-color-surface-inverse`](#--ck-color-surface-inverse)
    * [`--ck-color-text-primary`](#--ck-color-text-primary)
    * [`--ck-color-text`](#--ck-color-text)

* <a id="--ck-color-base-text-light"></a>

  `--ck-color-base-text-light`: Color of secondary text and icons.

  * Default: `hsl(215 19% 40%)`

  * Followed by:

    * [`--ck-color-text-secondary`](#--ck-color-text-secondary)
    * [`--ck-color-text-disabled`](#--ck-color-text-disabled)

* <a id="--ck-color-base-active"></a>

  `--ck-color-base-active`: Accent color of active elements, such as accent text and icons.

  * Default: `hsl(227.7 62.7% 55.9%)`

  * Followed by:

    * [`--ck-color-border-accent`](#--ck-color-border-accent)
    * [`--ck-color-text-accent`](#--ck-color-text-accent)
    * [`--ck-color-interactive-selected-text`](#--ck-color-interactive-selected-text)

* <a id="--ck-color-base-active-focus"></a>

  `--ck-color-base-active-focus`: Accent color of an active element that is also hovered or focused.

  * Default: `hsl(227 58% 49%)`

* <a id="--ck-color-base-hover"></a>

  `--ck-color-base-hover`: Background color of hovered and pressed controls.

  * Default: `hsl(225 20% 96%)`

  * Followed by:

    * [`--ck-color-interactive-hover-surface`](#--ck-color-interactive-hover-surface)
    * [`--ck-color-interactive-active-surface`](#--ck-color-interactive-active-surface)

* <a id="--ck-color-base-hover-strong"></a>

  `--ck-color-base-hover-strong`: Stronger hover background, for controls on tinted surfaces where the default one does not show.

  * Default: `hsl(225 24% 93%)`
  * Followed by:
    * [`--ck-color-interactive-hover-surface-strong`](#--ck-color-interactive-hover-surface-strong)

* <a id="--ck-color-base-selected"></a>

  `--ck-color-base-selected`: Background color of selected and toggled-on elements.

  * Default: `hsl(220 78.9% 96.3%)`
  * Followed by:
    * [`--ck-color-interactive-selected-surface`](#--ck-color-interactive-selected-surface)

* <a id="--ck-color-base-selected-hover"></a>

  `--ck-color-base-selected-hover`: Background color of selected elements on hover.

  * Default: `hsl(221 81% 94%)`
  * Followed by:
    * [`--ck-color-interactive-selected-surface-hover`](#--ck-color-interactive-selected-surface-hover)

* <a id="--ck-color-base-error"></a>

  `--ck-color-base-error`: Color of errors.

  * Default: `hsl(0 74.9% 46.9%)`

  * Followed by:

    * [`--ck-color-text-error`](#--ck-color-text-error)
    * [`--ck-color-feedback-error`](#--ck-color-feedback-error)
    * [`--ck-color-feedback-error-surface`](#--ck-color-feedback-error-surface)

* <a id="--ck-color-base-warning"></a>

  `--ck-color-base-warning`: Color of warnings.

  * Default: `hsl(37 81% 50%)`

  * Followed by:

    * [`--ck-color-feedback-warning`](#--ck-color-feedback-warning)
    * [`--ck-color-feedback-warning-surface`](#--ck-color-feedback-warning-surface)

* <a id="--ck-color-base-success"></a>

  `--ck-color-base-success`: Color of success states.

  * Default: `hsl(157.2 77.1% 27.5%)`

  * Followed by:

    * [`--ck-color-feedback-success`](#--ck-color-feedback-success)
    * [`--ck-color-feedback-success-surface`](#--ck-color-feedback-success-surface)

* <a id="--ck-color-base-highlight"></a>

  `--ck-color-base-highlight`: Background color of highlighted text, such as search results.

  * Default: `hsl(60 100% 50%)`
  * Followed by:
    * [`--ck-color-feedback-highlight`](#--ck-color-feedback-highlight)

* <a id="--ck-color-base-attention"></a>

  `--ck-color-base-attention`: Color that draws attention to an element.

  * Default: `hsl(41.9 86.9% 55.1%)`

* <a id="--ck-color-base-focus-shadow"></a>

  `--ck-color-base-focus-shadow`: Color of the focus shadow around a focused control.

  * Default: `hsl(227.6 63.1% 56.5% / .22)`

  * Followed by:

    * [`--ck-focus-shadow`](#--ck-focus-shadow)
    * [`--ck-color-interactive-focus-shadow`](#--ck-color-interactive-focus-shadow)
    * [`--ck-color-focus-outer-shadow`](#--ck-color-focus-outer-shadow)
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)

* <a id="--ck-color-base-focus-shadow-faded"></a>

  `--ck-color-base-focus-shadow-faded`: Color of the focus shadow around a focused disabled control.

  * Default: `hsl(227.6 63.1% 56.5% / .10)`

  * Followed by:

    * [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)
    * [`--ck-color-interactive-focus-disabled-shadow`](#--ck-color-interactive-focus-disabled-shadow)
    * [`--ck-color-focus-disabled-shadow`](#--ck-color-focus-disabled-shadow)
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)

* <a id="--ck-color-base-error-shadow"></a>

  `--ck-color-base-error-shadow`: Color of the focus shadow around a control with an error.

  * Default: `hsl(0 64.3% 94.5%)`

  * Followed by:

    * [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)
    * [`--ck-color-interactive-focus-error-shadow`](#--ck-color-interactive-focus-error-shadow)
    * [`--ck-color-focus-error-shadow`](#--ck-color-focus-error-shadow)
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

* <a id="--ck-color-shadow-drop"></a>

  `--ck-color-shadow-drop`: Color of drop shadows.

  * Default: `hsl(0 0% 0% / 0.125)`
  * Followed by:
    * [`--ck-shadow-md`](#--ck-shadow-md)

* <a id="--ck-color-shadow-drop-active"></a>

  `--ck-color-shadow-drop-active`: Color of a stronger drop shadow.

  * Default: `hsl(0 0% 0% / 0.2)`

* <a id="--ck-color-shadow-inner"></a>

  `--ck-color-shadow-inner`: Color of the hover ring around the switch button toggle.

  * Default: `hsl(0 0% 0% / 0.1)`

* <a id="--ck-color-base-diff-insertion"></a>

  `--ck-color-base-diff-insertion`: Base color of inserted content in change markers.

  An HSL triplet, not a color. Use it as `hsl(var(--ck-color-base-diff-insertion) / <alpha>)`.

  * Default: `157 80% 34%`

  * Followed by:

    * [`--ck-color-diff-insertion-border`](#--ck-color-diff-insertion-border)
    * [`--ck-color-diff-insertion-border-active`](#--ck-color-diff-insertion-border-active)
    * [`--ck-color-diff-insertion-background`](#--ck-color-diff-insertion-background)
    * [`--ck-color-diff-insertion-background-active`](#--ck-color-diff-insertion-background-active)

* <a id="--ck-color-base-diff-deletion"></a>

  `--ck-color-base-diff-deletion`: Base color of deleted content in change markers.

  An HSL triplet, not a color. Use it as `hsl(var(--ck-color-base-diff-deletion) / <alpha>)`.

  * Default: `0 75% 52%`

  * Followed by:

    * [`--ck-color-diff-deletion-border`](#--ck-color-diff-deletion-border)
    * [`--ck-color-diff-deletion-border-active`](#--ck-color-diff-deletion-border-active)
    * [`--ck-color-diff-deletion-background`](#--ck-color-diff-deletion-background)
    * [`--ck-color-diff-deletion-background-active`](#--ck-color-diff-deletion-background-active)

* <a id="--ck-color-base-diff-format"></a>

  `--ck-color-base-diff-format`: Base color of formatting changes in change markers.

  An HSL triplet, not a color. Use it as `hsl(var(--ck-color-base-diff-format) / <alpha>)`.

  * Default: `191 60% 75%`
  * Followed by:
    * [`--ck-color-diff-format-border`](#--ck-color-diff-format-border)

* <a id="--ck-color-base-comment"></a>

  `--ck-color-base-comment`: Base color of comment markers.

  An HSL triplet, not a color. Use it as `hsl(var(--ck-color-base-comment) / <alpha>)`.

  * Default: `42.1 95.4% 57.3%`
  * Followed by:
    * [`--ck-color-comment-box-border`](#--ck-color-comment-box-border)

<a id="foundation-spacing"></a>

### Spacing

Source: `_spacing.css`

The spacing scale of the editor UI. Set [`--ck-spacing-base`](#--ck-spacing-base) on `:root` to resize every step. To change the spacing of one group of elements, such as controls, override its semantic spacing role, such as [`--ck-spacing-control-padding-inline`](#--ck-spacing-control-padding-inline), instead.

* <a id="--ck-spacing-base"></a>

  `--ck-spacing-base`

  * Default: `var(--ck-spacing-unit, 8px)`

  * Resolves to: `8px`

  * Followed by:

    * [`--ck-spacing-2xs`](#--ck-spacing-2xs)
    * [`--ck-spacing-xs`](#--ck-spacing-xs)
    * [`--ck-spacing-sm`](#--ck-spacing-sm)
    * [`--ck-spacing-md`](#--ck-spacing-md)
    * [`--ck-spacing-lg`](#--ck-spacing-lg)
    * [`--ck-spacing-xl`](#--ck-spacing-xl)
    * [`--ck-spacing-ms`](#--ck-spacing-ms)
    * [`--ck-spacing-control-padding-block`](#--ck-spacing-control-padding-block)
    * [`--ck-spacing-control-padding-inline`](#--ck-spacing-control-padding-inline)
    * [`--ck-spacing-control-padding-inline-compact`](#--ck-spacing-control-padding-inline-compact)
    * [`--ck-spacing-control-padding-inline-start-compact`](#--ck-spacing-control-padding-inline-start-compact)
    * [`--ck-spacing-control-padding-block-compact`](#--ck-spacing-control-padding-block-compact)
    * [`--ck-spacing-control-icon-gap`](#--ck-spacing-control-icon-gap)
    * [`--ck-spacing-padding-tight`](#--ck-spacing-padding-tight)
    * [`--ck-spacing-padding-compact`](#--ck-spacing-padding-compact)
    * [`--ck-spacing-padding-snug`](#--ck-spacing-padding-snug)
    * [`--ck-spacing-padding`](#--ck-spacing-padding)
    * [`--ck-spacing-padding-comfortable`](#--ck-spacing-padding-comfortable)
    * [`--ck-spacing-padding-spacious`](#--ck-spacing-padding-spacious)
    * [`--ck-spacing-gap-tight`](#--ck-spacing-gap-tight)
    * [`--ck-spacing-gap-compact`](#--ck-spacing-gap-compact)
    * [`--ck-spacing-gap-snug`](#--ck-spacing-gap-snug)
    * [`--ck-spacing-gap`](#--ck-spacing-gap)
    * [`--ck-spacing-gap-comfortable`](#--ck-spacing-gap-comfortable)
    * [`--ck-spacing-gap-spacious`](#--ck-spacing-gap-spacious)

* <a id="--ck-spacing-2xs"></a>

  `--ck-spacing-2xs`

  * Default: `calc(0.125 * var(--ck-spacing-base))`
  * Resolves to: `1px`
  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

* <a id="--ck-spacing-xs"></a>

  `--ck-spacing-xs`

  * Default: `calc(0.25 * var(--ck-spacing-base))`

  * Resolves to: `2px`

  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

  * Followed by:

    * [`--ck-spacing-control-padding-inline-start-compact`](#--ck-spacing-control-padding-inline-start-compact)
    * [`--ck-spacing-control-padding-block-compact`](#--ck-spacing-control-padding-block-compact)
    * [`--ck-spacing-padding-tight`](#--ck-spacing-padding-tight)
    * [`--ck-spacing-gap-tight`](#--ck-spacing-gap-tight)

* <a id="--ck-spacing-sm"></a>

  `--ck-spacing-sm`

  * Default: `calc(0.5 * var(--ck-spacing-base))`

  * Resolves to: `4px`

  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

  * Followed by:

    * [`--ck-spacing-control-padding-block`](#--ck-spacing-control-padding-block)
    * [`--ck-spacing-control-padding-inline-compact`](#--ck-spacing-control-padding-inline-compact)
    * [`--ck-spacing-padding-compact`](#--ck-spacing-padding-compact)
    * [`--ck-spacing-gap-compact`](#--ck-spacing-gap-compact)

* <a id="--ck-spacing-md"></a>

  `--ck-spacing-md`

  * Default: `calc(0.75 * var(--ck-spacing-base))`

  * Resolves to: `6px`

  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

  * Followed by:

    * [`--ck-spacing-ms`](#--ck-spacing-ms)
    * [`--ck-spacing-control-icon-gap`](#--ck-spacing-control-icon-gap)
    * [`--ck-spacing-padding-snug`](#--ck-spacing-padding-snug)
    * [`--ck-spacing-gap-snug`](#--ck-spacing-gap-snug)

* <a id="--ck-spacing-lg"></a>

  `--ck-spacing-lg`

  * Default: `calc(1.5 * var(--ck-spacing-base))`

  * Resolves to: `12px`

  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

  * Followed by:

    * [`--ck-spacing-padding-comfortable`](#--ck-spacing-padding-comfortable)
    * [`--ck-spacing-gap-comfortable`](#--ck-spacing-gap-comfortable)

* <a id="--ck-spacing-xl"></a>

  `--ck-spacing-xl`

  * Default: `calc(2 * var(--ck-spacing-base))`

  * Resolves to: `16px`

  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

  * Followed by:

    * [`--ck-spacing-padding-spacious`](#--ck-spacing-padding-spacious)
    * [`--ck-spacing-gap-spacious`](#--ck-spacing-gap-spacious)

* <a id="--ck-spacing-ms"></a>

  `--ck-spacing-ms` (Deprecated): An alias of [`--ck-spacing-md`](#--ck-spacing-md).

  * Use instead: [`--ck-spacing-md`](#--ck-spacing-md)
  * Default: `var(--ck-spacing-medium-small, var(--ck-spacing-md))`
  * Resolves to: `6px`

<a id="foundation-shape"></a>

### Shape

Source: `_rounded.css`

The radius scale of the editor UI. Set [`--ck-radius-base`](#--ck-radius-base) on `:root` to resize every step. To change the radius of one group of elements, such as controls, override its semantic radius role, such as [`--ck-border-radius-control`](#--ck-border-radius-control), instead.

* <a id="--ck-radius-base"></a>

  `--ck-radius-base`

  * Default: `var(--ck-radius-unit, 8px)`

  * Resolves to: `8px`

  * Followed by:

    * [`--ck-radius-xs`](#--ck-radius-xs)
    * [`--ck-radius-sm`](#--ck-radius-sm)
    * [`--ck-radius-md`](#--ck-radius-md)
    * [`--ck-radius-lg`](#--ck-radius-lg)
    * [`--ck-radius-xl`](#--ck-radius-xl)
    * [`--ck-border-radius-control`](#--ck-border-radius-control)
    * [`--ck-border-radius-control-small`](#--ck-border-radius-control-small)
    * [`--ck-border-radius-surface`](#--ck-border-radius-surface)
    * [`--ck-border-radius-uniform`](#--ck-border-radius-uniform)
    * [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)
    * [`--ck-border-radius-surface-attached-top`](#--ck-border-radius-surface-attached-top)
    * [`--ck-border-radius-surface-attached-bottom`](#--ck-border-radius-surface-attached-bottom)
    * [`--ck-border-radius-surface-cut-top-left`](#--ck-border-radius-surface-cut-top-left)
    * [`--ck-border-radius-surface-cut-top-right`](#--ck-border-radius-surface-cut-top-right)
    * [`--ck-border-radius-surface-cut-bottom-right`](#--ck-border-radius-surface-cut-bottom-right)
    * [`--ck-border-radius-surface-cut-bottom-left`](#--ck-border-radius-surface-cut-bottom-left)

* <a id="--ck-radius-xs"></a>

  `--ck-radius-xs`

  * Default: `calc(var(--ck-border-radius, var(--ck-radius-base)) / 8)`
  * Resolves to: `1px`
  * Follows: [`--ck-radius-base`](#--ck-radius-base)

* <a id="--ck-radius-sm"></a>

  `--ck-radius-sm`

  * Default: `calc(var(--ck-border-radius, var(--ck-radius-base)) / 4)`
  * Resolves to: `2px`
  * Follows: [`--ck-radius-base`](#--ck-radius-base)
  * Followed by:
    * [`--ck-border-radius-control-small`](#--ck-border-radius-control-small)

* <a id="--ck-radius-md"></a>

  `--ck-radius-md`

  * Default: `calc(var(--ck-border-radius, var(--ck-radius-base)) / 2)`
  * Resolves to: `4px`
  * Follows: [`--ck-radius-base`](#--ck-radius-base)
  * Followed by:
    * [`--ck-border-radius-control`](#--ck-border-radius-control)

* <a id="--ck-radius-lg"></a>

  `--ck-radius-lg`

  * Default: `calc(var(--ck-border-radius, var(--ck-radius-base)) * 1.5)`
  * Resolves to: `12px`
  * Follows: [`--ck-radius-base`](#--ck-radius-base)

* <a id="--ck-radius-xl"></a>

  `--ck-radius-xl`

  * Default: `calc(var(--ck-border-radius, var(--ck-radius-base)) * 2)`
  * Resolves to: `16px`
  * Follows: [`--ck-radius-base`](#--ck-radius-base)

* <a id="--ck-radius-full"></a>

  `--ck-radius-full`: Radius of circular elements.

  It makes a circle only on a square element.

  * Default: `50%`

* <a id="--ck-radius-corners"></a>

  `--ck-radius-corners`: Corner radius of elements that follow the rounded corners switch.

  Such elements are square unless they are inside an element with the `.ck-rounded-corners` class, which the editor UI adds to its root elements. Use it only for elements that follow the switch. Other elements use the semantic radius roles. Inside `.ck-rounded-corners` it reads [`--ck-radius-base`](#--ck-radius-base), so a new base radius changes it too.

  * Default: `0`

Source: `_border.css`

The border width scale of the editor UI. To change the border width of one group of elements, such as controls, override its semantic border width role, such as [`--ck-border-width-control`](#--ck-border-width-control), instead.

* <a id="--ck-border-width-thin"></a>

  `--ck-border-width-thin`

  * Default: `1px`

  * Followed by:

    * [`--ck-border-width-control`](#--ck-border-width-control)
    * [`--ck-border-width-surface`](#--ck-border-width-surface)
    * [`--ck-border-width-divider`](#--ck-border-width-divider)
    * [`--ck-border-control`](#--ck-border-control)
    * [`--ck-border-surface`](#--ck-border-surface)

* <a id="--ck-border-width-thick"></a>

  `--ck-border-width-thick`

  * Default: `2px`
  * Followed by:
    * [`--ck-border-width-emphasis`](#--ck-border-width-emphasis)

Source: `_shadow.css`

The shadow scale of the editor UI. To change the shadow of one group of elements, such as floating panels, override its semantic shadow role, such as [`--ck-shadow-surface-floating`](#--ck-shadow-surface-floating), instead.

* <a id="--ck-inset-shadow-sm"></a>

  `--ck-inset-shadow-sm`: Inset shadow of a focused editing area.

  * Default: `0 1px 4px hsl(0 0% 0% / .05), 0 2px 10px hsl(0 0% 0% / .05) inset`

* <a id="--ck-shadow-md"></a>

  `--ck-shadow-md`

  * Default: `0 1px 2px 1px var(--ck-color-shadow-drop)`
  * Resolves to: `0 1px 2px 1px hsl(0 0% 0% / 0.125)`
  * Follows: [`--ck-color-shadow-drop`](#--ck-color-shadow-drop)

* <a id="--ck-shadow-lg"></a>

  `--ck-shadow-lg`

  * Default: `0 1px 4px hsl(0 0% 0% / .05), 0 2px 10px hsl(0 0% 0% / .05)`
  * Followed by:
    * [`--ck-shadow-surface-raised`](#--ck-shadow-surface-raised)

* <a id="--ck-shadow-xl"></a>

  `--ck-shadow-xl`

  * Default: `0 16px 32px -4px hsl(0 0% 0% / 0.102), 0 4px 16px hsl(0 0% 0% / 0.102)`
  * Followed by:
    * [`--ck-shadow-surface-floating`](#--ck-shadow-surface-floating)

<a id="foundation-typography"></a>

### Typography

Source: `_fonts.css`

The typography scale of the editor UI. Set [`--ck-font-size-base`](#--ck-font-size-base) on `:root` to resize every font size step. It does not change the edited content, which uses `--ck-content-font-size`. To change the font size of one group of elements, such as controls, override its semantic font size role, such as [`--ck-font-size-control`](#--ck-font-size-control), instead. For font weights, use the semantic `--ck-font-weight-ui-*` roles, not these steps.

* <a id="--ck-font-size-base"></a>

  `--ck-font-size-base`

  * Default: `16px`

  * Followed by:

    * [`--ck-font-size-xs`](#--ck-font-size-xs)
    * [`--ck-font-size-sm`](#--ck-font-size-sm)
    * [`--ck-font-size-md`](#--ck-font-size-md)
    * [`--ck-font-size-lg`](#--ck-font-size-lg)
    * [`--ck-font-size-xl`](#--ck-font-size-xl)
    * [`--ck-font-size-2xl`](#--ck-font-size-2xl)
    * [`--ck-width-xs`](#--ck-width-xs)
    * [`--ck-width-sm`](#--ck-width-sm)
    * [`--ck-width-md`](#--ck-width-md)
    * [`--ck-width-lg`](#--ck-width-lg)
    * [`--ck-width-xl`](#--ck-width-xl)
    * [`--ck-width-2xl`](#--ck-width-2xl)
    * [`--ck-font-size-control`](#--ck-font-size-control)
    * [`--ck-width-balloon-form`](#--ck-width-balloon-form)
    * [`--ck-width-dialog-xs`](#--ck-width-dialog-xs)
    * [`--ck-width-dialog-sm`](#--ck-width-dialog-sm)
    * [`--ck-width-dialog`](#--ck-width-dialog)
    * [`--ck-width-dialog-lg`](#--ck-width-dialog-lg)
    * [`--ck-width-dialog-xl`](#--ck-width-dialog-xl)
    * [`--ck-size-control-min-height`](#--ck-size-control-min-height)

* <a id="--ck-line-height-base"></a>

  `--ck-line-height-base`: Default line height across the UI.

  Keep it unitless, because components multiply it by a font size. It does not change the edited content, which uses `--ck-content-line-height`.

  * Default: `1.5`

* <a id="--ck-font-family"></a>

  `--ck-font-family`: Default font stack across the UI.

  It does not change the font of the edited content, which uses `--ck-content-font-family`.

  * Default: `system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"`

* <a id="--ck-font-size-xs"></a>

  `--ck-font-size-xs`

  * Default: `calc(0.625 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `10px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-font-size-sm"></a>

  `--ck-font-size-sm`

  * Default: `calc(0.75 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `12px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-font-size-md"></a>

  `--ck-font-size-md`

  * Default: `calc(0.875 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `14px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)
  * Followed by:
    * [`--ck-font-size-control`](#--ck-font-size-control)

* <a id="--ck-font-size-lg"></a>

  `--ck-font-size-lg`

  * Default: `calc(1.125 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `18px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-font-size-xl"></a>

  `--ck-font-size-xl`

  * Default: `calc(1.25 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `20px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-font-size-2xl"></a>

  `--ck-font-size-2xl`

  * Default: `calc(1.5 * var(--ck-font-size-normal, var(--ck-font-size-base)))`
  * Resolves to: `24px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-font-weight-normal"></a>

  `--ck-font-weight-normal`

  * Default: `400`

  * Followed by:

    * [`--ck-font-weight-ui-default`](#--ck-font-weight-ui-default)
    * [`--ck-font-weight-ui-muted`](#--ck-font-weight-ui-muted)

* <a id="--ck-font-weight-medium"></a>

  `--ck-font-weight-medium`

  * Default: `500`

* <a id="--ck-font-weight-semibold"></a>

  `--ck-font-weight-semibold`

  * Default: `600`

  * Followed by:

    * [`--ck-font-weight-ui-strong`](#--ck-font-weight-ui-strong)
    * [`--ck-font-weight-ui-heading`](#--ck-font-weight-ui-heading)
    * [`--ck-font-weight-ui-label`](#--ck-font-weight-ui-label)
    * [`--ck-font-weight-ui-emphasis`](#--ck-font-weight-ui-emphasis)

* <a id="--ck-font-weight-bold"></a>

  `--ck-font-weight-bold`

  * Default: `700`

<a id="foundation-sizes"></a>

### Sizes

Source: `_width.css`

The width scale of the editor UI, for panels such as balloon forms and dialogs. Set [`--ck-font-size-base`](#--ck-font-size-base) on `:root` to resize every step together with the font sizes. To change the width of one group of panels, such as dialogs, override its semantic width role, such as [`--ck-width-dialog`](#--ck-width-dialog), instead.

* <a id="--ck-width-xs"></a>

  `--ck-width-xs`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 15)`
  * Resolves to: `240px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)
  * Followed by:
    * [`--ck-width-dialog-xs`](#--ck-width-dialog-xs)

* <a id="--ck-width-sm"></a>

  `--ck-width-sm`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 20)`
  * Resolves to: `320px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)
  * Followed by:
    * [`--ck-width-dialog-sm`](#--ck-width-dialog-sm)

* <a id="--ck-width-md"></a>

  `--ck-width-md`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 25)`

  * Resolves to: `400px`

  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

  * Followed by:

    * [`--ck-width-balloon-form`](#--ck-width-balloon-form)
    * [`--ck-width-dialog`](#--ck-width-dialog)

* <a id="--ck-width-lg"></a>

  `--ck-width-lg`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 30)`
  * Resolves to: `480px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

* <a id="--ck-width-xl"></a>

  `--ck-width-xl`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 35)`
  * Resolves to: `560px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)
  * Followed by:
    * [`--ck-width-dialog-lg`](#--ck-width-dialog-lg)

* <a id="--ck-width-2xl"></a>

  `--ck-width-2xl`

  * Default: `calc(var(--ck-font-size-normal, var(--ck-font-size-base)) * 40)`
  * Resolves to: `640px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)
  * Followed by:
    * [`--ck-width-dialog-xl`](#--ck-width-dialog-xl)

<a id="foundation-layers"></a>

### Layers

Source: `_zindex.css`

The stacking scale of the editor UI: the base layer, floating panels, and modal dialogs. To change the stacking of one group of elements, such as panels, override its semantic layer role, such as [`--ck-layer-panel`](#--ck-layer-panel), instead.

* <a id="--ck-z-base"></a>

  `--ck-z-base`

  * Default: `1`

  * Followed by:

    * [`--ck-z-overlay`](#--ck-z-overlay)
    * [`--ck-layer-base`](#--ck-layer-base)
    * [`--ck-layer-control-raised`](#--ck-layer-control-raised)
    * [`--ck-layer-panel`](#--ck-layer-panel)
    * [`--ck-layer-panel-above`](#--ck-layer-panel-above)
    * [`--ck-layer-panel-below`](#--ck-layer-panel-below)
    * [`--ck-layer-balloon-arrow-back`](#--ck-layer-balloon-arrow-back)
    * [`--ck-layer-balloon-arrow-front`](#--ck-layer-balloon-arrow-front)

* <a id="--ck-z-overlay"></a>

  `--ck-z-overlay`

  * Default: `calc( var(--ck-z-base) + 999 )`

  * Resolves to: `1000`

  * Follows: [`--ck-z-base`](#--ck-z-base)

  * Followed by:

    * [`--ck-layer-panel`](#--ck-layer-panel)
    * [`--ck-layer-panel-above`](#--ck-layer-panel-above)
    * [`--ck-layer-panel-below`](#--ck-layer-panel-below)

* <a id="--ck-z-modal"></a>

  `--ck-z-modal`

  * Default: `9999`

  * Followed by:

    * [`--ck-layer-dialog`](#--ck-layer-dialog)
    * [`--ck-layer-tooltip`](#--ck-layer-tooltip)

<a id="foundation-motion"></a>

### Motion

Source: `_transition.css`

The motion scale of the editor UI: durations, easing curves, and the values of the `transition` and `animation` properties. To change the motion of one group of elements, such as controls, override its semantic motion role, such as [`--ck-transition-duration-control`](#--ck-transition-duration-control), instead.

* <a id="--ck-duration-fast"></a>

  `--ck-duration-fast`

  * Default: `.1s`

  * Followed by:

    * [`--ck-animation-duration-fast`](#--ck-animation-duration-fast)
    * [`--ck-transition-duration-control-fast`](#--ck-transition-duration-control-fast)
    * [`--ck-transition-control-fast`](#--ck-transition-control-fast)

* <a id="--ck-duration-base"></a>

  `--ck-duration-base`

  * Default: `.2s`

  * Followed by:

    * [`--ck-animation-duration-base`](#--ck-animation-duration-base)
    * [`--ck-transition-duration-control`](#--ck-transition-duration-control)
    * [`--ck-transition-control`](#--ck-transition-control)

* <a id="--ck-duration-slow"></a>

  `--ck-duration-slow`

  * Default: `.3s`

  * Followed by:

    * [`--ck-animation-duration-slow`](#--ck-animation-duration-slow)
    * [`--ck-transition-duration-control-emphasized`](#--ck-transition-duration-control-emphasized)
    * [`--ck-animation-duration-feedback`](#--ck-animation-duration-feedback)
    * [`--ck-animation-duration-surface-entrance`](#--ck-animation-duration-surface-entrance)

* <a id="--ck-duration-slower"></a>

  `--ck-duration-slower`

  * Default: `.4s`
  * Followed by:
    * [`--ck-transition-duration-surface`](#--ck-transition-duration-surface)

* <a id="--ck-animation-duration-fast"></a>

  `--ck-animation-duration-fast`: Duration of short animations.

  * Default: `var(--ck-duration-fast)`
  * Resolves to: `.1s`
  * Follows: [`--ck-duration-fast`](#--ck-duration-fast)

* <a id="--ck-animation-duration-base"></a>

  `--ck-animation-duration-base`: Default duration of animations.

  * Default: `var(--ck-duration-base)`
  * Resolves to: `.2s`
  * Follows: [`--ck-duration-base`](#--ck-duration-base)

* <a id="--ck-animation-duration-slow"></a>

  `--ck-animation-duration-slow`: Duration of long animations.

  * Default: `var(--ck-duration-slow)`

  * Resolves to: `.3s`

  * Follows: [`--ck-duration-slow`](#--ck-duration-slow)

  * Followed by:

    * [`--ck-animation-duration-feedback`](#--ck-animation-duration-feedback)
    * [`--ck-animation-duration-surface-entrance`](#--ck-animation-duration-surface-entrance)

* <a id="--ck-animation-duration-emphasis"></a>

  `--ck-animation-duration-emphasis`: Duration of one cycle of a looping progress animation.

  * Default: `1.5s`
  * Followed by:
    * [`--ck-animation-duration-progress`](#--ck-animation-duration-progress)

* <a id="--ck-animation-duration-reduced"></a>

  `--ck-animation-duration-reduced`: Animation duration for users who prefer reduced motion.

  * Default: `0s`
  * Followed by:
    * [`--ck-animation-duration-progress-reduced`](#--ck-animation-duration-progress-reduced)

* <a id="--ck-transition-none"></a>

  `--ck-transition-none`: Value of the `transition` property that turns transitions off, for example when the user prefers reduced motion.

  * Default: `none`
  * Followed by:
    * [`--ck-animation-none`](#--ck-animation-none)

* <a id="--ck-ease-standard"></a>

  `--ck-ease-standard`: Default easing curve across the UI.

  * Default: `ease`

  * Followed by:

    * [`--ck-animation-ease-standard`](#--ck-animation-ease-standard)
    * [`--ck-transition-timing-function-surface`](#--ck-transition-timing-function-surface)
    * [`--ck-animation-timing-function-feedback`](#--ck-animation-timing-function-feedback)

* <a id="--ck-ease-interactive"></a>

  `--ck-ease-interactive`: Easing curve of controls that react to the user, such as hover and focus changes.

  * Default: `ease-in-out`

  * Followed by:

    * [`--ck-animation-ease-interactive`](#--ck-animation-ease-interactive)
    * [`--ck-transition-timing-function-control`](#--ck-transition-timing-function-control)
    * [`--ck-transition-control`](#--ck-transition-control)
    * [`--ck-transition-control-fast`](#--ck-transition-control-fast)

* <a id="--ck-ease-emphasized"></a>

  `--ck-ease-emphasized`: Easing curve of emphasized control transitions.

  * Default: `cubic-bezier(0, 0, 0.24, 0.95)`
  * Followed by:
    * [`--ck-transition-timing-function-control-emphasized`](#--ck-transition-timing-function-control-emphasized)

* <a id="--ck-animation-ease-standard"></a>

  `--ck-animation-ease-standard`: Default easing curve of animations.

  * Default: `var(--ck-ease-standard)`
  * Resolves to: `ease`
  * Follows: [`--ck-ease-standard`](#--ck-ease-standard)
  * Followed by:
    * [`--ck-animation-timing-function-feedback`](#--ck-animation-timing-function-feedback)

* <a id="--ck-animation-ease-interactive"></a>

  `--ck-animation-ease-interactive`: Easing curve of animations that respond to user input.

  * Default: `var(--ck-ease-interactive)`
  * Resolves to: `ease-in-out`
  * Follows: [`--ck-ease-interactive`](#--ck-ease-interactive)

* <a id="--ck-animation-ease-linear"></a>

  `--ck-animation-ease-linear`: Easing curve of animations that run at a constant speed.

  * Default: `linear`
  * Followed by:
    * [`--ck-animation-timing-function-progress`](#--ck-animation-timing-function-progress)

* <a id="--ck-animation-fill-both"></a>

  `--ck-animation-fill-both`: Animation fill mode that keeps the styles of the first keyframe before the animation and of the last one after it.

  * Default: `both`
  * Followed by:
    * [`--ck-animation-fill-mode-feedback`](#--ck-animation-fill-mode-feedback)

* <a id="--ck-animation-repeat-infinite"></a>

  `--ck-animation-repeat-infinite`: Iteration count of animations that loop until they are removed.

  * Default: `infinite`

* <a id="--ck-animation-none"></a>

  `--ck-animation-none`: Value of the `animation` property that turns animations off, for example when the user prefers reduced motion.

  * Default: `var(--ck-transition-none)`
  * Resolves to: `none`
  * Follows: [`--ck-transition-none`](#--ck-transition-none)

<a id="foundation-focus-and-states"></a>

### Focus and states

Source: `_focus.css`

The focus indicators of the editor UI: the shadow around a focused element, its border, and the outline of fake carets. To change the focus look of controls, override the semantic `--ck-interactive-focus-*` roles, such as [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow), instead.

* <a id="--ck-focus-shadow-spread"></a>

  `--ck-focus-shadow-spread`: Width of the focus shadow around a focused element.

  * Default: `3px`

  * Followed by:

    * [`--ck-focus-shadow-geometry`](#--ck-focus-shadow-geometry)
    * [`--ck-focus-shadow`](#--ck-focus-shadow)
    * [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)
    * [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

* <a id="--ck-focus-shadow-geometry"></a>

  `--ck-focus-shadow-geometry`: Shape of the focus shadow, without its color.

  * Default: `0 0 0 var(--ck-focus-shadow-spread)`

  * Resolves to: `0 0 0 3px`

  * Follows: [`--ck-focus-shadow-spread`](#--ck-focus-shadow-spread)

  * Followed by:

    * [`--ck-focus-shadow`](#--ck-focus-shadow)
    * [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)
    * [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

* <a id="--ck-focus-shadow"></a>

  `--ck-focus-shadow`: Default focus shadow across the UI.

  * Default: `var(--ck-focus-outer-shadow-geometry, var(--ck-focus-shadow-geometry)) var(--ck-color-focus-outer-shadow)`
  * Resolves to: `0 0 0 3px hsl(227.6 63.1% 56.5% / .22)`
  * Follows: [`--ck-focus-shadow-geometry`](#--ck-focus-shadow-geometry), [`--ck-color-interactive-focus-shadow`](#--ck-color-interactive-focus-shadow)
  * Followed by:
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)

* <a id="--ck-focus-shadow-disabled"></a>

  `--ck-focus-shadow-disabled`: Focus shadow of a focused disabled element.

  * Default: `var(--ck-focus-outer-shadow-geometry, var(--ck-focus-shadow-geometry)) var(--ck-color-focus-disabled-shadow)`
  * Resolves to: `0 0 0 3px hsl(227.6 63.1% 56.5% / .10)`
  * Follows: [`--ck-focus-shadow-geometry`](#--ck-focus-shadow-geometry), [`--ck-color-interactive-focus-disabled-shadow`](#--ck-color-interactive-focus-disabled-shadow)
  * Followed by:
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)

* <a id="--ck-focus-shadow-error"></a>

  `--ck-focus-shadow-error`: Focus shadow of a focused element with an error.

  * Default: `var(--ck-focus-outer-shadow-geometry, var(--ck-focus-shadow-geometry)) var(--ck-color-focus-error-shadow)`
  * Resolves to: `0 0 0 3px hsl(0 64.3% 94.5%)`
  * Follows: [`--ck-focus-shadow-geometry`](#--ck-focus-shadow-geometry), [`--ck-color-interactive-focus-error-shadow`](#--ck-color-interactive-focus-error-shadow)
  * Followed by:
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

* <a id="--ck-focus-ring"></a>

  `--ck-focus-ring`: Default border of a focused element across the UI.

  Read through the `border` or `outline` shorthand, so it also sets the width and the style.

  * Default: `1px solid var(--ck-color-focus-border)`
  * Resolves to: `1px solid hsl(227.7 62.7% 55.9%)`
  * Follows: [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border)
  * Followed by:
    * [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring)

* <a id="--ck-focus-border-color"></a>

  `--ck-focus-border-color`: Border color of a focused element.

  Use it instead of [`--ck-focus-ring`](#--ck-focus-ring) when the component has its own border width, so the focus does not change the width.

  * Default: `var(--ck-color-base-focus)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Follows: [`--ck-color-base-focus`](#--ck-color-base-focus)

  * Followed by:

    * [`--ck-focus-ring`](#--ck-focus-ring)
    * [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border)
    * [`--ck-color-focus-border`](#--ck-color-focus-border)
    * [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring)
    * [`--ck-interactive-focus-border-color`](#--ck-interactive-focus-border-color)

* <a id="--ck-outline-fake-caret"></a>

  `--ck-outline-fake-caret`: Contrast outline of fake carets and fake collapsed selections, so they stay visible on any background.

  * Default: `solid 1px hsl(0 0% 100% / .5)`

Source: `_disabled.css`

The disabled state of the editor UI. To change how disabled controls look across the UI, override [`--ck-opacity-disabled`](#--ck-opacity-disabled). To change one component, override its component token instead, such as `--ck-button-opacity-disabled`.

* <a id="--ck-opacity-disabled"></a>

  `--ck-opacity-disabled`: Opacity of the parts of disabled controls, such as the label and the icon of a button.

  The background and the border keep their colors.

  * Default: `.5`

<a id="semantic"></a>

## Semantic

<a id="semantic-surfaces-and-borders"></a>

### Surfaces and borders

Source: `colors/_semantic-surface.css`

The surface and border color roles of the editor UI: the backgrounds that the UI is drawn on and the borders around them. To change one kind of surface across the UI, override its role. To change one component, override its component token instead.

* <a id="--ck-color-surface-canvas"></a>

  `--ck-color-surface-canvas`: Base background of the editor UI.

  Set it to change the background of every surface that has no override of its own.

  * Default: `var(--ck-color-base-background)`

  * Resolves to: `hsl(0 0% 100%)`

  * Follows: [`--ck-color-base-background`](#--ck-color-base-background)

  * Followed by:

    * [`--ck-color-surface-control`](#--ck-color-surface-control)
    * [`--ck-color-surface-container`](#--ck-color-surface-container)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 17.10:1
    * [`--ck-color-text-secondary`](#--ck-color-text-secondary) 6.14:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 5.12:1
    * [`--ck-color-text-placeholder`](#--ck-color-text-placeholder) 4.93:1

  * Used on:

    * [`--ck-color-interactive-primary-surface`](#--ck-color-interactive-primary-surface) 5.12:1
    * [`--ck-color-interactive-primary-surface-hover`](#--ck-color-interactive-primary-surface-hover) 6.51:1

* <a id="--ck-color-surface-control"></a>

  `--ck-color-surface-control`: Background of form fields and list items, such as text inputs and dropdown lists.

  * Default: `var(--ck-color-surface-canvas)`

  * Resolves to: `hsl(0 0% 100%)`

  * Follows: [`--ck-color-surface-canvas`](#--ck-color-surface-canvas)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 17.10:1
    * [`--ck-color-text-error`](#--ck-color-text-error) 5.35:1

* <a id="--ck-color-surface-container"></a>

  `--ck-color-surface-container`: Background of floating and framing containers, such as toolbars, dropdown panels, balloons, and dialogs.

  * Default: `var(--ck-color-surface-canvas)`

  * Resolves to: `hsl(0 0% 100%)`

  * Follows: [`--ck-color-surface-canvas`](#--ck-color-surface-canvas)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 17.10:1
    * [`--ck-color-text-secondary`](#--ck-color-text-secondary) 6.14:1
    * [`--ck-color-text-error`](#--ck-color-text-error) 5.35:1

* <a id="--ck-color-surface-inverse"></a>

  `--ck-color-surface-inverse`: Reversed background of small overlays, such as tooltips and the size label of a resized widget.

  * Default: `var(--ck-color-base-text)`
  * Resolves to: `hsl(216 41% 12%)`
  * Follows: [`--ck-color-base-text`](#--ck-color-base-text)
  * Contrast pairs:
    * [`--ck-color-text-inverse`](#--ck-color-text-inverse) 17.10:1

* <a id="--ck-color-surface-subtle"></a>

  `--ck-color-surface-subtle`: Muted background of placeholders and secondary areas, such as an embed placeholder or the background around the editor in the fullscreen mode.

  Disabled form fields, such as text inputs, use [`--ck-color-interactive-disabled-surface`](#--ck-color-interactive-disabled-surface) instead.

  * Default: `var(--ck-color-base-foreground)`

  * Resolves to: `hsl(0 0% 97%)`

  * Follows: [`--ck-color-base-foreground`](#--ck-color-base-foreground)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 16.01:1
    * [`--ck-color-text-secondary`](#--ck-color-text-secondary) 5.75:1

* <a id="--ck-color-surface-overlay"></a>

  `--ck-color-surface-overlay`: Translucent scrim that dims the page behind a modal dialog.

  * Default: `hsl(0 0% 0% / .5)`

* <a id="--ck-color-surface-skeleton"></a>

  `--ck-color-surface-skeleton`: Base color of a loading placeholder (skeleton), such as an image that is being processed.

  The shimmer moves [`--ck-color-surface-skeleton-highlight`](#--ck-color-surface-skeleton-highlight) across it, so change both together.

  * Default: `hsl(220 10% 90%)`

* <a id="--ck-color-surface-skeleton-highlight"></a>

  `--ck-color-surface-skeleton-highlight`: Moving highlight of the loading placeholder shimmer, drawn over [`--ck-color-surface-skeleton`](#--ck-color-surface-skeleton).

  * Default: `hsl(220 10% 98%)`

* <a id="--ck-color-border-control"></a>

  `--ck-color-border-control`: Border of form fields and other bordered controls, such as text inputs, the cells of the insert table grid, and color tiles.

  * Default: `var(--ck-color-base-border)`
  * Resolves to: `hsl(214.7 21.3% 82.5%)`
  * Follows: [`--ck-color-base-border`](#--ck-color-base-border)
  * Followed by:
    * [`--ck-border-control`](#--ck-border-control)

* <a id="--ck-color-border-container"></a>

  `--ck-color-border-container`: Outer border of toolbars, panels, balloons, dialogs, and the editor frame, drawn around [`--ck-color-surface-container`](#--ck-color-surface-container).

  * Default: `var(--ck-color-base-border)`
  * Resolves to: `hsl(214.7 21.3% 82.5%)`
  * Follows: [`--ck-color-base-border`](#--ck-color-base-border)
  * Followed by:
    * [`--ck-border-surface`](#--ck-border-surface)

* <a id="--ck-color-border-subtle"></a>

  `--ck-color-border-subtle`: Light, low-contrast border for quiet outlines, such as the outline of a selected widget while the editor is not focused.

  * Default: `var(--ck-color-base-border-light)`
  * Resolves to: `hsl(214 39% 93%)`
  * Follows: [`--ck-color-base-border-light`](#--ck-color-base-border-light)

* <a id="--ck-color-border-accent"></a>

  `--ck-color-border-accent`: Accent color of borders and lines, such as the border of a selected tile, a column resize handle, or the border of a toggled-on surface button.

  Set [`--ck-color-text-accent`](#--ck-color-text-accent) to change both the accent text and these lines. Override this token only to tell them apart.

  * Default: `var(--ck-color-text-accent)`
  * Resolves to: `hsl(227.7 62.7% 55.9%)`
  * Follows: [`--ck-color-text-accent`](#--ck-color-text-accent)

* <a id="--ck-color-divider"></a>

  `--ck-color-divider`: Thin separator lines between groups of items and between sections of a panel.

  * Default: `var(--ck-color-base-border)`
  * Resolves to: `hsl(214.7 21.3% 82.5%)`
  * Follows: [`--ck-color-base-border`](#--ck-color-base-border)

Source: `_semantic-surface.css`

The shadow roles of the surfaces of the editor UI. To change the shadow of one kind of surface across the UI, override its role. To change one component, override its component token instead.

* <a id="--ck-shadow-surface-floating"></a>

  `--ck-shadow-surface-floating`: Shadow of floating surfaces, such as balloons, dropdown panels, dialogs, and the toolbar while it sticks to the top of the viewport.

  * Default: `var(--ck-shadow-xl)`
  * Resolves to: `0 16px 32px -4px hsl(0 0% 0% / 0.102), 0 4px 16px hsl(0 0% 0% / 0.102)`
  * Follows: [`--ck-shadow-xl`](#--ck-shadow-xl)

* <a id="--ck-shadow-surface-raised"></a>

  `--ck-shadow-surface-raised`: Shadow of raised surfaces that sit on another surface.

  * Default: `var(--ck-shadow-lg)`
  * Resolves to: `0 1px 4px hsl(0 0% 0% / .05), 0 2px 10px hsl(0 0% 0% / .05)`
  * Follows: [`--ck-shadow-lg`](#--ck-shadow-lg)

<a id="semantic-text"></a>

### Text

Source: `colors/_semantic-text.css`

The text color roles of the editor UI: the colors of text and icons. To change one kind of text across the UI, override its role. To change one component, override its component token instead. The backgrounds that a role is drawn on name it in their `@pair` tags.

* <a id="--ck-color-text-primary"></a>

  `--ck-color-text-primary`: Main color of text and icons across the UI, such as labels, menu items, and the text in form fields.

  * Default: `var(--ck-color-base-text)`

  * Resolves to: `hsl(216 41% 12%)`

  * Follows: [`--ck-color-base-text`](#--ck-color-base-text)

  * Followed by:
    * [`--ck-color-text`](#--ck-color-text)

  * Used on:

    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 17.10:1
    * [`--ck-color-surface-control`](#--ck-color-surface-control) 17.10:1
    * [`--ck-color-surface-container`](#--ck-color-surface-container) 17.10:1
    * [`--ck-color-surface-subtle`](#--ck-color-surface-subtle) 16.01:1
    * [`--ck-color-interactive-hover-surface`](#--ck-color-interactive-hover-surface) 15.52:1
    * [`--ck-color-interactive-hover-surface-strong`](#--ck-color-interactive-hover-surface-strong) 14.34:1
    * [`--ck-color-interactive-active-surface`](#--ck-color-interactive-active-surface) 15.52:1
    * [`--ck-color-interactive-primary-surface-muted`](#--ck-color-interactive-primary-surface-muted) 14.01:1
    * [`--ck-color-feedback-highlight`](#--ck-color-feedback-highlight) 15.92:1
    * [`--ck-color-feedback-error-surface`](#--ck-color-feedback-error-surface) 14.53:1
    * [`--ck-color-feedback-success-surface`](#--ck-color-feedback-success-surface) 14.92:1
    * [`--ck-color-feedback-warning-surface`](#--ck-color-feedback-warning-surface) 15.75:1

* <a id="--ck-color-text-secondary"></a>

  `--ck-color-text-secondary`: Muted color of supporting text and icons, and the fill of the track of a switch button that is off.

  * Default: `var(--ck-color-base-text-light)`

  * Resolves to: `hsl(215 19% 40%)`

  * Follows: [`--ck-color-base-text-light`](#--ck-color-base-text-light)

  * Followed by:
    * [`--ck-color-text-disabled`](#--ck-color-text-disabled)

  * Used on:

    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 6.14:1
    * [`--ck-color-surface-container`](#--ck-color-surface-container) 6.14:1
    * [`--ck-color-surface-subtle`](#--ck-color-surface-subtle) 5.75:1

* <a id="--ck-color-text-disabled"></a>

  `--ck-color-text-disabled`: Color of text in disabled controls, such as a disabled text input or the source of a disabled HTML embed.

  Disabled controls are exempt from the WCAG contrast requirements, so no background pairs it.

  * Default: `var(--ck-color-text-secondary)`
  * Resolves to: `hsl(215 19% 40%)`
  * Follows: [`--ck-color-text-secondary`](#--ck-color-text-secondary)

* <a id="--ck-color-text-inverse"></a>

  `--ck-color-text-inverse`: Color of text and icons on reversed and filled backgrounds, such as tooltips, action buttons, a toggled-on list item, and widget handles.

  * Default: `var(--ck-color-base-background)`

  * Resolves to: `hsl(0 0% 100%)`

  * Follows: [`--ck-color-base-background`](#--ck-color-base-background)

  * Followed by:
    * [`--ck-color-interactive-primary-text`](#--ck-color-interactive-primary-text)

  * Used on:

    * [`--ck-color-surface-inverse`](#--ck-color-surface-inverse) 17.10:1
    * [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border) 5.12:1
    * [`--ck-color-feedback-error`](#--ck-color-feedback-error) 5.35:1
    * [`--ck-color-feedback-success`](#--ck-color-feedback-success) 5.19:1

* <a id="--ck-color-text-error"></a>

  `--ck-color-text-error`: Color of error messages and of the label of a field in the error state.

  * Default: `var(--ck-color-feedback-error)`

  * Resolves to: `hsl(0 74.9% 46.9%)`

  * Follows: [`--ck-color-feedback-error`](#--ck-color-feedback-error)

  * Used on:

    * [`--ck-color-surface-control`](#--ck-color-surface-control) 5.35:1
    * [`--ck-color-surface-container`](#--ck-color-surface-container) 5.35:1
    * [`--ck-color-feedback-error-surface`](#--ck-color-feedback-error-surface) 4.55:1

* <a id="--ck-color-text-accent"></a>

  `--ck-color-text-accent`: Accent color of text and icons, such as the label of an outline button or the icon of the active tab.

  It is not a fill: filled action buttons use [`--ck-color-interactive-primary-surface`](#--ck-color-interactive-primary-surface). Keep it readable on the canvas, so in a dark theme it is usually lighter than the primary surface.

  * Default: `var(--ck-color-base-active)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Follows: [`--ck-color-base-active`](#--ck-color-base-active)

  * Followed by:

    * [`--ck-color-border-accent`](#--ck-color-border-accent)
    * [`--ck-color-interactive-selected-text`](#--ck-color-interactive-selected-text)

  * Used on:

    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 5.12:1
    * [`--ck-color-interactive-hover-surface`](#--ck-color-interactive-hover-surface) 4.65:1
    * [`--ck-color-interactive-hover-surface-strong`](#--ck-color-interactive-hover-surface-strong) 4.30:1
    * [`--ck-color-interactive-selected-surface`](#--ck-color-interactive-selected-surface) 4.61:1
    * [`--ck-color-interactive-selected-surface-hover`](#--ck-color-interactive-selected-surface-hover) 4.29:1
    * [`--ck-color-interactive-primary-surface-muted`](#--ck-color-interactive-primary-surface-muted) 4.19:1

* <a id="--ck-color-text-placeholder"></a>

  `--ck-color-text-placeholder`: Color of placeholder text in the editing area, such as the placeholder of an empty editor or of an empty image caption.

  * Default: `hsl(0 0% 44%)`
  * Used on:
    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 4.93:1

* <a id="--ck-color-text"></a>

  `--ck-color-text` (Deprecated): An alias of [`--ck-color-text-primary`](#--ck-color-text-primary).

  * Use instead: [`--ck-color-text-primary`](#--ck-color-text-primary)
  * Default: `var(--ck-color-text-primary)`
  * Resolves to: `hsl(216 41% 12%)`

<a id="semantic-interactive"></a>

### Interactive states

Source: `colors/_semantic-interactive.css`

The interactive color roles of the editor UI: the colors of controls in their states, such as hovered, toggled on, and focused, and of action buttons. To change one state across the UI, override its role. To change one component, override its component token instead.

* <a id="--ck-color-interactive-focus-border-coordinates"></a>

  `--ck-color-interactive-focus-border-coordinates`: The focus color as an HSL triplet (hue, saturation, and lightness, without `hsl()`), for effects that set their own alpha, such as the pulse of the widget type-around buttons.

  It cannot be derived from [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border), so change both together.

  * Default: `227.7, 62.7%, 55.9%`
  * Followed by:
    * [`--ck-color-focus-border-coordinates`](#--ck-color-focus-border-coordinates)

* <a id="--ck-color-interactive-focus-border"></a>

  `--ck-color-interactive-focus-border`: Color of the focus indicator and of selected content in the editing area, such as the border of a focused control, the outline of a selected widget, and selected table cells.

  It also fills the selection handle of a widget.

  * Default: `var(--ck-focus-border-color)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Follows: [`--ck-focus-border-color`](#--ck-focus-border-color)

  * Followed by:

    * [`--ck-focus-ring`](#--ck-focus-ring)
    * [`--ck-color-focus-border`](#--ck-color-focus-border)
    * [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring)
    * [`--ck-interactive-focus-border-color`](#--ck-interactive-focus-border-color)

  * Contrast pairs:
    * [`--ck-color-text-inverse`](#--ck-color-text-inverse) 5.12:1

* <a id="--ck-color-interactive-focus-shadow"></a>

  `--ck-color-interactive-focus-shadow`: Color of the shadow around a focused control, such as a text input or a button.

  * Default: `var(--ck-color-base-focus-shadow)`

  * Resolves to: `hsl(227.6 63.1% 56.5% / .22)`

  * Follows: [`--ck-color-base-focus-shadow`](#--ck-color-base-focus-shadow)

  * Followed by:

    * [`--ck-focus-shadow`](#--ck-focus-shadow)
    * [`--ck-color-focus-outer-shadow`](#--ck-color-focus-outer-shadow)
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)

* <a id="--ck-color-interactive-focus-disabled-shadow"></a>

  `--ck-color-interactive-focus-disabled-shadow`: Color of the focus shadow of a disabled control that can still take focus.

  * Default: `var(--ck-color-base-focus-shadow-faded)`

  * Resolves to: `hsl(227.6 63.1% 56.5% / .10)`

  * Follows: [`--ck-color-base-focus-shadow-faded`](#--ck-color-base-focus-shadow-faded)

  * Followed by:

    * [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)
    * [`--ck-color-focus-disabled-shadow`](#--ck-color-focus-disabled-shadow)
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)

* <a id="--ck-color-interactive-focus-error-shadow"></a>

  `--ck-color-interactive-focus-error-shadow`: Color of the focus shadow of a field in the error state.

  * Default: `var(--ck-color-base-error-shadow)`

  * Resolves to: `hsl(0 64.3% 94.5%)`

  * Follows: [`--ck-color-base-error-shadow`](#--ck-color-base-error-shadow)

  * Followed by:

    * [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)
    * [`--ck-color-focus-error-shadow`](#--ck-color-focus-error-shadow)
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

* <a id="--ck-color-interactive-hover-surface"></a>

  `--ck-color-interactive-hover-surface`: Background of hovered buttons, such as toolbar buttons and outline buttons.

  * Default: `var(--ck-color-base-hover)`

  * Resolves to: `hsl(225 20% 96%)`

  * Follows: [`--ck-color-base-hover`](#--ck-color-base-hover)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 15.52:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 4.65:1

* <a id="--ck-color-interactive-hover-surface-strong"></a>

  `--ck-color-interactive-hover-surface-strong`: Stronger hover background, for a control that is focused and hovered at once, such as a tab.

  * Default: `var(--ck-color-base-hover-strong)`

  * Resolves to: `hsl(225 24% 93%)`

  * Follows: [`--ck-color-base-hover-strong`](#--ck-color-base-hover-strong)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 14.34:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 4.30:1

* <a id="--ck-color-interactive-active-surface"></a>

  `--ck-color-interactive-active-surface`: Background of a button while it is pressed.

  * Default: `var(--ck-color-base-hover)`
  * Resolves to: `hsl(225 20% 96%)`
  * Follows: [`--ck-color-base-hover`](#--ck-color-base-hover)
  * Contrast pairs:
    * [`--ck-color-text-primary`](#--ck-color-text-primary) 15.52:1

* <a id="--ck-color-interactive-selected-surface"></a>

  `--ck-color-interactive-selected-surface`: Background of toggled-on buttons, such as the bold button while the selection is bold, and of a pressed outline button.

  * Default: `var(--ck-color-base-selected)`

  * Resolves to: `hsl(220 78.9% 96.3%)`

  * Follows: [`--ck-color-base-selected`](#--ck-color-base-selected)

  * Contrast pairs:

    * [`--ck-color-interactive-selected-text`](#--ck-color-interactive-selected-text) 4.61:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 4.61:1

* <a id="--ck-color-interactive-selected-surface-hover"></a>

  `--ck-color-interactive-selected-surface-hover`: Background of a toggled-on button while it is hovered or pressed.

  * Default: `var(--ck-color-base-selected-hover)`

  * Resolves to: `hsl(221 81% 94%)`

  * Follows: [`--ck-color-base-selected-hover`](#--ck-color-base-selected-hover)

  * Contrast pairs:

    * [`--ck-color-interactive-selected-text`](#--ck-color-interactive-selected-text) 4.29:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 4.29:1

* <a id="--ck-color-interactive-selected-text"></a>

  `--ck-color-interactive-selected-text`: Color of the label and the icon of a toggled-on button.

  Override it to tell them apart from the accent text.

  * Default: `var(--ck-color-text-accent)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Follows: [`--ck-color-text-accent`](#--ck-color-text-accent)

  * Used on:

    * [`--ck-color-interactive-selected-surface`](#--ck-color-interactive-selected-surface) 4.61:1
    * [`--ck-color-interactive-selected-surface-hover`](#--ck-color-interactive-selected-surface-hover) 4.29:1

* <a id="--ck-color-interactive-primary-surface"></a>

  `--ck-color-interactive-primary-surface`: The fill of primary controls.

  Keep it saturated enough for the text on it to stay readable.

  * Default: `var(--ck-color-base-action)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Follows: [`--ck-color-base-action`](#--ck-color-base-action)

  * Contrast pairs:

    * [`--ck-color-interactive-primary-text`](#--ck-color-interactive-primary-text) 5.12:1
    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 5.12:1

* <a id="--ck-color-interactive-primary-surface-hover"></a>

  `--ck-color-interactive-primary-surface-hover`: Fill of action buttons while they are hovered or pressed, and of a hovered switch button that is on.

  * Default: `var(--ck-color-base-action-hover)`

  * Resolves to: `hsl(227 58% 49%)`

  * Follows: [`--ck-color-base-action-hover`](#--ck-color-base-action-hover)

  * Contrast pairs:

    * [`--ck-color-interactive-primary-text`](#--ck-color-interactive-primary-text) 6.51:1
    * [`--ck-color-surface-canvas`](#--ck-color-surface-canvas) 6.51:1

* <a id="--ck-color-interactive-primary-surface-muted"></a>

  `--ck-color-interactive-primary-surface-muted`: Light tint of the action color, for the active tab and for the hover background of some buttons, such as the buttons of an HTML embed.

  * Default: `var(--ck-color-base-action-muted)`

  * Resolves to: `hsl(228 47% 93%)`

  * Follows: [`--ck-color-base-action-muted`](#--ck-color-base-action-muted)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 14.01:1
    * [`--ck-color-text-accent`](#--ck-color-text-accent) 4.19:1

* <a id="--ck-color-interactive-primary-surface-disabled"></a>

  `--ck-color-interactive-primary-surface-disabled`: Fill of disabled action buttons.

  Their label stays fully opaque, so this fill alone shows the disabled state. Disabled controls are exempt from the WCAG contrast requirements, so it has no pair.

  * Default: `var(--ck-color-base-action-disabled)`
  * Resolves to: `hsl(227.7 62.7% 77.9%)`
  * Follows: [`--ck-color-base-action-disabled`](#--ck-color-base-action-disabled)

* <a id="--ck-color-interactive-primary-text"></a>

  `--ck-color-interactive-primary-text`: Color of the label and the icon of action buttons.

  * Default: `var(--ck-color-text-inverse)`

  * Resolves to: `hsl(0 0% 100%)`

  * Follows: [`--ck-color-text-inverse`](#--ck-color-text-inverse)

  * Used on:

    * [`--ck-color-interactive-primary-surface`](#--ck-color-interactive-primary-surface) 5.12:1
    * [`--ck-color-interactive-primary-surface-hover`](#--ck-color-interactive-primary-surface-hover) 6.51:1

* <a id="--ck-color-interactive-disabled-surface"></a>

  `--ck-color-interactive-disabled-surface`: Background of disabled form fields, such as text inputs.

  Disabled controls are exempt from the WCAG contrast requirements, so it has no pair.

  * Default: `hsl(0 0% 95%)`

* <a id="--ck-color-focus-border-coordinates"></a>

  `--ck-color-focus-border-coordinates` (Deprecated): An alias of [`--ck-color-interactive-focus-border-coordinates`](#--ck-color-interactive-focus-border-coordinates).

  * Use instead: [`--ck-color-interactive-focus-border-coordinates`](#--ck-color-interactive-focus-border-coordinates)
  * Default: `var(--ck-color-interactive-focus-border-coordinates)`
  * Resolves to: `227.7, 62.7%, 55.9%`

* <a id="--ck-color-focus-border"></a>

  `--ck-color-focus-border` (Deprecated): An alias of [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border).

  * Use instead: [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border)

  * Default: `var(--ck-color-interactive-focus-border)`

  * Resolves to: `hsl(227.7 62.7% 55.9%)`

  * Followed by:

    * [`--ck-focus-ring`](#--ck-focus-ring)
    * [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring)
    * [`--ck-interactive-focus-border-color`](#--ck-interactive-focus-border-color)

* <a id="--ck-color-focus-outer-shadow"></a>

  `--ck-color-focus-outer-shadow` (Deprecated): An alias of [`--ck-color-interactive-focus-shadow`](#--ck-color-interactive-focus-shadow).

  * Use instead: [`--ck-color-interactive-focus-shadow`](#--ck-color-interactive-focus-shadow)

  * Default: `var(--ck-color-interactive-focus-shadow)`

  * Resolves to: `hsl(227.6 63.1% 56.5% / .22)`

  * Followed by:

    * [`--ck-focus-shadow`](#--ck-focus-shadow)
    * [`--ck-interactive-focus-shadow`](#--ck-interactive-focus-shadow)

* <a id="--ck-color-focus-disabled-shadow"></a>

  `--ck-color-focus-disabled-shadow` (Deprecated): An alias of [`--ck-color-interactive-focus-disabled-shadow`](#--ck-color-interactive-focus-disabled-shadow).

  * Use instead: [`--ck-color-interactive-focus-disabled-shadow`](#--ck-color-interactive-focus-disabled-shadow)

  * Default: `var(--ck-color-interactive-focus-disabled-shadow)`

  * Resolves to: `hsl(227.6 63.1% 56.5% / .10)`

  * Followed by:

    * [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)
    * [`--ck-interactive-focus-disabled-shadow`](#--ck-interactive-focus-disabled-shadow)

* <a id="--ck-color-focus-error-shadow"></a>

  `--ck-color-focus-error-shadow` (Deprecated): An alias of [`--ck-color-interactive-focus-error-shadow`](#--ck-color-interactive-focus-error-shadow).

  * Use instead: [`--ck-color-interactive-focus-error-shadow`](#--ck-color-interactive-focus-error-shadow)

  * Default: `var(--ck-color-interactive-focus-error-shadow)`

  * Resolves to: `hsl(0 64.3% 94.5%)`

  * Followed by:

    * [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)
    * [`--ck-interactive-focus-error-shadow`](#--ck-interactive-focus-error-shadow)

Source: `_semantic-interactive.css`

The focus roles of interactive controls: the ring, the border color, and the shadows that show which control has the focus. To change the focus look of controls across the UI, override these roles. To change one component, override its component token instead.

* <a id="--ck-interactive-focus-ring"></a>

  `--ck-interactive-focus-ring`: Border or outline of a focused control, such as a switch button or the source editing textarea.

  Read through the `border` or `outline` shorthand, so it also sets the width and the style.

  * Default: `var(--ck-focus-ring)`
  * Resolves to: `1px solid hsl(227.7 62.7% 55.9%)`
  * Follows: [`--ck-focus-ring`](#--ck-focus-ring)

* <a id="--ck-interactive-focus-border-color"></a>

  `--ck-interactive-focus-border-color`: Border color of a focused control that keeps its own border width, such as a text input, a button, or the editable.

  Use it instead of [`--ck-interactive-focus-ring`](#--ck-interactive-focus-ring) when only the color changes on focus.

  * Default: `var(--ck-color-focus-border, var(--ck-focus-border-color))`
  * Resolves to: `hsl(227.7 62.7% 55.9%)`
  * Follows: [`--ck-color-interactive-focus-border`](#--ck-color-interactive-focus-border)

* <a id="--ck-interactive-focus-shadow"></a>

  `--ck-interactive-focus-shadow`: Shadow around a focused control, such as a text input, a button, or an item of a menu bar menu.

  * Default: `var(--ck-focus-outer-shadow, var(--ck-focus-shadow))`
  * Resolves to: `0 0 0 3px hsl(227.6 63.1% 56.5% / .22)`
  * Follows: [`--ck-focus-shadow`](#--ck-focus-shadow)

* <a id="--ck-interactive-focus-disabled-shadow"></a>

  `--ck-interactive-focus-disabled-shadow`: Shadow around a focused disabled control, such as a disabled text input or button.

  * Default: `var(--ck-focus-disabled-outer-shadow, var(--ck-focus-shadow-disabled))`
  * Resolves to: `0 0 0 3px hsl(227.6 63.1% 56.5% / .10)`
  * Follows: [`--ck-focus-shadow-disabled`](#--ck-focus-shadow-disabled)

* <a id="--ck-interactive-focus-error-shadow"></a>

  `--ck-interactive-focus-error-shadow`: Shadow around a focused field in the error state.

  * Default: `var(--ck-focus-error-outer-shadow, var(--ck-focus-shadow-error))`
  * Resolves to: `0 0 0 3px hsl(0 64.3% 94.5%)`
  * Follows: [`--ck-focus-shadow-error`](#--ck-focus-shadow-error)

<a id="semantic-feedback"></a>

### Feedback

Source: `colors/_semantic-feedback.css`

The feedback color roles of the editor UI: the colors that tell the user about a result or a state, such as an error, a success, or a match. To change one kind of feedback across the UI, override its role. To change one component, override its component token instead.

* <a id="--ck-color-feedback-error"></a>

  `--ck-color-feedback-error`: Color of the error state, such as the border of an invalid field, the icon of a cancel button, and the fill of the error message that points to a field in some forms.

  * Default: `var(--ck-color-base-error)`

  * Resolves to: `hsl(0 74.9% 46.9%)`

  * Follows: [`--ck-color-base-error`](#--ck-color-base-error)

  * Followed by:

    * [`--ck-color-text-error`](#--ck-color-text-error)
    * [`--ck-color-feedback-error-surface`](#--ck-color-feedback-error-surface)

  * Contrast pairs:
    * [`--ck-color-text-inverse`](#--ck-color-text-inverse) 5.35:1

* <a id="--ck-color-feedback-success"></a>

  `--ck-color-feedback-success`: Color of the success state, such as the icon of a save button and the fill of the icon shown when an image upload completes.

  * Default: `var(--ck-color-base-success)`
  * Resolves to: `hsl(157.2 77.1% 27.5%)`
  * Follows: [`--ck-color-base-success`](#--ck-color-base-success)
  * Followed by:
    * [`--ck-color-feedback-success-surface`](#--ck-color-feedback-success-surface)
  * Contrast pairs:
    * [`--ck-color-text-inverse`](#--ck-color-text-inverse) 5.19:1
  * Used on:
    * [`--ck-color-feedback-success-surface`](#--ck-color-feedback-success-surface) 4.53:1

* <a id="--ck-color-feedback-warning"></a>

  `--ck-color-feedback-warning`: Color of the warning state.

  * Default: `var(--ck-color-base-warning)`
  * Resolves to: `hsl(37 81% 50%)`
  * Follows: [`--ck-color-base-warning`](#--ck-color-base-warning)
  * Followed by:
    * [`--ck-color-feedback-warning-surface`](#--ck-color-feedback-warning-surface)

* <a id="--ck-color-feedback-highlight"></a>

  `--ck-color-feedback-highlight`: Background of highlighted text, such as the results of find and replace.

  * Default: `var(--ck-color-base-highlight)`
  * Resolves to: `hsl(60 100% 50%)`
  * Follows: [`--ck-color-base-highlight`](#--ck-color-base-highlight)
  * Contrast pairs:
    * [`--ck-color-text-primary`](#--ck-color-text-primary) 15.92:1

* <a id="--ck-color-feedback-error-surface"></a>

  `--ck-color-feedback-error-surface`: Light background of a message or a status label in the error state.

  It is translucent: a tint of [`--ck-color-feedback-error`](#--ck-color-feedback-error) over the background below it.

  * Default: `color-mix(in srgb, var(--ck-color-feedback-error) 10%, transparent)`

  * Resolves to: `color-mix(in srgb, hsl(0 74.9% 46.9%) 10%, transparent)`

  * Follows: [`--ck-color-feedback-error`](#--ck-color-feedback-error)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 14.53:1
    * [`--ck-color-text-error`](#--ck-color-text-error) 4.55:1

* <a id="--ck-color-feedback-success-surface"></a>

  `--ck-color-feedback-success-surface`: Light background of a message or a status label in the success state.

  It is translucent: a tint of [`--ck-color-feedback-success`](#--ck-color-feedback-success) over the background below it.

  * Default: `color-mix(in srgb, var(--ck-color-feedback-success) 10%, transparent)`

  * Resolves to: `color-mix(in srgb, hsl(157.2 77.1% 27.5%) 10%, transparent)`

  * Follows: [`--ck-color-feedback-success`](#--ck-color-feedback-success)

  * Contrast pairs:

    * [`--ck-color-text-primary`](#--ck-color-text-primary) 14.92:1
    * [`--ck-color-feedback-success`](#--ck-color-feedback-success) 4.53:1

* <a id="--ck-color-feedback-warning-surface"></a>

  `--ck-color-feedback-warning-surface`: Light background of a message or a field in the warning state.

  It is translucent: a tint of [`--ck-color-feedback-warning`](#--ck-color-feedback-warning) over the background below it.

  * Default: `color-mix(in srgb, var(--ck-color-feedback-warning) 10%, transparent)`
  * Resolves to: `color-mix(in srgb, hsl(37 81% 50%) 10%, transparent)`
  * Follows: [`--ck-color-feedback-warning`](#--ck-color-feedback-warning)
  * Contrast pairs:
    * [`--ck-color-text-primary`](#--ck-color-text-primary) 15.75:1

<a id="semantic-changes"></a>

### Changes

Source: `colors/_semantic-diff.css`

The change color roles of the editor: the colors that mark an insertion, a deletion, or a format change when changes are suggested or compared, and the accent of comment annotations. To change one kind of change across the editor, override its role. To change one component, override its component token instead. The markers are drawn over the edited content, which takes the text color of the page, so the text on them has no `@pair`.

* <a id="--ck-color-diff-insertion-border"></a>

  `--ck-color-diff-insertion-border`: Border of the marker of inserted content.

  * Default: `hsl(var(--ck-color-base-diff-insertion) / 50%)`
  * Resolves to: `hsl(157 80% 34% / 50%)`
  * Follows: [`--ck-color-base-diff-insertion`](#--ck-color-base-diff-insertion)

* <a id="--ck-color-diff-insertion-border-active"></a>

  `--ck-color-diff-insertion-border-active`: Border of the marker of inserted content while its change is active.

  * Default: `hsl(var(--ck-color-base-diff-insertion) / 60%)`
  * Resolves to: `hsl(157 80% 34% / 60%)`
  * Follows: [`--ck-color-base-diff-insertion`](#--ck-color-base-diff-insertion)

* <a id="--ck-color-diff-insertion-background"></a>

  `--ck-color-diff-insertion-background`: Background of the marker of inserted content.

  * Default: `hsl(var(--ck-color-base-diff-insertion) / 20%)`
  * Resolves to: `hsl(157 80% 34% / 20%)`
  * Follows: [`--ck-color-base-diff-insertion`](#--ck-color-base-diff-insertion)

* <a id="--ck-color-diff-insertion-background-active"></a>

  `--ck-color-diff-insertion-background-active`: Background of the marker of inserted content while its change is active.

  * Default: `hsl(var(--ck-color-base-diff-insertion) / 30%)`
  * Resolves to: `hsl(157 80% 34% / 30%)`
  * Follows: [`--ck-color-base-diff-insertion`](#--ck-color-base-diff-insertion)

* <a id="--ck-color-diff-deletion-border"></a>

  `--ck-color-diff-deletion-border`: Border of the marker of deleted content.

  * Default: `hsl(var(--ck-color-base-diff-deletion) / 40%)`
  * Resolves to: `hsl(0 75% 52% / 40%)`
  * Follows: [`--ck-color-base-diff-deletion`](#--ck-color-base-diff-deletion)

* <a id="--ck-color-diff-deletion-border-active"></a>

  `--ck-color-diff-deletion-border-active`: Border of the marker of deleted content while its change is active.

  * Default: `hsl(var(--ck-color-base-diff-deletion) / 50%)`
  * Resolves to: `hsl(0 75% 52% / 50%)`
  * Follows: [`--ck-color-base-diff-deletion`](#--ck-color-base-diff-deletion)

* <a id="--ck-color-diff-deletion-background"></a>

  `--ck-color-diff-deletion-background`: Background of the marker of deleted content.

  * Default: `hsl(var(--ck-color-base-diff-deletion) / 20%)`
  * Resolves to: `hsl(0 75% 52% / 20%)`
  * Follows: [`--ck-color-base-diff-deletion`](#--ck-color-base-diff-deletion)
  * Contrast pairs:
    * [`--ck-color-diff-deletion-stroke`](#--ck-color-diff-deletion-stroke) 2.59:1

* <a id="--ck-color-diff-deletion-background-active"></a>

  `--ck-color-diff-deletion-background-active`: Background of the marker of deleted content while its change is active.

  * Default: `hsl(var(--ck-color-base-diff-deletion) / 30%)`
  * Resolves to: `hsl(0 75% 52% / 30%)`
  * Follows: [`--ck-color-base-diff-deletion`](#--ck-color-base-diff-deletion)
  * Contrast pairs:
    * [`--ck-color-diff-deletion-stroke`](#--ck-color-diff-deletion-stroke) 2.35:1

* <a id="--ck-color-diff-deletion-stroke"></a>

  `--ck-color-diff-deletion-stroke`: Color of the line through deleted text and of the mark of a deleted paragraph break.

  * Default: `hsl(0 75% 43% / 60%)`

  * Used on:

    * [`--ck-color-diff-deletion-background`](#--ck-color-diff-deletion-background) 2.59:1
    * [`--ck-color-diff-deletion-background-active`](#--ck-color-diff-deletion-background-active) 2.35:1

* <a id="--ck-color-diff-format-border"></a>

  `--ck-color-diff-format-border`: Border of the marker of content with a format change.

  * Default: `hsl(var(--ck-color-base-diff-format) / 100%)`
  * Resolves to: `hsl(191 60% 75% / 100%)`
  * Follows: [`--ck-color-base-diff-format`](#--ck-color-base-diff-format)

* <a id="--ck-color-diff-format-border-active"></a>

  `--ck-color-diff-format-border-active`: Border of the marker of content with a format change while its change is active.

  * Default: `hsl(191 60% 60%)`

* <a id="--ck-color-diff-insertion-box-border"></a>

  `--ck-color-diff-insertion-box-border`: Accent border of the annotation of an insertion.

  The default theme draws this border with no width, so the color shows only in a theme that gives it one.

  * Default: `hsl(145 33% 42.7%)`

* <a id="--ck-color-diff-deletion-box-border"></a>

  `--ck-color-diff-deletion-box-border`: Accent border of the annotation of a deletion.

  The default theme draws this border with no width, so the color shows only in a theme that gives it one.

  * Default: `hsl(8.4 69% 46.9%)`

* <a id="--ck-color-diff-insertion-widget-background"></a>

  `--ck-color-diff-insertion-widget-background`: Background of an inserted widget, such as an image, a table, or a media embed.

  * Default: `hsl(128 71% 65% / 5%)`

* <a id="--ck-color-diff-insertion-widget-background-active"></a>

  `--ck-color-diff-insertion-widget-background-active`: Background of an inserted widget while its change is active.

  * Default: `hsl(128 71% 50% / 7%)`

* <a id="--ck-color-diff-deletion-widget-background"></a>

  `--ck-color-diff-deletion-widget-background`: Background of a deleted widget, such as an image, a table, or a media embed.

  * Default: `hsl(345 71% 65% / 5%)`

* <a id="--ck-color-diff-deletion-widget-background-active"></a>

  `--ck-color-diff-deletion-widget-background-active`: Background of a deleted widget while its change is active.

  * Default: `hsl(345 71% 45% / 7%)`

* <a id="--ck-color-diff-format-widget-background"></a>

  `--ck-color-diff-format-widget-background`: Background of a widget with a format change, such as an image, a table, or a media embed.

  * Default: `hsl(191 90% 40% / 9%)`

* <a id="--ck-color-diff-format-widget-background-active"></a>

  `--ck-color-diff-format-widget-background-active`: Background of a widget with a format change while its change is active.

  * Default: `hsl(191 90% 40% / 16%)`

* <a id="--ck-color-diff-insertion-widget-th-background"></a>

  `--ck-color-diff-insertion-widget-th-background`: Background of the header cells of an inserted table.

  * Default: `hsl(128 71% 65% / 12%)`

* <a id="--ck-color-diff-insertion-widget-th-background-active"></a>

  `--ck-color-diff-insertion-widget-th-background-active`: Background of the header cells of an inserted table while its change is active.

  * Default: `hsl(128 71% 50% / 14%)`

* <a id="--ck-color-diff-deletion-widget-th-background"></a>

  `--ck-color-diff-deletion-widget-th-background`: Background of the header cells of a deleted table.

  * Default: `hsl(345 71% 65% / 14%)`

* <a id="--ck-color-diff-deletion-widget-th-background-active"></a>

  `--ck-color-diff-deletion-widget-th-background-active`: Background of the header cells of a deleted table while its change is active.

  * Default: `hsl(345 71% 45% / 16%)`

* <a id="--ck-color-comment-box-border"></a>

  `--ck-color-comment-box-border`: Accent border of the annotation of a comment.

  Comments are annotations, not changes, but they share the annotation accents with the changes. The default theme draws this border with no width, so the color shows only in a theme that gives it one.

  * Default: `hsl(var(--ck-color-base-comment) / 100%)`
  * Resolves to: `hsl(42.1 95.4% 57.3% / 100%)`
  * Follows: [`--ck-color-base-comment`](#--ck-color-base-comment)

<a id="semantic-typography"></a>

### Typography

Source: `_semantic-typography.css`

The typography roles of the editor UI: the font weights of kinds of UI text, and the font sizes of controls and of toolbar labels. To change one kind of text across the UI, override its role, such as [`--ck-font-weight-ui-heading`](#--ck-font-weight-ui-heading). To change one component, override its component token instead. These roles do not change the edited content.

* <a id="--ck-font-weight-ui-default"></a>

  `--ck-font-weight-ui-default`: Font weight of regular UI text, set on the root of the UI.

  * Default: `var(--ck-font-weight-normal)`
  * Resolves to: `400`
  * Follows: [`--ck-font-weight-normal`](#--ck-font-weight-normal)

* <a id="--ck-font-weight-ui-strong"></a>

  `--ck-font-weight-ui-strong`: Font weight of strong UI text, such as the button of a collapsible section.

  * Default: `var(--ck-font-weight-semibold)`
  * Resolves to: `600`
  * Follows: [`--ck-font-weight-semibold`](#--ck-font-weight-semibold)

* <a id="--ck-font-weight-ui-heading"></a>

  `--ck-font-weight-ui-heading`: Font weight of UI headings, such as the title of a form header and the headings of the accessibility help.

  * Default: `var(--ck-font-weight-semibold)`
  * Resolves to: `600`
  * Follows: [`--ck-font-weight-semibold`](#--ck-font-weight-semibold)

* <a id="--ck-font-weight-ui-label"></a>

  `--ck-font-weight-ui-label`: Font weight of labels, such as the label of a field and the label of a group in a list.

  * Default: `var(--ck-font-weight-semibold)`
  * Resolves to: `600`
  * Follows: [`--ck-font-weight-semibold`](#--ck-font-weight-semibold)

* <a id="--ck-font-weight-ui-emphasis"></a>

  `--ck-font-weight-ui-emphasis`: Font weight of emphasized button labels, such as a button with the `ck-button-bold` class.

  * Default: `var(--ck-font-weight-semibold)`
  * Resolves to: `600`
  * Follows: [`--ck-font-weight-semibold`](#--ck-font-weight-semibold)

* <a id="--ck-font-weight-ui-muted"></a>

  `--ck-font-weight-ui-muted`: Font weight of de-emphasized text, such as the floating label of a labeled field.

  * Default: `var(--ck-font-weight-normal)`
  * Resolves to: `400`
  * Follows: [`--ck-font-weight-normal`](#--ck-font-weight-normal)

* <a id="--ck-font-weight-ui-inherit"></a>

  `--ck-font-weight-ui-inherit`: Keeps the font weight of the parent, for text that must not change its weight, such as the label of a button and the label of the color grid in a color selector.

  * Default: `inherit`

* <a id="--ck-font-size-control"></a>

  `--ck-font-size-control`: Font size of the text in form fields, such as text inputs.

  Buttons use their own `--ck-button-font-size`.

  * Default: `var(--ck-font-size-md)`
  * Resolves to: `14px`
  * Follows: [`--ck-font-size-md`](#--ck-font-size-md)

* <a id="--ck-toolbar-text-font-size"></a>

  `--ck-toolbar-text-font-size`: Font size of the button labels in toolbars.

  It applies to the labels only, so it does not resize the icons.

  * Default: `inherit`

* <a id="--ck-menubar-text-font-size"></a>

  `--ck-menubar-text-font-size`: Font size of the button labels in the menu bar.

  It applies to the labels only, so it does not resize the icons or the spacing.

  * Default: `inherit`

<a id="semantic-shape"></a>

### Shape

Source: `_semantic-shape.css`

The shape roles of the editor UI: the border widths, the border shorthands, and the corner radii of controls and surfaces. To change one kind of element across the UI, such as controls, override its role, such as [`--ck-border-radius-control`](#--ck-border-radius-control). To change one component, override its component token instead.

* <a id="--ck-border-width-control"></a>

  `--ck-border-width-control`: Border width of controls, such as buttons, text inputs, switch buttons, tabs, and the editable.

  * Default: `var(--ck-border-width-thin)`
  * Resolves to: `1px`
  * Follows: [`--ck-border-width-thin`](#--ck-border-width-thin)
  * Followed by:
    * [`--ck-border-control`](#--ck-border-control)

* <a id="--ck-border-width-surface"></a>

  `--ck-border-width-surface`: Border width of surfaces, such as balloons, dropdown panels, and the sticky toolbar.

  * Default: `var(--ck-border-width-thin)`
  * Resolves to: `1px`
  * Follows: [`--ck-border-width-thin`](#--ck-border-width-thin)
  * Followed by:
    * [`--ck-border-surface`](#--ck-border-surface)

* <a id="--ck-border-width-divider"></a>

  `--ck-border-width-divider`: Width of separator lines, such as the separators of a toolbar or a list.

  * Default: `var(--ck-border-width-thin)`
  * Resolves to: `1px`
  * Follows: [`--ck-border-width-thin`](#--ck-border-width-thin)

* <a id="--ck-border-width-emphasis"></a>

  `--ck-border-width-emphasis`: Width of emphasized borders, such as the ring of a spinner.

  * Default: `var(--ck-border-width-thick)`
  * Resolves to: `2px`
  * Follows: [`--ck-border-width-thick`](#--ck-border-width-thick)

* <a id="--ck-border-control"></a>

  `--ck-border-control`: Border of a bordered control, such as the button of a dropdown in a form.

  Read through the `border` shorthand, so it sets the width, the style, and the color.

  * Default: `var(--ck-border-width-control) solid var(--ck-color-border-control)`
  * Resolves to: `1px solid hsl(214.7 21.3% 82.5%)`
  * Follows: [`--ck-border-width-control`](#--ck-border-width-control), [`--ck-color-border-control`](#--ck-color-border-control)

* <a id="--ck-border-surface"></a>

  `--ck-border-surface`: Border of a bordered surface.

  Read through the `border` shorthand, so it sets the width, the style, and the color.

  * Default: `var(--ck-border-width-surface) solid var(--ck-color-border-container)`
  * Resolves to: `1px solid hsl(214.7 21.3% 82.5%)`
  * Follows: [`--ck-border-width-surface`](#--ck-border-width-surface), [`--ck-color-border-container`](#--ck-color-border-container)

* <a id="--ck-border-divider"></a>

  `--ck-border-divider`: Separator line between the parts of a form or a panel, such as the line under a form header or above the color picker of a color selector.

  The default theme draws no such lines, so set it to show them, for example to `var(--ck-border-width-divider) solid var(--ck-color-divider)`.

  * Default: `0`

* <a id="--ck-border-radius-control"></a>

  `--ck-border-radius-control`: Corner radius of controls, such as buttons, text inputs, and the buttons of list dropdowns.

  * Default: `var(--ck-radius-md)`
  * Resolves to: `4px`
  * Follows: [`--ck-radius-md`](#--ck-radius-md)

* <a id="--ck-border-radius-control-small"></a>

  `--ck-border-radius-control-small`: Smaller corner radius for small parts of controls, such as the indicator of the active tab.

  * Default: `var(--ck-radius-sm)`
  * Resolves to: `2px`
  * Follows: [`--ck-radius-sm`](#--ck-radius-sm)

* <a id="--ck-border-radius-surface"></a>

  `--ck-border-radius-surface`: Corner radius of surfaces, such as balloons, toolbars, dialogs, and dropdown panels.

  * Default: `var(--ck-border-radius, var(--ck-radius-base))`

  * Resolves to: `8px`

  * Follows: [`--ck-radius-base`](#--ck-radius-base)

  * Followed by:

    * [`--ck-border-radius-uniform`](#--ck-border-radius-uniform)
    * [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)
    * [`--ck-border-radius-surface-attached-top`](#--ck-border-radius-surface-attached-top)
    * [`--ck-border-radius-surface-attached-bottom`](#--ck-border-radius-surface-attached-bottom)
    * [`--ck-border-radius-surface-cut-top-left`](#--ck-border-radius-surface-cut-top-left)
    * [`--ck-border-radius-surface-cut-top-right`](#--ck-border-radius-surface-cut-top-right)
    * [`--ck-border-radius-surface-cut-bottom-right`](#--ck-border-radius-surface-cut-bottom-right)
    * [`--ck-border-radius-surface-cut-bottom-left`](#--ck-border-radius-surface-cut-bottom-left)

* <a id="--ck-border-radius-uniform"></a>

  `--ck-border-radius-uniform`: Corner radius of every corner of the surfaces that open from a control, such as dropdown panels, dropdown menus, autocomplete results, and the color selector, so that they are fully rounded.

  Set it to `initial` to square the corners that touch the control, as in the legacy theme. `initial` makes the surfaces use their per-corner radii, such as [`--ck-border-radius-surface-cut-top-left`](#--ck-border-radius-surface-cut-top-left), instead.

  * Default: `var(--ck-border-radius-surface)`
  * Resolves to: `8px`
  * Follows: [`--ck-border-radius-surface`](#--ck-border-radius-surface)

* <a id="--ck-border-radius-surface-attached"></a>

  `--ck-border-radius-surface-attached`: Corner radius of the corners of an attached surface that do not touch its control.

  * Default: `var(--ck-border-radius-surface)`

  * Resolves to: `8px`

  * Follows: [`--ck-border-radius-surface`](#--ck-border-radius-surface)

  * Followed by:

    * [`--ck-border-radius-surface-attached-top`](#--ck-border-radius-surface-attached-top)
    * [`--ck-border-radius-surface-attached-bottom`](#--ck-border-radius-surface-attached-bottom)
    * [`--ck-border-radius-surface-cut-top-left`](#--ck-border-radius-surface-cut-top-left)
    * [`--ck-border-radius-surface-cut-top-right`](#--ck-border-radius-surface-cut-top-right)
    * [`--ck-border-radius-surface-cut-bottom-right`](#--ck-border-radius-surface-cut-bottom-right)
    * [`--ck-border-radius-surface-cut-bottom-left`](#--ck-border-radius-surface-cut-bottom-left)

* <a id="--ck-border-radius-surface-attached-top"></a>

  `--ck-border-radius-surface-attached-top`: Radii of a surface attached at its top edge, with the top corners square, such as the sticky toolbar.

  Read through the `border-radius` shorthand.

  * Default: `0 0 var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached)`
  * Resolves to: `0 0 8px 8px`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

* <a id="--ck-border-radius-surface-attached-bottom"></a>

  `--ck-border-radius-surface-attached-bottom`: Radii of an element attached at its bottom edge, with the bottom corners square, such as a dropdown button while its panel is open.

  Read through the `border-radius` shorthand.

  * Default: `var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached) 0 0`
  * Resolves to: `8px 8px 0 0`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

* <a id="--ck-border-radius-surface-cut-top-left"></a>

  `--ck-border-radius-surface-cut-top-left`: Radii of a panel with its top-left corner square, such as a dropdown panel that opens below its button and to the right.

  Read through the `border-radius` shorthand.

  * Default: `0 var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached)`
  * Resolves to: `0 8px 8px 8px`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

* <a id="--ck-border-radius-surface-cut-top-right"></a>

  `--ck-border-radius-surface-cut-top-right`: Radii of a panel with its top-right corner square, such as a dropdown panel that opens below its button and to the left.

  Read through the `border-radius` shorthand.

  * Default: `var(--ck-border-radius-surface-attached) 0 var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached)`
  * Resolves to: `8px 0 8px 8px`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

* <a id="--ck-border-radius-surface-cut-bottom-right"></a>

  `--ck-border-radius-surface-cut-bottom-right`: Radii of a panel with its bottom-right corner square, such as a dropdown panel that opens above its button and to the left.

  Read through the `border-radius` shorthand.

  * Default: `var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached) 0 var(--ck-border-radius-surface-attached)`
  * Resolves to: `8px 8px 0 8px`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

* <a id="--ck-border-radius-surface-cut-bottom-left"></a>

  `--ck-border-radius-surface-cut-bottom-left`: Radii of a panel with its bottom-left corner square, such as a dropdown panel that opens above its button and to the right.

  Read through the `border-radius` shorthand.

  * Default: `var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached) var(--ck-border-radius-surface-attached) 0`
  * Resolves to: `8px 8px 8px 0`
  * Follows: [`--ck-border-radius-surface-attached`](#--ck-border-radius-surface-attached)

<a id="semantic-spacing"></a>

### Spacing

Source: `_semantic-spacing.css`

The spacing roles of the editor UI: the padding of controls, and the padding and gap tiers that components pick their spacing from. To change the padding of controls across the UI, override a control role, such as [`--ck-spacing-control-padding-inline`](#--ck-spacing-control-padding-inline). The padding and gap tiers set a density, not a purpose: a component token names the purpose and reads a tier, such as `--ck-toolbar-padding: 0 var(--ck-spacing-padding-compact)`, so overriding a tier changes every component that reads it. To change the spacing of one component, override its component token instead.

* <a id="--ck-spacing-control-padding-block"></a>

  `--ck-spacing-control-padding-block`: Block padding of controls, such as buttons, list items, and the buttons of dropdown menus.

  * Default: `var(--ck-spacing-small, var(--ck-spacing-sm))`
  * Resolves to: `4px`
  * Follows: [`--ck-spacing-sm`](#--ck-spacing-sm)

* <a id="--ck-spacing-control-padding-inline"></a>

  `--ck-spacing-control-padding-inline`: Inline padding of controls, such as the buttons of dropdown menus and of the menu bar.

  Dropdowns also use it to place their arrow.

  * Default: `var(--ck-spacing-standard, var(--ck-spacing-base))`
  * Resolves to: `8px`
  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

* <a id="--ck-spacing-control-padding-inline-compact"></a>

  `--ck-spacing-control-padding-inline-compact`: Smaller inline padding of compact controls, such as a dropdown button with only an icon and the list items with a check mark.

  * Default: `var(--ck-spacing-small, var(--ck-spacing-sm))`
  * Resolves to: `4px`
  * Follows: [`--ck-spacing-sm`](#--ck-spacing-sm)

* <a id="--ck-spacing-control-padding-inline-start-compact"></a>

  `--ck-spacing-control-padding-inline-start-compact`: Smaller inline start padding of compact controls.

  * Default: `var(--ck-spacing-tiny, var(--ck-spacing-xs))`
  * Resolves to: `2px`
  * Follows: [`--ck-spacing-xs`](#--ck-spacing-xs)

* <a id="--ck-spacing-control-padding-block-compact"></a>

  `--ck-spacing-control-padding-block-compact`: Smaller block padding of compact controls.

  * Default: `var(--ck-spacing-tiny, var(--ck-spacing-xs))`
  * Resolves to: `2px`
  * Follows: [`--ck-spacing-xs`](#--ck-spacing-xs)

* <a id="--ck-spacing-control-icon-gap"></a>

  `--ck-spacing-control-icon-gap`: Gap between the icon and the label of a control, such as a menu bar button or a form header.

  * Default: `var(--ck-spacing-medium-small, var(--ck-spacing-md))`
  * Resolves to: `6px`
  * Follows: [`--ck-spacing-md`](#--ck-spacing-md)

* <a id="--ck-spacing-padding-tight"></a>

  `--ck-spacing-padding-tight`

  * Default: `var(--ck-spacing-tiny, var(--ck-spacing-xs))`
  * Resolves to: `2px`
  * Follows: [`--ck-spacing-xs`](#--ck-spacing-xs)

* <a id="--ck-spacing-padding-compact"></a>

  `--ck-spacing-padding-compact`

  * Default: `var(--ck-spacing-small, var(--ck-spacing-sm))`
  * Resolves to: `4px`
  * Follows: [`--ck-spacing-sm`](#--ck-spacing-sm)

* <a id="--ck-spacing-padding-snug"></a>

  `--ck-spacing-padding-snug`

  * Default: `var(--ck-spacing-medium-small, var(--ck-spacing-md))`
  * Resolves to: `6px`
  * Follows: [`--ck-spacing-md`](#--ck-spacing-md)

* <a id="--ck-spacing-padding"></a>

  `--ck-spacing-padding`

  * Default: `var(--ck-spacing-base)`
  * Resolves to: `8px`
  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

* <a id="--ck-spacing-padding-comfortable"></a>

  `--ck-spacing-padding-comfortable`

  * Default: `var(--ck-spacing-large, var(--ck-spacing-lg))`
  * Resolves to: `12px`
  * Follows: [`--ck-spacing-lg`](#--ck-spacing-lg)

* <a id="--ck-spacing-padding-spacious"></a>

  `--ck-spacing-padding-spacious`

  * Default: `var(--ck-spacing-extra-large, var(--ck-spacing-xl))`
  * Resolves to: `16px`
  * Follows: [`--ck-spacing-xl`](#--ck-spacing-xl)

* <a id="--ck-spacing-gap-tight"></a>

  `--ck-spacing-gap-tight`

  * Default: `var(--ck-spacing-tiny, var(--ck-spacing-xs))`
  * Resolves to: `2px`
  * Follows: [`--ck-spacing-xs`](#--ck-spacing-xs)

* <a id="--ck-spacing-gap-compact"></a>

  `--ck-spacing-gap-compact`

  * Default: `var(--ck-spacing-small, var(--ck-spacing-sm))`
  * Resolves to: `4px`
  * Follows: [`--ck-spacing-sm`](#--ck-spacing-sm)

* <a id="--ck-spacing-gap-snug"></a>

  `--ck-spacing-gap-snug`

  * Default: `var(--ck-spacing-medium-small, var(--ck-spacing-md))`
  * Resolves to: `6px`
  * Follows: [`--ck-spacing-md`](#--ck-spacing-md)

* <a id="--ck-spacing-gap"></a>

  `--ck-spacing-gap`

  * Default: `var(--ck-spacing-base)`
  * Resolves to: `8px`
  * Follows: [`--ck-spacing-base`](#--ck-spacing-base)

* <a id="--ck-spacing-gap-comfortable"></a>

  `--ck-spacing-gap-comfortable`

  * Default: `var(--ck-spacing-large, var(--ck-spacing-lg))`
  * Resolves to: `12px`
  * Follows: [`--ck-spacing-lg`](#--ck-spacing-lg)

* <a id="--ck-spacing-gap-spacious"></a>

  `--ck-spacing-gap-spacious`

  * Default: `var(--ck-spacing-extra-large, var(--ck-spacing-xl))`
  * Resolves to: `16px`
  * Follows: [`--ck-spacing-xl`](#--ck-spacing-xl)

<a id="semantic-sizes"></a>

### Sizes

Source: `_semantic-width.css`

The width roles of the editor UI: the widths of balloon forms and dialogs. To change the width of one kind of panel across the UI, such as dialogs, override its role, such as [`--ck-width-dialog`](#--ck-width-dialog). To change one component, override its component token instead. Set [`--ck-font-size-base`](#--ck-font-size-base) on `:root` to resize all of them together with the font sizes. Each role is capped at 90% of the viewport width, so the panels fit on narrow screens.

* <a id="--ck-width-balloon-form"></a>

  `--ck-width-balloon-form`: Width of forms in balloons, such as the link form, the bookmark form, and the text alternative form of an image.

  * Default: `min(var(--ck-width-md), 90vw)`
  * Resolves to: `min(400px, 90vw)`
  * Follows: [`--ck-width-md`](#--ck-width-md)

* <a id="--ck-width-dialog-xs"></a>

  `--ck-width-dialog-xs`: Width of extra small dialogs.

  * Default: `min(var(--ck-width-xs), 90vw)`
  * Resolves to: `min(240px, 90vw)`
  * Follows: [`--ck-width-xs`](#--ck-width-xs)

* <a id="--ck-width-dialog-sm"></a>

  `--ck-width-dialog-sm`: Width of small dialogs.

  * Default: `min(var(--ck-width-sm), 90vw)`
  * Resolves to: `min(320px, 90vw)`
  * Follows: [`--ck-width-sm`](#--ck-width-sm)

* <a id="--ck-width-dialog"></a>

  `--ck-width-dialog`: Width of dialogs, such as the find and replace dialog and the media embed form.

  * Default: `min(var(--ck-width-md), 90vw)`
  * Resolves to: `min(400px, 90vw)`
  * Follows: [`--ck-width-md`](#--ck-width-md)

* <a id="--ck-width-dialog-lg"></a>

  `--ck-width-dialog-lg`: Width of large dialogs.

  * Default: `min(var(--ck-width-xl), 90vw)`
  * Resolves to: `min(560px, 90vw)`
  * Follows: [`--ck-width-xl`](#--ck-width-xl)

* <a id="--ck-width-dialog-xl"></a>

  `--ck-width-dialog-xl`: Width of extra large dialogs.

  * Default: `min(var(--ck-width-2xl), 90vw)`
  * Resolves to: `min(640px, 90vw)`
  * Follows: [`--ck-width-2xl`](#--ck-width-2xl)

Source: `_semantic-layout.css`

The layout roles of the editor UI: the sizes that several components share. To change the size of one component, override its component token instead.

* <a id="--ck-size-control-min-height"></a>

  `--ck-size-control-min-height`: Minimum height of controls, such as buttons and text inputs.

  Buttons also use it as their minimum width, so an icon button is at least square. Set [`--ck-font-size-base`](#--ck-font-size-base) on `:root` to resize it together with the font sizes. It is read where controls are drawn, so it can also be set on a part of the UI, as the theme does for small buttons.

  * Default: `var(--ck-ui-component-min-height, calc(var(--ck-font-size-normal, var(--ck-font-size-base))*2))`
  * Resolves to: `32px`
  * Follows: [`--ck-font-size-base`](#--ck-font-size-base)

<a id="semantic-layers"></a>

### Layers

Source: `_semantic-layer.css`

The stacking roles of the editor UI: the z-index of controls, panels, dialogs, and tooltips relative to each other. To change the stacking of one group of elements, such as dialogs, override its role, such as [`--ck-layer-dialog`](#--ck-layer-dialog). To move the whole UI relative to the rest of the page, change the z-index scale ([`--ck-z-base`](#--ck-z-base), [`--ck-z-overlay`](#--ck-z-overlay), and [`--ck-z-modal`](#--ck-z-modal)) instead.

* <a id="--ck-layer-base"></a>

  `--ck-layer-base`: Base layer of controls, which keeps a focused item, such as a list item, above its neighbors, so that its focus border and focus shadow are not covered.

  * Default: `var(--ck-z-default, var(--ck-z-base))`

  * Resolves to: `1`

  * Follows: [`--ck-z-base`](#--ck-z-base)

  * Followed by:

    * [`--ck-layer-control-raised`](#--ck-layer-control-raised)
    * [`--ck-layer-balloon-arrow-back`](#--ck-layer-balloon-arrow-back)
    * [`--ck-layer-balloon-arrow-front`](#--ck-layer-balloon-arrow-front)

* <a id="--ck-layer-control-raised"></a>

  `--ck-layer-control-raised`: Layer of a focused control that must stay above the controls next to it, such as a button in a toolbar dropdown or a split button.

  * Default: `calc(var(--ck-layer-base) + 1)`
  * Resolves to: `2`
  * Follows: [`--ck-layer-base`](#--ck-layer-base)

* <a id="--ck-layer-panel"></a>

  `--ck-layer-panel`: Layer of floating panels, such as balloons, dropdown panels, and the sticky toolbar.

  * Default: `var(--ck-z-panel, var(--ck-z-overlay))`

  * Resolves to: `1000`

  * Follows: [`--ck-z-overlay`](#--ck-z-overlay)

  * Followed by:

    * [`--ck-layer-panel-above`](#--ck-layer-panel-above)
    * [`--ck-layer-panel-below`](#--ck-layer-panel-below)

* <a id="--ck-layer-panel-above"></a>

  `--ck-layer-panel-above`: Layer of a panel that must stand above other panels, such as the panel of a dropdown in a toolbar or the panel of a dropdown menu.

  * Default: `calc(var(--ck-layer-panel) + 1)`
  * Resolves to: `1001`
  * Follows: [`--ck-layer-panel`](#--ck-layer-panel)

* <a id="--ck-layer-panel-below"></a>

  `--ck-layer-panel-below`: Layer of the fake panels that show a stack of balloons under the visible one.

  * Default: `calc(var(--ck-layer-panel) - 1)`
  * Resolves to: `999`
  * Follows: [`--ck-layer-panel`](#--ck-layer-panel)

* <a id="--ck-layer-dialog"></a>

  `--ck-layer-dialog`: Layer of dialogs.

  Elements that must stand above dialogs, such as the emoji picker, the mention list, and CKBox in the fullscreen mode, use one layer above it.

  * Default: `var(--ck-z-dialog, var(--ck-z-modal))`
  * Resolves to: `9999`
  * Follows: [`--ck-z-modal`](#--ck-z-modal)
  * Followed by:
    * [`--ck-layer-tooltip`](#--ck-layer-tooltip)

* <a id="--ck-layer-tooltip"></a>

  `--ck-layer-tooltip`: Layer of tooltips, above every other part of the UI, including dialogs.

  * Default: `calc(var(--ck-layer-dialog) + 100)`
  * Resolves to: `10099`
  * Follows: [`--ck-layer-dialog`](#--ck-layer-dialog)

* <a id="--ck-layer-balloon-arrow-back"></a>

  `--ck-layer-balloon-arrow-back`: Layer of the back part of a balloon arrow, its border.

  * Default: `calc(var(--ck-layer-base) - 3)`
  * Resolves to: `-2`
  * Follows: [`--ck-layer-base`](#--ck-layer-base)
  * Followed by:
    * [`--ck-layer-balloon-arrow-front`](#--ck-layer-balloon-arrow-front)

* <a id="--ck-layer-balloon-arrow-front"></a>

  `--ck-layer-balloon-arrow-front`: Layer of the front part of a balloon arrow, its fill, drawn over the back part.

  * Default: `calc(var(--ck-layer-balloon-arrow-back) + 1)`
  * Resolves to: `-1`
  * Follows: [`--ck-layer-balloon-arrow-back`](#--ck-layer-balloon-arrow-back)

<a id="semantic-motion"></a>

### Motion

Source: `_semantic-motion.css`

The motion roles of the editor UI: the durations and the easing of transitions and animations, by the kind of motion. To change one kind of motion across the UI, such as the transitions of controls, override its role, such as [`--ck-transition-duration-control`](#--ck-transition-duration-control). To change one component, override its component token instead.

* <a id="--ck-transition-duration-control-fast"></a>

  `--ck-transition-duration-control-fast`: Duration of quick control transitions, such as the border and the shadow of a text input, and the floating label of a labeled field.

  * Default: `var(--ck-duration-fast)`
  * Resolves to: `.1s`
  * Follows: [`--ck-duration-fast`](#--ck-duration-fast)
  * Followed by:
    * [`--ck-transition-control-fast`](#--ck-transition-control-fast)

* <a id="--ck-transition-duration-control"></a>

  `--ck-transition-duration-control`: Duration of control transitions, such as changes of borders and shadows.

  * Default: `var(--ck-duration-base)`
  * Resolves to: `.2s`
  * Follows: [`--ck-duration-base`](#--ck-duration-base)
  * Followed by:
    * [`--ck-transition-control`](#--ck-transition-control)

* <a id="--ck-transition-duration-control-emphasized"></a>

  `--ck-transition-duration-control-emphasized`: Duration of larger control movements, such as the toggle of a switch button.

  * Default: `var(--ck-duration-slow)`
  * Resolves to: `.3s`
  * Follows: [`--ck-duration-slow`](#--ck-duration-slow)

* <a id="--ck-transition-duration-surface"></a>

  `--ck-transition-duration-surface`: Duration of transitions of surfaces, which change more than controls and take longer.

  * Default: `var(--ck-duration-slower)`
  * Resolves to: `.4s`
  * Follows: [`--ck-duration-slower`](#--ck-duration-slower)

* <a id="--ck-transition-timing-function-control"></a>

  `--ck-transition-timing-function-control`: Easing of control transitions, such as the border and the shadow of a button.

  * Default: `var(--ck-ease-interactive)`

  * Resolves to: `ease-in-out`

  * Follows: [`--ck-ease-interactive`](#--ck-ease-interactive)

  * Followed by:

    * [`--ck-transition-control`](#--ck-transition-control)
    * [`--ck-transition-control-fast`](#--ck-transition-control-fast)

* <a id="--ck-transition-timing-function-control-emphasized"></a>

  `--ck-transition-timing-function-control-emphasized`: Easing of emphasized control movements, such as the floating label of a labeled field.

  * Default: `var(--ck-ease-emphasized)`
  * Resolves to: `cubic-bezier(0, 0, 0.24, 0.95)`
  * Follows: [`--ck-ease-emphasized`](#--ck-ease-emphasized)

* <a id="--ck-transition-timing-function-surface"></a>

  `--ck-transition-timing-function-surface`: Easing of surface transitions, such as the background of a switch button.

  * Default: `var(--ck-ease-standard)`
  * Resolves to: `ease`
  * Follows: [`--ck-ease-standard`](#--ck-ease-standard)

* <a id="--ck-transition-control"></a>

  `--ck-transition-control`: Transition of the shadow and the border of a control, such as a button.

  Use it as the whole value of `transition`.

  * Default: `box-shadow var(--ck-transition-duration-control) var(--ck-transition-timing-function-control), border var(--ck-transition-duration-control) var(--ck-transition-timing-function-control)`
  * Resolves to: `box-shadow .2s ease-in-out, border .2s ease-in-out`
  * Follows: [`--ck-transition-duration-control`](#--ck-transition-duration-control), [`--ck-transition-timing-function-control`](#--ck-transition-timing-function-control)

* <a id="--ck-transition-control-fast"></a>

  `--ck-transition-control-fast`: Quick transition of the shadow and the border of a control, such as a text input.

  Use it as the whole value of `transition`.

  * Default: `box-shadow var(--ck-transition-duration-control-fast) var(--ck-transition-timing-function-control), border var(--ck-transition-duration-control-fast) var(--ck-transition-timing-function-control)`
  * Resolves to: `box-shadow .1s ease-in-out, border .1s ease-in-out`
  * Follows: [`--ck-transition-duration-control-fast`](#--ck-transition-duration-control-fast), [`--ck-transition-timing-function-control`](#--ck-transition-timing-function-control)

* <a id="--ck-animation-duration-feedback"></a>

  `--ck-animation-duration-feedback`: Duration of feedback animations, such as the shake of a text input with an error.

  * Default: `var(--ck-animation-duration-slow)`
  * Resolves to: `.3s`
  * Follows: [`--ck-animation-duration-slow`](#--ck-animation-duration-slow)

* <a id="--ck-animation-duration-surface-entrance"></a>

  `--ck-animation-duration-surface-entrance`: Duration of the animation of a surface that appears, such as the fade-in of a dialog.

  * Default: `var(--ck-animation-duration-slow)`
  * Resolves to: `.3s`
  * Follows: [`--ck-animation-duration-slow`](#--ck-animation-duration-slow)

* <a id="--ck-animation-duration-progress"></a>

  `--ck-animation-duration-progress`: Duration of one cycle of a progress animation, such as the rotation of a spinner.

  * Default: `var(--ck-animation-duration-emphasis)`
  * Resolves to: `1.5s`
  * Follows: [`--ck-animation-duration-emphasis`](#--ck-animation-duration-emphasis)

* <a id="--ck-animation-duration-progress-reduced"></a>

  `--ck-animation-duration-progress-reduced`: Duration of one cycle of a progress animation when the user prefers reduced motion.

  * Default: `var(--ck-animation-duration-reduced)`
  * Resolves to: `0s`
  * Follows: [`--ck-animation-duration-reduced`](#--ck-animation-duration-reduced)

* <a id="--ck-animation-timing-function-feedback"></a>

  `--ck-animation-timing-function-feedback`: Easing of feedback animations, such as the shake of a text input with an error.

  * Default: `var(--ck-animation-ease-standard)`
  * Resolves to: `ease`
  * Follows: [`--ck-animation-ease-standard`](#--ck-animation-ease-standard)

* <a id="--ck-animation-timing-function-progress"></a>

  `--ck-animation-timing-function-progress`: Easing of progress animations, such as the rotation of a spinner.

  Keep it linear, so that a looping animation keeps an even speed.

  * Default: `var(--ck-animation-ease-linear)`
  * Resolves to: `linear`
  * Follows: [`--ck-animation-ease-linear`](#--ck-animation-ease-linear)

* <a id="--ck-animation-fill-mode-feedback"></a>

  `--ck-animation-fill-mode-feedback`: Fill mode of feedback animations, such as the shake of a text input with an error.

  * Default: `var(--ck-animation-fill-both)`
  * Resolves to: `both`
  * Follows: [`--ck-animation-fill-both`](#--ck-animation-fill-both)

---

Full index of the CKEditor 5 documentation: [llms.txt](../../../../llms.txt)
