Skip to content

Commit 89bd900

Browse files
Update dawn json defaults (#1430)
* add default settings to templates * add all default settings for sections * add settings_data default theme settings * update escaped characters * update heading size * re-introduce escaped characters * fix product page multicolumn section * Update Dawn defauts with new defaults * update templates with new column settings * add heading size to contact form
1 parent 17b672b commit 89bd900

File tree

11 files changed

+425
-57
lines changed

11 files changed

+425
-57
lines changed

config/settings_data.json

Lines changed: 131 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,112 @@
22
"current": "Default",
33
"presets": {
44
"Default": {
5+
"colors_solid_button_labels": "#ffffff",
6+
"colors_accent_1": "#121212",
7+
"gradient_accent_1": "",
8+
"colors_accent_2": "#334fb4",
9+
"gradient_accent_2": "",
10+
"colors_text": "#121212",
11+
"colors_outline_button_labels": "#121212",
12+
"colors_background_1": "#ffffff",
13+
"gradient_background_1": "",
14+
"colors_background_2": "#f3f3f3",
15+
"gradient_background_2": "",
16+
"type_header_font": "assistant_n4",
17+
"heading_scale": 100,
18+
"type_body_font": "assistant_n4",
19+
"body_scale": 100,
20+
"page_width": 1200,
21+
"spacing_sections": 0,
22+
"spacing_grid_horizontal": 8,
23+
"spacing_grid_vertical": 8,
24+
"buttons_border_thickness": 1,
25+
"buttons_border_opacity": 100,
26+
"buttons_radius": 0,
27+
"buttons_shadow_opacity": 0,
28+
"buttons_shadow_horizontal_offset": 0,
29+
"buttons_shadow_vertical_offset": 4,
30+
"buttons_shadow_blur": 5,
31+
"variant_pills_border_thickness": 1,
32+
"variant_pills_border_opacity": 55,
33+
"variant_pills_radius": 40,
34+
"variant_pills_shadow_opacity": 0,
35+
"variant_pills_shadow_horizontal_offset": 0,
36+
"variant_pills_shadow_vertical_offset": 4,
37+
"variant_pills_shadow_blur": 5,
38+
"inputs_border_thickness": 1,
39+
"inputs_border_opacity": 55,
40+
"inputs_radius": 0,
41+
"inputs_shadow_opacity": 0,
42+
"inputs_shadow_horizontal_offset": 0,
43+
"inputs_shadow_vertical_offset": 4,
44+
"inputs_shadow_blur": 5,
45+
"card_style": "standard",
46+
"card_image_padding": 0,
47+
"card_text_alignment": "left",
48+
"card_color_scheme": "background-2",
49+
"card_border_thickness": 0,
50+
"card_border_opacity": 10,
51+
"card_corner_radius": 0,
52+
"card_shadow_opacity": 0,
53+
"card_shadow_horizontal_offset": 0,
54+
"card_shadow_vertical_offset": 4,
55+
"card_shadow_blur": 5,
56+
"text_boxes_border_thickness": 0,
57+
"text_boxes_border_opacity": 10,
58+
"text_boxes_radius": 0,
59+
"text_boxes_shadow_opacity": 0,
60+
"text_boxes_shadow_horizontal_offset": 0,
61+
"text_boxes_shadow_vertical_offset": 4,
62+
"text_boxes_shadow_blur": 5,
63+
"media_border_thickness": 1,
64+
"media_border_opacity": 5,
65+
"media_radius": 0,
66+
"media_shadow_opacity": 0,
67+
"media_shadow_horizontal_offset": 0,
68+
"media_shadow_vertical_offset": 4,
69+
"media_shadow_blur": 5,
70+
"popup_border_thickness": 1,
71+
"popup_border_opacity": 10,
72+
"popup_corner_radius": 0,
73+
"popup_shadow_opacity": 0,
74+
"popup_shadow_horizontal_offset": 0,
75+
"popup_shadow_vertical_offset": 4,
76+
"popup_shadow_blur": 5,
77+
"drawer_border_thickness": 1,
78+
"drawer_border_opacity": 10,
79+
"drawer_shadow_opacity": 0,
80+
"drawer_shadow_horizontal_offset": 0,
81+
"drawer_shadow_vertical_offset": 4,
82+
"drawer_shadow_blur": 5,
83+
"badge_position": "bottom left",
84+
"badge_corner_radius": 40,
85+
"sale_badge_color_scheme": "accent-2",
86+
"sold_out_badge_color_scheme": "inverse",
87+
"accent_icons": "text",
88+
"social_twitter_link": "",
89+
"social_facebook_link": "",
90+
"social_pinterest_link": "",
91+
"social_instagram_link": "",
92+
"social_tiktok_link": "",
93+
"social_tumblr_link": "",
94+
"social_snapchat_link": "",
95+
"social_youtube_link": "",
96+
"social_vimeo_link": "",
97+
"predictive_search_enabled": true,
98+
"predictive_search_show_vendor": false,
99+
"predictive_search_show_price": false,
100+
"currency_code_enabled": true,
5101
"sections": {
6102
"announcement-bar": {
7103
"type": "announcement-bar",
8104
"blocks": {
9105
"announcement-bar-0": {
10106
"type": "announcement",
11107
"settings": {
12-
"color_scheme": "background-1"
108+
"text": "Welcome to our store",
109+
"color_scheme": "background-1",
110+
"link": ""
13111
}
14112
}
15113
},
@@ -20,25 +118,37 @@
20118
"header": {
21119
"type": "header",
22120
"settings": {
23-
"logo_width": 90
121+
"color_scheme": "background-1",
122+
"logo_width": 90,
123+
"logo_position": "middle-left",
124+
"menu": "main-menu",
125+
"show_line_separator": true,
126+
"enable_sticky_header": true,
127+
"margin_bottom": 0
24128
}
25129
},
26130
"footer": {
27131
"type": "footer",
28132
"blocks": {
29133
"footer-0": {
30-
"type": "link_list"
134+
"type": "link_list",
135+
"settings": {
136+
"heading": "Quick links",
137+
"menu": "footer"
138+
}
31139
},
32140
"footer-1": {
33141
"type": "link_list",
34142
"settings": {
35-
"heading": "Info"
143+
"heading": "Info",
144+
"menu": "footer"
36145
}
37146
},
38147
"footer-2": {
39148
"type": "text",
40149
"settings": {
41-
"heading": "Our mission"
150+
"heading": "Our mission",
151+
"subtext": "<p>Share contact information, store details, and brand content with your customers.<\/p>"
42152
}
43153
}
44154
},
@@ -48,17 +158,30 @@
48158
"footer-2"
49159
],
50160
"settings": {
161+
"color_scheme": "background-1",
162+
"newsletter_enable": true,
163+
"newsletter_heading": "Subscribe to our emails",
51164
"show_social": true,
52165
"enable_country_selector": false,
53166
"enable_language_selector": false,
54-
"margin_top": 48
167+
"payment_enable": true,
168+
"margin_top": 48,
169+
"padding_top": 36,
170+
"padding_bottom": 36
55171
}
56172
},
57173
"main-password-header": {
58-
"type": "main-password-header"
174+
"type": "main-password-header",
175+
"settings": {
176+
"logo_max_width": 100,
177+
"color_scheme": "background-1"
178+
}
59179
},
60180
"main-password-footer": {
61-
"type": "main-password-footer"
181+
"type": "main-password-footer",
182+
"settings": {
183+
"color_scheme": "background-1"
184+
}
62185
}
63186
}
64187
}

templates/article.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,26 @@
44
"type": "main-article",
55
"blocks": {
66
"featured_image": {
7-
"type": "featured_image"
7+
"type": "featured_image",
8+
"settings": {
9+
"image_height": "adapt"
10+
}
811
},
912
"title": {
10-
"type": "title"
13+
"type": "title",
14+
"settings": {
15+
"blog_show_date": true,
16+
"blog_show_author": false
17+
}
18+
},
19+
"share": {
20+
"type": "share",
21+
"settings": {
22+
"share_label": "Share"
23+
}
1124
},
1225
"content": {
1326
"type": "content"
14-
},
15-
"share": {
16-
"type": "share"
1727
}
1828
},
1929
"block_order": [

templates/blog.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
22
"sections": {
33
"main": {
4-
"type": "main-blog"
4+
"type": "main-blog",
5+
"settings": {
6+
"layout": "collage",
7+
"show_image": true,
8+
"image_height": "medium",
9+
"show_date": true,
10+
"show_author": false,
11+
"padding_top": 36,
12+
"padding_bottom": 36
13+
}
514
}
615
},
716
"order": [

templates/cart.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,53 @@
11
{
22
"sections": {
33
"cart-items": {
4-
"type": "main-cart-items"
4+
"type": "main-cart-items",
5+
"settings": {
6+
"show_vendor": false,
7+
"padding_top": 36,
8+
"padding_bottom": 36
9+
}
510
},
611
"cart-footer": {
712
"type": "main-cart-footer",
813
"blocks": {
914
"subtotal": {
10-
"type": "subtotal"
15+
"type": "subtotal",
16+
"settings": {
17+
}
1118
},
1219
"buttons": {
13-
"type": "buttons"
20+
"type": "buttons",
21+
"settings": {
22+
}
1423
}
1524
},
1625
"block_order": [
1726
"subtotal",
1827
"buttons"
19-
]
28+
],
29+
"settings": {
30+
"show_cart_note": false
31+
}
2032
},
2133
"featured-collection": {
2234
"type": "featured-collection",
2335
"settings": {
36+
"title": "Featured collection",
37+
"heading_size": "h2",
2438
"collection": "all",
25-
"image_ratio": "square"
39+
"products_to_show": 4,
40+
"columns_desktop": 4,
41+
"color_scheme": "background-1",
42+
"show_view_all": true,
43+
"swipe_on_mobile": false,
44+
"image_ratio": "square",
45+
"show_secondary_image": false,
46+
"show_vendor": false,
47+
"show_rating": false,
48+
"columns_mobile": "2",
49+
"padding_top": 36,
50+
"padding_bottom": 36
2651
}
2752
}
2853
},

templates/collection.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
{
22
"sections": {
33
"banner": {
4-
"type": "main-collection-banner"
4+
"type": "main-collection-banner",
5+
"settings": {
6+
"show_collection_description": true,
7+
"show_collection_image": false,
8+
"color_scheme": "background-1"
9+
}
510
},
611
"product-grid": {
7-
"type": "main-collection-product-grid"
12+
"type": "main-collection-product-grid",
13+
"settings": {
14+
"products_per_page": 16,
15+
"columns_desktop": 4,
16+
"image_ratio": "adapt",
17+
"show_secondary_image": false,
18+
"show_vendor": false,
19+
"show_rating": false,
20+
"enable_filtering": true,
21+
"enable_sorting": true,
22+
"collapse_on_larger_devices": false,
23+
"columns_mobile": "2",
24+
"padding_top": 36,
25+
"padding_bottom": 36
26+
}
827
}
928
},
1029
"order": [

0 commit comments

Comments
 (0)