Overview
Configuration files define the settings area within the theme editor and store configured values.
Theme settings include configurations for typography, fonts, and colors, and can be accessed via theme.settings
.
Location
Configuration files are located in the config
directory:
└── theme
...
├── config
├── settings_data.json
└── settings_schema.json
File Types
There are two types of configuration files, each with its own structure and content:
Type | Description | Required |
---|---|---|
settings_data.json | Stores values configured by settings_schema.json | Yes |
settings_schema.json | Controls the settings and content in the theme settings of the theme editor | Yes |
Usage
When using configuration files, you should be familiar with the following:
Setting Types
There are two types of settings:
Type | Description |
---|---|
Input Settings | These settings can save the values configured by the user |
Sidebar Settings | These settings do not store values and cannot be configured. They describe controls, provide categorization, and tips for more accurate data entry |
Access Settings
Theme settings can be accessed through theme.settings
. For more information on syntax, precautions, and related details, refer to Settings.
Theme Metadata
You can add theme metadata to the Theme Actions menu in the theme editor. This includes the theme name and version, the location of theme documentation, and contact information for the theme developer. For information on how to include this in your theme, see Adding Theme Metadata.
Error loading component.