@wistia/kaleidoscope 0.0.5 → 0.0.6
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/CHANGELOG.md +18 -0
- package/dist/color-BY2NrNVz.js +148 -0
- package/dist/color-BY2NrNVz.js.map +1 -0
- package/dist/{color-BD12TVX4.d.ts → color-CwLKMi6Y.d.ts} +4 -25
- package/dist/color-CwLKMi6Y.d.ts.map +1 -0
- package/dist/engine-B00ZVZ0d.d.ts +85 -0
- package/dist/engine-B00ZVZ0d.d.ts.map +1 -0
- package/dist/engine-DeOUPRa0.js +661 -0
- package/dist/engine-DeOUPRa0.js.map +1 -0
- package/dist/entries/color.d.ts +1 -1
- package/dist/entries/color.js +3 -2
- package/dist/entries/engine.d.ts +3 -0
- package/dist/entries/engine.js +10 -0
- package/dist/entries/styleRegistry.d.ts +2 -2
- package/dist/entries/styleRegistry.js +2 -3
- package/dist/entries/validate.d.ts +1 -1
- package/dist/entries/validate.js +2 -3
- package/dist/entries/vocabulary.d.ts +1 -1
- package/dist/entries/vocabulary.js +3 -2
- package/dist/{color-C99gJSgH.js → getColorLightnessClassification--FSkjXEx.js} +29 -178
- package/dist/getColorLightnessClassification--FSkjXEx.js.map +1 -0
- package/dist/guards-t_cf_IOV.js +24 -0
- package/dist/guards-t_cf_IOV.js.map +1 -0
- package/dist/{index-CG6dL9XZ.d.ts → index-BOJCY_MU.d.ts} +4 -32
- package/dist/index-BOJCY_MU.d.ts.map +1 -0
- package/dist/index.d.ts +6 -5
- package/dist/index.js +9 -6
- package/dist/styleRegistry-A0nrsHk-.d.ts +15 -0
- package/dist/styleRegistry-A0nrsHk-.d.ts.map +1 -0
- package/dist/{styleRegistry-BoviV8Ue.js → styleRegistry-CT4jvu4h.js} +41 -42
- package/dist/styleRegistry-CT4jvu4h.js.map +1 -0
- package/dist/{styleVocabulary-Kl8p6TDk.js → styleVocabulary-DcxbkEvK.js} +19 -80
- package/dist/styleVocabulary-DcxbkEvK.js.map +1 -0
- package/dist/typography-BA9Pz8Im.js +65 -0
- package/dist/typography-BA9Pz8Im.js.map +1 -0
- package/dist/{validate-V28YRNxt.d.ts → validate-Bqx__f3d.d.ts} +2 -6
- package/dist/validate-Bqx__f3d.d.ts.map +1 -0
- package/dist/{validate-C_h6gEXp.js → validate-D-OR7_3g.js} +20 -46
- package/dist/validate-D-OR7_3g.js.map +1 -0
- package/package.json +19 -14
- package/schema/style-v1.json +7 -2
- package/styles/aurora-dark.json +3 -2
- package/styles/aurora-light.json +3 -2
- package/styles/glass-dark.json +3 -2
- package/styles/glass-light.json +3 -2
- package/styles/opaque-bright.json +3 -2
- package/styles/opaque-heavy.json +3 -2
- package/styles/opaque-light.json +3 -2
- package/styles/opaque-medium.json +3 -2
- package/styles/opaque-minimal.json +3 -2
- package/dist/color-BD12TVX4.d.ts.map +0 -1
- package/dist/color-C99gJSgH.js.map +0 -1
- package/dist/index-CG6dL9XZ.d.ts.map +0 -1
- package/dist/styleRegistry-BoviV8Ue.js.map +0 -1
- package/dist/styleRegistry-DNVNmafi.d.ts +0 -35
- package/dist/styleRegistry-DNVNmafi.d.ts.map +0 -1
- package/dist/styleVocabulary-Kl8p6TDk.js.map +0 -1
- package/dist/validate-C_h6gEXp.js.map +0 -1
- package/dist/validate-V28YRNxt.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/kaleidoscope v0.0.
|
|
3
|
+
* @license @wistia/kaleidoscope v0.0.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is unlicensed, all rights reserved.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/styles/auroraDark.ts
|
|
11
11
|
const AURORA_DARK = {
|
|
12
12
|
id: "aurora-dark",
|
|
13
13
|
name: "Aurora Dark",
|
|
@@ -26,7 +26,7 @@ const AURORA_DARK = {
|
|
|
26
26
|
case: "as-typed"
|
|
27
27
|
},
|
|
28
28
|
button: {
|
|
29
|
-
font: "anchors.fonts.
|
|
29
|
+
font: "anchors.fonts.button",
|
|
30
30
|
fontSize: 18,
|
|
31
31
|
fontWeight: 700,
|
|
32
32
|
case: "as-typed"
|
|
@@ -52,7 +52,8 @@ const AURORA_DARK = {
|
|
|
52
52
|
},
|
|
53
53
|
fonts: {
|
|
54
54
|
heading: "$headingFontFamily",
|
|
55
|
-
body: "$bodyFontFamily"
|
|
55
|
+
body: "$bodyFontFamily",
|
|
56
|
+
button: "$buttonFontFamily"
|
|
56
57
|
}
|
|
57
58
|
},
|
|
58
59
|
surfaces: {
|
|
@@ -208,8 +209,7 @@ const AURORA_DARK = {
|
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
211
|
};
|
|
211
|
-
|
|
212
|
-
//#region src/styles/auroraLight.ts
|
|
212
|
+
// src/styles/auroraLight.ts
|
|
213
213
|
const AURORA_LIGHT = {
|
|
214
214
|
id: "aurora-light",
|
|
215
215
|
name: "Aurora Light",
|
|
@@ -228,7 +228,7 @@ const AURORA_LIGHT = {
|
|
|
228
228
|
case: "as-typed"
|
|
229
229
|
},
|
|
230
230
|
button: {
|
|
231
|
-
font: "anchors.fonts.
|
|
231
|
+
font: "anchors.fonts.button",
|
|
232
232
|
fontSize: 18,
|
|
233
233
|
fontWeight: 700,
|
|
234
234
|
case: "as-typed"
|
|
@@ -254,7 +254,8 @@ const AURORA_LIGHT = {
|
|
|
254
254
|
},
|
|
255
255
|
fonts: {
|
|
256
256
|
heading: "$headingFontFamily",
|
|
257
|
-
body: "$bodyFontFamily"
|
|
257
|
+
body: "$bodyFontFamily",
|
|
258
|
+
button: "$buttonFontFamily"
|
|
258
259
|
}
|
|
259
260
|
},
|
|
260
261
|
surfaces: {
|
|
@@ -410,8 +411,7 @@ const AURORA_LIGHT = {
|
|
|
410
411
|
}
|
|
411
412
|
}
|
|
412
413
|
};
|
|
413
|
-
|
|
414
|
-
//#region src/styles/glassDark.ts
|
|
414
|
+
// src/styles/glassDark.ts
|
|
415
415
|
const GLASS_DARK = {
|
|
416
416
|
id: "glass-dark",
|
|
417
417
|
name: "Glass Dark",
|
|
@@ -430,7 +430,7 @@ const GLASS_DARK = {
|
|
|
430
430
|
case: "as-typed"
|
|
431
431
|
},
|
|
432
432
|
button: {
|
|
433
|
-
font: "anchors.fonts.
|
|
433
|
+
font: "anchors.fonts.button",
|
|
434
434
|
fontSize: 18,
|
|
435
435
|
fontWeight: 700,
|
|
436
436
|
case: "as-typed"
|
|
@@ -445,7 +445,8 @@ const GLASS_DARK = {
|
|
|
445
445
|
},
|
|
446
446
|
fonts: {
|
|
447
447
|
heading: "$headingFontFamily",
|
|
448
|
-
body: "$bodyFontFamily"
|
|
448
|
+
body: "$bodyFontFamily",
|
|
449
|
+
button: "$buttonFontFamily"
|
|
449
450
|
}
|
|
450
451
|
},
|
|
451
452
|
surfaces: {
|
|
@@ -600,8 +601,7 @@ const GLASS_DARK = {
|
|
|
600
601
|
}
|
|
601
602
|
}
|
|
602
603
|
};
|
|
603
|
-
|
|
604
|
-
//#region src/styles/glassLight.ts
|
|
604
|
+
// src/styles/glassLight.ts
|
|
605
605
|
const GLASS_LIGHT = {
|
|
606
606
|
id: "glass-light",
|
|
607
607
|
name: "Glass Light",
|
|
@@ -620,7 +620,7 @@ const GLASS_LIGHT = {
|
|
|
620
620
|
case: "as-typed"
|
|
621
621
|
},
|
|
622
622
|
button: {
|
|
623
|
-
font: "anchors.fonts.
|
|
623
|
+
font: "anchors.fonts.button",
|
|
624
624
|
fontSize: 18,
|
|
625
625
|
fontWeight: 700,
|
|
626
626
|
case: "as-typed"
|
|
@@ -635,7 +635,8 @@ const GLASS_LIGHT = {
|
|
|
635
635
|
},
|
|
636
636
|
fonts: {
|
|
637
637
|
heading: "$headingFontFamily",
|
|
638
|
-
body: "$bodyFontFamily"
|
|
638
|
+
body: "$bodyFontFamily",
|
|
639
|
+
button: "$buttonFontFamily"
|
|
639
640
|
}
|
|
640
641
|
},
|
|
641
642
|
surfaces: {
|
|
@@ -790,8 +791,7 @@ const GLASS_LIGHT = {
|
|
|
790
791
|
}
|
|
791
792
|
}
|
|
792
793
|
};
|
|
793
|
-
|
|
794
|
-
//#region src/styles/opaqueBright.ts
|
|
794
|
+
// src/styles/opaqueBright.ts
|
|
795
795
|
const OPAQUE_BRIGHT = {
|
|
796
796
|
id: "opaque-bright",
|
|
797
797
|
name: "Opaque Bright",
|
|
@@ -810,7 +810,7 @@ const OPAQUE_BRIGHT = {
|
|
|
810
810
|
case: "as-typed"
|
|
811
811
|
},
|
|
812
812
|
button: {
|
|
813
|
-
font: "anchors.fonts.
|
|
813
|
+
font: "anchors.fonts.button",
|
|
814
814
|
fontSize: 18,
|
|
815
815
|
fontWeight: 700,
|
|
816
816
|
case: "as-typed"
|
|
@@ -827,7 +827,8 @@ const OPAQUE_BRIGHT = {
|
|
|
827
827
|
},
|
|
828
828
|
fonts: {
|
|
829
829
|
heading: "$headingFontFamily",
|
|
830
|
-
body: "$bodyFontFamily"
|
|
830
|
+
body: "$bodyFontFamily",
|
|
831
|
+
button: "$buttonFontFamily"
|
|
831
832
|
}
|
|
832
833
|
},
|
|
833
834
|
surfaces: {
|
|
@@ -985,8 +986,7 @@ const OPAQUE_BRIGHT = {
|
|
|
985
986
|
}
|
|
986
987
|
}
|
|
987
988
|
};
|
|
988
|
-
|
|
989
|
-
//#region src/styles/opaqueHeavy.ts
|
|
989
|
+
// src/styles/opaqueHeavy.ts
|
|
990
990
|
const OPAQUE_HEAVY = {
|
|
991
991
|
id: "opaque-heavy",
|
|
992
992
|
name: "Opaque Heavy",
|
|
@@ -1005,7 +1005,7 @@ const OPAQUE_HEAVY = {
|
|
|
1005
1005
|
case: "as-typed"
|
|
1006
1006
|
},
|
|
1007
1007
|
button: {
|
|
1008
|
-
font: "anchors.fonts.
|
|
1008
|
+
font: "anchors.fonts.button",
|
|
1009
1009
|
fontSize: 18,
|
|
1010
1010
|
fontWeight: 700,
|
|
1011
1011
|
case: "as-typed"
|
|
@@ -1022,7 +1022,8 @@ const OPAQUE_HEAVY = {
|
|
|
1022
1022
|
},
|
|
1023
1023
|
fonts: {
|
|
1024
1024
|
heading: "$headingFontFamily",
|
|
1025
|
-
body: "$bodyFontFamily"
|
|
1025
|
+
body: "$bodyFontFamily",
|
|
1026
|
+
button: "$buttonFontFamily"
|
|
1026
1027
|
}
|
|
1027
1028
|
},
|
|
1028
1029
|
surfaces: {
|
|
@@ -1180,8 +1181,7 @@ const OPAQUE_HEAVY = {
|
|
|
1180
1181
|
}
|
|
1181
1182
|
}
|
|
1182
1183
|
};
|
|
1183
|
-
|
|
1184
|
-
//#region src/styles/opaqueLight.ts
|
|
1184
|
+
// src/styles/opaqueLight.ts
|
|
1185
1185
|
const OPAQUE_LIGHT = {
|
|
1186
1186
|
id: "opaque-light",
|
|
1187
1187
|
name: "Opaque Light",
|
|
@@ -1200,7 +1200,7 @@ const OPAQUE_LIGHT = {
|
|
|
1200
1200
|
case: "as-typed"
|
|
1201
1201
|
},
|
|
1202
1202
|
button: {
|
|
1203
|
-
font: "anchors.fonts.
|
|
1203
|
+
font: "anchors.fonts.button",
|
|
1204
1204
|
fontSize: 18,
|
|
1205
1205
|
fontWeight: 700,
|
|
1206
1206
|
case: "as-typed"
|
|
@@ -1214,7 +1214,8 @@ const OPAQUE_LIGHT = {
|
|
|
1214
1214
|
},
|
|
1215
1215
|
fonts: {
|
|
1216
1216
|
heading: "$headingFontFamily",
|
|
1217
|
-
body: "$bodyFontFamily"
|
|
1217
|
+
body: "$bodyFontFamily",
|
|
1218
|
+
button: "$buttonFontFamily"
|
|
1218
1219
|
}
|
|
1219
1220
|
},
|
|
1220
1221
|
surfaces: {
|
|
@@ -1369,8 +1370,7 @@ const OPAQUE_LIGHT = {
|
|
|
1369
1370
|
}
|
|
1370
1371
|
}
|
|
1371
1372
|
};
|
|
1372
|
-
|
|
1373
|
-
//#region src/styles/opaqueMedium.ts
|
|
1373
|
+
// src/styles/opaqueMedium.ts
|
|
1374
1374
|
const OPAQUE_MEDIUM = {
|
|
1375
1375
|
id: "opaque-medium",
|
|
1376
1376
|
name: "Opaque Medium",
|
|
@@ -1389,7 +1389,7 @@ const OPAQUE_MEDIUM = {
|
|
|
1389
1389
|
case: "as-typed"
|
|
1390
1390
|
},
|
|
1391
1391
|
button: {
|
|
1392
|
-
font: "anchors.fonts.
|
|
1392
|
+
font: "anchors.fonts.button",
|
|
1393
1393
|
fontSize: 18,
|
|
1394
1394
|
fontWeight: 700,
|
|
1395
1395
|
case: "as-typed"
|
|
@@ -1403,7 +1403,8 @@ const OPAQUE_MEDIUM = {
|
|
|
1403
1403
|
},
|
|
1404
1404
|
fonts: {
|
|
1405
1405
|
heading: "$headingFontFamily",
|
|
1406
|
-
body: "$bodyFontFamily"
|
|
1406
|
+
body: "$bodyFontFamily",
|
|
1407
|
+
button: "$buttonFontFamily"
|
|
1407
1408
|
}
|
|
1408
1409
|
},
|
|
1409
1410
|
surfaces: {
|
|
@@ -1561,8 +1562,7 @@ const OPAQUE_MEDIUM = {
|
|
|
1561
1562
|
}
|
|
1562
1563
|
}
|
|
1563
1564
|
};
|
|
1564
|
-
|
|
1565
|
-
//#region src/styles/opaqueMinimal.ts
|
|
1565
|
+
// src/styles/opaqueMinimal.ts
|
|
1566
1566
|
const OPAQUE_MINIMAL = {
|
|
1567
1567
|
id: "opaque-minimal",
|
|
1568
1568
|
name: "Opaque Minimal",
|
|
@@ -1581,7 +1581,7 @@ const OPAQUE_MINIMAL = {
|
|
|
1581
1581
|
case: "as-typed"
|
|
1582
1582
|
},
|
|
1583
1583
|
button: {
|
|
1584
|
-
font: "anchors.fonts.
|
|
1584
|
+
font: "anchors.fonts.button",
|
|
1585
1585
|
fontSize: 18,
|
|
1586
1586
|
fontWeight: 700,
|
|
1587
1587
|
case: "as-typed"
|
|
@@ -1595,7 +1595,8 @@ const OPAQUE_MINIMAL = {
|
|
|
1595
1595
|
},
|
|
1596
1596
|
fonts: {
|
|
1597
1597
|
heading: "$headingFontFamily",
|
|
1598
|
-
body: "$bodyFontFamily"
|
|
1598
|
+
body: "$bodyFontFamily",
|
|
1599
|
+
button: "$buttonFontFamily"
|
|
1599
1600
|
}
|
|
1600
1601
|
},
|
|
1601
1602
|
surfaces: {
|
|
@@ -1750,10 +1751,9 @@ const OPAQUE_MINIMAL = {
|
|
|
1750
1751
|
}
|
|
1751
1752
|
}
|
|
1752
1753
|
};
|
|
1753
|
-
|
|
1754
|
-
//#region src/styles/builtInStyles.ts
|
|
1754
|
+
// src/styles/preDefinedStyles.ts
|
|
1755
1755
|
/** Every Style that ships with the package. */
|
|
1756
|
-
const
|
|
1756
|
+
const PRE_DEFINED_STYLES = [
|
|
1757
1757
|
GLASS_DARK,
|
|
1758
1758
|
GLASS_LIGHT,
|
|
1759
1759
|
OPAQUE_MINIMAL,
|
|
@@ -1764,7 +1764,6 @@ const BUILT_IN_STYLES = [
|
|
|
1764
1764
|
AURORA_LIGHT,
|
|
1765
1765
|
AURORA_DARK
|
|
1766
1766
|
];
|
|
1767
|
-
|
|
1768
|
-
export { OPAQUE_HEAVY as a, GLASS_DARK as c, OPAQUE_LIGHT as i, AURORA_LIGHT as l, OPAQUE_MINIMAL as n, OPAQUE_BRIGHT as o, OPAQUE_MEDIUM as r, GLASS_LIGHT as s, BUILT_IN_STYLES as t, AURORA_DARK as u };
|
|
1767
|
+
export { OPAQUE_HEAVY as a, GLASS_DARK as c, OPAQUE_LIGHT as i, AURORA_LIGHT as l, OPAQUE_MINIMAL as n, OPAQUE_BRIGHT as o, OPAQUE_MEDIUM as r, GLASS_LIGHT as s, PRE_DEFINED_STYLES as t, AURORA_DARK as u };
|
|
1769
1768
|
|
|
1770
|
-
//# sourceMappingURL=styleRegistry-
|
|
1769
|
+
//# sourceMappingURL=styleRegistry-CT4jvu4h.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleRegistry-CT4jvu4h.js","names":[],"sources":["../src/styles/auroraDark.ts","../src/styles/auroraLight.ts","../src/styles/glassDark.ts","../src/styles/glassLight.ts","../src/styles/opaqueBright.ts","../src/styles/opaqueHeavy.ts","../src/styles/opaqueLight.ts","../src/styles/opaqueMedium.ts","../src/styles/opaqueMinimal.ts","../src/styles/preDefinedStyles.ts"],"sourcesContent":["import type { StyleDocument } from '../styleVocabulary';\n\nexport const AURORA_DARK: StyleDocument = {\n id: 'aurora-dark',\n name: 'Aurora Dark',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: '#000000',\n primary: '$primaryColor',\n ground: '#181819',\n gradientStops: [\n '$primaryColor',\n {\n from: '$primaryColor',\n relation: 'complementary',\n },\n {\n from: '$primaryColor',\n relation: 'analogous',\n },\n ],\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'gradient',\n gradientShape: { kind: 'glows' },\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'drift',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const AURORA_LIGHT: StyleDocument = {\n id: 'aurora-light',\n name: 'Aurora Light',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: '#f3f3f3',\n primary: '$primaryColor',\n ground: '#ffffff',\n gradientStops: [\n '$primaryColor',\n {\n from: '$primaryColor',\n relation: 'complementary',\n },\n {\n from: '$primaryColor',\n relation: 'analogous',\n },\n ],\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'gradient',\n gradientShape: { kind: 'glows' },\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'drift',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 1,\n source: 'surface',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const GLASS_DARK: StyleDocument = {\n id: 'glass-dark',\n name: 'Glass Dark',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: 20,\n },\n colors: {\n pageBackground: '$pageBackgroundColor',\n primary: '$primaryColor',\n ground: '#000000',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'parent',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const GLASS_LIGHT: StyleDocument = {\n id: 'glass-light',\n name: 'Glass Light',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: 20,\n },\n colors: {\n pageBackground: '$pageBackgroundColor',\n primary: '$primaryColor',\n ground: '#ffffff',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'anchors.colors.ground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'glassy',\n backgroundColor: {\n source: 'parent',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0.5,\n source: 'anchors.colors.ground',\n offset: 1,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const OPAQUE_BRIGHT: StyleDocument = {\n id: 'opaque-bright',\n name: 'Opaque Bright',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: { from: '$primaryColor', tone: 'light' },\n primary: '$primaryColor',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 2,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'when-indistinct',\n },\n textColor: {\n source: 'anchors.colors.primary',\n offset: 11,\n },\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 3,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const OPAQUE_HEAVY: StyleDocument = {\n id: 'opaque-heavy',\n name: 'Opaque Heavy',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: { from: '$primaryColor', tone: 'dark' },\n primary: '$primaryColor',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 2,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'when-indistinct',\n },\n textColor: {\n source: 'anchors.colors.primary',\n offset: 11,\n },\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 3,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const OPAQUE_LIGHT: StyleDocument = {\n id: 'opaque-light',\n name: 'Opaque Light',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: '$pageBackgroundColor',\n primary: '$primaryColor',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 1,\n from: 'parent',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 3,\n from: 'parent',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const OPAQUE_MEDIUM: StyleDocument = {\n id: 'opaque-medium',\n name: 'Opaque Medium',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: '$pageBackgroundColor',\n primary: '$primaryColor',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 2,\n from: 'parent',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 2,\n from: 'parent',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'when-indistinct',\n },\n textColor: {\n source: 'anchors.colors.primary',\n offset: 11,\n },\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 3,\n from: 'parent',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\n\nexport const OPAQUE_MINIMAL: StyleDocument = {\n id: 'opaque-minimal',\n name: 'Opaque Minimal',\n schemaVersion: 1,\n typography: {\n heading: {\n font: 'anchors.fonts.heading',\n fontSize: 32,\n fontWeight: 700,\n case: 'as-typed',\n },\n body: {\n font: 'anchors.fonts.body',\n fontSize: 16,\n fontWeight: 400,\n case: 'as-typed',\n },\n button: {\n font: 'anchors.fonts.button',\n fontSize: 18,\n fontWeight: 700,\n case: 'as-typed',\n },\n },\n anchors: {\n dimensions: {\n borderRadius: '$borderRadius',\n },\n colors: {\n pageBackground: '$pageBackgroundColor',\n primary: '$primaryColor',\n },\n fonts: {\n heading: '$headingFontFamily',\n body: '$bodyFontFamily',\n button: '$buttonFontFamily',\n },\n },\n surfaces: {\n page: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n panel: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 1,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'none',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n card: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.pageBackground',\n offset: 2,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'low',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'smooth',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonPrimary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'anchors.colors.primary',\n offset: 0,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n buttonSecondary: {\n treatment: 'flat',\n backgroundColor: {\n source: 'parent',\n offset: 3,\n from: 'source',\n invert: 'never',\n },\n textColor: 'derive',\n border: {\n width: 0,\n source: 'surface',\n offset: 0,\n style: 'solid',\n },\n elevation: {\n depth: 'none',\n hardness: 'soft',\n source: 'shade',\n },\n motion: {\n ambient: 'none',\n speed: 'slow',\n transition: 'quick',\n },\n radius: {\n source: 'anchors.dimensions.borderRadius',\n },\n texture: {\n kind: 'none',\n intensity: 'low',\n },\n },\n },\n};\n","import type { StyleDocument } from '../styleVocabulary';\nimport { AURORA_DARK } from './auroraDark';\nimport { AURORA_LIGHT } from './auroraLight';\nimport { GLASS_DARK } from './glassDark';\nimport { GLASS_LIGHT } from './glassLight';\nimport { OPAQUE_BRIGHT } from './opaqueBright';\nimport { OPAQUE_HEAVY } from './opaqueHeavy';\nimport { OPAQUE_LIGHT } from './opaqueLight';\nimport { OPAQUE_MEDIUM } from './opaqueMedium';\nimport { OPAQUE_MINIMAL } from './opaqueMinimal';\n\n/** Every Style that ships with the package. */\nexport const PRE_DEFINED_STYLES: readonly StyleDocument[] = [\n GLASS_DARK,\n GLASS_LIGHT,\n OPAQUE_MINIMAL,\n OPAQUE_LIGHT,\n OPAQUE_MEDIUM,\n OPAQUE_HEAVY,\n OPAQUE_BRIGHT,\n AURORA_LIGHT,\n AURORA_DARK,\n];\n"],"mappings":";;;;;;;;;;AAEA,MAAa,cAA6B;CACxC,IAAI;CACJ,MAAM;CACN,eAAe;CACf,YAAY;EACV,SAAS;GACP,MAAM;GACN,UAAU;GACV,YAAY;GACZ,MAAM;EACR;EACA,MAAM;GACJ,MAAM;GACN,UAAU;GACV,YAAY;GACZ,MAAM;EACR;EACA,QAAQ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N,QAAQ,kCACV;GACA,SAAS;IACP,MAAM;IACN,WAAW;GACb;EACF;EACA,MAAM;GACJ,WAAW;GACX,iBAAiB;IACf,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;GACA,WAAW;GACX,QAAQ;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;GACT;GACA,WAAW;IACT,OAAO;IACP,UAAU;IACV,QAAQ;GACV;GACA,QAAQ;IACN,SAAS;IACT,OAAO;IACP,YAAY;GACd;GACA,QAAQ,EACN,QAAQ,kCACV;GACA,SAAS;IACP,MAAM;IACN,WAAW;GACb;EACF;EACA,eAAe;GACb,WAAW;GACX,iBAAiB;IACf,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;GACA,WAAW;GACX,QAAQ;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;GACT;GACA,WAAW;IACT,OAAO;IACP,UAAU;IACV,QAAQ;GACV;GACA,QAAQ;IACN,SAAS;IACT,OAAO;IACP,YAAY;GACd;GACA,QAAQ,EACN,QAAQ,kCACV;GACA,SAAS;IACP,MAAM;IACN,WAAW;GACb;EACF;EACA,iBAAiB;GACf,WAAW;GACX,iBAAiB;IACf,QAAQ;IACR,QAAQ;IACR,MAAM;IACN,QAAQ;GACV;GACA,WAAW;GACX,QAAQ;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,OAAO;GACT;GACA,WAAW;IACT,OAAO;IACP,UAAU;IACV,QAAQ;GACV;GACA,QAAQ;IACN,SAAS;IACT,OAAO;IACP,YAAY;GACd;GACA,QAAQ,EACN,QAAQ,kCACV;GACA,SAAS;IACP,MAAM;IACN,WAAW;GACb;EACF;CACF;AACF;;;AC7LA,MAAa,qBAA+C;CAC1D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/kaleidoscope v0.0.
|
|
3
|
+
* @license @wistia/kaleidoscope v0.0.6
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2026, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is unlicensed, all rights reserved.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/styleVocabulary/anchors.ts
|
|
11
11
|
const ANCHOR_GROUPS = [
|
|
12
12
|
"dimensions",
|
|
13
13
|
"colors",
|
|
@@ -40,7 +40,11 @@ const OPTIONAL_COLOR_ANCHORS = ["ground", "gradientStops"];
|
|
|
40
40
|
/**
|
|
41
41
|
* Like the required color anchors, the required font anchors map up to the options defined by Brand Kits.
|
|
42
42
|
*/
|
|
43
|
-
const REQUIRED_FONT_ANCHORS = [
|
|
43
|
+
const REQUIRED_FONT_ANCHORS = [
|
|
44
|
+
"heading",
|
|
45
|
+
"body",
|
|
46
|
+
"button"
|
|
47
|
+
];
|
|
44
48
|
/**
|
|
45
49
|
* The color anchors that hold one color. `gradientStops` holds a list, so only a gradient can read
|
|
46
50
|
* it — every setting that resolves to a single color names one of these instead.
|
|
@@ -58,8 +62,7 @@ const ANCHORS_REQUIRED_BY_TREATMENT = {
|
|
|
58
62
|
gradient: ["gradientStops"],
|
|
59
63
|
none: []
|
|
60
64
|
};
|
|
61
|
-
|
|
62
|
-
//#region src/styleVocabulary/anchorValues.ts
|
|
65
|
+
// src/styleVocabulary/anchorValues.ts
|
|
63
66
|
const COLOR_RELATIONSHIPS = [
|
|
64
67
|
"same",
|
|
65
68
|
"complementary",
|
|
@@ -85,14 +88,13 @@ const GENERIC_FONT_FAMILIES = [
|
|
|
85
88
|
"math"
|
|
86
89
|
];
|
|
87
90
|
const MAX_COLOR_SCALE_OFFSET = 11;
|
|
88
|
-
|
|
89
|
-
//#region src/styleVocabulary/backgroundColor.ts
|
|
91
|
+
// src/styleVocabulary/backgroundColor.ts
|
|
90
92
|
/**
|
|
91
93
|
* Where a background's `offset` starts counting from.
|
|
92
94
|
*
|
|
93
95
|
* - `source` — at the source color itself: `colors.primary · 2` is two steps off the primary color.
|
|
94
|
-
* - `parent` — on the source's scale, at the step nearest
|
|
95
|
-
*
|
|
96
|
+
* - `parent` — on the source's scale, at the step nearest the fill of the surface this one sits
|
|
97
|
+
* on, stepping lighter if the parent is dark, and darker if it is light or midtone.
|
|
96
98
|
*
|
|
97
99
|
* The page sits on nothing, so it cannot count from `parent`.
|
|
98
100
|
* A surface that sits on several
|
|
@@ -109,20 +111,7 @@ const OFFSET_ORIGINS = ["source", "parent"];
|
|
|
109
111
|
* and compatibility with the color scheme.
|
|
110
112
|
*/
|
|
111
113
|
const INVERT_RULES = ["never", "when-indistinct"];
|
|
112
|
-
|
|
113
|
-
//#region src/styleVocabulary/border.ts
|
|
114
|
-
const BORDER_STYLES = [
|
|
115
|
-
"solid",
|
|
116
|
-
"dashed",
|
|
117
|
-
"dotted",
|
|
118
|
-
"double",
|
|
119
|
-
"scalloped",
|
|
120
|
-
"lace"
|
|
121
|
-
];
|
|
122
|
-
/** The border styles drawn as ornaments outside the edge, rather than as a CSS line. */
|
|
123
|
-
const ORNAMENTAL_BORDER_STYLES = ["scalloped", "lace"];
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region src/styleVocabulary/elevation.ts
|
|
114
|
+
// src/styleVocabulary/elevation.ts
|
|
126
115
|
const ELEVATION_DEPTHS = [
|
|
127
116
|
"none",
|
|
128
117
|
"low",
|
|
@@ -135,8 +124,7 @@ const ELEVATION_HARDNESSES = [
|
|
|
135
124
|
"glow"
|
|
136
125
|
];
|
|
137
126
|
const ELEVATION_COLOR_SOURCE_KEYWORDS = ["shade"];
|
|
138
|
-
|
|
139
|
-
//#region src/styleVocabulary/gradientShape.ts
|
|
127
|
+
// src/styleVocabulary/gradientShape.ts
|
|
140
128
|
const MIN_GRADIENT_STOPS = 2;
|
|
141
129
|
const MAX_GRADIENT_STOPS = 6;
|
|
142
130
|
const GRADIENT_SHAPE_OPTIONS = [
|
|
@@ -171,8 +159,7 @@ const GRADIENT_POSITIONS = [
|
|
|
171
159
|
* hold the final color; `far` carries it to the furthest corner.
|
|
172
160
|
*/
|
|
173
161
|
const GRADIENT_EXTENTS = ["near", "far"];
|
|
174
|
-
|
|
175
|
-
//#region src/styleVocabulary/motion.ts
|
|
162
|
+
// src/styleVocabulary/motion.ts
|
|
176
163
|
const AMBIENT_MOTIONS = [
|
|
177
164
|
"none",
|
|
178
165
|
"drift",
|
|
@@ -190,44 +177,7 @@ const TRANSITIONS = [
|
|
|
190
177
|
"quick",
|
|
191
178
|
"smooth"
|
|
192
179
|
];
|
|
193
|
-
|
|
194
|
-
//#region src/styleVocabulary/surfaces.ts
|
|
195
|
-
/** Surfaces every Style must define. A Style cannot add or opt out of any. */
|
|
196
|
-
const SURFACE_NAMES = [
|
|
197
|
-
"page",
|
|
198
|
-
"panel",
|
|
199
|
-
"card",
|
|
200
|
-
"buttonPrimary",
|
|
201
|
-
"buttonSecondary"
|
|
202
|
-
];
|
|
203
|
-
const STACKABLE_ON = {
|
|
204
|
-
page: [],
|
|
205
|
-
panel: ["page"],
|
|
206
|
-
card: ["page"],
|
|
207
|
-
buttonPrimary: [
|
|
208
|
-
"page",
|
|
209
|
-
"panel",
|
|
210
|
-
"card"
|
|
211
|
-
],
|
|
212
|
-
buttonSecondary: [
|
|
213
|
-
"page",
|
|
214
|
-
"panel",
|
|
215
|
-
"card"
|
|
216
|
-
]
|
|
217
|
-
};
|
|
218
|
-
const REQUIRED_SETTING_NAMES = [
|
|
219
|
-
"treatment",
|
|
220
|
-
"backgroundColor",
|
|
221
|
-
"textColor",
|
|
222
|
-
"elevation",
|
|
223
|
-
"motion",
|
|
224
|
-
"radius",
|
|
225
|
-
"texture"
|
|
226
|
-
];
|
|
227
|
-
const OPTIONAL_SETTING_NAMES = ["border", "gradientShape"];
|
|
228
|
-
const ALL_SETTING_NAMES = [...REQUIRED_SETTING_NAMES, ...OPTIONAL_SETTING_NAMES];
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/styleVocabulary/texture.ts
|
|
180
|
+
// src/styleVocabulary/texture.ts
|
|
231
181
|
/**
|
|
232
182
|
* - `grain` — fine, even film noise
|
|
233
183
|
* - `static` — sharp, high-contrast speckles, like screen noise
|
|
@@ -244,8 +194,7 @@ const TEXTURE_INTENSITIES = [
|
|
|
244
194
|
"medium",
|
|
245
195
|
"high"
|
|
246
196
|
];
|
|
247
|
-
|
|
248
|
-
//#region src/styleVocabulary/treatment.ts
|
|
197
|
+
// src/styleVocabulary/treatment.ts
|
|
249
198
|
/**
|
|
250
199
|
* What visual treatment is applied to a surface?
|
|
251
200
|
* `gradient` renders `colors.gradientStops` based on the values provided in `gradientShape`
|
|
@@ -259,16 +208,7 @@ const TREATMENTS = [
|
|
|
259
208
|
"glassy",
|
|
260
209
|
"gradient"
|
|
261
210
|
];
|
|
262
|
-
|
|
263
|
-
//#region src/styleVocabulary/typography.ts
|
|
264
|
-
const TYPE_CASES = ["as-typed", "upper"];
|
|
265
|
-
const TYPE_ROLES = [
|
|
266
|
-
"heading",
|
|
267
|
-
"body",
|
|
268
|
-
"button"
|
|
269
|
-
];
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/styleVocabulary/index.ts
|
|
211
|
+
// src/styleVocabulary/index.ts
|
|
272
212
|
/** The top-level keys in a Style document */
|
|
273
213
|
const DOCUMENT_KEYS = [
|
|
274
214
|
"id",
|
|
@@ -278,7 +218,6 @@ const DOCUMENT_KEYS = [
|
|
|
278
218
|
"anchors",
|
|
279
219
|
"surfaces"
|
|
280
220
|
];
|
|
281
|
-
|
|
282
|
-
export { GENERIC_FONT_FAMILIES as A, SINGLE_COLOR_ANCHOR_NAMES as B, ELEVATION_HARDNESSES as C, OFFSET_ORIGINS as D, INVERT_RULES as E, COLOR_ANCHOR_NAMES as F, OPTIONAL_COLOR_ANCHORS as I, REQUIRED_COLOR_ANCHORS as L, ANCHORS_REQUIRED_BY_TREATMENT as M, ANCHOR_GROUPS as N, COLOR_RELATIONSHIPS as O, ANCHOR_REF_PREFIX as P, REQUIRED_DIMENSION_ANCHORS as R, ELEVATION_DEPTHS as S, ORNAMENTAL_BORDER_STYLES as T, GRADIENT_POSITIONS as _, TEXTURE_INTENSITIES as a, MIN_GRADIENT_STOPS as b, OPTIONAL_SETTING_NAMES as c, SURFACE_NAMES as d, AMBIENT_MOTIONS as f, GRADIENT_EXTENTS as g, GRADIENT_DIRECTIONS as h, TREATMENTS as i, MAX_COLOR_SCALE_OFFSET as j, COLOR_TONES as k, REQUIRED_SETTING_NAMES as l, TRANSITIONS as m, TYPE_CASES as n, TEXTURE_KINDS as o, MOTION_SPEEDS as p, TYPE_ROLES as r, ALL_SETTING_NAMES as s, DOCUMENT_KEYS as t, STACKABLE_ON as u, GRADIENT_SHAPE_OPTIONS as v, BORDER_STYLES as w, ELEVATION_COLOR_SOURCE_KEYWORDS as x, MAX_GRADIENT_STOPS as y, REQUIRED_FONT_ANCHORS as z };
|
|
221
|
+
export { REQUIRED_FONT_ANCHORS as A, ANCHORS_REQUIRED_BY_TREATMENT as C, OPTIONAL_COLOR_ANCHORS as D, COLOR_ANCHOR_NAMES as E, REQUIRED_COLOR_ANCHORS as O, MAX_COLOR_SCALE_OFFSET as S, ANCHOR_REF_PREFIX as T, INVERT_RULES as _, AMBIENT_MOTIONS as a, COLOR_TONES as b, GRADIENT_DIRECTIONS as c, GRADIENT_SHAPE_OPTIONS as d, MAX_GRADIENT_STOPS as f, ELEVATION_HARDNESSES as g, ELEVATION_DEPTHS as h, TEXTURE_KINDS as i, SINGLE_COLOR_ANCHOR_NAMES as j, REQUIRED_DIMENSION_ANCHORS as k, GRADIENT_EXTENTS as l, ELEVATION_COLOR_SOURCE_KEYWORDS as m, TREATMENTS as n, MOTION_SPEEDS as o, MIN_GRADIENT_STOPS as p, TEXTURE_INTENSITIES as r, TRANSITIONS as s, DOCUMENT_KEYS as t, GRADIENT_POSITIONS as u, OFFSET_ORIGINS as v, ANCHOR_GROUPS as w, GENERIC_FONT_FAMILIES as x, COLOR_RELATIONSHIPS as y };
|
|
283
222
|
|
|
284
|
-
//# sourceMappingURL=styleVocabulary-
|
|
223
|
+
//# sourceMappingURL=styleVocabulary-DcxbkEvK.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleVocabulary-DcxbkEvK.js","names":[],"sources":["../src/styleVocabulary/anchors.ts","../src/styleVocabulary/anchorValues.ts","../src/styleVocabulary/backgroundColor.ts","../src/styleVocabulary/elevation.ts","../src/styleVocabulary/gradientShape.ts","../src/styleVocabulary/motion.ts","../src/styleVocabulary/texture.ts","../src/styleVocabulary/treatment.ts","../src/styleVocabulary/index.ts"],"sourcesContent":["import type { Dimension, FontStack, SingleColor, BrandKitTokenRef } from './anchorValues';\nimport type { GradientStops } from './gradientShape';\nimport type { Treatment } from './treatment';\n\nexport const ANCHOR_GROUPS = ['dimensions', 'colors', 'fonts'] as const;\nexport type AnchorGroup = (typeof ANCHOR_GROUPS)[number];\n\n/**\n * Like the required color and font anchors, the required dimension anchors map up to Brand Kit\n * options. A Style may hard-code one instead: Glass does, because the glass effect needs\n * generous rounding.\n */\nexport const REQUIRED_DIMENSION_ANCHORS = ['borderRadius'] as const;\nexport type RequiredDimensionAnchor = (typeof REQUIRED_DIMENSION_ANCHORS)[number];\n\nexport const COLOR_ANCHOR_NAMES = ['pageBackground', 'primary', 'ground', 'gradientStops'] as const;\nexport type ColorAnchorName = (typeof COLOR_ANCHOR_NAMES)[number];\n\n/**\n * The required color anchors should correlate to whatever Brand Kit tokens exist,\n * currently pageBackgroundColor and primaryColor.\n * If an accentColor is supported in the future, we'll add it here.\n */\nexport const REQUIRED_COLOR_ANCHORS = ['pageBackground', 'primary'] as const;\nexport type RequiredColorAnchor = (typeof REQUIRED_COLOR_ANCHORS)[number];\n\n/**\n * These colors are optional, based on which Style and/or treatment is applied to a surface.\n * Glass styles use the ground color as the background for the glass effect: dark or light.\n * The aurora styles use the ground color as a hard-coded value for the backgrounds of cards and panels.\n */\nexport const OPTIONAL_COLOR_ANCHORS = ['ground', 'gradientStops'] as const;\nexport type OptionalColorAnchor = (typeof OPTIONAL_COLOR_ANCHORS)[number];\n\n/**\n * Like the required color anchors, the required font anchors map up to the options defined by Brand Kits.\n */\nexport const REQUIRED_FONT_ANCHORS = ['heading', 'body', 'button'] as const;\nexport type RequiredFontAnchor = (typeof REQUIRED_FONT_ANCHORS)[number];\n\n/**\n * The color anchors that hold one color. `gradientStops` holds a list, so only a gradient can read\n * it — every setting that resolves to a single color names one of these instead.\n */\nexport const SINGLE_COLOR_ANCHOR_NAMES = ['pageBackground', 'primary', 'ground'] as const;\nexport type SingleColorAnchorName = (typeof SINGLE_COLOR_ANCHOR_NAMES)[number];\n\nexport const ANCHOR_REF_PREFIX = 'anchors.';\n\nexport type ColorAnchorRef = `anchors.colors.${ColorAnchorName}`;\nexport type SingleColorAnchorRef = `anchors.colors.${SingleColorAnchorName}`;\nexport type FontAnchorRef = `anchors.fonts.${RequiredFontAnchor}`;\nexport type DimensionAnchorRef = `anchors.dimensions.${RequiredDimensionAnchor}`;\n\nexport type ColorAnchorValue<Name extends ColorAnchorName> = Name extends 'gradientStops'\n ? GradientStops\n : SingleColor;\n\nexport type ColorAnchors = Readonly<{ [Name in RequiredColorAnchor]: ColorAnchorValue<Name> }> &\n Readonly<{ [Name in OptionalColorAnchor]?: ColorAnchorValue<Name> }>;\n\nexport type DimensionAnchors = Readonly<Record<RequiredDimensionAnchor, Dimension>>;\n\n// check in about this type\nexport type FontAnchors = Readonly<Record<RequiredFontAnchor, FontStack | BrandKitTokenRef>>;\n\n/**\n * All the possible anchors referenced in a style doc. Options defined by the schema.\n */\nexport type Anchors = {\n readonly colors: ColorAnchors;\n readonly dimensions: DimensionAnchors;\n readonly fonts: FontAnchors;\n};\n\n/** Which colors a treatment cannot resolve without. Checked by `validateStyleDocument`. */\nexport const ANCHORS_REQUIRED_BY_TREATMENT: Readonly<\n Record<Treatment, readonly ColorAnchorName[]>\n> = {\n flat: [],\n glassy: ['ground'],\n gradient: ['gradientStops'],\n none: [],\n};\n","export type BrandKitTokenRef = `$${string}`;\n\nexport type LiteralColor = `#${string}` | `rgb(${string})` | `rgba(${string})`;\n\nexport const COLOR_RELATIONSHIPS = ['same', 'complementary', 'analogous', 'triad'] as const;\nexport type ColorRelationship = (typeof COLOR_RELATIONSHIPS)[number];\n\nexport const COLOR_TONES = ['dark', 'light'] as const;\nexport type ColorTone = (typeof COLOR_TONES)[number];\n\n/**\n * A color derived from a brand token. `relation` turns its hue, then `tone` takes the result to\n * the brand's dark or light background color. Both are optional; with neither, we use the token itself.\n */\nexport type RelatedColor = {\n readonly from: BrandKitTokenRef;\n readonly relation?: ColorRelationship;\n readonly tone?: ColorTone;\n};\n\nexport type SingleColor = LiteralColor | RelatedColor | BrandKitTokenRef;\n\n/**\n * The CSS generic families a hard-coded font stack must end in, so a face that fails to load\n * still falls back to the right kind of type.\n */\nexport const GENERIC_FONT_FAMILIES = [\n 'serif',\n 'sans-serif',\n 'monospace',\n 'cursive',\n 'fantasy',\n 'system-ui',\n 'ui-serif',\n 'ui-sans-serif',\n 'ui-monospace',\n 'ui-rounded',\n 'math',\n] as const;\nexport type GenericFontFamily = (typeof GENERIC_FONT_FAMILIES)[number];\n\nexport type FontStack = `${string}${GenericFontFamily}`;\n\n/** A length: a brand token, a number in pixels */\nexport type Dimension = BrandKitTokenRef | number;\n\nexport const MAX_COLOR_SCALE_OFFSET = 11;\nexport type ColorScaleOffset = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11;\n","import type { SingleColorAnchorRef } from './anchors';\nimport type { ColorScaleOffset } from './anchorValues';\n\n/**\n * Where a background's `offset` starts counting from.\n *\n * - `source` — at the source color itself: `colors.primary · 2` is two steps off the primary color.\n * - `parent` — on the source's scale, at the step nearest the fill of the surface this one sits\n * on, stepping lighter if the parent is dark, and darker if it is light or midtone.\n *\n * The page sits on nothing, so it cannot count from `parent`.\n * A surface that sits on several\n * parents counts from the closest parent.\n */\nexport const OFFSET_ORIGINS = ['source', 'parent'] as const;\nexport type OffsetOrigin = (typeof OFFSET_ORIGINS)[number];\n\n/**\n * When a background color no longer meets accessible contrast against its parent surface, how do we handle that?\n *\n * - `never` — Do nothing. the fill is always what `backgroundColor` resolves to.\n *\n * - `when-indistinct` — Invert the background and foreground colors: the text color\n * becomes the fill and the fill becomes the text. The pair maintains accessible contrast\n * and compatibility with the color scheme.\n */\nexport const INVERT_RULES = ['never', 'when-indistinct'] as const;\nexport type InvertRule = (typeof INVERT_RULES)[number];\n\n/**\n * What color does this background fill reference--a color anchor or the parent surface's background color?\n */\nexport type BackgroundSource = SingleColorAnchorRef | 'parent';\n\n/**\n * A surface's own fill: where it steps from, how many steps along that source's scale it sits,\n * where those steps start counting ({@link OffsetOrigin}), and whether it may\n * {@link InvertRule | invert} with its text.\n *\n * A `flat` surface at `parent · 0` paints exactly its parent's fill and cannot be seen,\n * which works out to the same effect as `treatment: \"none\"` applied to a surface — unless\n * it inverts `when-indistinct`, since a fill identical to its parent is never distinct, so\n * the swap always fires and the surface paints its text color.\n */\nexport type BackgroundColor = {\n readonly from: OffsetOrigin;\n readonly invert: InvertRule;\n readonly offset: ColorScaleOffset;\n readonly source: BackgroundSource;\n};\n","// The `elevation` setting: how far a surface lifts off what is behind it, and in what color.\n\nimport type { SingleColorAnchorRef } from './anchors';\nimport type { SingleColor } from './anchorValues';\n\nexport const ELEVATION_DEPTHS = ['none', 'low', 'medium', 'high'] as const;\nexport type ElevationDepth = (typeof ELEVATION_DEPTHS)[number];\n\nexport const ELEVATION_HARDNESSES = ['soft', 'hard', 'glow'] as const;\nexport type ElevationHardness = (typeof ELEVATION_HARDNESSES)[number];\n\nexport const ELEVATION_COLOR_SOURCE_KEYWORDS = ['shade'] as const;\nexport type ElevationColorSourceKeyword = (typeof ELEVATION_COLOR_SOURCE_KEYWORDS)[number];\n\nexport type ElevationColorSource = ElevationColorSourceKeyword | SingleColorAnchorRef | SingleColor;\n\n/**\n * How a surface lifts against its backgroung to appear 3D, and in what color.\n * Alphas, blur radii and offsets are engine-owned based on the value of `hardness`.\n * When `depth` is `none` no shadow/elevation is rendered.\n */\nexport type Elevation = {\n readonly depth: ElevationDepth;\n readonly hardness: ElevationHardness;\n readonly source: ElevationColorSource;\n};\n","import type { SingleColor } from './anchorValues';\n\nexport const MIN_GRADIENT_STOPS = 2;\nexport const MAX_GRADIENT_STOPS = 6;\n\nexport type GradientStops = readonly SingleColor[];\n\nexport const GRADIENT_SHAPE_OPTIONS = ['glows', 'linear', 'radial', 'beams'] as const;\nexport type GradientShapeOption = (typeof GRADIENT_SHAPE_OPTIONS)[number];\n\nexport const GRADIENT_DIRECTIONS = [\n 'to-top',\n 'to-top-right',\n 'to-right',\n 'to-bottom-right',\n 'to-bottom',\n 'to-bottom-left',\n 'to-left',\n 'to-top-left',\n] as const;\nexport type GradientDirection = (typeof GRADIENT_DIRECTIONS)[number];\n\nexport const GRADIENT_POSITIONS = [\n 'center',\n 'top',\n 'top-right',\n 'right',\n 'bottom-right',\n 'bottom',\n 'bottom-left',\n 'left',\n 'top-left',\n] as const;\nexport type GradientPosition = (typeof GRADIENT_POSITIONS)[number];\n\n/**\n * How far a `radial` gradient's last stop reaches: `near` ends at the closest edge, so the corners\n * hold the final color; `far` carries it to the furthest corner.\n */\nexport const GRADIENT_EXTENTS = ['near', 'far'] as const;\nexport type GradientExtent = (typeof GRADIENT_EXTENTS)[number];\n\n/**\n * A gradient shape and whatever supporting info required to draw it.\n * `glows` and `beams` are placed by the engine and take no other args\n * `linear` says which direction it runs\n * `radial` supports where it's centered and how far it reaches.\n */\nexport type GradientShape =\n | { readonly kind: 'beams' }\n | { readonly kind: 'glows' }\n | { readonly direction: GradientDirection; readonly kind: 'linear' }\n | {\n readonly extent: GradientExtent;\n readonly kind: 'radial';\n readonly position: GradientPosition;\n };\n","export const AMBIENT_MOTIONS = ['none', 'drift', 'pulse'] as const;\nexport type AmbientMotion = (typeof AMBIENT_MOTIONS)[number];\n\n/** Rate of ambient motion. Exact durations are owned by the engine. */\nexport const MOTION_SPEEDS = ['slow', 'medium', 'fast'] as const;\nexport type MotionSpeed = (typeof MOTION_SPEEDS)[number];\n\n/** How a surface moves between states — hover, focus, active. Easings are engine-owned. */\nexport const TRANSITIONS = ['none', 'quick', 'smooth'] as const;\nexport type Transition = (typeof TRANSITIONS)[number];\n\n/**\n * Does this surface have any non-interactive animation?\n * `transition` is how it moves when its state changes. A card can transition smoothly on hover while sitting\n * perfectly still otherwise.\n * When `ambient` is `none`, no motion is rendered.\n *\n * Every ambient motion will degrade according to the `prefers-reduced-motion` setting.\n * The engine owns this fallback so style docs do not have to provide this.\n */\nexport type Motion = {\n readonly ambient: AmbientMotion;\n readonly speed: MotionSpeed;\n readonly transition: Transition;\n};\n","/**\n * - `grain` — fine, even film noise\n * - `static` — sharp, high-contrast speckles, like screen noise\n * - `halftone` — a regular dot screen, as in print\n */\nexport const TEXTURE_KINDS = ['none', 'grain', 'static', 'halftone'] as const;\nexport type TextureKind = (typeof TEXTURE_KINDS)[number];\n\nexport const TEXTURE_INTENSITIES = ['low', 'medium', 'high'] as const;\nexport type TextureIntensity = (typeof TEXTURE_INTENSITIES)[number];\n\n/**\n * A texture laid over the surface's fill: which one, and how strong it is.\n *\n * It is separate from `treatment` because textures can be stacked on top of treatments:\n * grain on glass, static on a gradient.\n *\n * When `kind` is `none`, no texture is applied.\n */\nexport type Texture = {\n readonly intensity: TextureIntensity;\n readonly kind: TextureKind;\n};\n","/**\n * What visual treatment is applied to a surface?\n * `gradient` renders `colors.gradientStops` based on the values provided in `gradientShape`\n * `glassy` renders a semi-translucent glass effect, best over a background with visual noise/texture as opposed to a flat color.\n * `flat` renders a flat color\n * `none` renders no background and lets the parent show through\n */\nexport const TREATMENTS = ['none', 'flat', 'glassy', 'gradient'] as const;\nexport type Treatment = (typeof TREATMENTS)[number];\n","/**\n * The shape of a Kaleidoscope Style document.\n *\n * A style document provides a set of instructions on how to render a set of surfaces,\n * based on abstractified representations of CSS rules.\n *\n * The engine takes these instructions and \"inflates\" them into actual CSS that can be applied\n * to embeds and/or hosted pages.\n */\nimport type { Anchors } from './anchors';\nimport type { Surfaces } from './surfaces';\nimport type { Typography } from './typography';\n\n/** The top-level keys in a Style document */\nexport const DOCUMENT_KEYS = [\n 'id',\n 'name',\n 'schemaVersion',\n 'typography',\n 'anchors',\n 'surfaces',\n] as const;\n\nexport type StyleDocument = {\n readonly anchors: Anchors;\n readonly id: string;\n readonly name: string;\n readonly schemaVersion: 1;\n readonly surfaces: Surfaces;\n readonly typography: Typography;\n};\n\nexport * from './anchors';\nexport * from './anchorValues';\nexport * from './backgroundColor';\nexport * from './border';\nexport * from './elevation';\nexport * from './gradientShape';\nexport * from './motion';\n// `radius` declares only types\nexport type * from './radius';\nexport * from './surfaces';\n// `textColor` declares only types\nexport type * from './textColor';\nexport * from './texture';\nexport * from './treatment';\nexport * from './typography';\n"],"mappings":";;;;;;;;;;AAIA,MAAa,gBAAgB;CAAC;CAAc;CAAU;AAAO;;;;;;AAQ7D,MAAa,6BAA6B,CAAC,cAAc;AAGzD,MAAa,qBAAqB;CAAC;CAAkB;CAAW;CAAU;AAAe;;;;;;AAQzF,MAAa,yBAAyB,CAAC,kBAAkB,SAAS;;;;;;AAQlE,MAAa,yBAAyB,CAAC,UAAU,eAAe;;;;AAMhE,MAAa,wBAAwB;CAAC;CAAW;CAAQ;AAAQ;;;;;AAOjE,MAAa,4BAA4B;CAAC;CAAkB;CAAW;AAAQ;AAG/E,MAAa,oBAAoB;;AA6BjC,MAAa,gCAET;CACF,MAAM,CAAC;CACP,QAAQ,CAAC,QAAQ;CACjB,UAAU,CAAC,eAAe;CAC1B,MAAM,CAAC;AACT;;AC/EA,MAAa,sBAAsB;CAAC;CAAQ;CAAiB;CAAa;AAAO;AAGjF,MAAa,cAAc,CAAC,QAAQ,OAAO;;;;;AAmB3C,MAAa,wBAAwB;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CAC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