Skip to content

Commit b92b482

Browse files
committed
PB-73: Create Appearances example and documentation
Added install location for appearance icons
1 parent ddd83ad commit b92b482

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

docs/how-to/how-to-add-appearance.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,21 @@ To add more appearance options, simply create more ` item` arrays, as shown here
7575
```
7676
_Example of additional appearance options_
7777

78-
### Creating an appearance icon
78+
### Create an appearance icon
7979

80-
Appearance icons are `.svg` files that graphically depict the layout of an appearance. Use the following SVG template as a starting place for creating your own appearance icon:
80+
Appearance icons are `.svg` files that graphically depict the layout of an appearance. Add all the appearance icons for your content type within the following directory: `css/images/content-type/[content-type-name]/appearance/`.
81+
82+
![Add appearance icons](../images/appearance-icon-location.png)
83+
84+
_Add appearance icons for Banner content type_
85+
86+
Use the following SVG template as a starting place for creating your own appearance icon:
8187

8288
```xml
8389
<svg xmlns="http://www.w3.org/2000/svg" width="218" height="110" viewBox="0 0 218 110">
8490
<g fill="none" fill-rule="evenodd">
8591
<rect width="149" height="69" x="35" y="21" fill="#524D49"/>
92+
<!--- Optional shapes displayed on top of base rect -->
8693
<rect width="45" height="16" x="87" y="60" fill="#FFF"/>
8794
<rect width="72" height="4" x="73" y="34" fill="#FFF"/>
8895
<rect width="60" height="4" x="79" y="43" fill="#FFF"/>
@@ -93,18 +100,18 @@ _SVG appearance template_
93100

94101
You can use whatever tool you want to create your SVG. Just make sure you follow these specific dimensions to ensure your icon fits in with the existing appearance icons:
95102

96-
| Property | Value |
97-
| ---------------------------- | ----------- |
98-
| `svg width` | 218 |
99-
| `svg height` | 110 |
100-
| `svg viewbox` | 0 0 218 110 |
101-
| `g fill` | none |
102-
| background `rect width` | 149 |
103-
| background `rect height` | 69 |
104-
| background `rect x` | 35 |
105-
| background `rect y` | 21 |
106-
| background `rect fill` | #524D49 |
107-
| other `rect fill` properties | #FFF |
103+
| Property | Value |
104+
| ------------------------------ | ----------- |
105+
| `svg width` | 218 |
106+
| `svg height` | 110 |
107+
| `svg viewbox` | 0 0 218 110 |
108+
| `g fill` | none |
109+
| base `rect width` | 149 |
110+
| base `rect height` | 69 |
111+
| base `rect x` | 35 |
112+
| base `rect y` | 21 |
113+
| base `rect fill` | #524D49 |
114+
| other shape `fill` properties | #FFF |
108115
{:style="table-layout:fixed"}
109116

110117
## Step 2: Add appearance configurations
30.6 KB
Loading

0 commit comments

Comments
 (0)