123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- ---
- title: Themes
- ---
- Themes allow you to easily make your editor look good with minimal effort. Quill features two officially supported themes: [Snow](#snow) and [Bubble](#bubble).
- ### Usage
- ```html
- <!-- Add the theme's stylesheet -->
- <link rel="stylesheet" href="{{site.cdn}}/quill.bubble.css" />
- <script src="{{site.cdn}}/quill.js"></script>
- <script>
- const quill = new Quill('#editor', {
- theme: 'bubble', // Specify theme in configuration
- });
- </script>
- ```
- ## Bubble
- Bubble is a simple tooltip based theme.
- <div className="standalone-container">
- <Editor
- rootStyle={{ height: '350px' }}
- style={{ border: '1px solid #ccc' }}
- config={{
- placeholder: 'Compose an epic...',
- theme: 'bubble',
- }}
- />
- </div>
- <a className="standalone-link" href="/standalone/bubble/">
- Standalone
- </a>
- ## Snow
- Snow is a clean, flat toolbar theme.
- <div className="standalone-container">
- <Editor
- rootStyle={{ height: '350px' }}
- config={{
- placeholder: 'Compose an epic...',
- modules: {
- toolbar: [
- [{ header: [] }],
- ['bold', 'italic', 'underline', 'link'],
- [{ color: [] }, { background: [] }],
- [{ list: 'ordered' }, { list: 'bullet' }],
- ['clean'],
- ],
- },
- theme: 'snow',
- }}
- />
- </div>
- <a className="standalone-link" href="/standalone/snow/">
- Standalone
- </a>
- ### 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](/docs/modules/toolbar/).
|