Theme Documentation
Search…
Settings
Themes include a settings_schema.json file, which is a form that makes it easy for the user to customize the look-and-feel of the theme.
You can use the settings_schema.json file to configure the theme settings that the user has access to using the theme editor.

About settings_schema.json

The settings_schema.json file is located in the config directory of a theme. It controls the organization and content of the menu in the theme editor.
The settings_schema.json file contains the definitions for your theme settings, grouped into sections according to the setting type.
Here's an example of a settings definition for two input settings of type colorin the settings_schema.json file:
1
[
2
{
3
"name": "Colors",
4
"settings": [
5
{
6
"type": "color",
7
"id": "color_borders",
8
"label": "Border colors",
9
"default": "#e5e5e5"
10
},
11
{
12
"type": "color",
13
"id": "color_body_text",
14
"label": "Body text",
15
"default": "#333333"
16
}
17
]
18
}
19
]
Copied!
The settings_schema.json file is validated before being saved to make sure it follows the correct format.
Last modified 2yr ago