Skip to content

Commit d4af3bf

Browse files
committed
[#3576] Add home-plugin tokens + fix layouts
1 parent 6140db4 commit d4af3bf

File tree

6 files changed

+199
-2
lines changed

6 files changed

+199
-2
lines changed

src/brand/openinwoner/layout.tokens.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
"oip": {
33
"layout": {
44
"bg": {"value": "#FFFFFF"}
5+
},
6+
"spacing": {
7+
"tiny": {"value": "2px"},
8+
"small": {"value": "4px"},
9+
"medium": {"value": "8px"},
10+
"large": {"value": "16px"},
11+
"extraLarge": {"value": "24px"},
12+
"giant": {"value": "32px"},
13+
"mega": {"value": "80px"}
514
}
615
}
716
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"utrecht": {
3+
"form-label": {
4+
"color": {"value": "{oip.color.fg}"},
5+
"font-weight": {"value": "normal"},
6+
"font-size": {"value": "16px"}
7+
}
8+
}
9+
}

src/community/utrecht/typography.tokens.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"value": "16px",
1010
"comment": "The body font-size for the theme."
1111
},
12+
"font-weight": {
13+
"value": "normal",
14+
"comment": "The body font-weight for the theme."
15+
},
1216
"color": {
1317
"value": "#4b4b4b"
1418
},

src/components/external-link-plugin.tokens.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"oip": {
33
"external-link": {
4-
"background-color": {"value": "transparent"},
4+
"background-color": {"value": "#ffffff"},
55
"color": {"value": "#000000"},
6-
"border-color": {"value": "{oip.color.border}"},
6+
"border-color": {"value": "transparent"},
77
"border-radius": {"value": "3px"},
88
"border-style": {"value": "solid"},
99
"border-width": {"value": "1px"},
1010
"box-shadow": {"value": "none"},
1111
"display": {"value": "flex"},
1212
"flex-direction": {"value": "row"},
1313
"font-family": {"value": "{oip.typography.sans-serif.font-family}"},
14+
"font-weight": {"value": "bold"},
1415
"align-items": {"value": "center"},
1516
"row-gap": {"value": "8px"},
1617
"column-gap": {"value": "32px"},
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"oip": {
3+
"plugin-card": {
4+
"background-color": {"value": "#fff"},
5+
"color": {"value": "#333"},
6+
"max-inline-size": {"value": "100%"},
7+
"border-color": {"value": "{oip.color.border}"},
8+
"border-style": {"value": "solid"},
9+
"border-width": {"value": "1px"},
10+
"border-radius": {"value": "3px"},
11+
"box-shadow": {"value": "none"},
12+
"display": {"value": "flex"},
13+
"inline-size": {"value": "100%"},
14+
"row-gap": {"value": "24px"},
15+
"heading": {
16+
"color": {"value": "{oip.color.fg-heading}"},
17+
"padding-inline-start": {"value": "16px"},
18+
"padding-inline-end": {"value": "16px"}
19+
},
20+
"link": {
21+
"display": {"value": "flex"},
22+
"padding": {"value": "0"}
23+
},
24+
"link-hover": {
25+
"text-decoration-thickness": {"value": "1px"},
26+
"text-decoration-line": {"value": "underline"},
27+
"text-underline-offset": {"value": "auto"}
28+
},
29+
"content": {
30+
"gap": {"value": "24px"},
31+
"padding-block-start": {"value": "16px"},
32+
"padding-block-end": {"value": "16px"}
33+
},
34+
"body": {
35+
"display": {"value": "flex"},
36+
"padding-inline-start": {"value": "16px"},
37+
"padding-inline-end": {"value": "16px"}
38+
},
39+
"list": {
40+
"display": {"value": "grid"},
41+
"grid-template-columns": {"value": "repeat(1, 1fr)"},
42+
"grid-template-columns-desktop": {"value": "repeat(2, 1fr)"},
43+
"list-style-type": {"value": "none"},
44+
"margin-block-start": {"value": "0"},
45+
"margin-block-end": {"value": "0"},
46+
"padding-inline-start": {"value": "0"},
47+
"grid-row-gap": {"value": "8px"},
48+
"grid-column-gap": {"value": "32px"}
49+
}
50+
}
51+
}
52+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
{
2+
"oip": {
3+
"plugin": {
4+
"header": {
5+
"margin-block-start": {
6+
"value": "0"
7+
},
8+
"margin-block-end": {
9+
"value": "8px"
10+
},
11+
"margin-inline-start": {
12+
"value": "0"
13+
},
14+
"margin-inline-end": {
15+
"value": "0"
16+
},
17+
"display": {
18+
"value": "flex"
19+
},
20+
"font-family": {
21+
"value": "{oip.typography.heading.font-family}"
22+
},
23+
"align-items": {
24+
"value": "center"
25+
},
26+
"justify-content": {
27+
"value": "space-between"
28+
},
29+
"flex-direction-mobile": {
30+
"value": "column"
31+
},
32+
"align-items-mobile": {
33+
"value": "flex-start"
34+
},
35+
"word-break-mobile": {
36+
"value": "normal"
37+
},
38+
"overflow-wrap-mobile": {
39+
"value": "break-word"
40+
},
41+
"indicator": {
42+
"display": {
43+
"value": "flex"
44+
},
45+
"flex-direction": {
46+
"value": "row"
47+
},
48+
"notification-indicator-color": {
49+
"value": "{oip.color.red-notification}"
50+
},
51+
"notification-indicator-font-size": {
52+
"value": "12px"
53+
},
54+
"notification-indicator-vertical-align": {
55+
"value": "super"
56+
},
57+
"display-inline": {
58+
"value": "inline-block"
59+
},
60+
"justify-content": {
61+
"value": "flex-start"
62+
},
63+
"overflow": {
64+
"value": "visible"
65+
},
66+
"position": {
67+
"value": "relative"
68+
}
69+
},
70+
"heading": {
71+
"color": {
72+
"value": "{oip.color.fg-heading}"
73+
},
74+
"font-family": {
75+
"value": "{oip.typography.heading.font-family}"
76+
},
77+
"margin-block-start": {
78+
"value": "0"
79+
},
80+
"margin-block-end": {
81+
"value": "0"
82+
},
83+
"margin-inline-start": {
84+
"value": "0"
85+
},
86+
"margin-inline-end": {
87+
"value": "0"
88+
}
89+
}
90+
},
91+
"grid": {
92+
"display": {
93+
"value": "grid"
94+
},
95+
"template-columns-mobile": {
96+
"value": "repeat(1, 1fr)"
97+
},
98+
"template-columns-desktop": {
99+
"value": "repeat(2, 1fr)"
100+
},
101+
"list-style-type": {
102+
"value": "none"
103+
},
104+
"margin-block-start": {
105+
"value": "0"
106+
},
107+
"margin-block-end": {
108+
"value": "0"
109+
},
110+
"padding-inline-start": {
111+
"value": "0"
112+
},
113+
"row-gap": {
114+
"value": "8px"
115+
},
116+
"column-gap": {
117+
"value": "8px"
118+
}
119+
}
120+
}
121+
}
122+
}

0 commit comments

Comments
 (0)