@xsolla/switch-theme-customization 0.161.3-pr315.1779889787 → 0.162.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/index.mjs CHANGED
@@ -1902,6 +1902,41 @@ var publisherV2Themes = {
1902
1902
  dark: publisherV2Dark
1903
1903
  };
1904
1904
 
1905
+ // src/themes/baseColors.ts
1906
+ var themesBaseColorsArray = [
1907
+ { theme: "publisherV2", baseColors: base8 },
1908
+ { theme: "publisherV2Dark", baseColors: base9 },
1909
+ { theme: "paystation4", baseColors: base2 },
1910
+ { theme: "paystation4Dark", baseColors: base },
1911
+ { theme: "paystation4Take2", baseColors: base3 },
1912
+ { theme: "paystation4Gaijin", baseColors: base4 },
1913
+ { theme: "paystation4Nexters", baseColors: base5 },
1914
+ { theme: "emails", baseColors: base7 },
1915
+ { theme: "emailsDark", baseColors: base6 }
1916
+ ];
1917
+ var themesBaseColors = {
1918
+ publisherV2: base8,
1919
+ publisherV2Dark: base9,
1920
+ paystation4: base2,
1921
+ paystation4Dark: base,
1922
+ paystation4Take2: base3,
1923
+ paystation4Gaijin: base4,
1924
+ paystation4Nexters: base5,
1925
+ emails: base7,
1926
+ emailsDark: base6
1927
+ };
1928
+ var themesColorsScheme = {
1929
+ publisherV2: publisherV2LightScheme,
1930
+ publisherV2Dark: publisherV2DarkScheme,
1931
+ paystation4: ps4LightScheme,
1932
+ paystation4Dark: ps4DarkScheme,
1933
+ paystation4Take2: ps4Take2Scheme,
1934
+ paystation4Gaijin: ps4GaijinScheme,
1935
+ paystation4Nexters: ps4NextersScheme,
1936
+ emails: emailsLightScheme,
1937
+ emailsDark: emailsDarkScheme
1938
+ };
1939
+
1905
1940
  // src/themes/pentagram/presets/pay-station-dark.ts
1906
1941
  import { colord as colord10 } from "colord";
1907
1942
  var baseDark = {
@@ -2566,201 +2601,6 @@ var createScheme = (b) => ({
2566
2601
  });
2567
2602
  var payStationScheme = createScheme(base10);
2568
2603
 
2569
- // src/themes/pentagram/mappers/scheme-to-legacy.ts
2570
- function mapThemeSchemeToLegacy(scheme) {
2571
- return {
2572
- core: {
2573
- background: {
2574
- primary: scheme.background.primary,
2575
- secondary: scheme.layer.float,
2576
- ghost: scheme.overlay.mono,
2577
- tone: scheme.layer.scrim,
2578
- selection: "transparent",
2579
- // deleted in Pentagram
2580
- hover: "transparent",
2581
- // deleted in Pentagram
2582
- brand: scheme.background.brand.secondary,
2583
- brandSecondary: scheme.background.brandExtra.secondary,
2584
- success: scheme.background.success.secondary,
2585
- warning: scheme.background.warning.secondary,
2586
- alert: scheme.background.alert.secondary,
2587
- neutral: scheme.background.neutral.secondary
2588
- },
2589
- divider: {
2590
- divider: scheme.border.secondary
2591
- },
2592
- text: {
2593
- primary: scheme.content.primary,
2594
- secondary: scheme.content.secondary,
2595
- tertiary: scheme.content.tertiary,
2596
- brand: scheme.content.brand.primary,
2597
- brandSecondary: scheme.content.brandExtra.primary,
2598
- success: scheme.content.success.primary,
2599
- warning: scheme.content.warning.primary,
2600
- alert: scheme.content.alert.primary,
2601
- neutral: scheme.content.neutral.primary
2602
- },
2603
- link: {
2604
- link: scheme.control.link.primary,
2605
- linkHover: scheme.control.link.primaryHover,
2606
- linkMinor: scheme.control.link.secondary,
2607
- linkMinorHover: scheme.control.link.secondaryHover
2608
- }
2609
- },
2610
- control: {
2611
- primary: {
2612
- bg: scheme.control.brand.primary.bg,
2613
- bgHover: scheme.control.brand.primary.bgHover,
2614
- bgPress: scheme.control.brand.primary.bgPress,
2615
- bgDisabled: scheme.control.brand.primary.bgDisable,
2616
- border: scheme.control.brand.primary.border,
2617
- borderHover: scheme.control.brand.primary.borderHover,
2618
- borderPress: scheme.control.brand.primary.borderPress
2619
- },
2620
- secondary: {
2621
- bg: scheme.control.brand.secondary.bg,
2622
- bgHover: scheme.control.brand.secondary.bgHover,
2623
- bgPress: scheme.control.brand.secondary.bgPress,
2624
- border: scheme.control.brand.secondary.border,
2625
- borderHover: scheme.control.brand.secondary.borderHover,
2626
- borderPress: scheme.control.brand.secondary.borderPress
2627
- },
2628
- default: {
2629
- bg: scheme.control.mono.primary.bg,
2630
- bgHover: scheme.control.mono.primary.bgHover,
2631
- bgPress: scheme.control.mono.primary.bgPress,
2632
- border: scheme.control.mono.primary.border,
2633
- borderHover: scheme.control.mono.primary.borderHover,
2634
- borderPress: scheme.control.mono.primary.borderPress
2635
- },
2636
- input: {
2637
- bg: scheme.control.input.bg,
2638
- bgHover: scheme.control.input.bgHover,
2639
- bgDisabled: scheme.control.input.bgDisable,
2640
- border: scheme.control.input.border,
2641
- borderHover: scheme.control.input.borderHover,
2642
- borderDisabled: scheme.control.input.borderDisable,
2643
- text: scheme.control.input.text,
2644
- textDisabled: scheme.control.input.textDisable,
2645
- placeholder: scheme.control.input.placeholder
2646
- },
2647
- focus: {
2648
- bg: scheme.control.focus.bg,
2649
- border: scheme.control.focus.border
2650
- },
2651
- alert: {
2652
- bg: scheme.control.alert.secondary.bg,
2653
- bgHover: scheme.control.alert.secondary.bgHover,
2654
- bgPress: scheme.control.alert.secondary.bgPress,
2655
- border: scheme.control.alert.secondary.border,
2656
- borderHover: scheme.control.alert.secondary.borderHover,
2657
- borderPress: scheme.control.alert.secondary.borderPress
2658
- },
2659
- check: {
2660
- bg: scheme.control.check.bg,
2661
- bgHover: scheme.control.check.bgHover,
2662
- bgDisabled: scheme.control.check.bgDisable
2663
- },
2664
- faint: {
2665
- bg: scheme.control.faint.bg,
2666
- bgHover: scheme.control.faint.bgHover,
2667
- border: scheme.control.faint.border,
2668
- borderHover: scheme.control.faint.borderHover
2669
- },
2670
- toggle: {
2671
- bg: scheme.control.switch.bg,
2672
- bgHover: scheme.control.switch.bgHover
2673
- },
2674
- text: {
2675
- active: scheme.control.brand.text.primary,
2676
- secondary: scheme.control.brand.text.secondary,
2677
- default: scheme.control.mono.text.primary,
2678
- primary: scheme.control.text.primary,
2679
- disabled: scheme.control.brand.text.disable,
2680
- faint: scheme.control.check.icon,
2681
- alert: scheme.control.alert.text.secondary
2682
- }
2683
- }
2684
- };
2685
- }
2686
-
2687
- // src/themes/pentagram/pentagram.ts
2688
- function convertToLegacyBase(pentagramBase) {
2689
- return {
2690
- content: pentagramBase.content.toRgbString(),
2691
- // Primary content color
2692
- surface: pentagramBase.background.toRgbString(),
2693
- // Background/surface color
2694
- project: pentagramBase.brand.toRgbString(),
2695
- // Primary brand color
2696
- accent: pentagramBase.brandExtra.toRgbString(),
2697
- // Secondary brand color
2698
- phantom: pentagramBase.mono.toRgbString(),
2699
- // Neutral/mono color
2700
- path: pentagramBase.brand.toRgbString(),
2701
- // Path color (same as brand)
2702
- success: pentagramBase.success.toRgbString(),
2703
- warning: pentagramBase.warning.toRgbString(),
2704
- alert: pentagramBase.alert.toRgbString(),
2705
- neutral: pentagramBase.neutral.toRgbString()
2706
- };
2707
- }
2708
- var paystation4PentagramLight = {
2709
- colors: {
2710
- base: convertToLegacyBase(base10),
2711
- ...mapThemeSchemeToLegacy(payStationScheme)
2712
- },
2713
- typo,
2714
- misc,
2715
- shadows,
2716
- globalStyle: "pentagram"
2717
- };
2718
- var paystation4PentagramDark = {
2719
- colors: {
2720
- base: convertToLegacyBase(baseDark),
2721
- ...mapThemeSchemeToLegacy(payStationDarkScheme)
2722
- },
2723
- typo,
2724
- misc,
2725
- shadows,
2726
- globalStyle: "pentagram"
2727
- };
2728
-
2729
- // src/themes/baseColors.ts
2730
- var themesBaseColorsArray = [
2731
- { theme: "publisherV2", baseColors: base8 },
2732
- { theme: "publisherV2Dark", baseColors: base9 },
2733
- { theme: "paystation4", baseColors: base2 },
2734
- { theme: "paystation4Dark", baseColors: base },
2735
- { theme: "paystation4Take2", baseColors: base3 },
2736
- { theme: "paystation4Gaijin", baseColors: base4 },
2737
- { theme: "paystation4Nexters", baseColors: base5 },
2738
- { theme: "emails", baseColors: base7 },
2739
- { theme: "emailsDark", baseColors: base6 }
2740
- ];
2741
- var themesBaseColors = {
2742
- publisherV2: base8,
2743
- publisherV2Dark: base9,
2744
- paystation4: base2,
2745
- paystation4Dark: base,
2746
- paystation4Take2: base3,
2747
- paystation4Gaijin: base4,
2748
- paystation4Nexters: base5,
2749
- emails: base7,
2750
- emailsDark: base6
2751
- };
2752
- var themesColorsScheme = {
2753
- publisherV2: publisherV2LightScheme,
2754
- publisherV2Dark: publisherV2DarkScheme,
2755
- paystation4: ps4LightScheme,
2756
- paystation4Dark: ps4DarkScheme,
2757
- paystation4Take2: ps4Take2Scheme,
2758
- paystation4Gaijin: ps4GaijinScheme,
2759
- paystation4Nexters: ps4NextersScheme,
2760
- emails: emailsLightScheme,
2761
- emailsDark: emailsDarkScheme
2762
- };
2763
-
2764
2604
  // src/themes/index.ts
2765
2605
  var themes = {
2766
2606
  paystation4,
@@ -2771,9 +2611,7 @@ var themes = {
2771
2611
  emails,
2772
2612
  emailsDark,
2773
2613
  publisherV2,
2774
- publisherV2Dark,
2775
- paystation4PentagramLight,
2776
- paystation4PentagramDark
2614
+ publisherV2Dark
2777
2615
  };
2778
2616
 
2779
2617
  // src/palettes/primaryPalette.ts
@@ -3029,1061 +2867,15 @@ var applyPentagramColors = (schemeBase, overrides) => {
3029
2867
  });
3030
2868
  return result;
3031
2869
  };
3032
-
3033
- // src/pentagram-to-legacy/pentagram-resolver.ts
3034
- var FONT_SIZE_SCALE = {
3035
- "75": { desktop: "10px", mobile: "10px" },
3036
- "100": { desktop: "12px", mobile: "11px" },
3037
- "125": { desktop: "14px", mobile: "12px" },
3038
- "150": { desktop: "16px", mobile: "14px" },
3039
- "175": { desktop: "18px", mobile: "16px" },
3040
- "200": { desktop: "20px", mobile: "18px" },
3041
- "250": { desktop: "24px", mobile: "20px" },
3042
- "300": { desktop: "28px", mobile: "24px" },
3043
- "350": { desktop: "32px", mobile: "28px" },
3044
- "450": { desktop: "40px", mobile: "32px" },
3045
- "550": { desktop: "48px", mobile: "40px" },
3046
- "650": { desktop: "56px", mobile: "48px" },
3047
- "750": { desktop: "64px", mobile: "56px" }
3048
- };
3049
- var LINE_HEIGHT_DISPLAY = {
3050
- "75": { desktop: "10px", mobile: "10px" },
3051
- "100": { desktop: "12px", mobile: "11px" },
3052
- "125": { desktop: "14px", mobile: "12px" },
3053
- "150": { desktop: "16px", mobile: "14px" },
3054
- "175": { desktop: "18px", mobile: "16px" },
3055
- "200": { desktop: "20px", mobile: "18px" },
3056
- "250": { desktop: "24px", mobile: "20px" },
3057
- "300": { desktop: "28px", mobile: "24px" },
3058
- "350": { desktop: "32px", mobile: "28px" },
3059
- "450": { desktop: "40px", mobile: "32px" },
3060
- "550": { desktop: "48px", mobile: "40px" },
3061
- "650": { desktop: "56px", mobile: "48px" },
3062
- "750": { desktop: "64px", mobile: "56px" }
3063
- };
3064
- var LINE_HEIGHT_COMPACT = {
3065
- "75": { desktop: "14px", mobile: "13px" },
3066
- "100": { desktop: "16px", mobile: "14px" },
3067
- "125": { desktop: "18px", mobile: "16px" },
3068
- "150": { desktop: "20px", mobile: "18px" },
3069
- "175": { desktop: "24px", mobile: "20px" },
3070
- "200": { desktop: "26px", mobile: "24px" },
3071
- "250": { desktop: "30px", mobile: "26px" },
3072
- "300": { desktop: "36px", mobile: "30px" },
3073
- "350": { desktop: "42px", mobile: "36px" },
3074
- "450": { desktop: "52px", mobile: "42px" },
3075
- "550": { desktop: "62px", mobile: "52px" },
3076
- "650": { desktop: "72px", mobile: "62px" },
3077
- "750": { desktop: "82px", mobile: "72px" }
3078
- };
3079
- var LINE_HEIGHT_TEXT = {
3080
- "75": { desktop: "14px", mobile: "13px" },
3081
- "100": { desktop: "18px", mobile: "14px" },
3082
- "125": { desktop: "20px", mobile: "16px" },
3083
- "150": { desktop: "22px", mobile: "18px" },
3084
- "175": { desktop: "26px", mobile: "20px" },
3085
- "200": { desktop: "28px", mobile: "24px" },
3086
- "250": { desktop: "34px", mobile: "26px" },
3087
- "300": { desktop: "40px", mobile: "30px" },
3088
- "350": { desktop: "44px", mobile: "36px" },
3089
- "450": { desktop: "56px", mobile: "42px" },
3090
- "550": { desktop: "66px", mobile: "52px" },
3091
- "650": { desktop: "78px", mobile: "62px" },
3092
- "750": { desktop: "88px", mobile: "72px" }
3093
- };
3094
- var TYPOGRAPHY_SCALE_FONT_SIZE = {
3095
- "200": "10px",
3096
- "300": "12px",
3097
- "400": "14px",
3098
- "500": "16px",
3099
- "600": "18px"
3100
- };
3101
- var TYPOGRAPHY_SCALE_LINE_HEIGHT = {
3102
- "200": "16px",
3103
- "300": "18px",
3104
- "400": "20px",
3105
- "500": "22px",
3106
- "600": "24px"
3107
- };
3108
- var SPACING_SCALE = {
3109
- "50": "2px",
3110
- "75": "4px",
3111
- "100": "6px",
3112
- "150": "8px",
3113
- "200": "10px",
3114
- "250": "12px",
3115
- "300": "16px",
3116
- "400": "20px",
3117
- "500": "24px",
3118
- "600": "32px",
3119
- "800": "48px",
3120
- "1000": "64px"
3121
- };
3122
- var FONT_FAMILY = {
3123
- compact: "'Aktiv Grotesk', sans-serif",
3124
- display: "'Pilat Wide', 'Aktiv Grotesk', sans-serif",
3125
- text: "'Aktiv Grotesk', sans-serif"
3126
- };
3127
- var RADIUS_SCALE = {
3128
- "25": "2px",
3129
- "50": "4px",
3130
- "75": "6px",
3131
- "100": "8px",
3132
- "150": "12px",
3133
- "200": "16px",
3134
- "999": "999px"
3135
- };
3136
- var STROKE_SCALE = {
3137
- "1": "1px",
3138
- "2": "2px",
3139
- "3": "3px"
3140
- };
3141
- var PentagramResolver = class {
3142
- viewport;
3143
- constructor(viewport = "desktop") {
3144
- this.viewport = viewport;
3145
- }
3146
- setViewport(viewport) {
3147
- this.viewport = viewport;
3148
- }
3149
- /**
3150
- * Resolve a single alias to a concrete value.
3151
- *
3152
- * @param alias - Alias string like "300" (fontSize), "display/300" (lineHeight), or "radius/100"
3153
- * @param context - Optional context hint: 'fontSize' or 'lineHeight'
3154
- * @returns Resolved value (e.g., "28px") or original if not an alias
3155
- */
3156
- resolve(alias, context) {
3157
- if (typeof alias !== "string") {
3158
- return alias;
3159
- }
3160
- if (this.isResolved(alias)) {
3161
- return alias;
3162
- }
3163
- if (/^\d+$/.test(alias) && context !== "lineHeight") {
3164
- const value = FONT_SIZE_SCALE[alias];
3165
- return value ? value[this.viewport] : alias;
3166
- }
3167
- if (alias.startsWith("display/")) {
3168
- const step = alias.replace("display/", "");
3169
- const value = LINE_HEIGHT_DISPLAY[step];
3170
- return value ? value[this.viewport] : alias;
3171
- }
3172
- if (alias.startsWith("compact/")) {
3173
- const step = alias.replace("compact/", "");
3174
- const value = LINE_HEIGHT_COMPACT[step];
3175
- return value ? value[this.viewport] : alias;
3176
- }
3177
- if (alias.startsWith("text/")) {
3178
- const step = alias.replace("text/", "");
3179
- const value = LINE_HEIGHT_TEXT[step];
3180
- return value ? value[this.viewport] : alias;
3181
- }
3182
- if (alias.startsWith("font-size/")) {
3183
- const step = alias.replace("font-size/", "");
3184
- const value = FONT_SIZE_SCALE[step];
3185
- return value ? value[this.viewport] : alias;
3186
- }
3187
- if (alias.startsWith("line-height/display/")) {
3188
- const step = alias.replace("line-height/display/", "");
3189
- const value = LINE_HEIGHT_DISPLAY[step];
3190
- return value ? value[this.viewport] : alias;
3191
- }
3192
- if (alias.startsWith("line-height/compact/")) {
3193
- const step = alias.replace("line-height/compact/", "");
3194
- const value = LINE_HEIGHT_COMPACT[step];
3195
- return value ? value[this.viewport] : alias;
3196
- }
3197
- if (alias.startsWith("line-height/text/")) {
3198
- const step = alias.replace("line-height/text/", "");
3199
- const value = LINE_HEIGHT_TEXT[step];
3200
- return value ? value[this.viewport] : alias;
3201
- }
3202
- if (alias.startsWith("typography-scale/font-size/")) {
3203
- const step = alias.replace("typography-scale/font-size/", "");
3204
- return TYPOGRAPHY_SCALE_FONT_SIZE[step] ?? alias;
3205
- }
3206
- if (alias.startsWith("typography-scale/line-height/")) {
3207
- const step = alias.replace("typography-scale/line-height/", "");
3208
- return TYPOGRAPHY_SCALE_LINE_HEIGHT[step] ?? alias;
3209
- }
3210
- if (alias.startsWith("spacing/")) {
3211
- const step = alias.replace("spacing/", "");
3212
- return SPACING_SCALE[step] ?? alias;
3213
- }
3214
- if (FONT_FAMILY[alias]) {
3215
- return FONT_FAMILY[alias];
3216
- }
3217
- if (alias.startsWith("radius/")) {
3218
- const step = alias.replace("radius/", "");
3219
- return RADIUS_SCALE[step] ?? alias;
3220
- }
3221
- if (alias.startsWith("stroke/")) {
3222
- const step = alias.replace("stroke/", "");
3223
- return STROKE_SCALE[step] ?? alias;
3224
- }
3225
- return alias;
3226
- }
3227
- /**
3228
- * Recursively resolve all aliases in an object.
3229
- *
3230
- * @param obj - Object containing alias strings
3231
- * @returns New object with all aliases resolved to concrete values
3232
- */
3233
- resolveObject(obj) {
3234
- if (obj === null || obj === void 0) {
3235
- return obj;
3236
- }
3237
- if (typeof obj === "string" || typeof obj === "number") {
3238
- return this.resolve(obj);
3239
- }
3240
- if (Array.isArray(obj)) {
3241
- return obj.map((item) => this.resolveObject(item));
3242
- }
3243
- if (typeof obj === "object") {
3244
- const input = obj;
3245
- const result = {};
3246
- if ("scale" in input && typeof input.scale === "string" && Object.keys(input).length === 1) {
3247
- const scale = input.scale;
3248
- return {
3249
- fontSize: TYPOGRAPHY_SCALE_FONT_SIZE[scale] ?? `${scale}px`,
3250
- lineHeight: TYPOGRAPHY_SCALE_LINE_HEIGHT[scale] ?? `${scale}px`
3251
- };
3252
- }
3253
- for (const [key, value] of Object.entries(input)) {
3254
- if (key === "fontSize" && typeof value === "string") {
3255
- result[key] = this.resolve(value, "fontSize");
3256
- } else if (key === "lineHeight" && typeof value === "string") {
3257
- result[key] = this.resolve(value, "lineHeight");
3258
- } else {
3259
- result[key] = this.resolveObject(value);
3260
- }
3261
- }
3262
- return result;
3263
- }
3264
- return obj;
3265
- }
3266
- /**
3267
- * Check if a value is already resolved (not an alias).
3268
- */
3269
- isResolved(value) {
3270
- return /^\d+(\.\d+)?(px|em|rem|%|vw|vh|pt|cm|mm|in)$/i.test(value) || value.startsWith("rgb") || value.startsWith("#") || value.startsWith("var(") || value === "transparent" || value === "inherit" || value === "none";
3271
- }
3272
- };
3273
- function createResolver(viewport = "desktop") {
3274
- return new PentagramResolver(viewport);
3275
- }
3276
- function resolveForDesktop(obj) {
3277
- return new PentagramResolver("desktop").resolveObject(obj);
3278
- }
3279
- function resolveForMobile(obj) {
3280
- return new PentagramResolver("mobile").resolveObject(obj);
3281
- }
3282
-
3283
- // src/pentagram-to-legacy/map-pentagram-typo-to-legacy.ts
3284
- function extractControlTypo(size, defaultFontWeight = 400) {
3285
- if (!size) {
3286
- return {
3287
- fontSize: "14px",
3288
- lineHeight: "20px",
3289
- fontWeight: defaultFontWeight
3290
- };
3291
- }
3292
- const typo4 = size.typography ?? size;
3293
- return {
3294
- fontSize: typo4.fontSize ?? "14px",
3295
- lineHeight: typo4.lineHeight ?? "20px",
3296
- fontWeight: defaultFontWeight
3297
- };
3298
- }
3299
- function buildBasicStyle(variant, useAccent = false) {
3300
- const fontWeight = useAccent ? variant.accent?.fontWeight ?? 500 : variant.default?.fontWeight ?? 400;
3301
- return {
3302
- fontSize: variant.fontSize,
3303
- lineHeight: variant.lineHeight,
3304
- fontWeight
3305
- };
3306
- }
3307
- function buildParagraphStyle(variant) {
3308
- return {
3309
- fontSize: variant.fontSize,
3310
- lineHeight: variant.paragraph?.lineHeight ?? variant.lineHeight,
3311
- fontWeight: variant.default?.fontWeight ?? 400
3312
- };
3313
- }
3314
- var DEFAULT_FONT_FAMILY = `'GraphikLCWebUikit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif`;
3315
- function mapPentagramTypoToLegacy(pentagram, fontFamily = DEFAULT_FONT_FAMILY) {
3316
- const { heading, basic, control } = pentagram;
3317
- return {
3318
- fontFamily,
3319
- core: {
3320
- // heading.h1 → core.h1
3321
- h1: {
3322
- fontSize: heading.h1.fontSize,
3323
- lineHeight: heading.h1.lineHeight,
3324
- fontWeight: heading.h1.fontWeight ?? 700
3325
- },
3326
- // heading.h2 → core.h2
3327
- h2: {
3328
- fontSize: heading.h2.fontSize,
3329
- lineHeight: heading.h2.lineHeight,
3330
- fontWeight: heading.h2.fontWeight ?? 700
3331
- },
3332
- // heading.h3 → core.h3
3333
- h3: {
3334
- fontSize: heading.h3.fontSize,
3335
- lineHeight: heading.h3.lineHeight,
3336
- fontWeight: heading.h3.fontWeight ?? 700
3337
- },
3338
- // heading.h4 → core.h4
3339
- h4: {
3340
- fontSize: heading.h4.fontSize,
3341
- lineHeight: heading.h4.lineHeight,
3342
- fontWeight: heading.h4.fontWeight ?? 700
3343
- },
3344
- // basic.bodyMd → core.bodyMd
3345
- bodyMd: buildBasicStyle(basic.bodyMd, false),
3346
- // basic.bodyMd.accent → core.bodyMdAccent
3347
- bodyMdAccent: buildBasicStyle(basic.bodyMd, true),
3348
- // basic.bodyLg.accent → core.bodyLgAccent
3349
- bodyLgAccent: buildBasicStyle(basic.bodyLg, true),
3350
- // basic.bodyMd.paragraph → core.paragraph
3351
- paragraph: buildParagraphStyle(basic.bodyMd),
3352
- // basic.bodyMd → core.label (same as bodyMd)
3353
- label: buildBasicStyle(basic.bodyMd, false),
3354
- // basic.bodySm → core.minor
3355
- minor: buildBasicStyle(basic.bodySm, false)
3356
- },
3357
- components: {
3358
- // control.button.* → components.button.*
3359
- button: {
3360
- sm: extractControlTypo(control.button.sm, 500),
3361
- md: extractControlTypo(control.button.md, 500),
3362
- lg: extractControlTypo(control.button.lg, 500)
3363
- },
3364
- // control.input.* → components.input.*
3365
- input: {
3366
- sm: extractControlTypo(control.input.sm, 400),
3367
- md: extractControlTypo(control.input.md, 400),
3368
- lg: extractControlTypo(control.input.lg, 400)
3369
- },
3370
- // control.tab.* → components.tab.*
3371
- tab: {
3372
- sm: extractControlTypo(control.tab.sm, 500),
3373
- md: extractControlTypo(control.tab.md, 500),
3374
- lg: extractControlTypo(control.tab.lg, 500)
3375
- },
3376
- // control.checkbox.* + control.radio.* → components.check.*
3377
- // (checkbox and radio share the same legacy component)
3378
- check: {
3379
- sm: extractControlTypo(control.checkbox?.sm ?? control.radio?.sm, 400),
3380
- md: extractControlTypo(control.checkbox?.md ?? control.radio?.md, 400),
3381
- lg: extractControlTypo(control.checkbox?.lg ?? control.radio?.lg, 400)
3382
- },
3383
- // basic.bodyMd/bodySm/bodyXs → components.label.lg/md/sm
3384
- label: {
3385
- sm: buildBasicStyle(basic.bodyXs, false),
3386
- md: buildBasicStyle(basic.bodySm, false),
3387
- lg: buildBasicStyle(basic.bodyMd, false)
3388
- }
3389
- }
3390
- };
3391
- }
3392
- var DELETED_LEGACY_TYPO_VARS = [
3393
- "components.heading",
3394
- "components.fieldGroup",
3395
- "core.strong",
3396
- "core.bodyLg"
3397
- ];
3398
-
3399
- // src/pentagram-to-legacy/map-pentagram-shape-to-legacy.ts
3400
- function getShapeBorderRadius(shape, preferredSize = "md", fallback = "8px") {
3401
- if (!shape) return fallback;
3402
- const size = shape[preferredSize] ?? shape["lg"] ?? shape["sm"] ?? Object.values(shape)[0];
3403
- return size?.borderRadius ?? fallback;
3404
- }
3405
- function getShapeBorderWidth(shape, preferredSize = "md", fallback = "1px") {
3406
- if (!shape) return fallback;
3407
- const size = shape[preferredSize] ?? shape["lg"] ?? shape["sm"] ?? Object.values(shape)[0];
3408
- return size?.borderWidth ?? size?.borderWeight ?? fallback;
3409
- }
3410
- function mapPentagramShapeToLegacy(pentagram, existingMisc) {
3411
- const buttonRadius = getShapeBorderRadius(pentagram.button, "md", "8px");
3412
- const inputRadius = getShapeBorderRadius(pentagram.input, "md", "8px");
3413
- const checkboxRadius = getShapeBorderRadius(pentagram.checkbox, "md", "4px");
3414
- const tagRadius = getShapeBorderRadius(pentagram.tag, "md", "8px");
3415
- const popupRadius = pentagram.modal?.borderRadius ?? pentagram.contextMenu?.md?.borderRadius ?? pentagram.tooltip?.md?.borderRadius ?? "8px";
3416
- const borderWidth = getShapeBorderWidth(pentagram.button, "md", "2px");
3417
- const buttonSm = pentagram.button?.sm?.borderRadius ?? "4px";
3418
- const buttonMd = pentagram.button?.md?.borderRadius ?? "6px";
3419
- const buttonLg = pentagram.button?.lg?.borderRadius ?? "8px";
3420
- const buttonXl = pentagram.button?.xl?.borderRadius ?? "8px";
3421
- return {
3422
- borderRadiusScale: {
3423
- sm: existingMisc?.borderRadiusScale?.sm ?? buttonSm,
3424
- md: existingMisc?.borderRadiusScale?.md ?? buttonMd,
3425
- lg: existingMisc?.borderRadiusScale?.lg ?? buttonLg,
3426
- xl: existingMisc?.borderRadiusScale?.xl ?? buttonXl
3427
- },
3428
- borderWidth: existingMisc?.borderWidth ?? borderWidth,
3429
- borderRadius: {
3430
- input: inputRadius,
3431
- button: buttonRadius,
3432
- buttonIcon: buttonRadius,
3433
- popup: popupRadius,
3434
- checkbox: checkboxRadius,
3435
- tag: tagRadius
3436
- },
3437
- minWidth: {
3438
- button: existingMisc?.minWidth?.button ?? "40px"
3439
- }
3440
- };
3441
- }
3442
- function flattenPentagramShapeToVars(pentagram) {
3443
- const vars = {};
3444
- function addSizedComponent(name, shape) {
3445
- if (!shape) return;
3446
- for (const [size, props] of Object.entries(shape)) {
3447
- if (props.borderRadius) {
3448
- vars[`shape-${name}-${size}-borderRadius`] = props.borderRadius;
3449
- }
3450
- if (props.borderWidth ?? props.borderWeight) {
3451
- vars[`shape-${name}-${size}-borderWidth`] = props.borderWidth ?? props.borderWeight;
3452
- }
3453
- }
3454
- }
3455
- addSizedComponent("button", pentagram.button);
3456
- addSizedComponent("input", pentagram.input);
3457
- addSizedComponent("checkbox", pentagram.checkbox);
3458
- addSizedComponent("tab", pentagram.tabItem);
3459
- addSizedComponent("tag", pentagram.tag);
3460
- addSizedComponent("radio", pentagram.radio);
3461
- addSizedComponent("switch", pentagram.switch);
3462
- addSizedComponent("segmented", pentagram.segmented);
3463
- addSizedComponent("segmentedItem", pentagram.segmentedItem);
3464
- addSizedComponent("tooltip", pentagram.tooltip);
3465
- addSizedComponent("contextMenu", pentagram.contextMenu);
3466
- addSizedComponent("avatar", pentagram.avatar);
3467
- addSizedComponent("toggleButtonGroup", pentagram.toggleButtonGroup);
3468
- if (pentagram.modal?.borderRadius) {
3469
- vars["shape-modal-borderRadius"] = pentagram.modal.borderRadius;
3470
- }
3471
- if (pentagram.cell?.borderRadius) {
3472
- vars["shape-cell-borderRadius"] = pentagram.cell.borderRadius;
3473
- }
3474
- if (pentagram.toast?.borderRadius) {
3475
- vars["shape-toast-borderRadius"] = pentagram.toast.borderRadius;
3476
- }
3477
- return vars;
3478
- }
3479
-
3480
- // src/pentagram-to-legacy/map-handcrafted-pentagram-to-legacy.ts
3481
- function mapHandCraftedPentagramToLegacy(pentagram) {
3482
- return {
3483
- core: {
3484
- background: {
3485
- primary: pentagram.background.primary,
3486
- secondary: pentagram.layer.float,
3487
- ghost: pentagram.overlay.mono,
3488
- tone: pentagram.layer.scrim,
3489
- selection: "transparent",
3490
- // deleted in Pentagram
3491
- hover: "transparent",
3492
- // deleted in Pentagram
3493
- brand: pentagram.background.brandSecondary,
3494
- brandSecondary: pentagram.background.brandExtraSecondary,
3495
- success: pentagram.background.successSecondary,
3496
- warning: pentagram.background.warningSecondary,
3497
- alert: pentagram.background.alertSecondary,
3498
- neutral: pentagram.background.neutralSecondary
3499
- },
3500
- divider: {
3501
- divider: pentagram.border.secondary
3502
- },
3503
- text: {
3504
- primary: pentagram.content.primary,
3505
- secondary: pentagram.content.secondary,
3506
- tertiary: pentagram.content.tertiary,
3507
- brand: pentagram.content.brandPrimary,
3508
- brandSecondary: pentagram.content.brandExtraPrimary,
3509
- success: pentagram.content.successPrimary,
3510
- warning: pentagram.content.warningPrimary,
3511
- alert: pentagram.content.alertPrimary,
3512
- neutral: pentagram.content.neutralPrimary
3513
- },
3514
- link: {
3515
- link: pentagram.control.link.primary,
3516
- linkHover: pentagram.control.link.primaryHover,
3517
- linkMinor: pentagram.control.link.secondary,
3518
- linkMinorHover: pentagram.control.link.secondaryHover
3519
- }
3520
- },
3521
- control: {
3522
- primary: {
3523
- bg: pentagram.control.brand.primary.bg,
3524
- bgHover: pentagram.control.brand.primary.bgHover,
3525
- bgPress: pentagram.control.brand.primary.bgPress,
3526
- bgDisabled: pentagram.control.brand.primary.bgDisable,
3527
- border: pentagram.control.brand.primary.border,
3528
- borderHover: pentagram.control.brand.primary.borderHover,
3529
- borderPress: pentagram.control.brand.primary.borderPress
3530
- },
3531
- secondary: {
3532
- bg: pentagram.control.brand.secondary.bg,
3533
- bgHover: pentagram.control.brand.secondary.bgHover,
3534
- bgPress: pentagram.control.brand.secondary.bgPress,
3535
- border: pentagram.control.brand.secondary.border,
3536
- borderHover: pentagram.control.brand.secondary.borderHover,
3537
- borderPress: pentagram.control.brand.secondary.borderPress
3538
- },
3539
- default: {
3540
- bg: pentagram.control.mono.primary.bg,
3541
- bgHover: pentagram.control.mono.primary.bgHover,
3542
- bgPress: pentagram.control.mono.primary.bgPress,
3543
- border: pentagram.control.mono.primary.border,
3544
- borderHover: pentagram.control.mono.primary.borderHover,
3545
- borderPress: pentagram.control.mono.primary.borderPress
3546
- },
3547
- input: {
3548
- bg: pentagram.control.input.bg,
3549
- bgHover: pentagram.control.input.bgHover,
3550
- bgDisabled: pentagram.control.input.bgDisable,
3551
- border: pentagram.control.input.border,
3552
- borderHover: pentagram.control.input.borderHover,
3553
- borderDisabled: pentagram.control.input.borderDisable,
3554
- text: pentagram.control.input.text,
3555
- textDisabled: pentagram.control.input.textDisable,
3556
- placeholder: pentagram.control.input.placeholder
3557
- },
3558
- focus: {
3559
- bg: pentagram.control.focus.bg,
3560
- border: pentagram.control.focus.border
3561
- },
3562
- alert: {
3563
- bg: pentagram.control.alert.secondary.bg,
3564
- bgHover: pentagram.control.alert.secondary.bgHover,
3565
- bgPress: pentagram.control.alert.secondary.bgPress,
3566
- border: pentagram.control.alert.secondary.border,
3567
- borderHover: pentagram.control.alert.secondary.borderHover,
3568
- borderPress: pentagram.control.alert.secondary.borderPress
3569
- },
3570
- check: {
3571
- bg: pentagram.control.check.bg,
3572
- bgHover: pentagram.control.check.bgHover,
3573
- bgDisabled: pentagram.control.check.bgDisable
3574
- },
3575
- faint: {
3576
- bg: pentagram.control.faint.bg,
3577
- bgHover: pentagram.control.faint.bgHover,
3578
- border: pentagram.control.faint.border,
3579
- borderHover: pentagram.control.faint.borderHover
3580
- },
3581
- toggle: {
3582
- bg: pentagram.control.switch.bg,
3583
- bgHover: pentagram.control.switch.bgHover
3584
- },
3585
- text: {
3586
- active: pentagram.control.brand.text.primary,
3587
- secondary: pentagram.control.brand.text.secondary,
3588
- default: pentagram.control.mono.text.primary,
3589
- primary: pentagram.control.text.primary,
3590
- disabled: pentagram.control.brand.text.disable,
3591
- faint: pentagram.control.check.icon,
3592
- alert: pentagram.control.alert.text.secondary
3593
- }
3594
- }
3595
- };
3596
- }
3597
-
3598
- // src/pentagram-to-legacy/map-pentagram-theme-to-legacy.ts
3599
- function buildBaseColorsFromPentagram(colors) {
3600
- return {
3601
- content: colors.content.primary,
3602
- surface: colors.background.primary,
3603
- project: colors.control.brand.primary.bg,
3604
- accent: colors.control.brand.text.primary,
3605
- phantom: colors.border.secondary,
3606
- path: colors.control.link.primary,
3607
- success: colors.content.successPrimary,
3608
- warning: colors.content.warningPrimary,
3609
- alert: colors.content.alertPrimary,
3610
- neutral: colors.content.neutralPrimary
3611
- };
3612
- }
3613
- function mapPentagramThemeToLegacy(pentagram, viewport = "desktop") {
3614
- const resolver = createResolver(viewport);
3615
- const resolvedTypo = resolver.resolveObject(pentagram.typo);
3616
- const resolvedShape = resolver.resolveObject(pentagram.shape);
3617
- return {
3618
- colors: {
3619
- base: buildBaseColorsFromPentagram(pentagram.colors),
3620
- ...mapHandCraftedPentagramToLegacy(pentagram.colors)
3621
- },
3622
- typo: mapPentagramTypoToLegacy(resolvedTypo),
3623
- misc: mapPentagramShapeToLegacy(resolvedShape),
3624
- shadows: pentagram.shadows
3625
- };
3626
- }
3627
-
3628
- // src/pentagram-primitives/typo-primitives.json
3629
- var typo_primitives_default = {
3630
- heading: {
3631
- h1: {
3632
- fontSize: "450",
3633
- lineHeight: "display/450",
3634
- fontWeight: 700
3635
- },
3636
- h2: {
3637
- fontSize: "350",
3638
- lineHeight: "display/350",
3639
- fontWeight: 700
3640
- },
3641
- h3: {
3642
- fontSize: "300",
3643
- lineHeight: "display/300",
3644
- fontWeight: 700
3645
- },
3646
- h4: {
3647
- fontSize: "250",
3648
- lineHeight: "display/250",
3649
- fontWeight: 700
3650
- },
3651
- h5: {
3652
- fontSize: "200",
3653
- lineHeight: "display/200",
3654
- fontWeight: 700
3655
- }
3656
- },
3657
- basic: {
3658
- display: {
3659
- fontFamily: "compact",
3660
- fontSize: "300",
3661
- lineHeight: "compact/300",
3662
- fontWeight: 500
3663
- },
3664
- bodyLg: {
3665
- fontSize: "175",
3666
- lineHeight: "compact/175",
3667
- default: {
3668
- fontWeight: 400
3669
- },
3670
- accent: {
3671
- fontWeight: 500
3672
- },
3673
- paragraph: {
3674
- spacing: "spacing/250",
3675
- lineHeight: "text/175"
3676
- }
3677
- },
3678
- bodyMd: {
3679
- fontSize: "150",
3680
- lineHeight: "compact/150",
3681
- default: {
3682
- fontWeight: 400
3683
- },
3684
- accent: {
3685
- fontWeight: 500
3686
- },
3687
- paragraph: {
3688
- spacing: "spacing/200",
3689
- lineHeight: "text/150"
3690
- }
3691
- },
3692
- bodySm: {
3693
- fontSize: "125",
3694
- lineHeight: "compact/125",
3695
- default: {
3696
- fontWeight: 400
3697
- },
3698
- accent: {
3699
- fontWeight: 500
3700
- },
3701
- paragraph: {
3702
- spacing: "spacing/150",
3703
- lineHeight: "text/125"
3704
- }
3705
- },
3706
- bodyXs: {
3707
- fontSize: "100",
3708
- lineHeight: "compact/100",
3709
- default: {
3710
- fontWeight: 400
3711
- },
3712
- accent: {
3713
- fontWeight: 500
3714
- },
3715
- paragraph: {
3716
- spacing: "spacing/100",
3717
- lineHeight: "text/100"
3718
- }
3719
- },
3720
- bodyXxs: {
3721
- fontSize: "75",
3722
- lineHeight: "compact/75",
3723
- default: {
3724
- fontWeight: 400
3725
- },
3726
- accent: {
3727
- fontWeight: 500
3728
- },
3729
- paragraph: {
3730
- spacing: "spacing/75",
3731
- lineHeight: "text/75"
3732
- }
3733
- }
3734
- },
3735
- control: {
3736
- button: {
3737
- xl: { scale: "600" },
3738
- lg: { scale: "500" },
3739
- md: { scale: "400" },
3740
- sm: { scale: "300" },
3741
- xs: { scale: "200" }
3742
- },
3743
- input: {
3744
- xl: { scale: "600" },
3745
- lg: { scale: "500" },
3746
- md: { scale: "400" },
3747
- sm: { scale: "300" },
3748
- xs: { scale: "200" }
3749
- },
3750
- checkbox: {
3751
- xl: { scale: "600" },
3752
- lg: { scale: "500" },
3753
- md: { scale: "400" },
3754
- sm: { scale: "300" }
3755
- },
3756
- tab: {
3757
- xl: { scale: "600" },
3758
- lg: { scale: "500" },
3759
- md: { scale: "400" },
3760
- sm: { scale: "300" },
3761
- xs: { scale: "300" }
3762
- },
3763
- radio: {
3764
- xl: { scale: "600" },
3765
- lg: { scale: "500" },
3766
- md: { scale: "400" },
3767
- sm: { scale: "300" }
3768
- },
3769
- segmentedItem: {
3770
- xl: { scale: "500" },
3771
- lg: { scale: "400" },
3772
- md: { scale: "300" },
3773
- sm: { scale: "200" }
3774
- },
3775
- tag: {
3776
- xl: { scale: "600" },
3777
- lg: { scale: "500" },
3778
- md: { scale: "400" },
3779
- sm: { scale: "300" },
3780
- xs: { scale: "200" }
3781
- },
3782
- toggleButton: {
3783
- xl: { scale: "600" },
3784
- lg: { scale: "500" },
3785
- md: { scale: "400" },
3786
- sm: { scale: "300" },
3787
- xs: { scale: "200" }
3788
- }
3789
- }
3790
- };
3791
-
3792
- // src/pentagram-primitives/shape-primitives.json
3793
- var shape_primitives_default = {
3794
- button: {
3795
- xl: {
3796
- borderRadius: "radius/100",
3797
- borderWidth: "stroke/1"
3798
- },
3799
- lg: {
3800
- borderRadius: "radius/100",
3801
- borderWidth: "stroke/1"
3802
- },
3803
- md: {
3804
- borderRadius: "radius/75",
3805
- borderWidth: "stroke/1"
3806
- },
3807
- sm: {
3808
- borderRadius: "radius/50",
3809
- borderWidth: "stroke/1"
3810
- },
3811
- xs: {
3812
- borderRadius: "radius/50",
3813
- borderWidth: "stroke/1"
3814
- }
3815
- },
3816
- checkbox: {
3817
- xl: {
3818
- borderRadius: "radius/50",
3819
- borderWidth: "stroke/1"
3820
- },
3821
- lg: {
3822
- borderRadius: "radius/50",
3823
- borderWidth: "stroke/1"
3824
- },
3825
- md: {
3826
- borderRadius: "radius/50",
3827
- borderWidth: "stroke/1"
3828
- },
3829
- sm: {
3830
- borderRadius: "radius/50",
3831
- borderWidth: "stroke/1"
3832
- }
3833
- },
3834
- input: {
3835
- xl: {
3836
- borderRadius: "radius/100",
3837
- borderWidth: "stroke/1"
3838
- },
3839
- lg: {
3840
- borderRadius: "radius/100",
3841
- borderWidth: "stroke/1"
3842
- },
3843
- md: {
3844
- borderRadius: "radius/100",
3845
- borderWidth: "stroke/1"
3846
- },
3847
- sm: {
3848
- borderRadius: "radius/50",
3849
- borderWidth: "stroke/1"
3850
- },
3851
- xs: {
3852
- borderRadius: "radius/50",
3853
- borderWidth: "stroke/1"
3854
- }
3855
- },
3856
- cell: {
3857
- borderRadius: "radius/100",
3858
- borderWidth: "stroke/1"
3859
- },
3860
- modal: {
3861
- borderRadius: "radius/100"
3862
- },
3863
- toast: {
3864
- borderRadius: "radius/50",
3865
- borderWidth: "0px"
3866
- },
3867
- segmentedItem: {
3868
- xl: {
3869
- borderRadius: "radius/50",
3870
- borderWeight: "stroke/1"
3871
- },
3872
- lg: {
3873
- borderRadius: "radius/50",
3874
- borderWeight: "stroke/1"
3875
- },
3876
- md: {
3877
- borderRadius: "radius/50",
3878
- borderWeight: "stroke/1"
3879
- },
3880
- sm: {
3881
- borderRadius: "radius/25",
3882
- borderWeight: "stroke/1"
3883
- }
3884
- },
3885
- segmented: {
3886
- xl: {
3887
- borderRadius: "radius/100",
3888
- borderWeight: "stroke/1"
3889
- },
3890
- lg: {
3891
- borderRadius: "radius/100",
3892
- borderWeight: "stroke/1"
3893
- },
3894
- md: {
3895
- borderRadius: "radius/100",
3896
- borderWeight: "stroke/1"
3897
- },
3898
- sm: {
3899
- borderRadius: "radius/50",
3900
- borderWeight: "stroke/1"
3901
- }
3902
- },
3903
- switch: {
3904
- xl: {
3905
- borderRadius: "radius/50",
3906
- borderWeight: "stroke/1"
3907
- },
3908
- lg: {
3909
- borderRadius: "radius/50",
3910
- borderWeight: "stroke/1"
3911
- },
3912
- md: {
3913
- borderRadius: "radius/50",
3914
- borderWeight: "stroke/1"
3915
- },
3916
- sm: {
3917
- borderRadius: "radius/50",
3918
- borderWeight: "stroke/1"
3919
- }
3920
- },
3921
- knob: {
3922
- xl: {
3923
- borderRadius: "radius/25"
3924
- },
3925
- lg: {
3926
- borderRadius: "radius/25"
3927
- },
3928
- md: {
3929
- borderRadius: "radius/25"
3930
- },
3931
- sm: {
3932
- borderRadius: "radius/25"
3933
- }
3934
- },
3935
- tabItem: {
3936
- xl: {
3937
- borderRadius: "radius/100"
3938
- },
3939
- lg: {
3940
- borderRadius: "radius/100"
3941
- },
3942
- md: {
3943
- borderRadius: "radius/50"
3944
- },
3945
- sm: {
3946
- borderRadius: "radius/50"
3947
- }
3948
- },
3949
- tag: {
3950
- xl: {
3951
- borderRadius: "radius/100",
3952
- borderWidth: "stroke/1"
3953
- },
3954
- lg: {
3955
- borderRadius: "radius/100",
3956
- borderWidth: "stroke/1"
3957
- },
3958
- md: {
3959
- borderRadius: "radius/75",
3960
- borderWidth: "stroke/1"
3961
- },
3962
- sm: {
3963
- borderRadius: "radius/50",
3964
- borderWidth: "stroke/1"
3965
- },
3966
- xs: {
3967
- borderRadius: "radius/50",
3968
- borderWidth: "stroke/1"
3969
- }
3970
- },
3971
- tagLabel: {
3972
- borderRadius: "0px"
3973
- },
3974
- tooltip: {
3975
- xl: {
3976
- borderRadius: "radius/100"
3977
- },
3978
- lg: {
3979
- borderRadius: "radius/100"
3980
- },
3981
- md: {
3982
- borderRadius: "radius/100"
3983
- },
3984
- sm: {
3985
- borderRadius: "radius/50"
3986
- }
3987
- },
3988
- radio: {
3989
- xl: {
3990
- borderRadius: "radius/999",
3991
- borderWidth: "stroke/1"
3992
- },
3993
- lg: {
3994
- borderRadius: "radius/999",
3995
- borderWidth: "stroke/1"
3996
- },
3997
- md: {
3998
- borderRadius: "radius/999",
3999
- borderWidth: "stroke/1"
4000
- },
4001
- sm: {
4002
- borderRadius: "radius/999",
4003
- borderWidth: "stroke/1"
4004
- }
4005
- },
4006
- contextMenu: {
4007
- xl: {
4008
- borderRadius: "radius/100"
4009
- },
4010
- lg: {
4011
- borderRadius: "radius/100"
4012
- },
4013
- md: {
4014
- borderRadius: "radius/100"
4015
- },
4016
- sm: {
4017
- borderRadius: "radius/50"
4018
- }
4019
- },
4020
- avatar: {
4021
- xl: {
4022
- borderRadius: "radius/100",
4023
- borderWidth: "stroke/2"
4024
- },
4025
- lg: {
4026
- borderRadius: "radius/75",
4027
- borderWidth: "stroke/2"
4028
- },
4029
- md: {
4030
- borderRadius: "radius/75",
4031
- borderWidth: "stroke/2"
4032
- },
4033
- sm: {
4034
- borderRadius: "radius/50",
4035
- borderWidth: "stroke/2"
4036
- },
4037
- xs: {
4038
- borderRadius: "radius/50",
4039
- borderWidth: "stroke/2"
4040
- },
4041
- xxs: {
4042
- borderRadius: "radius/25",
4043
- borderWidth: "stroke/2"
4044
- }
4045
- },
4046
- toggleButtonGroup: {
4047
- xl: {
4048
- borderRadius: "radius/100",
4049
- borderWidth: "stroke/1"
4050
- },
4051
- lg: {
4052
- borderRadius: "radius/100",
4053
- borderWidth: "stroke/1"
4054
- },
4055
- md: {
4056
- borderRadius: "radius/75",
4057
- borderWidth: "stroke/1"
4058
- },
4059
- sm: {
4060
- borderRadius: "radius/50",
4061
- borderWidth: "stroke/1"
4062
- },
4063
- xs: {
4064
- borderRadius: "radius/50",
4065
- borderWidth: "stroke/1"
4066
- }
4067
- }
4068
- };
4069
2870
  export {
4070
- DELETED_LEGACY_TYPO_VARS,
4071
- PentagramResolver,
4072
2871
  base10 as base,
4073
2872
  baseDark,
4074
- buildBaseColorsFromPentagram,
4075
2873
  createDarkScheme,
4076
- createResolver,
4077
2874
  createScheme,
4078
2875
  emails,
4079
2876
  emailsDark,
4080
2877
  emailsThemes,
4081
- flattenPentagramShapeToVars,
4082
2878
  generateWithScheme,
4083
- mapHandCraftedPentagramToLegacy,
4084
- mapPentagramShapeToLegacy,
4085
- mapPentagramThemeToLegacy,
4086
- mapPentagramTypoToLegacy,
4087
2879
  palettes,
4088
2880
  payStationDarkScheme,
4089
2881
  payStationScheme,
@@ -4091,22 +2883,16 @@ export {
4091
2883
  paystation4Dark,
4092
2884
  paystation4Gaijin,
4093
2885
  paystation4Nexters,
4094
- paystation4PentagramDark,
4095
- paystation4PentagramLight,
4096
2886
  paystation4Take2,
4097
2887
  paystation4Themes,
4098
2888
  primaryPalette,
4099
2889
  publisherV2,
4100
2890
  publisherV2Dark,
4101
2891
  publisherV2Themes,
4102
- resolveForDesktop,
4103
- resolveForMobile,
4104
- shape_primitives_default as shapePrimitives,
4105
2892
  themeGenerator,
4106
2893
  themes,
4107
2894
  themesBaseColors,
4108
2895
  themesBaseColorsArray,
4109
- themesColorsScheme,
4110
- typo_primitives_default as typoPrimitives
2896
+ themesColorsScheme
4111
2897
  };
4112
2898
  //# sourceMappingURL=index.mjs.map