Skip to content

A package that adds new panels for selecting colors, works both on regular page fields and stream field.

License

Notifications You must be signed in to change notification settings

marteinn/wagtail-color-panel

Repository files navigation

Test and publish PyPI version

Wagtail-Color-Panel

Introduces panels for selecting colors in Wagtail.

Screen1

Features

  • NativeColorPanel that can be used in your edit handler
  • NativeColorBlock for usage in a StreamField
  • Based on the native HTML5 color picker
  • A custom db field for improved validation
  • PolyfillColorPanel for cases that require IE11 support (built on Spectrum)

Example

from wagtail.models import Page

from wagtail_color_panel.fields import ColorField
from wagtail_color_panel.edit_handlers import NativeColorPanel


class MyPage(Page):
    color = ColorField()

    content_panels = Page.content_panels + [
        NativeColorPanel('color'),
    ]

Documentation

Contributing

Want to contribute? Awesome. Just send a pull request.

License

Wagtail-Color-Panel is released under the MIT License.

About

A package that adds new panels for selecting colors, works both on regular page fields and stream field.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •