Skip to main content
Give the editor your brand’s colors with the colors prop.
The three color roles: surface is the editor's body, accent paints Save, controls paints the value rings and the ruler's needle

The Colors Prop

Give one base color per role. A role you leave out keeps its default.

The Three Roles

If you set only accent, the controls stay yellow. Set controls too to recolor them.

How Colors Apply

  • Each base color becomes the 500 step of a full 50 to 950 scale the editor builds.
  • Save’s text turns dark or light to stay readable on the accent.
  • Accepted values: hex, rgb(), hsl() and CSS color names.
colors is the only way to theme the editor. Your page’s CSS, its variables included, never recolors it, so a scale and the text on it always match. Custom properties such as --ee-accent-500 set on your page, on a wrapper or on the editor’s host element have no effect.

Invalid Colors

Any other value is an INVALID_PROPS error that names the role, for example colors.accent. See Errors. To set the color new annotations start with, use annotationColor. logo and logoText show your brand left of the toolbar. They work in every edition: Free, Lite and Full.
Editor.tsx
If the logo image fails to load, the name shows alone.