Deprecated settings
The following settings are deprecated and have been replaced. They can exist in some older themes, but they're no longer recommended for new themes.
Anchor to [object Object]color_scheme
color_schemeThe color_scheme setting has been replaced by the color_palette setting. Existing themes that use color_scheme continue to work, but new themes should use color_palette for managing theme colors.
A setting of type color_scheme outputs a picker with all of the available theme color schemes, and a preview of the selected color scheme. Theme color schemes in the picker are defined using the color_scheme_group setting.
You can apply a color scheme to sections, blocks, and general theme settings. Color scheme settings aren't supported in app blocks.
For example, the setting below generates the following output:
Setting
Output

When accessing the value of a color_scheme type setting, Shopify returns the selected color_scheme object from color_scheme_group.
If no value was entered, or the value was invalid, then the default value from color_scheme is returned. If the default value is also invalid, then the first color_scheme from color_scheme_group is returned.
If the theme doesn't have color_scheme_group data in settings_data.json, then nil is returned.
Anchor to [object Object]color_scheme_group
color_scheme_groupThe color_scheme_group setting has been replaced by the color_palette setting. Existing themes that use color_scheme_group continue to work, but new themes should use color_palette for managing theme colors.
A setting of type color_scheme_group outputs a color scheme composed of the following input setting types:
headercolorcolor_background
Color schemes can be added only in settings_schema.json.
For example, the setting below generates the following output:
Setting
Output

The role field outputs a color scheme preview. The color scheme previews are visible to merchants anywhere in the editor where they might pick a color scheme. You can assign roles to your color scheme definitions to map the color scheme to the previews. For example, you can assign role.background to the Background definition. Role uses the following standardized mapping of the color_scheme_group definition to the color scheme preview:
| Role | Description | Required? | Gradient? |
|---|---|---|---|
role.background | Renders the background color of the preview. | Yes | Optional |
role.text | Renders the text color of the preview. | Yes | No |
role.primary_buttonrole.secondary_button | Render the first and second pills in the preview. | Yes | Optional |
role.primary_button_borderrole.secondary_button_border | Render the first and second pills' border in the preview. | Yes | No |
role.on_primary_buttonrole.on_secondary_button | Aren't used in the preview. | Yes | No |
role.linksrole.icons | Aren't used in the preview. | Yes | No |
Output

The font setting has been replaced by the font_picker setting.
Settings of type font outputs a drop-down menu that's automatically populated with various font selections.
For example, the following setting generates the following output:
Setting
Output

Anchor to [object Object]snippet
snippetThe snippet setting has been replaced by sections.
Settings of type snippet outputs a drop-down menu that's automatically populated with the names of all snippet files in the theme.
For example, the following setting generates the following output:
Setting
Output
