@commmerce/tokens 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tokens.css CHANGED
@@ -1,4 +1,4 @@
1
- /* @commmerce/tokens v1.5.1 — generated, do not edit */
1
+ /* @commmerce/tokens v1.6.0 — generated, do not edit */
2
2
 
3
3
  :root, [data-cm-theme] {
4
4
  color-scheme: light;
@@ -136,6 +136,9 @@
136
136
  --cm-type-heading-md-size: 20px;
137
137
  --cm-type-heading-md-line-height: 28px;
138
138
  --cm-type-heading-md-weight: 600;
139
+ --cm-type-heading-section-size: 18px;
140
+ --cm-type-heading-section-line-height: 26px;
141
+ --cm-type-heading-section-weight: 600;
139
142
  --cm-type-heading-sm-size: 16px;
140
143
  --cm-type-heading-sm-line-height: 24px;
141
144
  --cm-type-heading-sm-weight: 600;
@@ -151,8 +154,8 @@
151
154
  --cm-type-body-xs-size: 12px;
152
155
  --cm-type-body-xs-line-height: 16px;
153
156
  --cm-type-body-xs-weight: 400;
154
- --cm-type-label-size: 14px;
155
- --cm-type-label-line-height: 20px;
157
+ --cm-type-label-size: 13px;
158
+ --cm-type-label-line-height: 18px;
156
159
  --cm-type-label-weight: 500;
157
160
  --cm-type-display-lg-resp-size: 30px;
158
161
  --cm-type-display-lg-resp-line-height: 36px;
@@ -181,8 +184,8 @@
181
184
  --cm-type-body-xs-resp-size: 12px;
182
185
  --cm-type-body-xs-resp-line-height: 16px;
183
186
  --cm-type-body-xs-resp-weight: 400;
184
- --cm-type-label-resp-size: 14px;
185
- --cm-type-label-resp-line-height: 20px;
187
+ --cm-type-label-resp-size: 13px;
188
+ --cm-type-label-resp-line-height: 18px;
186
189
  --cm-type-label-resp-weight: 500;
187
190
  }
188
191
 
package/dist/tokens.d.ts CHANGED
@@ -178,9 +178,9 @@ export declare const tokens: {
178
178
  readonly space12: string;
179
179
  /** Card padding on phones; gap between fields in a form. */
180
180
  readonly space16: string;
181
- /** Card padding; the default gap between cards (cm-stack, cm-grid, cm-layout); gap between form sections. */
181
+ /** The default gap between cards (cm-stack, cm-grid); gap between form sections. */
182
182
  readonly space20: string;
183
- /** Page side padding (cm-page, cm-page-header); gap between page sections. */
183
+ /** Page padding (cm-page, cm-page-header); card padding (cm-card standard); gap between page sections (cm-layout). */
184
184
  readonly space24: string;
185
185
  /** Gap between page sections. */
186
186
  readonly space32: string;
@@ -200,11 +200,11 @@ export declare const tokens: {
200
200
  readonly space30: string;
201
201
  /** Small controls: toolbar and filter fields (size="small"), slim buttons, segmented controls. */
202
202
  readonly controlHeightSm: string;
203
- /** Default height of buttons, text fields, selects and pickers. */
203
+ /** Default height of buttons and icon buttons (36x36); segmented controls. */
204
204
  readonly controlHeightMd: string;
205
- /** Large buttons (save bars, page actions) and large search. */
205
+ /** Default height of form fields (text field, select, combobox, search, date pickers; since 1.6), large buttons, and every button on touch screens. */
206
206
  readonly controlHeightLg: string;
207
- /** Minimum height (and width for icon buttons) of every control on touch screens (pointer: coarse). */
207
+ /** Form fields on touch screens (pointer: coarse); the minimum touch target of buttons (40px drawn, the hit area reaches 44px). */
208
208
  readonly controlHeightTouch: string;
209
209
  /** Icons inside controls: buttons, fields, menu items. */
210
210
  readonly iconSizeSm: string;
package/dist/tokens.json CHANGED
@@ -825,14 +825,14 @@
825
825
  "family": "spacing",
826
826
  "cssVar": "--cm-space-20",
827
827
  "value": "20px",
828
- "usage": "Card padding; the default gap between cards (cm-stack, cm-grid, cm-layout); gap between form sections."
828
+ "usage": "The default gap between cards (cm-stack, cm-grid); gap between form sections."
829
829
  },
830
830
  {
831
831
  "name": "space-24",
832
832
  "family": "spacing",
833
833
  "cssVar": "--cm-space-24",
834
834
  "value": "24px",
835
- "usage": "Page side padding (cm-page, cm-page-header); gap between page sections."
835
+ "usage": "Page padding (cm-page, cm-page-header); card padding (cm-card standard); gap between page sections (cm-layout)."
836
836
  },
837
837
  {
838
838
  "name": "space-32",
@@ -906,21 +906,21 @@
906
906
  "family": "size",
907
907
  "cssVar": "--cm-control-height-md",
908
908
  "value": "36px",
909
- "usage": "Default height of buttons, text fields, selects and pickers."
909
+ "usage": "Default height of buttons and icon buttons (36x36); segmented controls."
910
910
  },
911
911
  {
912
912
  "name": "control-height-lg",
913
913
  "family": "size",
914
914
  "cssVar": "--cm-control-height-lg",
915
915
  "value": "40px",
916
- "usage": "Large buttons (save bars, page actions) and large search."
916
+ "usage": "Default height of form fields (text field, select, combobox, search, date pickers; since 1.6), large buttons, and every button on touch screens."
917
917
  },
918
918
  {
919
919
  "name": "control-height-touch",
920
920
  "family": "size",
921
921
  "cssVar": "--cm-control-height-touch",
922
922
  "value": "44px",
923
- "usage": "Minimum height (and width for icon buttons) of every control on touch screens (pointer: coarse)."
923
+ "usage": "Form fields on touch screens (pointer: coarse); the minimum touch target of buttons (40px drawn, the hit area reaches 44px)."
924
924
  },
925
925
  {
926
926
  "name": "icon-size-sm",
@@ -1098,7 +1098,18 @@
1098
1098
  "lineHeight": "28px",
1099
1099
  "fontWeight": 600
1100
1100
  },
1101
- "usage": "Modal and side panel titles, big section headings. 20/28."
1101
+ "usage": "Modal and side panel titles. 20/28."
1102
+ },
1103
+ {
1104
+ "name": "type-heading-section",
1105
+ "family": "type",
1106
+ "group": "Desktop",
1107
+ "value": {
1108
+ "fontSize": "18px",
1109
+ "lineHeight": "26px",
1110
+ "fontWeight": 600
1111
+ },
1112
+ "usage": "Section headings inside a page (a group of cards, a settings section). 18/26 semibold (owner standard, 1.6)."
1102
1113
  },
1103
1114
  {
1104
1115
  "name": "type-heading-sm",
@@ -1109,7 +1120,7 @@
1109
1120
  "lineHeight": "24px",
1110
1121
  "fontWeight": 600
1111
1122
  },
1112
- "usage": "Card, section and form-group titles. 16/24 semibold."
1123
+ "usage": "Card headings and form-group titles. 16/24 semibold."
1113
1124
  },
1114
1125
  {
1115
1126
  "name": "type-body-lg",
@@ -1142,7 +1153,7 @@
1142
1153
  "lineHeight": "18px",
1143
1154
  "fontWeight": 400
1144
1155
  },
1145
- "usage": "Help text, secondary lines, slim buttons. 13/18."
1156
+ "usage": "Page descriptions, secondary lines, slim buttons, table cells. 13/18."
1146
1157
  },
1147
1158
  {
1148
1159
  "name": "type-body-xs",
@@ -1153,18 +1164,18 @@
1153
1164
  "lineHeight": "16px",
1154
1165
  "fontWeight": 400
1155
1166
  },
1156
- "usage": "Captions, badges, counts, table headers. 12/16. Nothing is smaller."
1167
+ "usage": "Supporting text: help text, hints, error messages, meta; captions, badges, counts, table headers. 12/16. Nothing is smaller."
1157
1168
  },
1158
1169
  {
1159
1170
  "name": "type-label",
1160
1171
  "family": "type",
1161
1172
  "group": "Desktop",
1162
1173
  "value": {
1163
- "fontSize": "14px",
1164
- "lineHeight": "20px",
1174
+ "fontSize": "13px",
1175
+ "lineHeight": "18px",
1165
1176
  "fontWeight": 500
1166
1177
  },
1167
- "usage": "Form labels. 14/20 medium."
1178
+ "usage": "Form labels: fields, option groups, checkbox and radio group labels. 13/18 medium (owner standard, 1.6; was 14/20)."
1168
1179
  },
1169
1180
  {
1170
1181
  "name": "type-display-lg-resp",
@@ -1270,8 +1281,8 @@
1270
1281
  "family": "type",
1271
1282
  "group": "Responsive",
1272
1283
  "value": {
1273
- "fontSize": "14px",
1274
- "lineHeight": "20px",
1284
+ "fontSize": "13px",
1285
+ "lineHeight": "18px",
1275
1286
  "fontWeight": 500
1276
1287
  },
1277
1288
  "usage": "Form labels on phones."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commmerce/tokens",
3
- "version": "1.5.1",
3
+ "version": "1.6.0",
4
4
  "description": "Design tokens for Commmerce UI: colours, type, spacing, radii and shadows as CSS variables, JSON and JS, in light and dark.",
5
5
  "keywords": [
6
6
  "design-tokens",