Config files define settings in the Theme settings area of the theme editor, as well as store their values.
Theme settings are a good place to host general settings such as typography and color options. Theme settings can be accessed through the settings object.
Config files are located in the
config directory of the theme:
└── theme ... ├── config | └── settings_schema.json | ├── settings_data.json | └── settings_schema.json
There are three config files, each with their own schema and content:
Controls the organization and content of the Theme settings area of the theme editor.
Contains the saved values from the settings in
Contains an object for each theme style. Each object is in the same format as
When working with config files, you should familiarize yourself with the following:
There are two categories of settings:
You can add theme metadata to the Theme actions menu of the theme editor. This includes information like the theme name and version, where to find theme documentation, and theme developer contact details. To learn how to include this information in your theme, refer to Add theme metadata.
Updated about 1 month ago