Invalid tag 'schema': settings: with id="color_schemes" is invalid

Hi,

Im trying to create an app with extension and i want to add support for color_schemes instead of adding a color field for each item in the section.

But i am receiving the following error:

Invalid tag 'schema': settings: with id="color_schemes" is invalid

Code:

{
  "name": "Name",
  "target": "section",
  "stylesheet": "my-css.css",
  "class": "section-wrapper",
  "settings": [
    {
      "type": "text",
      "id": "header_text",
      "label": "Header Text",
      "default": "Some Text"
    },
    {
      "type": "inline_richtext",
      "id": "text",
      "label": "Description"
    },
    {
      "type": "url",
      "id": "button_url",
      "label": "Button URL",
      "default": "/collections"
    },
    {
      "type": "text",
      "id": "button_text",
      "label": "Button Text",
      "default": "Shop now"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "default": "scheme_1",
      "label": "Color Scheme"
    }
  ]
}

I am using Dawn theme on my dev store, and when i go to Themes → Customize → Theme Settings → Colors, i can see the schemes, but yet i cant use color_scheme in my extension.

Hi Ertanb,

I notice that Dawn’s default color scheme names use hyphens rather than underscores (see this example), so it’s possible this is what is causing the error? If you change the default value in the schema to “scheme-1” are you still seeing the issue?

Hope this helps,

Hi @Liam ,

I just tried it but its still the same. I think the problem is that the "type": "color_scheme" is being marked as invalid for some reason, and its not supproted.

Here’s the error in the console:

09:05:15 │ extensions │ Error  » 'extension-name' could not be pushed:
09:05:15 │ extensions │ - blocks/extension-name.liquid
09:05:15 │ extensions │   - Cause: [blocks/extension-name.liquid] Invalid tag 'schema': settings: color_scheme type is invalid.

Hi @ertanb , did you find a solution to this? I’m facing the same error. Thanks