Skip to content

Commit

Permalink
Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Christy committed Mar 19, 2024
1 parent c7f0f97 commit 3206900
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 7 deletions.
26 changes: 19 additions & 7 deletions config/settings_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,17 @@
"presets": {
"Default": {
"logo_width": 90,
"colors_solid_button_labels": "#ffffff",
"colors_accent_1": "#121212",
"gradient_accent_1": "",
"colors_accent_2": "#334fb4",
"gradient_accent_2": "",
"colors_text": "#121212",
"colors_outline_button_labels": "#121212",
"colors_background_1": "#ffffff",
"gradient_background_1": "",
"colors_background_2": "#f3f3f3",
"gradient_background_2": "",
"color_schemes": {
"scheme-1": {
"settings": {
Expand Down Expand Up @@ -239,7 +250,7 @@
"card_style": "standard",
"card_image_padding": 0,
"card_text_alignment": "left",
"card_color_scheme": "scheme-2",
"card_color_scheme": "background-2",
"card_border_thickness": 0,
"card_border_opacity": 10,
"card_corner_radius": 0,
Expand All @@ -250,7 +261,7 @@
"collection_card_style": "standard",
"collection_card_image_padding": 0,
"collection_card_text_alignment": "left",
"collection_card_color_scheme": "scheme-2",
"collection_card_color_scheme": "background-2",
"collection_card_border_thickness": 0,
"collection_card_border_opacity": 10,
"collection_card_corner_radius": 0,
Expand All @@ -261,7 +272,7 @@
"blog_card_style": "standard",
"blog_card_image_padding": 0,
"blog_card_text_alignment": "left",
"blog_card_color_scheme": "scheme-2",
"blog_card_color_scheme": "background-2",
"blog_card_border_thickness": 0,
"blog_card_border_opacity": 10,
"blog_card_corner_radius": 0,
Expand Down Expand Up @@ -298,8 +309,9 @@
"drawer_shadow_blur": 5,
"badge_position": "bottom left",
"badge_corner_radius": 40,
"sale_badge_color_scheme": "scheme-5",
"sold_out_badge_color_scheme": "scheme-3",
"sale_badge_color_scheme": "accent-2",
"sold_out_badge_color_scheme": "inverse",
"accent_icons": "text",
"social_twitter_link": "",
"social_facebook_link": "",
"social_pinterest_link": "",
Expand All @@ -322,13 +334,13 @@
"main-password-header": {
"type": "main-password-header",
"settings": {
"color_scheme": "scheme-1"
"color_scheme": "background-1"
}
},
"main-password-footer": {
"type": "main-password-footer",
"settings": {
"color_scheme": "scheme-1"
"color_scheme": "background-1"
}
}
}
Expand Down
103 changes: 103 additions & 0 deletions config/settings_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,80 @@
{
"name": "t:settings_schema.colors.name",
"settings": [
{
"type": "header",
"content": "t:settings_schema.colors.settings.header__1.content"
},
{
"type": "color",
"id": "colors_solid_button_labels",
"default": "#FFFFFF",
"label": "t:settings_schema.colors.settings.colors_solid_button_labels.label",
"info": "t:settings_schema.colors.settings.colors_solid_button_labels.info"
},
{
"type": "color",
"id": "colors_accent_1",
"default": "#121212",
"label": "t:settings_schema.colors.settings.colors_accent_1.label",
"info": "t:settings_schema.colors.settings.colors_accent_1.info"
},
{
"id": "gradient_accent_1",
"type": "color_background",
"label": "t:settings_schema.colors.settings.gradient_accent_1.label"
},
{
"type": "color",
"id": "colors_accent_2",
"default": "#334FB4",
"label": "t:settings_schema.colors.settings.colors_accent_2.label"
},
{
"id": "gradient_accent_2",
"type": "color_background",
"label": "t:settings_schema.colors.settings.gradient_accent_2.label"
},
{
"type": "header",
"content": "t:settings_schema.colors.settings.header__2.content"
},
{
"type": "color",
"id": "colors_text",
"default": "#121212",
"label": "t:settings_schema.colors.settings.colors_text.label",
"info": "t:settings_schema.colors.settings.colors_text.info"
},
{
"type": "color",
"id": "colors_outline_button_labels",
"default": "#121212",
"label": "t:settings_schema.colors.settings.colors_outline_button_labels.label",
"info": "t:settings_schema.colors.settings.colors_outline_button_labels.info"
},
{
"type": "color",
"id": "colors_background_1",
"default": "#FFFFFF",
"label": "t:settings_schema.colors.settings.colors_background_1.label"
},
{
"id": "gradient_background_1",
"type": "color_background",
"label": "t:settings_schema.colors.settings.gradient_background_1.label"
},
{
"type": "color",
"id": "colors_background_2",
"default": "#F3F3F3",
"label": "t:settings_schema.colors.settings.colors_background_2.label"
},
{
"id": "gradient_background_2",
"type": "color_background",
"label": "t:settings_schema.colors.settings.gradient_background_2.label"
},
{
"type": "color_scheme_group",
"id": "color_schemes",
Expand Down Expand Up @@ -1279,6 +1353,35 @@
}
]
},
{
"name": "t:settings_schema.styles.name",
"settings": [
{
"type": "select",
"id": "accent_icons",
"options": [
{
"value": "accent-1",
"label": "t:sections.all.colors.accent_1.label"
},
{
"value": "accent-2",
"label": "t:sections.all.colors.accent_2.label"
},
{
"value": "outline-button",
"label": "t:settings_schema.styles.settings.accent_icons.options__3.label"
},
{
"value": "text",
"label": "t:settings_schema.styles.settings.accent_icons.options__4.label"
}
],
"default": "text",
"label": "t:settings_schema.styles.settings.accent_icons.label"
}
]
},
{
"name": "t:settings_schema.brand_information.name",
"settings": [
Expand Down

0 comments on commit 3206900

Please sign in to comment.