Days
Hours
Minutes
Seconds
x

New Froala Editor v5.0.0 is here โ€“ Learn More

Skip to content
Froala Documentation

Styling

Color Themes

The default theme of the WYSIWYG HTML editor can be changed to one that better fits the color palette of your website. You can also create your own theme and customize the rich text editor's interface the way you want.


Try it yourself:


The desired theme can be set using the theme option. Don't forget to include the corresponding CSS theme file.

Edit in JSFiddle

HTML

<div id="eg-dark-theme">
  Dark Theme
</div>
<br/>

<div id="eg-gray-theme">
  Gray Theme
</div>
<br/>

<div id="eg-royal-theme">
  Royal Theme
</div>

CSS

<!-- Include theme files. -->
<link href="../css/themes/dark.min.css" rel="stylesheet" type="text/css" />
<link href="../css/themes/gray.min.css" rel="stylesheet" type="text/css" />
<link href="../css/themes/royal.min.css" rel="stylesheet" type="text/css" />

JAVASCRIPT

<script>
  new FroalaEditor('div#eg-dark-theme', {
    // Set dark theme name.
    theme: 'dark',
    zIndex: 2003
  })

  new FroalaEditor('div#eg-gray-theme', {
    // Set gray theme name.
    theme: 'gray',
    zIndex: 2001
  })

  new FroalaEditor('div#eg-royal-theme', {
    // Set royal theme name.
    theme: 'royal'
  })
</script>
Sign up

Download the code by signing up for our newsletter

Sign up

Download the code by signing up for our newsletter

Note: By registering, you confirm that you agree to the processing of your personal data by Froala, Inc. - Froala as described in the Privacy Statement. Froala, Inc. - Froala is part of the Idera group and may share your information with its parent company Idera, Inc., and its affiliates. For further details on how your data is used, stored, and shared, please review our Privacy Statement.