Custom theme

Restyle the editor with --te-* CSS custom properties.

Code

<style>
  #field-notes {
    --te-accent: light-dark(#236b53, #9be0bf);
    --te-accent-text: light-dark(white, #103f30);
    --te-toolbar: light-dark(#ecf7f0, #21382f);
    --te-radius: 0.4rem;
  }
</style>
<label class="editor-label" for="field-notes">Field notes</label>
<tint-editor id="field-notes" toolbar="h2 | bulletList blockquote | image"
  rows="4" value="## Field notes

- Add a heading, list, or image."></tint-editor>

The code assumes the setup from the guide. Try the editor live in the interactive demos.