plain/kirby-toggles-suite

Colorize your Kirby toggler field

1.0.3 2025-03-24 15:37 UTC

This package is auto-updated.

Last update: 2025-05-24 16:03:59 UTC


README

Kirby Toggles Suite

Extends the Kirby Toggles Field with colors, images and many more.

Installation

Manually

Download and unzip the content into your plugin folder: /site/plugins/

With Composer

composer require plain/kirby-toggles-suite

Examples

Manual Options

label: Theme
type: toggles
options:
  - text: Primary
    value: primary
    color: '#356A86'
  - text: Secondary
    value: secondary
    color: '#D3AF4C'
  - text: Negative
    value: negative
    color: '#FFFFFF'
    background: '#EC5555'
  - text: Positive
    value: positive
    color: '#FFFFFF'
    background: '#A3CD4F'

Query Options

label: Theme
type: toggles
options:
  type: query
  query: site.colors.tostructure
  text: '{{ item.label }}'
  value: '{{ item.class }}'
  color: '{{ item.invert }}'
  background: '{{ item.default }}'
  icon: alpha

License

By using this project, you agree to the terms and conditions outlined in our Terms of Service.

To acquire a license for this project, please visit our Licensing Page.