@deque/cauldron-styles 6.4.2-canary.dd084439 → 6.4.2-canary.f1f01638

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.
Files changed (2) hide show
  1. package/dist/index.css +150 -47
  2. package/package.json +1 -1
package/dist/index.css CHANGED
@@ -103,14 +103,6 @@
103
103
  /* fonts */
104
104
  --base-font-family: 'Roboto', Helvetica, Arial, sans-serif;
105
105
 
106
- /* font weight */
107
- --font-weight-thin: 100;
108
- --font-weight-light: 300;
109
- --font-weight-normal: 400;
110
- --font-weight-medium: 500;
111
- --font-weight-bold: 700;
112
- --font-weight-ultra-bold: 900;
113
-
114
106
  /* icon sizes */
115
107
  --icon-size: 24px;
116
108
 
@@ -151,6 +143,48 @@
151
143
  --focus: var(--focus-dark);
152
144
  }
153
145
 
146
+ :root {
147
+ --text-size-base: 16px;
148
+
149
+ /* headings */
150
+ --text-size-heading-1: 1.875rem; /* 30px */
151
+ --text-size-heading-2: 1.5rem; /* 24px */
152
+ --text-size-heading-3: 1.25rem; /* 20px */
153
+ --text-size-heading-4: 1.125rem; /* 18px */
154
+ --text-size-heading-5: 1rem; /* 16px */
155
+ --text-size-heading-6: 1rem; /* 16px */
156
+
157
+ --line-height-heading-1: 1.3;
158
+ --line-height-heading-2: 1.3;
159
+ --line-height-heading-3: 1.3;
160
+ --line-height-heading-4: 1.5;
161
+ --line-height-heading-5: 1.5;
162
+ --line-height-heading-6: 1.5;
163
+
164
+ /* weights */
165
+ --font-weight-thin: 100;
166
+ --font-weight-light: 300;
167
+ --font-weight-normal: 400;
168
+ --font-weight-medium: 500;
169
+ --font-weight-bold: 700;
170
+ --font-weight-ultra-bold: 900;
171
+
172
+ /* display */
173
+ --text-size-display-stat: 2.5rem; /* 36px */
174
+ --text-size-display-stat-small: 1.875; /* 30px */
175
+
176
+ --line-height-display-stat: 1.3;
177
+
178
+ /* buttons */
179
+ --text-size-button: 1rem; /* 16px */
180
+
181
+ /* body */
182
+ --text-size-body: 1rem; /* 16px */
183
+ --text-size-body-small: 0.875rem; /* 14px */
184
+ --line-height-body: 1.5;
185
+ --line-height-body-small: 1.7;
186
+ }
187
+
154
188
  :root {
155
189
  --workspace-background-color: #f0f2f5;
156
190
  }
@@ -236,7 +270,7 @@ a {
236
270
  }
237
271
 
238
272
  p {
239
- line-height: 1.618;
273
+ line-height: var(--line-height-body);
240
274
  }
241
275
 
242
276
  .cauldron--theme-dark h1,
@@ -1130,32 +1164,36 @@ textarea.Field--has-error:focus:hover,
1130
1164
  --button-background-color-error-active: var(--accent-error-active);
1131
1165
  --button-outline-color-error: var(--error);
1132
1166
 
1167
+ --button-text-size: var(--text-size-body);
1168
+ --button-thin-text-size: var(--text-size-body-small);
1133
1169
  --button-text-color-dark: var(--gray-90);
1134
- --button-text-color-light: var(--white);
1170
+ --button-text-color-light: #fff;
1171
+ --button-text-color-disabled: var(--disabled);
1135
1172
  --button-focus-ring-color: var(--focus-light);
1136
1173
  --button-thin-height: var(--target-size-minimum);
1137
1174
 
1138
- --button-height: 36px;
1175
+ --button-height: 2.25rem;
1139
1176
  }
1140
1177
 
1141
1178
  .Button--primary,
1142
1179
  .Button--secondary,
1180
+ .Button--tertiary,
1143
1181
  .Button--clear,
1144
1182
  .Button--error {
1145
1183
  border-radius: 3px;
1146
1184
  border: 1px solid transparent;
1147
- font-size: var(--text-size-small);
1185
+ font-size: var(--button-text-size);
1148
1186
  box-sizing: border-box;
1149
- padding: 0 16px;
1187
+ padding: 0 var(--space-small);
1150
1188
  position: relative;
1151
1189
  text-align: center;
1152
1190
  min-height: var(--button-height);
1153
- min-width: 100px;
1191
+ min-width: 6.25rem;
1154
1192
  display: inline-grid;
1155
1193
  grid-auto-flow: column;
1156
1194
  align-items: center;
1157
1195
  justify-items: center;
1158
- gap: 8px;
1196
+ gap: var(--space-smallest);
1159
1197
  }
1160
1198
 
1161
1199
  .Button--tag {
@@ -1169,6 +1207,7 @@ button.Link {
1169
1207
 
1170
1208
  .Button--primary:focus,
1171
1209
  .Button--secondary:focus,
1210
+ .Button--tertiary:focus,
1172
1211
  .Button--clear:focus,
1173
1212
  .Button--error:focus {
1174
1213
  outline: none;
@@ -1176,6 +1215,7 @@ button.Link {
1176
1215
 
1177
1216
  .Button--primary:before,
1178
1217
  .Button--secondary:before,
1218
+ .Button--tertiary:before,
1179
1219
  .Button--clear:before,
1180
1220
  .Button--error:before,
1181
1221
  .Button--tag:before {
@@ -1197,7 +1237,8 @@ button.Link {
1197
1237
  box-shadow: 0 0 0 1px var(--button-outline-color-primary);
1198
1238
  }
1199
1239
 
1200
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1240
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1241
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1201
1242
  box-shadow: 0 0 0 1px var(--button-outline-color-secondary);
1202
1243
  }
1203
1244
 
@@ -1211,6 +1252,7 @@ button.Link {
1211
1252
 
1212
1253
  .Button--primary:focus:before,
1213
1254
  .Button--secondary:focus:before,
1255
+ .Button--tertiary:focus:before,
1214
1256
  .Button--error:focus:before {
1215
1257
  box-shadow: 0 0 1px 2px var(--button-focus-ring-color, --focus);
1216
1258
  }
@@ -1229,19 +1271,29 @@ button.Link {
1229
1271
  background: var(--button-background-color-primary-active);
1230
1272
  }
1231
1273
 
1232
- .Button--secondary {
1274
+ .Button--secondary,
1275
+ .Button--tertiary {
1233
1276
  background-color: var(--button-background-color-secondary);
1234
1277
  color: var(--button-text-color-dark);
1235
1278
  border: 1px solid var(--field-border-color);
1236
1279
  }
1237
1280
 
1238
- .Button--secondary[aria-disabled='true'],
1239
- .Button--secondary[disabled] {
1240
- color: var(--disabled);
1281
+ .Button--tertiary:is(:not(:hover, :focus), [disabled], [aria-disabled='true']) {
1282
+ border-color: transparent;
1283
+ background-color: transparent;
1284
+ }
1285
+
1286
+ .Button--secondary:is([aria-disabled='true'], [disabled]) {
1287
+ color: var(--button-text-color-disabled);
1241
1288
  background-color: var(--button-background-color-secondary-disabled);
1242
1289
  }
1243
1290
 
1244
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1291
+ .Button--tertiary:is([aria-disabled='true'], [disabled]) {
1292
+ color: var(--button-text-color-disabled);
1293
+ }
1294
+
1295
+ .Button--secondary:not([disabled], [aria-disabled='true']):active,
1296
+ .Button--tertiary:not([disabled], [aria-disabled='true']):active {
1245
1297
  background-color: var(--button-background-color-secondary-active);
1246
1298
  }
1247
1299
 
@@ -1262,13 +1314,13 @@ button.Link {
1262
1314
  background-color: var(--button-background-color-error-active);
1263
1315
  }
1264
1316
 
1265
- .Button--tag[aria-disabled='true'],
1266
- .Button--tag[disabled] {
1317
+ .Button--tag:is([disabled], [aria-disabled='true']) {
1267
1318
  color: var(--disabled);
1268
1319
  }
1269
1320
 
1270
1321
  .Button--primary .Icon,
1271
1322
  .Button--secondary .Icon,
1323
+ .Button--tertiary .Icon,
1272
1324
  .Button--clear .Icon,
1273
1325
  .Button--error .Icon {
1274
1326
  margin: 0 -4px;
@@ -1279,16 +1331,20 @@ button.Link {
1279
1331
  height: calc(var(--button-thin-height) - 8px);
1280
1332
  }
1281
1333
 
1334
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1335
+
1282
1336
  .DefinitionButton {
1283
1337
  display: inline;
1284
1338
  vertical-align: baseline;
1285
1339
  position: relative;
1286
1340
  }
1287
1341
 
1342
+ /* Usage of .DefinitionButton is deprecated and no longer supported */
1343
+
1288
1344
  .DefinitionButton button {
1289
1345
  background-color: transparent;
1290
1346
  color: var(--text-color-base);
1291
- font-weight: var(--font-weight-normal);
1347
+ font-weight: var(--font-weight-medium);
1292
1348
  border-bottom: 1px dotted;
1293
1349
  display: inline-block;
1294
1350
  margin: 0 2px;
@@ -1302,9 +1358,9 @@ button.Link {
1302
1358
 
1303
1359
  .Button--thin {
1304
1360
  min-height: var(--button-thin-height);
1305
- min-width: 100px;
1306
- font-size: var(--text-size-smallest);
1307
- padding: 0 16px;
1361
+ min-width: 6.25rem;
1362
+ font-size: var(--button-thin-text-size);
1363
+ padding: 0 var(--space-small);
1308
1364
  }
1309
1365
 
1310
1366
  [class*='Button--'] + [class*='Button--'] {
@@ -1339,26 +1395,33 @@ button.Link {
1339
1395
  border: 2px solid var(--accent-light);
1340
1396
  }
1341
1397
 
1398
+ .cauldron--theme-dark .Button--tertiary {
1399
+ color: var(--accent-light);
1400
+ }
1401
+
1402
+ .cauldron--theme-dark .Button--tertiary:not(:hover, :focus) {
1403
+ color: #fff;
1404
+ }
1405
+
1342
1406
  .cauldron--theme-dark .Button--error {
1343
1407
  background-color: var(--accent-medium);
1344
- color: var(--white);
1408
+ color: #fff;
1345
1409
  border: 2px solid var(--accent-danger);
1346
1410
  }
1347
1411
 
1348
- .cauldron--theme-dark .Button--primary[aria-disabled='true'],
1349
- .cauldron--theme-dark .Button--primary[disabled],
1350
- .cauldron--theme-dark .Button--secondary[aria-disabled='true'],
1351
- .cauldron--theme-dark .Button--secondary[disabled],
1352
- .cauldron--theme-dark .Button--error[aria-disabled='true'],
1353
- .cauldron--theme-dark .Button--error[disabled],
1354
- .cauldron--theme-dark .Button--tag[disabled] {
1412
+ .cauldron--theme-dark .Button--primary:is([disabled], [aria-disabled='true']),
1413
+ .cauldron--theme-dark .Button--secondary:is([disabled], [aria-disabled='true']),
1414
+ .cauldron--theme-dark .Button--error:is([disabled], [aria-disabled='true']),
1415
+ .cauldron--theme-dark .Button--tag:is([disabled], [aria-disabled='true']) {
1355
1416
  color: var(--dark-workspace-color);
1356
1417
  }
1357
1418
 
1358
1419
  .cauldron--theme-dark
1359
1420
  .Button--primary:not([disabled]):not([aria-disabled='true']):active,
1360
1421
  .cauldron--theme-dark
1361
- .Button--secondary:not([disabled]):not([aria-disabled='true']):active {
1422
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):active,
1423
+ .cauldron--theme-dark
1424
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):active {
1362
1425
  color: var(--accent-medium);
1363
1426
  }
1364
1427
 
@@ -1373,7 +1436,7 @@ button.Link {
1373
1436
  }
1374
1437
 
1375
1438
  .cauldron--theme-dark button.Link:hover {
1376
- color: var(--white);
1439
+ color: #fff;
1377
1440
  }
1378
1441
 
1379
1442
  .cauldron--theme-dark
@@ -1383,7 +1446,9 @@ button.Link {
1383
1446
  }
1384
1447
 
1385
1448
  .cauldron--theme-dark
1386
- .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before {
1449
+ .Button--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1450
+ .cauldron--theme-dark
1451
+ .Button--tertiary:not([disabled]):not([aria-disabled='true']):hover:before {
1387
1452
  box-shadow: 0 0 0 1px var(--dark-workspace-color),
1388
1453
  0 0 0 2px var(--accent-light);
1389
1454
  }
@@ -1400,6 +1465,10 @@ button.Link {
1400
1465
  0 0 0 2px var(--accent-info);
1401
1466
  }
1402
1467
 
1468
+ .cauldron--theme-dark .Button--tertiary:is([disabled], [aria-disabled='true']) {
1469
+ color: #74818b;
1470
+ }
1471
+
1403
1472
  :root {
1404
1473
  /* Primary */
1405
1474
  --icon-button-primary-color: var(--button-text-color-light);
@@ -1431,6 +1500,8 @@ button.Link {
1431
1500
  --button-background-color-error-active
1432
1501
  );
1433
1502
 
1503
+ --icon-button-text-color-disabled: var(--button-text-color-disabled);
1504
+
1434
1505
  /* Deprecated variables */
1435
1506
  --icon-button-content-color-light-disabled: #ccc;
1436
1507
  --icon-button-background-color-light: #dadada;
@@ -1506,11 +1577,16 @@ a.IconButton {
1506
1577
 
1507
1578
  .IconButton--secondary:is([aria-disabled='true'], [disabled]),
1508
1579
  .IconButton--secondary:is([aria-disabled='true'], [disabled]):active {
1509
- color: var(--disabled);
1580
+ color: var(--icon-button-text-color-disabled);
1510
1581
  background-color: var(--button-background-color-secondary-disabled);
1511
1582
  cursor: default;
1512
1583
  }
1513
1584
 
1585
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]),
1586
+ .IconButton--tertiary:is([aria-disabled='true'], [disabled]):active {
1587
+ color: var(--icon-button-text-color-disabled);
1588
+ }
1589
+
1514
1590
  .IconButton--primary:is([aria-disabled='true'], [disabled]),
1515
1591
  .IconButton--primary:is([aria-disabled='true'], [disabled]):active {
1516
1592
  background-color: var(--button-background-color-primary-disabled);
@@ -1541,19 +1617,32 @@ a.IconButton {
1541
1617
  background-color: var(--icon-button-background-color-primary-active);
1542
1618
  }
1543
1619
 
1544
- .IconButton--secondary {
1620
+ .IconButton--secondary,
1621
+ .IconButton--tertiary,
1622
+ .IconButton--tertiary:is(:active) {
1545
1623
  border: 1px solid var(--icon-button-border-color-secondary);
1546
1624
  background-color: var(--icon-button-background-color-secondary);
1547
1625
  color: var(--icon-button-secondary-color);
1548
1626
  }
1549
1627
 
1550
- .IconButton--secondary:not([disabled]):not(
1551
- [aria-disabled='true']
1552
- ):hover:before {
1628
+ .IconButton--secondary:not([disabled]):not([aria-disabled='true']):hover:before,
1629
+ .IconButton--tertiary:not([disabled]):not([aria-disabled='true']):is(
1630
+ :hover
1631
+ ):before {
1553
1632
  box-shadow: 0 0 0 1px var(--icon-button-outline-color-secondary);
1554
1633
  }
1555
1634
 
1556
- .IconButton--secondary:active {
1635
+ .IconButton--tertiary:is(
1636
+ :not(:hover, :focus, :active),
1637
+ [disabled],
1638
+ [aria-disabled='true']
1639
+ ) {
1640
+ border-color: transparent;
1641
+ background-color: transparent;
1642
+ }
1643
+
1644
+ .IconButton--secondary:active,
1645
+ .IconButton--tertiary:active {
1557
1646
  background-color: var(--icon-button-background-color-secondary-active);
1558
1647
  }
1559
1648
 
@@ -1605,7 +1694,8 @@ a.IconButton {
1605
1694
  border: 2px solid var(--icon-button-border-color-primary);
1606
1695
  }
1607
1696
 
1608
- .cauldron--theme-dark .IconButton--secondary {
1697
+ .cauldron--theme-dark .IconButton--secondary,
1698
+ .cauldron--theme-dark .IconButton--tertiary {
1609
1699
  border-width: 2px;
1610
1700
  }
1611
1701
 
@@ -1624,6 +1714,7 @@ a.IconButton {
1624
1714
 
1625
1715
  .cauldron--theme-dark .IconButton--primary:active,
1626
1716
  .cauldron--theme-dark .IconButton--secondary:active,
1717
+ .cauldron--theme-dark .IconButton--tertiary:active,
1627
1718
  .cauldron--theme-dark .IconButton--error:active {
1628
1719
  color: var(--icon-button-active-color);
1629
1720
  }
@@ -1644,6 +1735,10 @@ a.IconButton {
1644
1735
  .cauldron--theme-dark
1645
1736
  .IconButton--secondary:not([disabled]):not(
1646
1737
  [aria-disabled='true']
1738
+ ):hover:before,
1739
+ .cauldron--theme-dark
1740
+ .IconButton--tertiary:not([disabled]):not(
1741
+ [aria-disabled='true']
1647
1742
  ):hover:before {
1648
1743
  box-shadow: 0 0 0 1px var(--icon-button-outline-shadow-color),
1649
1744
  0 0 0 2px var(--icon-button-outline-color-secondary);
@@ -1660,6 +1755,11 @@ a.IconButton {
1660
1755
  0 0 0 4px var(--button-focus-ring-color, --focus);
1661
1756
  }
1662
1757
 
1758
+ .cauldron--theme-dark
1759
+ .IconButton--tertiary:is([disabled], [aria-disabled='true']) {
1760
+ color: #74818b;
1761
+ }
1762
+
1663
1763
  :root {
1664
1764
  --dialog-background-color: #fff;
1665
1765
  --dialog-border-color: var(--gray-40);
@@ -4435,17 +4535,20 @@ fieldset.Panel {
4435
4535
  }
4436
4536
 
4437
4537
  .Breadcrumb__Link {
4438
- font-weight: 400;
4439
4538
  padding: 0;
4440
4539
  display: inline;
4441
4540
  }
4442
4541
 
4443
4542
  .Breadcrumb__Item {
4444
- font-weight: 500;
4543
+ font-weight: var(--font-weight-medium);
4445
4544
  color: var(--link-text-color);
4446
4545
  display: inline;
4447
4546
  }
4448
4547
 
4548
+ .Breadcrumb__Item:last-child {
4549
+ font-weight: var(--font-weight-normal);
4550
+ }
4551
+
4449
4552
  :root {
4450
4553
  --two-column-panel-border-color: var(--gray-40);
4451
4554
  --two-column-panel-background-color: #fff;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-styles",
3
- "version": "6.4.2-canary.dd084439",
3
+ "version": "6.4.2-canary.f1f01638",
4
4
  "license": "MPL-2.0",
5
5
  "description": "deque cauldron pattern library styles",
6
6
  "repository": "https://github.com/dequelabs/cauldron",