themes.md 2.6 KB


layout: docs title: Themes permalink: /docs/themes/ redirect_from:

  • /docs/themes/bubble/
  • /docs/themes/snow/ ---

    Themes allow you to easily make your editor look good with minimal effort. Quill features two offically supported themes: Snow and Bubble.

    Usage

    <!-- Add the theme's stylesheet -->
    <link rel="stylesheet" href="{{site.cdn}}{{site.version}}/quill.bubble.css">
    
    <script src="{{site.cdn}}{{site.version}}/quill.js"></script>
    <script>
    var quill = new Quill('#editor', {
      theme: 'bubble'   // Specify theme in configuration
    });
    </script>
    

    Bubble

    Bubble is a simple tooltip based theme.

    Standalone

    Snow

    Snow is a clean, flat toolbar theme.

    Standalone

    Customization

    Themes primarily control the visual look of Quill through its CSS stylesheet, and many changes can easily be made by overriding these rules. This is easiest to do, as with any other web application, by simply using your browser developer console to inspect the elements to view the rules affecting them.

    Many other customizations can be done through the respective modules. For example, the toolbar is perhaps the most visible user interface, but much of the customization is done through the Toolbar module.