Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variant selector #52

Closed
wants to merge 1,134 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1134 commits
Select commit Hold shift + click to select a range
6787b70
icons
andre-beeclever Sep 29, 2024
798947b
Merge pull request #3 from andre-beeclever/andre-dev
andre-beeclever Sep 29, 2024
0d3ca81
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
4b81422
fix
andre-beeclever Sep 29, 2024
89a7835
fix
andre-beeclever Sep 29, 2024
ee6a3ce
fix
andre-beeclever Sep 29, 2024
03129d3
fix
andre-beeclever Sep 29, 2024
ff19ab3
fix
andre-beeclever Sep 29, 2024
dfc7730
fix
andre-beeclever Sep 29, 2024
251575e
fix
andre-beeclever Sep 29, 2024
9cdd89a
product-main
Benedikt-beeclever Sep 29, 2024
34db586
product-main
Benedikt-beeclever Sep 29, 2024
7ea0a40
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
2e0ca7b
product-main
Benedikt-beeclever Sep 29, 2024
9f8e566
fix
andre-beeclever Sep 29, 2024
160a5f4
fix
andre-beeclever Sep 29, 2024
dc4cb5a
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
73ad3ef
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
7cb5f35
fix
andre-beeclever Sep 29, 2024
97ef820
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
082653d
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
162634e
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
0a8c717
fix
andre-beeclever Sep 29, 2024
d2ee641
fix
andre-beeclever Sep 29, 2024
f879c9b
fix
andre-beeclever Sep 29, 2024
286fb73
fix
andre-beeclever Sep 29, 2024
66c5f7e
fix
andre-beeclever Sep 29, 2024
5fdc540
product-main
Benedikt-beeclever Sep 29, 2024
566f455
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
5838b7c
fix
andre-beeclever Sep 29, 2024
5d35d34
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
094c1d6
fix
andre-beeclever Sep 29, 2024
82d4a82
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
6182de8
fix
andre-beeclever Sep 29, 2024
61f30d2
fix
andre-beeclever Sep 29, 2024
bfee770
fix
andre-beeclever Sep 29, 2024
b553a1b
fix
andre-beeclever Sep 29, 2024
f66d2c8
fix
andre-beeclever Sep 29, 2024
d9f7e1f
fix
andre-beeclever Sep 29, 2024
413139c
fix
andre-beeclever Sep 29, 2024
9227a42
fix
andre-beeclever Sep 29, 2024
f9b1677
product-main
Benedikt-beeclever Sep 29, 2024
4a829c4
product-main
Benedikt-beeclever Sep 29, 2024
e41e8b2
fix
andre-beeclever Sep 29, 2024
c4527e1
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
45da5e2
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
ad1a9a2
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
5a3c0e4
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
76df7a6
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
9dff30a
discount
andre-beeclever Sep 29, 2024
95ba9be
product-main
Benedikt-beeclever Sep 29, 2024
40b4cea
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
3911b5d
fix
andre-beeclever Sep 29, 2024
e8d8726
product-main
Benedikt-beeclever Sep 29, 2024
9062c34
product-main
Benedikt-beeclever Sep 29, 2024
bae0cbd
product-main
Benedikt-beeclever Sep 29, 2024
9c4d73c
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
b45aed9
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
f2b48eb
product-main
Benedikt-beeclever Sep 29, 2024
0726452
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
b2ef965
product-main
Benedikt-beeclever Sep 29, 2024
cee8b82
product-main
Benedikt-beeclever Sep 29, 2024
16d7953
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
d578ebb
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
31f96ff
product-main
Benedikt-beeclever Sep 29, 2024
2bc2ccd
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
856e133
fix
andre-beeclever Sep 29, 2024
58748be
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
c62d46d
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
da52f3f
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
bb0bdba
fix
andre-beeclever Sep 29, 2024
74b0093
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
e2980b6
fix
andre-beeclever Sep 29, 2024
790e4f3
fix
andre-beeclever Sep 29, 2024
ae8bc4c
fix
andre-beeclever Sep 29, 2024
afe509f
fix
andre-beeclever Sep 29, 2024
a935f9b
product-main
Benedikt-beeclever Sep 29, 2024
89512f4
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
31a8737
fix
andre-beeclever Sep 29, 2024
a178fc3
product-main
Benedikt-beeclever Sep 29, 2024
e7c9c4b
fix
andre-beeclever Sep 29, 2024
c4e3f5b
fix
andre-beeclever Sep 29, 2024
4e728e8
product-main
Benedikt-beeclever Sep 29, 2024
81a453e
product-main
Benedikt-beeclever Sep 29, 2024
fd563c4
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
9854067
fix
andre-beeclever Sep 29, 2024
45ff707
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
a2d22aa
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
736caaf
fix
andre-beeclever Sep 29, 2024
bbe6415
components
andre-beeclever Sep 29, 2024
0b23aa9
components
andre-beeclever Sep 29, 2024
8b12cb5
product-main
Benedikt-beeclever Sep 29, 2024
60211af
components
andre-beeclever Sep 29, 2024
4e4b387
components
andre-beeclever Sep 29, 2024
432e27d
components
andre-beeclever Sep 29, 2024
b4c7fb7
components
andre-beeclever Sep 29, 2024
043fe8e
components
andre-beeclever Sep 29, 2024
8bff060
components
andre-beeclever Sep 29, 2024
f77b8ec
components
andre-beeclever Sep 29, 2024
8fa239d
components
andre-beeclever Sep 29, 2024
2c34b48
components
andre-beeclever Sep 29, 2024
fab54e0
components
andre-beeclever Sep 29, 2024
753bdf5
components
andre-beeclever Sep 29, 2024
e8b7da9
components
andre-beeclever Sep 29, 2024
1e67ba8
components
andre-beeclever Sep 29, 2024
22f9d6a
components
andre-beeclever Sep 29, 2024
761f7ec
components
andre-beeclever Sep 29, 2024
b30dacf
product-main
Benedikt-beeclever Sep 29, 2024
a2d727c
components
andre-beeclever Sep 29, 2024
de88034
components
andre-beeclever Sep 29, 2024
85888c7
product-main
Benedikt-beeclever Sep 29, 2024
00aad9f
components
andre-beeclever Sep 29, 2024
d200fe7
components
andre-beeclever Sep 29, 2024
d9573d5
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
6a831e1
components
andre-beeclever Sep 29, 2024
a5bd3dd
components
andre-beeclever Sep 29, 2024
f8468c4
components
andre-beeclever Sep 29, 2024
3092d8f
components
andre-beeclever Sep 29, 2024
e6e5713
components
andre-beeclever Sep 29, 2024
b0fcacd
product-main
Benedikt-beeclever Sep 29, 2024
eab5b26
components
andre-beeclever Sep 29, 2024
1ce80bc
components
andre-beeclever Sep 29, 2024
8669055
components
andre-beeclever Sep 29, 2024
ba92aa8
components
andre-beeclever Sep 29, 2024
8a61bc4
components
andre-beeclever Sep 29, 2024
b6901ea
components
andre-beeclever Sep 29, 2024
e94ae8c
components
andre-beeclever Sep 29, 2024
401faef
product-main
Benedikt-beeclever Sep 29, 2024
02c00c5
components
andre-beeclever Sep 29, 2024
8a68697
product-main
Benedikt-beeclever Sep 29, 2024
a44608c
product-main
Benedikt-beeclever Sep 29, 2024
ef6e899
product-main
Benedikt-beeclever Sep 29, 2024
a7d4b33
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
8bf5723
product-main
Benedikt-beeclever Sep 29, 2024
e052e50
product-main
Benedikt-beeclever Sep 29, 2024
2cdae5b
product-main
Benedikt-beeclever Sep 29, 2024
9c7f3bd
product-main
Benedikt-beeclever Sep 29, 2024
cab19cd
product-main
Benedikt-beeclever Sep 29, 2024
140dcf7
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
7f330a4
product-main
Benedikt-beeclever Sep 29, 2024
5bb9b3b
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
41de8f0
product-main
Benedikt-beeclever Sep 29, 2024
f6bf869
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
78384a7
remove page-width
andre-beeclever Sep 29, 2024
849e18b
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
276a0f7
remove page-width
andre-beeclever Sep 29, 2024
daacb36
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
b11abe7
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
c063522
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
7f050be
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
8b99228
product-main
Benedikt-beeclever Sep 29, 2024
6304f36
fix
andre-beeclever Sep 29, 2024
d94ca2b
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
09521dd
product-main
Benedikt-beeclever Sep 29, 2024
45f46fc
fix
andre-beeclever Sep 29, 2024
f37fde7
product-main
Benedikt-beeclever Sep 29, 2024
a9b75b3
fix
andre-beeclever Sep 29, 2024
f91674e
product-main
Benedikt-beeclever Sep 29, 2024
c0a9d80
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
30372c4
product-main
Benedikt-beeclever Sep 29, 2024
132c8c6
product-main
Benedikt-beeclever Sep 29, 2024
8494fb5
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
0617524
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
e3dc7ff
fix
andre-beeclever Sep 29, 2024
1b92dae
fix
andre-beeclever Sep 29, 2024
543559a
fix
andre-beeclever Sep 29, 2024
d050992
fix
andre-beeclever Sep 29, 2024
93358a6
product-main
Benedikt-beeclever Sep 29, 2024
d6780c0
product-main
Benedikt-beeclever Sep 29, 2024
0e1708e
fix
andre-beeclever Sep 29, 2024
7bdab44
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
38d7db6
product-main
Benedikt-beeclever Sep 29, 2024
9dbe50f
Update from Shopify for theme modular-theme/andre-dev
shopify[bot] Sep 29, 2024
2df3e33
fix
andre-beeclever Sep 29, 2024
e321a76
Merge branch 'andre-dev' of github.com:andre-beeclever/modular-theme …
andre-beeclever Sep 29, 2024
4f179fa
product-main
Benedikt-beeclever Sep 29, 2024
1d609e1
product-main
Benedikt-beeclever Sep 29, 2024
287217e
fix
andre-beeclever Sep 29, 2024
8b040d5
product-main
Benedikt-beeclever Sep 29, 2024
a167f31
product-main
Benedikt-beeclever Sep 29, 2024
0d222a7
Merge pull request #4 from andre-beeclever/andre-dev
andre-beeclever Sep 29, 2024
c42a4c2
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
61308e6
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
c11b56e
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
2cd9dea
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
22f6c4f
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
ef47e20
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
e6e9c43
Merge branch 'main' of https://github.com/andre-beeclever/modular-the…
Benedikt-beeclever Sep 29, 2024
78d08ea
product-main
Benedikt-beeclever Sep 29, 2024
e9dd8dd
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
792de38
product-main
Benedikt-beeclever Sep 29, 2024
3551cbb
Merge branch 'bene-dev' of https://github.com/andre-beeclever/modular…
Benedikt-beeclever Sep 29, 2024
7ca7305
product-main
Benedikt-beeclever Sep 29, 2024
d441ae3
product-main
Benedikt-beeclever Sep 29, 2024
e8c801b
product-main
Benedikt-beeclever Sep 29, 2024
935faf1
product-main
Benedikt-beeclever Sep 29, 2024
3938520
product-main
Benedikt-beeclever Sep 29, 2024
a6355a8
product-main
Benedikt-beeclever Sep 29, 2024
e18510e
product-main
Benedikt-beeclever Sep 29, 2024
9302c05
product-main
Benedikt-beeclever Sep 29, 2024
11c0811
product-main
Benedikt-beeclever Sep 29, 2024
75121d9
product-main
Benedikt-beeclever Sep 29, 2024
fd29b85
Update from Shopify for theme modular-theme/bene-dev
shopify[bot] Sep 29, 2024
87994e7
product-main
Benedikt-beeclever Oct 3, 2024
02032f6
product-main
Benedikt-beeclever Oct 3, 2024
55e02a3
product-main
Benedikt-beeclever Oct 3, 2024
ae22092
product-main
Benedikt-beeclever Oct 3, 2024
ec00828
product-main
Benedikt-beeclever Oct 3, 2024
4e0b80e
product-main
Benedikt-beeclever Oct 3, 2024
f3f9e65
product-main
Benedikt-beeclever Oct 3, 2024
8ebc5fa
product-main
Benedikt-beeclever Oct 3, 2024
21585a8
product-main
Benedikt-beeclever Oct 3, 2024
a66206e
product-main
Benedikt-beeclever Oct 3, 2024
5dcb705
product-main
Benedikt-beeclever Oct 3, 2024
7b68f6d
product-main
Benedikt-beeclever Oct 3, 2024
943c5c8
product-main
Benedikt-beeclever Oct 3, 2024
a3ef067
product-main
Benedikt-beeclever Oct 3, 2024
f1ab0a8
product-main
Benedikt-beeclever Oct 3, 2024
4ac215e
product-main
Benedikt-beeclever Oct 3, 2024
ea112a4
product-main
Benedikt-beeclever Oct 3, 2024
7e4ac66
product-main
Benedikt-beeclever Oct 3, 2024
a072787
product-main
Benedikt-beeclever Oct 3, 2024
473bbe9
product-main
Benedikt-beeclever Oct 3, 2024
268dc36
product-main
Benedikt-beeclever Oct 3, 2024
aea8ba9
product-main
Benedikt-beeclever Oct 3, 2024
dbbae3d
product-main
Benedikt-beeclever Oct 3, 2024
4935e0d
product-main
Benedikt-beeclever Oct 3, 2024
b7ad325
product-main
Benedikt-beeclever Oct 3, 2024
c53bb48
product-main
Benedikt-beeclever Oct 3, 2024
0e7d9f2
product-main
Benedikt-beeclever Oct 3, 2024
83bcf3e
product-main
Benedikt-beeclever Oct 3, 2024
184a7f1
product-main
Benedikt-beeclever Oct 3, 2024
530cc60
product-main
Benedikt-beeclever Oct 3, 2024
8f62c7a
product-main
Benedikt-beeclever Oct 3, 2024
f158d9d
product-main
Benedikt-beeclever Oct 3, 2024
e014478
product-main
Benedikt-beeclever Oct 3, 2024
124d755
product-main
Benedikt-beeclever Oct 3, 2024
258b872
product-main
Benedikt-beeclever Oct 3, 2024
347fbd9
product-main
Benedikt-beeclever Oct 3, 2024
b562286
product-main
Benedikt-beeclever Oct 3, 2024
2213156
product-main
Benedikt-beeclever Oct 3, 2024
5ac3f37
product-main
Benedikt-beeclever Oct 3, 2024
c90f7e2
product-main
Benedikt-beeclever Oct 3, 2024
1818f98
product-main
Benedikt-beeclever Oct 3, 2024
0d8ae1d
product-main
Benedikt-beeclever Oct 3, 2024
ed3f4de
product-main
Benedikt-beeclever Oct 3, 2024
c6cf24c
product-main
Benedikt-beeclever Oct 3, 2024
1f49306
product-main
Benedikt-beeclever Oct 3, 2024
f5392b7
product-main
Benedikt-beeclever Oct 3, 2024
18e63b6
product-main
Benedikt-beeclever Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions .github/CODE_OF_CONDUCT.md

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/cla.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
.Trashes
ehthumbs.db
Thumbs.db
node_modules
.parcel-cache
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assets/*.umd.js
21 changes: 21 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"plugins": ["@shopify/prettier-plugin-liquid"],
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": false,
"liquidSingleQuote": false,
"embeddedSingleQuote": false,
"embeddedLanguageFormatting": "auto",
"singleAttributePerLine": true,
"htmlWhitespaceSensitivity": "css",
"singleLineLinkTags": true,
"indentSchema": false,
"printWidth": 120,
"useTabs": false,
"bracketSameLine": true,
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "lf",
"overrides": []
}
6 changes: 6 additions & 0 deletions .shopifyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package.json
package-lock.json
.gitignore
.DS_Store
.prettierignore
.prettierrc
9 changes: 0 additions & 9 deletions LICENSE.md

This file was deleted.

54 changes: 41 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Theme blocks are a new feature for online stores that allow theme developers to

### Benefits of theme blocks

* Less duplicate code
* More consistent merchant experience
* Theme blocks can be nested
* More flexible sections
- Less duplicate code
- More consistent merchant experience
- Theme blocks can be nested
- More flexible sections

## Creating theme blocks

Expand Down Expand Up @@ -50,6 +50,7 @@ For more details, see the [theme block documentation](https://shopify.dev/docs/t
}
{% endschema %}
```

</details>

Note that a preset is required for a theme block to appear in the editor, the same as for sections.
Expand All @@ -64,7 +65,7 @@ Note that theme blocks and local blocks cannot be used in the same section.

## Referencing theme blocks in JSON templates

To include theme blocks in your JSON templates, add a section that accepts them in the editor and then click "add block" in the section sidebar. You will see a list of theme blocks and can add them to the section.
To include theme blocks in your JSON templates, add a section that accepts them in the editor and then click "add block" in the section sidebar. You will see a list of theme blocks and can add them to the section.

You can also do this directly in the JSON file. You must include a `"blocks"` key and a `"block_order"` key in your section.

Expand All @@ -75,7 +76,7 @@ You can also do this directly in the JSON file. You must include a `"blocks"` ke
{
"sections": {
"example-section": {
"type": "custom-section",
"type": "container",
"blocks": {
"example-block": {
"type": "heading",
Expand All @@ -95,6 +96,7 @@ You can also do this directly in the JSON file. You must include a `"blocks"` ke
]
}
```

</details>

## Nesting blocks
Expand All @@ -115,7 +117,7 @@ A block must have at least one preset to appear for selection in the Theme Edito

## Theme block targeting

A section or group that accepts theme blocks can indicate either that it accepts all blocks (and apps) by adding `"blocks": [{ "type": "@theme" }, { "type": "@app" }]` to the schema. Or it can target specific blocks by adding `"blocks": [{ "type": "slide" }]`
A section or group that accepts theme blocks can indicate either that it accepts all blocks (and apps) by adding `"blocks": [{ "type": "@theme" }, { "type": "@app" }]` to the schema. Or it can target specific blocks by adding `"blocks": [{ "type": "slide" }]`

## Static theme blocks

Expand All @@ -125,19 +127,19 @@ Theme blocks can be referenced directly in Liquid using `content_for` as follows
{% content_for "block", type: "slideshow-controls", id: "slideshow-controls" %}
```

Settings for these blocks can be configured by the merchant via the theme editor. They can also be configured by the theme developer in presets. Their usage in presets is the same as a normal theme block except it includes `"static": true` and requires a matching `id` to the one in the corresponding Liquid.
Settings for these blocks can be configured by the merchant via the theme editor. They can also be configured by the theme developer in presets. Their usage in presets is the same as a normal theme block except it includes `"static": true` and requires a matching `id` to the one in the corresponding Liquid.

## Styles

Style settings can now be added to sections and blocks. These are new input setting types that offer CSS styles for merchants to customize.
Style settings can now be added to sections and blocks. These are new input setting types that offer CSS styles for merchants to customize.

Currently the categories that exist are:

* `"type": "style.size_panel"` - This panel includes CSS properties like `width`, `height`, and `flex-grow`.
* `"type": "style.spacing_panel"` - This panel includes CSS properties like `flex-direction`, `justify-content`, and `align items`.
* `"type": "style.layout_panel"` - This panel includes CSS properties like `padding` and `margin`.
- `"type": "style.size_panel"` - This panel includes CSS properties like `width`, `height`, and `flex-grow`.
- `"type": "style.spacing_panel"` - This panel includes CSS properties like `flex-direction`, `justify-content`, and `align items`.
- `"type": "style.layout_panel"` - This panel includes CSS properties like `padding` and `margin`.

These settings are applied via the new filter `class_list`, which renders the set of classes that correspond to the used style settings within a section or block. It is used as follows: `<div class="{{ block.settings | class_list }}">`. In a section, `section.settings` is used instead.
These settings are applied via the new filter `class_list`, which renders the set of classes that correspond to the used style settings within a section or block. It is used as follows: `<div class="{{ block.settings | class_list }}">`. In a section, `section.settings` is used instead.

You can also apply different classes to different elements, for example:

Expand All @@ -147,3 +149,29 @@ You can also apply different classes to different elements, for example:
```

As with a normal setting, it is accessed via its ID.

## Codeing Guidelines

### Files

- file names should be formatted as `kebab-case`

### HTML

- use as less containers as possible

### Liquid

- variables should be formatted as `snake_case`

### CSS

- variables should be formatted as `kebab-case`
- use '--' for variants of a class Example: `btn btn--secondary`
- every block should have a class `shopify-block--<name of the block>`

### JS

- variables & functions should be formatted as `camelCase`
- do not use `var` use `const` where ever possible and `let` when necessary
- use arrow functions `() => {}` where possible
8 changes: 8 additions & 0 deletions assets/3d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/ar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions assets/bag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading