@tectra-ng/themes 0.1.6 → 0.1.7
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.
|
@@ -2222,7 +2222,7 @@ const analogClockTokens = {
|
|
|
2222
2222
|
ringColor: tokenRef("surface-card")
|
|
2223
2223
|
}
|
|
2224
2224
|
};
|
|
2225
|
-
const focusRing$
|
|
2225
|
+
const focusRing$2 = {
|
|
2226
2226
|
width: "2px",
|
|
2227
2227
|
style: "solid",
|
|
2228
2228
|
color: tokenRef("focus-ring-color"),
|
|
@@ -2264,7 +2264,7 @@ const datePickerTokens = {
|
|
|
2264
2264
|
hoverColor: lightDark(tokenRef("surface-700"), tokenRef("surface-200")),
|
|
2265
2265
|
activeColor: lightDark(tokenRef("surface-800"), tokenRef("surface-100")),
|
|
2266
2266
|
borderRadius: tokenRef("form-field-border-radius"),
|
|
2267
|
-
focusRing: focusRing$
|
|
2267
|
+
focusRing: focusRing$2
|
|
2268
2268
|
},
|
|
2269
2269
|
inputIcon: { color: tokenRef("form-field-icon-color") },
|
|
2270
2270
|
selectMonth: {
|
|
@@ -2315,7 +2315,7 @@ const datePickerTokens = {
|
|
|
2315
2315
|
height: "24.5px",
|
|
2316
2316
|
borderRadius: "50%",
|
|
2317
2317
|
padding: "3.5px",
|
|
2318
|
-
focusRing: focusRing$
|
|
2318
|
+
focusRing: focusRing$2
|
|
2319
2319
|
},
|
|
2320
2320
|
monthView: { margin: "7px 0 0 0" },
|
|
2321
2321
|
month: {
|
|
@@ -3102,7 +3102,7 @@ const toggleButtonTokens = {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
};
|
|
3104
3104
|
const numberShadow = "0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)";
|
|
3105
|
-
const focusRing = {
|
|
3105
|
+
const focusRing$1 = {
|
|
3106
3106
|
width: "2px",
|
|
3107
3107
|
style: "solid",
|
|
3108
3108
|
color: tokenRef("focus-ring-color"),
|
|
@@ -3129,7 +3129,7 @@ const stepperTokens = {
|
|
|
3129
3129
|
borderRadius: tokenRef("radius-lg"),
|
|
3130
3130
|
gap: "7px",
|
|
3131
3131
|
disabledOpacity: "0.6",
|
|
3132
|
-
focusRing
|
|
3132
|
+
focusRing: focusRing$1
|
|
3133
3133
|
},
|
|
3134
3134
|
stepTitle: {
|
|
3135
3135
|
color: tokenRef("text-muted"),
|
|
@@ -3168,7 +3168,7 @@ const stepsTokens = {
|
|
|
3168
3168
|
itemLink: {
|
|
3169
3169
|
borderRadius: tokenRef("radius-lg"),
|
|
3170
3170
|
gap: "7px",
|
|
3171
|
-
focusRing
|
|
3171
|
+
focusRing: focusRing$1
|
|
3172
3172
|
},
|
|
3173
3173
|
itemLabel: {
|
|
3174
3174
|
color: tokenRef("text-muted"),
|
|
@@ -3344,7 +3344,20 @@ const panelMenuTokens = {
|
|
|
3344
3344
|
badgeColor: tokenRef("surface-0"),
|
|
3345
3345
|
lockSize: "10.5px",
|
|
3346
3346
|
lockGap: "7px",
|
|
3347
|
-
lockColor: tokenRef("text-muted")
|
|
3347
|
+
lockColor: tokenRef("text-muted"),
|
|
3348
|
+
revealDuration: "0.3s",
|
|
3349
|
+
revealEasing: "cubic-bezier(0, 0, 0.2, 1)",
|
|
3350
|
+
hideDuration: "0.1s",
|
|
3351
|
+
collapsedRingColor: tokenRef("surface-card"),
|
|
3352
|
+
collapsedBadgeTop: "2.625px",
|
|
3353
|
+
collapsedBadgeStart: "26.6px",
|
|
3354
|
+
collapsedBadgePadding: "0 3.5px",
|
|
3355
|
+
collapsedLockTop: "16.8px",
|
|
3356
|
+
collapsedLockStart: "25.9px",
|
|
3357
|
+
collapsedLockSize: "15.75px",
|
|
3358
|
+
collapsedLockFontSize: "7.875px",
|
|
3359
|
+
collapsedLockColor: tokenRef("text-primary"),
|
|
3360
|
+
collapsedLockBackground: tokenRef("surface-ground")
|
|
3348
3361
|
}
|
|
3349
3362
|
};
|
|
3350
3363
|
const imageTokens = {
|
|
@@ -3489,6 +3502,956 @@ const carouselTokens = {
|
|
|
3489
3502
|
focusRingOffset: "2px"
|
|
3490
3503
|
}
|
|
3491
3504
|
};
|
|
3505
|
+
const tint$2 = fade(tokenRef("primary-base"), "91%");
|
|
3506
|
+
const filtersPanelTokens = {
|
|
3507
|
+
root: {
|
|
3508
|
+
background: tokenRef("surface-card"),
|
|
3509
|
+
borderColor: tokenRef("surface-border"),
|
|
3510
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3511
|
+
padding: "17.5px",
|
|
3512
|
+
gap: "10.5px",
|
|
3513
|
+
color: tokenRef("text-primary")
|
|
3514
|
+
},
|
|
3515
|
+
skeleton: {
|
|
3516
|
+
labelWidth: "40%",
|
|
3517
|
+
labelOffset: "3px",
|
|
3518
|
+
controlHeight: `calc(${tokenRef("form-field-line-height")} + 2 * ${tokenRef("form-field-padding-y")} + 2px)`,
|
|
3519
|
+
controlBorderRadius: tokenRef("form-field-border-radius")
|
|
3520
|
+
},
|
|
3521
|
+
fields: {
|
|
3522
|
+
minColumnWidth: "168px",
|
|
3523
|
+
minWidth: "196px",
|
|
3524
|
+
columnGap: "10.5px",
|
|
3525
|
+
rowGap: "14px"
|
|
3526
|
+
},
|
|
3527
|
+
actions: { gap: "7px" },
|
|
3528
|
+
button: {
|
|
3529
|
+
size: "35px",
|
|
3530
|
+
paddingX: "10.5px",
|
|
3531
|
+
gap: "7px",
|
|
3532
|
+
borderRadius: tokenRef("radius-md"),
|
|
3533
|
+
background: tokenRef("surface-ground"),
|
|
3534
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
3535
|
+
borderColor: tokenRef("surface-border"),
|
|
3536
|
+
color: tokenRef("text-primary"),
|
|
3537
|
+
mutedColor: tokenRef("text-muted"),
|
|
3538
|
+
fontSize: "12.25px",
|
|
3539
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3540
|
+
iconSize: "14px",
|
|
3541
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
3542
|
+
transitionDuration: "150ms"
|
|
3543
|
+
},
|
|
3544
|
+
count: {
|
|
3545
|
+
size: "18px",
|
|
3546
|
+
paddingX: "3.5px",
|
|
3547
|
+
fontSize: "9.625px",
|
|
3548
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
3549
|
+
background: tokenRef("primary-base"),
|
|
3550
|
+
color: tokenRef("primary-contrast"),
|
|
3551
|
+
offset: "-5.25px",
|
|
3552
|
+
ringWidth: "2px",
|
|
3553
|
+
ringColor: tokenRef("surface-card")
|
|
3554
|
+
},
|
|
3555
|
+
menu: {
|
|
3556
|
+
width: "224px",
|
|
3557
|
+
maxHeight: "min(70vh, 392px)",
|
|
3558
|
+
padding: "7px",
|
|
3559
|
+
borderRadius: tokenRef("radius-xl"),
|
|
3560
|
+
shadow: "0 16px 40px -12px rgb(0 0 0 / 0.22), 0 4px 12px -4px rgb(0 0 0 / 0.1)",
|
|
3561
|
+
headPadding: "5.25px 8.75px 7px",
|
|
3562
|
+
headGap: "10.5px",
|
|
3563
|
+
titleFontSize: "9.625px",
|
|
3564
|
+
titleFontWeight: tokenRef("font-weight-semibold"),
|
|
3565
|
+
titleLetterSpacing: "0.05em",
|
|
3566
|
+
mutedColor: tokenRef("text-muted"),
|
|
3567
|
+
rowGap: "1px",
|
|
3568
|
+
rowHeight: "28px",
|
|
3569
|
+
rowPadding: "0 3.5px 0 7px",
|
|
3570
|
+
rowGapInner: "7px",
|
|
3571
|
+
rowBorderRadius: tokenRef("radius-md"),
|
|
3572
|
+
rowHoverBackground: tint$2,
|
|
3573
|
+
rowFontSize: "11.375px",
|
|
3574
|
+
checkSize: "14px",
|
|
3575
|
+
checkColor: tokenRef("primary-base"),
|
|
3576
|
+
dotSize: "5.25px",
|
|
3577
|
+
dotColor: tokenRef("primary-base"),
|
|
3578
|
+
handleWidth: "24.5px",
|
|
3579
|
+
handleBorderRadius: tokenRef("radius-sm"),
|
|
3580
|
+
handleIconSize: "11px",
|
|
3581
|
+
dragShadow: "0 8px 24px -6px rgb(0 0 0 / 0.25)",
|
|
3582
|
+
dragBackground: tokenRef("surface-card"),
|
|
3583
|
+
placeholderOpacity: "0.3",
|
|
3584
|
+
footerSpacing: "3.5px",
|
|
3585
|
+
resetPadding: "0 8.75px",
|
|
3586
|
+
resetColor: tokenRef("primary-base"),
|
|
3587
|
+
transitionDuration: "150ms",
|
|
3588
|
+
dragDuration: "200ms",
|
|
3589
|
+
dragEasing: "cubic-bezier(0, 0, 0.2, 1)"
|
|
3590
|
+
},
|
|
3591
|
+
panel: {
|
|
3592
|
+
offset: "7px",
|
|
3593
|
+
maxWidth: "504px",
|
|
3594
|
+
maxHeight: "min(70vh, 420px)",
|
|
3595
|
+
padding: "14px",
|
|
3596
|
+
gap: "14px",
|
|
3597
|
+
borderRadius: tokenRef("radius-xl"),
|
|
3598
|
+
background: tokenRef("surface-card"),
|
|
3599
|
+
borderColor: tokenRef("surface-border"),
|
|
3600
|
+
shadow: tokenRef("shadow-overlay"),
|
|
3601
|
+
zIndex: "40",
|
|
3602
|
+
footerPadding: "14px",
|
|
3603
|
+
enterDuration: "160ms",
|
|
3604
|
+
enterEasing: "cubic-bezier(0.2, 0, 0, 1)",
|
|
3605
|
+
leaveDuration: "120ms",
|
|
3606
|
+
leaveEasing: "cubic-bezier(0.4, 0, 1, 1)"
|
|
3607
|
+
}
|
|
3608
|
+
};
|
|
3609
|
+
const pageHeaderTokens = {
|
|
3610
|
+
root: { gap: "14px" },
|
|
3611
|
+
heading: { gap: "1.75px" },
|
|
3612
|
+
title: {
|
|
3613
|
+
color: tokenRef("text-primary"),
|
|
3614
|
+
fontSize: "17.5px",
|
|
3615
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
3616
|
+
lineHeight: "1.25",
|
|
3617
|
+
letterSpacing: "-0.02em"
|
|
3618
|
+
},
|
|
3619
|
+
subtitle: {
|
|
3620
|
+
color: tokenRef("text-muted"),
|
|
3621
|
+
fontSize: "12.25px",
|
|
3622
|
+
lineHeight: "17.5px"
|
|
3623
|
+
},
|
|
3624
|
+
actions: { gap: "7px" },
|
|
3625
|
+
secondaryButton: {
|
|
3626
|
+
background: tokenRef("surface-card"),
|
|
3627
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
3628
|
+
activeBackground: tokenRef("surface-hover"),
|
|
3629
|
+
borderColor: tokenRef("surface-border")
|
|
3630
|
+
}
|
|
3631
|
+
};
|
|
3632
|
+
const emptyStateTokens = {
|
|
3633
|
+
root: {
|
|
3634
|
+
gap: "10.5px",
|
|
3635
|
+
padding: "35px 21px",
|
|
3636
|
+
color: tokenRef("text-primary")
|
|
3637
|
+
},
|
|
3638
|
+
framed: {
|
|
3639
|
+
padding: "49px 21px",
|
|
3640
|
+
minHeight: "252px",
|
|
3641
|
+
background: tokenRef("surface-card"),
|
|
3642
|
+
borderColor: tokenRef("surface-border"),
|
|
3643
|
+
borderRadius: tokenRef("radius-lg")
|
|
3644
|
+
},
|
|
3645
|
+
inset: {
|
|
3646
|
+
padding: "28px 21px",
|
|
3647
|
+
background: tokenRef("surface-ground"),
|
|
3648
|
+
borderRadius: tokenRef("radius-lg")
|
|
3649
|
+
},
|
|
3650
|
+
icon: {
|
|
3651
|
+
size: "42px",
|
|
3652
|
+
fontSize: "17.5px",
|
|
3653
|
+
borderRadius: tokenRef("radius-full"),
|
|
3654
|
+
tint: "12%"
|
|
3655
|
+
},
|
|
3656
|
+
body: { gap: "3.5px" },
|
|
3657
|
+
title: {
|
|
3658
|
+
color: tokenRef("text-primary"),
|
|
3659
|
+
fontSize: tokenRef("font-size-md"),
|
|
3660
|
+
fontWeight: tokenRef("font-weight-semibold")
|
|
3661
|
+
},
|
|
3662
|
+
text: {
|
|
3663
|
+
color: tokenRef("text-muted"),
|
|
3664
|
+
fontSize: "12.25px",
|
|
3665
|
+
lineHeight: "1.375",
|
|
3666
|
+
maxWidth: "392px"
|
|
3667
|
+
},
|
|
3668
|
+
large: {
|
|
3669
|
+
padding: "42px 28px",
|
|
3670
|
+
iconSize: "49px",
|
|
3671
|
+
iconFontSize: "21px",
|
|
3672
|
+
iconBorderRadius: tokenRef("radius-xl"),
|
|
3673
|
+
titleFontSize: "17.5px"
|
|
3674
|
+
},
|
|
3675
|
+
compact: {
|
|
3676
|
+
padding: "14px",
|
|
3677
|
+
gap: "8.75px",
|
|
3678
|
+
iconSize: "28px",
|
|
3679
|
+
iconFontSize: "12.25px"
|
|
3680
|
+
},
|
|
3681
|
+
tone: {
|
|
3682
|
+
primary: tokenRef("primary-base"),
|
|
3683
|
+
neutral: tokenRef("text-muted"),
|
|
3684
|
+
success: lightDark(tokenRef("green-600"), tokenRef("green-400")),
|
|
3685
|
+
info: lightDark(tokenRef("sky-600"), tokenRef("sky-400")),
|
|
3686
|
+
warn: lightDark(tokenRef("orange-600"), tokenRef("orange-400")),
|
|
3687
|
+
danger: lightDark(tokenRef("red-600"), tokenRef("red-400"))
|
|
3688
|
+
}
|
|
3689
|
+
};
|
|
3690
|
+
const appFooterTokens = {
|
|
3691
|
+
root: {
|
|
3692
|
+
borderColor: tokenRef("surface-border"),
|
|
3693
|
+
color: tokenRef("text-muted"),
|
|
3694
|
+
fontSize: "10.5px",
|
|
3695
|
+
lineHeight: "17.5px",
|
|
3696
|
+
gap: "8.75px",
|
|
3697
|
+
wideGap: "21px"
|
|
3698
|
+
},
|
|
3699
|
+
page: {
|
|
3700
|
+
maxWidth: "1064px",
|
|
3701
|
+
padding: "21px 17.5px"
|
|
3702
|
+
},
|
|
3703
|
+
app: {
|
|
3704
|
+
marginTop: "42px",
|
|
3705
|
+
padding: "17.5px 0 3.5px"
|
|
3706
|
+
},
|
|
3707
|
+
console: {
|
|
3708
|
+
padding: "14px 21px",
|
|
3709
|
+
mobilePadding: "14px"
|
|
3710
|
+
},
|
|
3711
|
+
link: {
|
|
3712
|
+
color: tokenRef("text-muted"),
|
|
3713
|
+
hoverColor: tokenRef("text-primary"),
|
|
3714
|
+
paddingX: "10.5px",
|
|
3715
|
+
rowGap: "3.5px",
|
|
3716
|
+
separatorHeight: "10.5px",
|
|
3717
|
+
separatorColor: tokenRef("surface-border"),
|
|
3718
|
+
borderRadius: tokenRef("radius-xs"),
|
|
3719
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
3720
|
+
transitionDuration: "150ms"
|
|
3721
|
+
}
|
|
3722
|
+
};
|
|
3723
|
+
const consoleLayoutTokens = {
|
|
3724
|
+
root: {
|
|
3725
|
+
background: tokenRef("surface-ground"),
|
|
3726
|
+
color: tokenRef("text-primary"),
|
|
3727
|
+
minHeight: "100vh",
|
|
3728
|
+
viewportHeight: "100vh",
|
|
3729
|
+
topOffset: "0px",
|
|
3730
|
+
contentPadding: "21px",
|
|
3731
|
+
mobileContentPadding: "14px"
|
|
3732
|
+
},
|
|
3733
|
+
header: {
|
|
3734
|
+
height: "56px",
|
|
3735
|
+
padding: "8.75px 21px 8.75px 0",
|
|
3736
|
+
mobilePaddingEnd: "14px",
|
|
3737
|
+
gap: "14px",
|
|
3738
|
+
background: tokenRef("surface-card"),
|
|
3739
|
+
borderColor: tokenRef("surface-border"),
|
|
3740
|
+
zIndex: "20"
|
|
3741
|
+
},
|
|
3742
|
+
apps: { mobilePaddingStart: "14px" },
|
|
3743
|
+
trail: {
|
|
3744
|
+
gap: "10.5px",
|
|
3745
|
+
paddingStart: "19.25px",
|
|
3746
|
+
alonePaddingStart: "21px",
|
|
3747
|
+
mobilePaddingStart: "10.5px"
|
|
3748
|
+
},
|
|
3749
|
+
brand: {
|
|
3750
|
+
gap: "8.75px",
|
|
3751
|
+
logoSize: "28px",
|
|
3752
|
+
color: tokenRef("text-primary"),
|
|
3753
|
+
fontSize: tokenRef("font-size-md"),
|
|
3754
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
3755
|
+
mutedColor: tokenRef("text-muted"),
|
|
3756
|
+
mutedFontWeight: tokenRef("font-weight-medium")
|
|
3757
|
+
},
|
|
3758
|
+
crumb: {
|
|
3759
|
+
slashColor: tokenRef("surface-border"),
|
|
3760
|
+
slashFontSize: "15.75px",
|
|
3761
|
+
color: tokenRef("text-muted"),
|
|
3762
|
+
fontSize: "12.25px",
|
|
3763
|
+
currentColor: tokenRef("text-primary"),
|
|
3764
|
+
currentFontWeight: tokenRef("font-weight-semibold")
|
|
3765
|
+
},
|
|
3766
|
+
rail: {
|
|
3767
|
+
width: "84px",
|
|
3768
|
+
padding: "10.5px 5.25px",
|
|
3769
|
+
mobilePadding: "5.25px 7px",
|
|
3770
|
+
gap: "3.5px",
|
|
3771
|
+
background: tokenRef("surface-card"),
|
|
3772
|
+
borderColor: tokenRef("surface-border")
|
|
3773
|
+
},
|
|
3774
|
+
railItem: {
|
|
3775
|
+
padding: "7px 3.5px",
|
|
3776
|
+
gap: "3.5px",
|
|
3777
|
+
borderRadius: tokenRef("radius-lg"),
|
|
3778
|
+
color: tokenRef("text-muted"),
|
|
3779
|
+
fontSize: "11px",
|
|
3780
|
+
lineHeight: "1.25",
|
|
3781
|
+
iconSize: "17.5px",
|
|
3782
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
3783
|
+
hoverColor: tokenRef("text-primary"),
|
|
3784
|
+
activeBackground: mix(tokenRef("primary-500"), "14%", "transparent"),
|
|
3785
|
+
activeHoverBackground: mix(tokenRef("primary-500"), "18%", "transparent"),
|
|
3786
|
+
activeColor: tokenRef("primary-base"),
|
|
3787
|
+
activeFontWeight: tokenRef("font-weight-semibold"),
|
|
3788
|
+
mobileMinWidth: "72px",
|
|
3789
|
+
focusRingWidth: "2px",
|
|
3790
|
+
focusRingColor: tokenRef("primary-base"),
|
|
3791
|
+
focusRingOffset: "2px",
|
|
3792
|
+
transitionDuration: "150ms"
|
|
3793
|
+
},
|
|
3794
|
+
panel: {
|
|
3795
|
+
width: "236px",
|
|
3796
|
+
background: tokenRef("surface-card"),
|
|
3797
|
+
borderColor: tokenRef("surface-border"),
|
|
3798
|
+
navPadding: "14px 10.5px",
|
|
3799
|
+
mobileNavPadding: "10.5px",
|
|
3800
|
+
toggleHeight: "42px",
|
|
3801
|
+
togglePadding: "0 14px",
|
|
3802
|
+
toggleGap: "8.75px",
|
|
3803
|
+
toggleColor: tokenRef("text-primary"),
|
|
3804
|
+
toggleIconColor: tokenRef("text-muted"),
|
|
3805
|
+
toggleFontSize: "12.25px",
|
|
3806
|
+
toggleFontWeight: tokenRef("font-weight-semibold"),
|
|
3807
|
+
toggleHoverBackground: tokenRef("surface-hover"),
|
|
3808
|
+
collapseDuration: "200ms",
|
|
3809
|
+
asideDuration: "420ms",
|
|
3810
|
+
asideEasing: "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
3811
|
+
contentDuration: "280ms",
|
|
3812
|
+
contentDelay: "60ms"
|
|
3813
|
+
}
|
|
3814
|
+
};
|
|
3815
|
+
const ground = tokenRef("surface-ground");
|
|
3816
|
+
const tint$1 = (color, amount) => mix(color, amount, ground);
|
|
3817
|
+
const appLayoutTokens = {
|
|
3818
|
+
root: {
|
|
3819
|
+
background: ground,
|
|
3820
|
+
color: tokenRef("text-primary"),
|
|
3821
|
+
minHeight: "100vh",
|
|
3822
|
+
viewportHeight: "100vh",
|
|
3823
|
+
topOffset: "0px"
|
|
3824
|
+
},
|
|
3825
|
+
topbar: {
|
|
3826
|
+
minHeight: "56px",
|
|
3827
|
+
padding: "10.5px 16.1px 10.5px 0",
|
|
3828
|
+
mobilePaddingStart: "16.1px",
|
|
3829
|
+
gap: "14px",
|
|
3830
|
+
background: "transparent"
|
|
3831
|
+
},
|
|
3832
|
+
menuButton: {
|
|
3833
|
+
size: "35px",
|
|
3834
|
+
borderRadius: tokenRef("radius-md"),
|
|
3835
|
+
iconSize: "17.5px",
|
|
3836
|
+
color: tokenRef("text-primary"),
|
|
3837
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
3838
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
3839
|
+
marginEnd: "21px"
|
|
3840
|
+
},
|
|
3841
|
+
plain: {
|
|
3842
|
+
padding: "10.5px 21px",
|
|
3843
|
+
brandGap: "8.75px",
|
|
3844
|
+
logoSize: "28px",
|
|
3845
|
+
nameFontSize: "17.5px",
|
|
3846
|
+
nameFontWeight: tokenRef("font-weight-semibold"),
|
|
3847
|
+
nameLineHeight: "28px",
|
|
3848
|
+
color: tokenRef("text-primary")
|
|
3849
|
+
},
|
|
3850
|
+
sidebar: {
|
|
3851
|
+
width: "224px",
|
|
3852
|
+
railWidth: "73.5px",
|
|
3853
|
+
background: tokenRef("surface-card"),
|
|
3854
|
+
borderColor: tokenRef("surface-border"),
|
|
3855
|
+
zIndex: "999",
|
|
3856
|
+
duration: "0.3s",
|
|
3857
|
+
easing: "cubic-bezier(0, 0, 0.2, 1)",
|
|
3858
|
+
headerHeight: "56px",
|
|
3859
|
+
headerPadding: "0 17.5px 0 21px",
|
|
3860
|
+
logoSize: "24.5px",
|
|
3861
|
+
brandGap: "8.75px",
|
|
3862
|
+
nameColor: tokenRef("text-primary"),
|
|
3863
|
+
nameFontSize: "14.875px",
|
|
3864
|
+
nameFontWeight: tokenRef("font-weight-bold"),
|
|
3865
|
+
nameLetterSpacing: "-0.02em",
|
|
3866
|
+
nameRevealDuration: "0.3s",
|
|
3867
|
+
nameHideDuration: "0.1s",
|
|
3868
|
+
pinSize: "28px",
|
|
3869
|
+
pinBorderRadius: tokenRef("radius-md"),
|
|
3870
|
+
pinIconSize: "14px",
|
|
3871
|
+
pinColor: tokenRef("text-muted"),
|
|
3872
|
+
pinHoverColor: tokenRef("text-primary"),
|
|
3873
|
+
pinHoverBackground: tokenRef("surface-hover"),
|
|
3874
|
+
pinSwapDuration: "0.2s",
|
|
3875
|
+
menuPadding: "7px 0 28px",
|
|
3876
|
+
scrollbarColor: tokenRef("surface-border")
|
|
3877
|
+
},
|
|
3878
|
+
mask: {
|
|
3879
|
+
background: tokenRef("mask-background"),
|
|
3880
|
+
zIndex: "998"
|
|
3881
|
+
},
|
|
3882
|
+
content: {
|
|
3883
|
+
padding: "21px 28px 14px",
|
|
3884
|
+
mobilePadding: "14px",
|
|
3885
|
+
maxWidth: "1504px"
|
|
3886
|
+
},
|
|
3887
|
+
backdrop: {
|
|
3888
|
+
spectrum: `linear-gradient(120deg, ${tint$1(tokenRef("primary-400"), "14%")} 0%, ${ground} 32%, ${tint$1(tokenRef("purple-400"), "11%")} 58%, ${ground} 78%, ${tint$1(ACCENT_PALETTES.cyan[400], "13%")} 100%)`,
|
|
3889
|
+
accent: `linear-gradient(120deg, ${tint$1(tokenRef("primary-400"), "15%")} 0%, ${ground} 30%, ${tint$1(tokenRef("primary-300"), "12%")} 56%, ${ground} 78%, ${tint$1(tokenRef("primary-600"), "13%")} 100%)`,
|
|
3890
|
+
noiseOpacity: "0.4",
|
|
3891
|
+
noiseSize: "160px"
|
|
3892
|
+
}
|
|
3893
|
+
};
|
|
3894
|
+
const easeOut = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
3895
|
+
const wizardTokens = {
|
|
3896
|
+
layout: {
|
|
3897
|
+
background: tokenRef("surface-card"),
|
|
3898
|
+
color: tokenRef("text-primary"),
|
|
3899
|
+
minHeight: "100dvh",
|
|
3900
|
+
maxWidth: "532px",
|
|
3901
|
+
padding: "21px 17.5px",
|
|
3902
|
+
smallPadding: "21px 28px",
|
|
3903
|
+
widePadding: "35px 42px",
|
|
3904
|
+
mainGap: "28px",
|
|
3905
|
+
mainPadding: "28px 0",
|
|
3906
|
+
stepDuration: "520ms",
|
|
3907
|
+
stepEasing: easeOut,
|
|
3908
|
+
stepShift: "14px"
|
|
3909
|
+
},
|
|
3910
|
+
progress: {
|
|
3911
|
+
gap: "7px",
|
|
3912
|
+
labelColor: tokenRef("text-muted"),
|
|
3913
|
+
labelFontSize: "10.5px",
|
|
3914
|
+
labelFontWeight: tokenRef("font-weight-medium"),
|
|
3915
|
+
labelLetterSpacing: "0.08em",
|
|
3916
|
+
segmentGap: "5.25px",
|
|
3917
|
+
segmentHeight: "5.25px",
|
|
3918
|
+
segmentBackground: tokenRef("surface-border"),
|
|
3919
|
+
fillBackground: tokenRef("primary-base"),
|
|
3920
|
+
currentOpacity: "0.6",
|
|
3921
|
+
duration: "500ms",
|
|
3922
|
+
easing: easeOut
|
|
3923
|
+
},
|
|
3924
|
+
stepHead: {
|
|
3925
|
+
gap: "10.5px",
|
|
3926
|
+
iconSize: "38.5px",
|
|
3927
|
+
iconFontSize: "15.75px",
|
|
3928
|
+
iconBorderRadius: "10.5px",
|
|
3929
|
+
iconBackground: mix(tokenRef("primary-base"), "12%", "transparent"),
|
|
3930
|
+
iconColor: tokenRef("primary-base"),
|
|
3931
|
+
titleGap: "7px",
|
|
3932
|
+
titleColor: tokenRef("text-primary"),
|
|
3933
|
+
titleFontSize: "21px",
|
|
3934
|
+
titleFontWeight: tokenRef("font-weight-semibold"),
|
|
3935
|
+
titleLineHeight: "1.25",
|
|
3936
|
+
titleLetterSpacing: "-0.01em",
|
|
3937
|
+
leadColor: tokenRef("text-muted"),
|
|
3938
|
+
leadFontSize: "13.125px",
|
|
3939
|
+
leadLineHeight: "1.625",
|
|
3940
|
+
leadMaxWidth: "476px"
|
|
3941
|
+
},
|
|
3942
|
+
stage: {
|
|
3943
|
+
background: mix(tokenRef("primary-base"), "5%", tokenRef("surface-ground")),
|
|
3944
|
+
gap: "21px",
|
|
3945
|
+
wideGap: "35px",
|
|
3946
|
+
padding: "28px 21px",
|
|
3947
|
+
widePadding: "42px 21px",
|
|
3948
|
+
minHeight: "196px",
|
|
3949
|
+
size: "364px",
|
|
3950
|
+
narrowScale: "0.5",
|
|
3951
|
+
sceneEnterDuration: "680ms",
|
|
3952
|
+
sceneLeaveDuration: "260ms",
|
|
3953
|
+
sceneEasing: easeOut,
|
|
3954
|
+
sceneEnterShift: "56px",
|
|
3955
|
+
sceneLeaveShift: "40px",
|
|
3956
|
+
captionGap: "3.5px",
|
|
3957
|
+
captionDuration: "520ms",
|
|
3958
|
+
numberColor: tokenRef("primary-base"),
|
|
3959
|
+
numberFontSize: "10.5px",
|
|
3960
|
+
numberFontWeight: tokenRef("font-weight-semibold"),
|
|
3961
|
+
titleColor: tokenRef("text-primary"),
|
|
3962
|
+
titleFontSize: "15.75px",
|
|
3963
|
+
titleFontWeight: tokenRef("font-weight-semibold")
|
|
3964
|
+
},
|
|
3965
|
+
footer: {
|
|
3966
|
+
gap: "10.5px",
|
|
3967
|
+
endGap: "7px",
|
|
3968
|
+
paddingTop: "17.5px",
|
|
3969
|
+
borderColor: tokenRef("surface-border")
|
|
3970
|
+
}
|
|
3971
|
+
};
|
|
3972
|
+
const pinnedTabsTokens = {
|
|
3973
|
+
root: { gap: "7px" },
|
|
3974
|
+
dialog: {
|
|
3975
|
+
gap: "17.5px",
|
|
3976
|
+
sectionGap: "8.75px",
|
|
3977
|
+
counterColor: tokenRef("text-muted"),
|
|
3978
|
+
counterFontSize: "10.5px",
|
|
3979
|
+
counterFontWeight: tokenRef("font-weight-medium"),
|
|
3980
|
+
optionsGap: "7px",
|
|
3981
|
+
optionsMinWidth: "175px",
|
|
3982
|
+
optionsMaxHeight: "50vh"
|
|
3983
|
+
},
|
|
3984
|
+
option: {
|
|
3985
|
+
height: "42px",
|
|
3986
|
+
padding: "0 10.5px 0 14px",
|
|
3987
|
+
gap: "10.5px",
|
|
3988
|
+
borderRadius: "10.5px",
|
|
3989
|
+
fontSize: "12.25px",
|
|
3990
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
3991
|
+
color: tokenRef("text-primary"),
|
|
3992
|
+
background: tokenRef("surface-ground"),
|
|
3993
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
3994
|
+
hoverRingColor: tokenRef("surface-border"),
|
|
3995
|
+
selectedBackground: mix(tokenRef("primary-base"), "12%", "transparent"),
|
|
3996
|
+
selectedRingColor: mix(tokenRef("primary-base"), "55%", "transparent"),
|
|
3997
|
+
selectedHoverBackground: mix(tokenRef("primary-base"), "18%", "transparent"),
|
|
3998
|
+
selectedHoverRingColor: tokenRef("primary-base"),
|
|
3999
|
+
activeScale: "0.985",
|
|
4000
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
4001
|
+
duration: "150ms"
|
|
4002
|
+
},
|
|
4003
|
+
check: {
|
|
4004
|
+
size: "17.5px",
|
|
4005
|
+
ringColor: mix(tokenRef("text-muted"), "45%", "transparent"),
|
|
4006
|
+
iconSize: "8.75px",
|
|
4007
|
+
background: tokenRef("primary-base"),
|
|
4008
|
+
color: tokenRef("primary-contrast")
|
|
4009
|
+
}
|
|
4010
|
+
};
|
|
4011
|
+
const commandPaletteTokens = {
|
|
4012
|
+
trigger: {
|
|
4013
|
+
height: "37px",
|
|
4014
|
+
padding: "0 7px 0 10.5px",
|
|
4015
|
+
gap: "7px",
|
|
4016
|
+
borderRadius: tokenRef("radius-md"),
|
|
4017
|
+
background: tokenRef("surface-card"),
|
|
4018
|
+
color: tokenRef("text-muted"),
|
|
4019
|
+
ringColor: mix(tokenRef("text-primary"), "14%", "transparent"),
|
|
4020
|
+
shadow: "0 1px 2px rgb(0 0 0 / 0.06)",
|
|
4021
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
4022
|
+
hoverColor: tokenRef("text-primary"),
|
|
4023
|
+
hoverShadow: "0 2px 10px rgb(15 23 42 / 0.12)",
|
|
4024
|
+
activeScale: "0.97",
|
|
4025
|
+
fontSize: "12.25px",
|
|
4026
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
4027
|
+
duration: "150ms",
|
|
4028
|
+
kbdMarginStart: "3.5px",
|
|
4029
|
+
kbdPadding: "5px 5.25px",
|
|
4030
|
+
kbdBorderRadius: "5.25px",
|
|
4031
|
+
kbdFontSize: "9.625px",
|
|
4032
|
+
kbdFontWeight: tokenRef("font-weight-medium"),
|
|
4033
|
+
kbdBackground: tokenRef("surface-ground"),
|
|
4034
|
+
kbdRingColor: tokenRef("surface-border")
|
|
4035
|
+
},
|
|
4036
|
+
overlay: {
|
|
4037
|
+
zIndex: tokenRef("layer-modal"),
|
|
4038
|
+
padding: "12vh 14px 0",
|
|
4039
|
+
background: "rgb(15 23 42 / 0.45)",
|
|
4040
|
+
blur: "2px",
|
|
4041
|
+
enterDuration: "150ms",
|
|
4042
|
+
leaveDuration: "120ms"
|
|
4043
|
+
},
|
|
4044
|
+
panel: {
|
|
4045
|
+
maxWidth: "640px",
|
|
4046
|
+
maxHeight: "70vh",
|
|
4047
|
+
borderRadius: "14px",
|
|
4048
|
+
borderColor: tokenRef("surface-border"),
|
|
4049
|
+
background: tokenRef("surface-card"),
|
|
4050
|
+
color: tokenRef("text-primary"),
|
|
4051
|
+
shadow: "0 24px 64px rgb(15 23 42 / 0.28)",
|
|
4052
|
+
enterDuration: "180ms",
|
|
4053
|
+
leaveDuration: "120ms",
|
|
4054
|
+
easing: "cubic-bezier(0.16, 1, 0.3, 1)"
|
|
4055
|
+
},
|
|
4056
|
+
search: {
|
|
4057
|
+
padding: "12.25px 14px",
|
|
4058
|
+
gap: "10.5px",
|
|
4059
|
+
iconSize: "15.75px",
|
|
4060
|
+
iconColor: tokenRef("text-muted"),
|
|
4061
|
+
fontSize: tokenRef("font-size-md"),
|
|
4062
|
+
placeholderColor: tokenRef("text-muted")
|
|
4063
|
+
},
|
|
4064
|
+
results: {
|
|
4065
|
+
padding: "7px",
|
|
4066
|
+
groupPadding: "10.5px 10.5px 5.25px",
|
|
4067
|
+
groupFontSize: "9.625px",
|
|
4068
|
+
groupFontWeight: tokenRef("font-weight-semibold"),
|
|
4069
|
+
groupLetterSpacing: "0.05em",
|
|
4070
|
+
groupColor: tokenRef("text-muted"),
|
|
4071
|
+
statusGap: "7px",
|
|
4072
|
+
statusPadding: "28px 14px",
|
|
4073
|
+
emptyPadding: "35px 14px",
|
|
4074
|
+
statusFontSize: "12.25px",
|
|
4075
|
+
statusColor: tokenRef("text-muted")
|
|
4076
|
+
},
|
|
4077
|
+
item: {
|
|
4078
|
+
padding: "7px 10.5px",
|
|
4079
|
+
gap: "10.5px",
|
|
4080
|
+
borderRadius: tokenRef("radius-md"),
|
|
4081
|
+
fontSize: "12.25px",
|
|
4082
|
+
labelFontWeight: tokenRef("font-weight-medium"),
|
|
4083
|
+
color: tokenRef("text-primary"),
|
|
4084
|
+
activeBackground: mix(tokenRef("primary-base"), "10%", "transparent"),
|
|
4085
|
+
iconSize: "28px",
|
|
4086
|
+
iconFontSize: "12.25px",
|
|
4087
|
+
iconBorderRadius: tokenRef("radius-md"),
|
|
4088
|
+
iconBackground: tokenRef("surface-ground"),
|
|
4089
|
+
iconColor: tokenRef("text-muted"),
|
|
4090
|
+
activeIconBackground: mix(tokenRef("primary-base"), "14%", "transparent"),
|
|
4091
|
+
activeIconColor: tokenRef("primary-base"),
|
|
4092
|
+
sublabelFontSize: "10.5px",
|
|
4093
|
+
sublabelColor: tokenRef("text-muted"),
|
|
4094
|
+
arrowColor: tokenRef("primary-base"),
|
|
4095
|
+
arrowSize: "10.5px",
|
|
4096
|
+
duration: "100ms"
|
|
4097
|
+
},
|
|
4098
|
+
footer: {
|
|
4099
|
+
padding: "8.75px 14px",
|
|
4100
|
+
gap: "14px",
|
|
4101
|
+
background: tokenRef("surface-ground"),
|
|
4102
|
+
hintGap: "3.5px",
|
|
4103
|
+
hintFontSize: "10.5px",
|
|
4104
|
+
hintColor: tokenRef("text-muted"),
|
|
4105
|
+
kbdMinWidth: "18px",
|
|
4106
|
+
kbdPadding: "1.75px 3.5px",
|
|
4107
|
+
kbdBorderRadius: "3.5px",
|
|
4108
|
+
kbdFontSize: "10px",
|
|
4109
|
+
kbdBackground: tokenRef("surface-card")
|
|
4110
|
+
}
|
|
4111
|
+
};
|
|
4112
|
+
const tint = (amount) => mix(tokenRef("primary-base"), amount, "transparent");
|
|
4113
|
+
const kanbanTokens = {
|
|
4114
|
+
root: {
|
|
4115
|
+
gap: "14px",
|
|
4116
|
+
paddingBottom: "14px",
|
|
4117
|
+
inset: "4px",
|
|
4118
|
+
minHeight: "280px",
|
|
4119
|
+
columnWidth: "252px"
|
|
4120
|
+
},
|
|
4121
|
+
column: {
|
|
4122
|
+
gap: "10.5px",
|
|
4123
|
+
padding: "10.5px",
|
|
4124
|
+
borderRadius: tokenRef("radius-lg"),
|
|
4125
|
+
background: tokenRef("surface-card"),
|
|
4126
|
+
shadow: `0 0 0 1px ${lightDark(tokenRef("surface-200"), tokenRef("surface-800"))}`,
|
|
4127
|
+
headerGap: "7px",
|
|
4128
|
+
headerMinHeight: "28px",
|
|
4129
|
+
titleColor: tokenRef("text-primary"),
|
|
4130
|
+
titleFontSize: "12.25px",
|
|
4131
|
+
titleFontWeight: tokenRef("font-weight-semibold")
|
|
4132
|
+
},
|
|
4133
|
+
handle: {
|
|
4134
|
+
size: "21px",
|
|
4135
|
+
borderRadius: tokenRef("radius-md"),
|
|
4136
|
+
color: tokenRef("text-muted"),
|
|
4137
|
+
hoverColor: tokenRef("text-primary"),
|
|
4138
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
4139
|
+
iconSize: "10.5px"
|
|
4140
|
+
},
|
|
4141
|
+
list: {
|
|
4142
|
+
gap: "7px",
|
|
4143
|
+
minHeight: "49px",
|
|
4144
|
+
padding: "3.5px",
|
|
4145
|
+
receivingBackground: tint("5%"),
|
|
4146
|
+
scrollbarColor: tokenRef("surface-border")
|
|
4147
|
+
},
|
|
4148
|
+
placeholder: {
|
|
4149
|
+
minHeight: "56px",
|
|
4150
|
+
borderColor: tint("45%"),
|
|
4151
|
+
background: tint("6%")
|
|
4152
|
+
},
|
|
4153
|
+
empty: {
|
|
4154
|
+
minHeight: "49px",
|
|
4155
|
+
padding: "0 10.5px",
|
|
4156
|
+
fontSize: "10.5px",
|
|
4157
|
+
color: tokenRef("text-muted"),
|
|
4158
|
+
borderColor: tokenRef("surface-border")
|
|
4159
|
+
},
|
|
4160
|
+
card: {
|
|
4161
|
+
borderRadius: tokenRef("radius-lg"),
|
|
4162
|
+
dragShadow: tokenRef("shadow-overlay"),
|
|
4163
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`
|
|
4164
|
+
},
|
|
4165
|
+
motion: {
|
|
4166
|
+
duration: "200ms",
|
|
4167
|
+
easing: "cubic-bezier(0, 0, 0.2, 1)",
|
|
4168
|
+
fadeDuration: "150ms"
|
|
4169
|
+
}
|
|
4170
|
+
};
|
|
4171
|
+
const actionsMenuTokens = {
|
|
4172
|
+
list: {
|
|
4173
|
+
gap: "1.75px",
|
|
4174
|
+
minWidth: "168px",
|
|
4175
|
+
padding: "5.25px"
|
|
4176
|
+
},
|
|
4177
|
+
item: {
|
|
4178
|
+
gap: "8.75px",
|
|
4179
|
+
paddingX: "10.5px",
|
|
4180
|
+
paddingY: "7px",
|
|
4181
|
+
borderRadius: tokenRef("radius-md"),
|
|
4182
|
+
fontSize: "12.25px",
|
|
4183
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
4184
|
+
lineHeight: "16px",
|
|
4185
|
+
color: tokenRef("text-primary"),
|
|
4186
|
+
hoverBackground: lightDark(tokenRef("surface-100"), tokenRef("surface-800")),
|
|
4187
|
+
activeBackground: lightDark(tokenRef("surface-200"), tokenRef("surface-700")),
|
|
4188
|
+
dangerColor: lightDark(tokenRef("red-600"), tokenRef("red-400")),
|
|
4189
|
+
dangerHoverBackground: lightDark(tokenRef("red-50"), fade(tokenRef("red-400"), "96%")),
|
|
4190
|
+
dangerActiveBackground: lightDark(tokenRef("red-100"), fade(tokenRef("red-400"), "84%")),
|
|
4191
|
+
focusRingColor: tokenRef("focus-ring-color"),
|
|
4192
|
+
transitionDuration: "150ms"
|
|
4193
|
+
}
|
|
4194
|
+
};
|
|
4195
|
+
const actionTileTokens = {
|
|
4196
|
+
root: {
|
|
4197
|
+
gap: "12.25px",
|
|
4198
|
+
padding: "12.25px",
|
|
4199
|
+
borderRadius: tokenRef("radius-lg"),
|
|
4200
|
+
background: tokenRef("surface-card"),
|
|
4201
|
+
borderColor: tokenRef("surface-border"),
|
|
4202
|
+
hoverBorderColor: tokenRef("primary-base"),
|
|
4203
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
4204
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
4205
|
+
disabledOpacity: "0.6",
|
|
4206
|
+
transitionDuration: "150ms"
|
|
4207
|
+
},
|
|
4208
|
+
icon: {
|
|
4209
|
+
size: "35px",
|
|
4210
|
+
borderRadius: tokenRef("radius-md"),
|
|
4211
|
+
fontSize: "14px",
|
|
4212
|
+
color: tokenRef("primary-base"),
|
|
4213
|
+
background: mix(tokenRef("primary-base"), "12%", "transparent")
|
|
4214
|
+
},
|
|
4215
|
+
body: { gap: "1.75px" },
|
|
4216
|
+
title: {
|
|
4217
|
+
fontSize: "13.125px",
|
|
4218
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
4219
|
+
lineHeight: "1.375",
|
|
4220
|
+
color: tokenRef("text-primary")
|
|
4221
|
+
},
|
|
4222
|
+
text: {
|
|
4223
|
+
fontSize: "12.25px",
|
|
4224
|
+
lineHeight: "1.375",
|
|
4225
|
+
color: tokenRef("text-muted")
|
|
4226
|
+
},
|
|
4227
|
+
end: {
|
|
4228
|
+
fontSize: "12.25px",
|
|
4229
|
+
color: tokenRef("text-muted"),
|
|
4230
|
+
hoverColor: tokenRef("primary-base"),
|
|
4231
|
+
hoverShift: "1.75px"
|
|
4232
|
+
}
|
|
4233
|
+
};
|
|
4234
|
+
const switchThemeTokens = {
|
|
4235
|
+
root: {
|
|
4236
|
+
size: "37px",
|
|
4237
|
+
borderRadius: tokenRef("radius-full"),
|
|
4238
|
+
background: tokenRef("surface-card"),
|
|
4239
|
+
color: tokenRef("text-primary"),
|
|
4240
|
+
ringColor: mix(tokenRef("text-primary"), "14%", "transparent"),
|
|
4241
|
+
shadow: "0 1px 2px rgb(0 0 0 / 0.06)",
|
|
4242
|
+
hoverBackground: tokenRef("surface-hover"),
|
|
4243
|
+
activeScale: "0.9",
|
|
4244
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
4245
|
+
transitionDuration: "200ms"
|
|
4246
|
+
},
|
|
4247
|
+
icon: {
|
|
4248
|
+
size: "14px",
|
|
4249
|
+
duration: "500ms",
|
|
4250
|
+
easing: "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
4251
|
+
hiddenScale: "0.5"
|
|
4252
|
+
}
|
|
4253
|
+
};
|
|
4254
|
+
const switchLanguageTokens = {
|
|
4255
|
+
root: {
|
|
4256
|
+
height: "37px",
|
|
4257
|
+
padding: "3px",
|
|
4258
|
+
borderRadius: tokenRef("radius-full"),
|
|
4259
|
+
background: tokenRef("surface-ground"),
|
|
4260
|
+
ringColor: tokenRef("surface-border")
|
|
4261
|
+
},
|
|
4262
|
+
thumb: {
|
|
4263
|
+
background: tokenRef("surface-card"),
|
|
4264
|
+
ringColor: tokenRef("surface-border"),
|
|
4265
|
+
shadow: `0 1px 3px ${mix(tokenRef("text-primary"), "18%", "transparent")}`,
|
|
4266
|
+
duration: "300ms",
|
|
4267
|
+
easing: "cubic-bezier(0.34, 1.3, 0.64, 1)"
|
|
4268
|
+
},
|
|
4269
|
+
option: {
|
|
4270
|
+
minWidth: "35px",
|
|
4271
|
+
paddingX: "10.5px",
|
|
4272
|
+
fontSize: "10.5px",
|
|
4273
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
4274
|
+
letterSpacing: "0.04em",
|
|
4275
|
+
color: tokenRef("text-muted"),
|
|
4276
|
+
hoverColor: tokenRef("text-primary"),
|
|
4277
|
+
activeColor: tokenRef("text-primary"),
|
|
4278
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`,
|
|
4279
|
+
transitionDuration: "200ms"
|
|
4280
|
+
}
|
|
4281
|
+
};
|
|
4282
|
+
const topbarPreferencesTokens = {
|
|
4283
|
+
root: {
|
|
4284
|
+
gap: "3.5px",
|
|
4285
|
+
padding: "3px",
|
|
4286
|
+
borderRadius: tokenRef("radius-full"),
|
|
4287
|
+
background: tokenRef("surface-ground"),
|
|
4288
|
+
ringColor: tokenRef("surface-border"),
|
|
4289
|
+
controlSize: "31px",
|
|
4290
|
+
themeHoverBackground: tokenRef("surface-card")
|
|
4291
|
+
},
|
|
4292
|
+
raised: {
|
|
4293
|
+
background: tokenRef("surface-card"),
|
|
4294
|
+
ringColor: mix(tokenRef("text-primary"), "14%", "transparent"),
|
|
4295
|
+
shadow: "0 1px 2px rgb(0 0 0 / 0.06)",
|
|
4296
|
+
thumbBackground: mix(tokenRef("primary-base"), "12%", tokenRef("surface-card")),
|
|
4297
|
+
thumbRingColor: mix(tokenRef("primary-base"), "28%", "transparent"),
|
|
4298
|
+
activeColor: tokenRef("primary-base"),
|
|
4299
|
+
themeHoverBackground: tokenRef("surface-hover")
|
|
4300
|
+
},
|
|
4301
|
+
divider: {
|
|
4302
|
+
width: "1px",
|
|
4303
|
+
height: "14px",
|
|
4304
|
+
color: tokenRef("surface-border")
|
|
4305
|
+
},
|
|
4306
|
+
stacked: {
|
|
4307
|
+
gap: "14px",
|
|
4308
|
+
rowPadding: "7px 0",
|
|
4309
|
+
labelFontSize: "12.25px",
|
|
4310
|
+
labelFontWeight: tokenRef("font-weight-medium"),
|
|
4311
|
+
labelColor: tokenRef("text-muted")
|
|
4312
|
+
}
|
|
4313
|
+
};
|
|
4314
|
+
const focusRing = `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`;
|
|
4315
|
+
const publicHeaderTokens = {
|
|
4316
|
+
root: {
|
|
4317
|
+
height: "56px",
|
|
4318
|
+
maxWidth: "1064px",
|
|
4319
|
+
paddingX: "17.5px",
|
|
4320
|
+
gap: "21px",
|
|
4321
|
+
background: mix(tokenRef("surface-card"), "78%", "transparent"),
|
|
4322
|
+
backdropFilter: "blur(24px) saturate(1.5)",
|
|
4323
|
+
borderColor: tokenRef("surface-border"),
|
|
4324
|
+
zIndex: "50",
|
|
4325
|
+
focusRingShadow: focusRing
|
|
4326
|
+
},
|
|
4327
|
+
brand: {
|
|
4328
|
+
gap: "8.75px",
|
|
4329
|
+
logoWidth: "28px",
|
|
4330
|
+
fontSize: "15.75px",
|
|
4331
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
4332
|
+
letterSpacing: "-0.02em",
|
|
4333
|
+
color: tokenRef("text-primary"),
|
|
4334
|
+
borderRadius: tokenRef("radius-md")
|
|
4335
|
+
},
|
|
4336
|
+
nav: {
|
|
4337
|
+
gap: "3.5px",
|
|
4338
|
+
linkPaddingX: "10.5px",
|
|
4339
|
+
linkPaddingY: "7px",
|
|
4340
|
+
linkBorderRadius: tokenRef("radius-full"),
|
|
4341
|
+
linkFontSize: "12.25px",
|
|
4342
|
+
linkColor: tokenRef("text-muted"),
|
|
4343
|
+
linkHoverColor: tokenRef("text-primary")
|
|
4344
|
+
},
|
|
4345
|
+
end: {
|
|
4346
|
+
gap: "10.5px",
|
|
4347
|
+
actionsGap: "7px"
|
|
4348
|
+
},
|
|
4349
|
+
toggle: {
|
|
4350
|
+
size: "35px",
|
|
4351
|
+
iconSize: "15.75px",
|
|
4352
|
+
color: tokenRef("text-primary"),
|
|
4353
|
+
ringColor: tokenRef("surface-border"),
|
|
4354
|
+
hoverBackground: tokenRef("surface-hover")
|
|
4355
|
+
},
|
|
4356
|
+
panel: {
|
|
4357
|
+
padding: "10.5px 17.5px 17.5px",
|
|
4358
|
+
gap: "14px",
|
|
4359
|
+
background: tokenRef("surface-card"),
|
|
4360
|
+
shadow: tokenRef("shadow-overlay"),
|
|
4361
|
+
linkPadding: "10.5px 7px",
|
|
4362
|
+
linkBorderRadius: "0",
|
|
4363
|
+
linkFontSize: "14px",
|
|
4364
|
+
linkColor: tokenRef("text-primary"),
|
|
4365
|
+
duration: "200ms"
|
|
4366
|
+
}
|
|
4367
|
+
};
|
|
4368
|
+
const cookieNoticeTokens = {
|
|
4369
|
+
root: {
|
|
4370
|
+
inset: "14px",
|
|
4371
|
+
wideInset: "21px",
|
|
4372
|
+
wideWidth: "336px",
|
|
4373
|
+
gap: "10.5px",
|
|
4374
|
+
padding: "14px",
|
|
4375
|
+
borderRadius: tokenRef("radius-xl"),
|
|
4376
|
+
background: mix(tokenRef("surface-card"), "84%", "transparent"),
|
|
4377
|
+
backdropFilter: "blur(24px) saturate(1.5)",
|
|
4378
|
+
ringColor: tokenRef("surface-border"),
|
|
4379
|
+
shadow: tokenRef("shadow-overlay"),
|
|
4380
|
+
zIndex: tokenRef("layer-dropdown")
|
|
4381
|
+
},
|
|
4382
|
+
icon: {
|
|
4383
|
+
size: "31.5px",
|
|
4384
|
+
fontSize: "12.25px",
|
|
4385
|
+
background: mix(tokenRef("primary-base"), "14%", "transparent"),
|
|
4386
|
+
color: tokenRef("primary-base")
|
|
4387
|
+
},
|
|
4388
|
+
body: { gap: "3.5px" },
|
|
4389
|
+
title: {
|
|
4390
|
+
fontSize: "12.25px",
|
|
4391
|
+
fontWeight: tokenRef("font-weight-semibold"),
|
|
4392
|
+
color: tokenRef("text-primary")
|
|
4393
|
+
},
|
|
4394
|
+
text: {
|
|
4395
|
+
fontSize: "11.375px",
|
|
4396
|
+
lineHeight: "1.375",
|
|
4397
|
+
color: tokenRef("text-muted")
|
|
4398
|
+
},
|
|
4399
|
+
actions: {
|
|
4400
|
+
gap: "14px",
|
|
4401
|
+
marginTop: "7px"
|
|
4402
|
+
},
|
|
4403
|
+
link: {
|
|
4404
|
+
fontSize: "11.375px",
|
|
4405
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
4406
|
+
color: tokenRef("primary-base"),
|
|
4407
|
+
focusRingShadow: `0 0 0 2px ${tokenRef("surface-card")}, 0 0 0 4px ${tokenRef("focus-ring-color")}`
|
|
4408
|
+
},
|
|
4409
|
+
motion: {
|
|
4410
|
+
enterDuration: "500ms",
|
|
4411
|
+
enterDelay: "600ms",
|
|
4412
|
+
enterEasing: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
4413
|
+
leaveDuration: "200ms"
|
|
4414
|
+
}
|
|
4415
|
+
};
|
|
4416
|
+
const networkStatusTokens = {
|
|
4417
|
+
root: {
|
|
4418
|
+
bottom: "21px",
|
|
4419
|
+
zIndex: tokenRef("layer-tooltip"),
|
|
4420
|
+
gap: "8.75px",
|
|
4421
|
+
padding: "7px 14px 7px 7px",
|
|
4422
|
+
borderRadius: tokenRef("radius-full"),
|
|
4423
|
+
fontSize: "12.25px",
|
|
4424
|
+
fontWeight: tokenRef("font-weight-medium"),
|
|
4425
|
+
color: tokenRef("text-primary"),
|
|
4426
|
+
background: mix(tokenRef("surface-card"), "88%", "transparent"),
|
|
4427
|
+
backdropFilter: "blur(24px) saturate(1.5)",
|
|
4428
|
+
ringColor: tokenRef("surface-border"),
|
|
4429
|
+
shadow: tokenRef("shadow-overlay")
|
|
4430
|
+
},
|
|
4431
|
+
icon: {
|
|
4432
|
+
size: "24.5px",
|
|
4433
|
+
fontSize: "12.25px",
|
|
4434
|
+
tint: "14%"
|
|
4435
|
+
},
|
|
4436
|
+
offline: { color: lightDark(tokenRef("amber-600"), tokenRef("amber-400")) },
|
|
4437
|
+
restored: { color: lightDark(tokenRef("green-600"), tokenRef("green-400")) },
|
|
4438
|
+
motion: {
|
|
4439
|
+
enterDuration: "450ms",
|
|
4440
|
+
enterEasing: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
4441
|
+
leaveDuration: "300ms"
|
|
4442
|
+
}
|
|
4443
|
+
};
|
|
4444
|
+
const qrCodeTokens = {
|
|
4445
|
+
root: {
|
|
4446
|
+
color: tokenRef("surface-950"),
|
|
4447
|
+
background: tokenRef("surface-0"),
|
|
4448
|
+
borderRadius: tokenRef("radius-lg")
|
|
4449
|
+
},
|
|
4450
|
+
error: {
|
|
4451
|
+
color: tokenRef("text-muted"),
|
|
4452
|
+
fontSize: "12.25px"
|
|
4453
|
+
}
|
|
4454
|
+
};
|
|
3492
4455
|
const COMPONENT_TOKENS = {
|
|
3493
4456
|
icon: iconTokens,
|
|
3494
4457
|
ripple: rippleTokens,
|
|
@@ -3575,7 +4538,26 @@ const COMPONENT_TOKENS = {
|
|
|
3575
4538
|
editorContent: editorContentTokens,
|
|
3576
4539
|
image: imageTokens,
|
|
3577
4540
|
galleria: galleriaTokens,
|
|
3578
|
-
carousel: carouselTokens
|
|
4541
|
+
carousel: carouselTokens,
|
|
4542
|
+
filtersPanel: filtersPanelTokens,
|
|
4543
|
+
pageHeader: pageHeaderTokens,
|
|
4544
|
+
emptyState: emptyStateTokens,
|
|
4545
|
+
appFooter: appFooterTokens,
|
|
4546
|
+
consoleLayout: consoleLayoutTokens,
|
|
4547
|
+
appLayout: appLayoutTokens,
|
|
4548
|
+
wizard: wizardTokens,
|
|
4549
|
+
pinnedTabs: pinnedTabsTokens,
|
|
4550
|
+
commandPalette: commandPaletteTokens,
|
|
4551
|
+
kanban: kanbanTokens,
|
|
4552
|
+
actionsMenu: actionsMenuTokens,
|
|
4553
|
+
actionTile: actionTileTokens,
|
|
4554
|
+
switchTheme: switchThemeTokens,
|
|
4555
|
+
switchLanguage: switchLanguageTokens,
|
|
4556
|
+
topbarPreferences: topbarPreferencesTokens,
|
|
4557
|
+
publicHeader: publicHeaderTokens,
|
|
4558
|
+
cookieNotice: cookieNoticeTokens,
|
|
4559
|
+
networkStatus: networkStatusTokens,
|
|
4560
|
+
qrCode: qrCodeTokens
|
|
3579
4561
|
};
|
|
3580
4562
|
function edgeLight({ accent, surface }) {
|
|
3581
4563
|
const base = primaryBaseStep(accent);
|
|
@@ -5114,6 +6096,6 @@ function presetToCss(preset) {
|
|
|
5114
6096
|
...preset.css ? [preset.css] : []
|
|
5115
6097
|
].join("\n");
|
|
5116
6098
|
}
|
|
5117
|
-
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, amountTokens, analogClockTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, confirmTokens, contrastWithWhite, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, noirScale, overlayBadgeTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, treeTableTokens, treeTokens, virtualScrollerTokens };
|
|
6099
|
+
export { COMPONENT_TOKENS, Edge, Paper, Soft, TECTRA_STYLES, Tectra, accordionTokens, actionTileTokens, actionsMenuTokens, amountTokens, analogClockTokens, appFooterTokens, appLayoutTokens, avatarTokens, badgeTokens, breadcrumbTokens, buttonTokens, cardTokens, carouselTokens, cascadeSelectTokens, checkboxTokens, chipTokens, chipsInputTokens, colorPickerTokens, commandPaletteTokens, confirmTokens, consoleLayoutTokens, contrastWithWhite, cookieNoticeTokens, countdownTokens, countryTokens, createDarkSemantic, createLightSemantic, createTectraPreset, dataViewTokens, datePickerTokens, deepMerge, definePreset, dialogTokens, dividerTokens, editorContentTokens, editorTokens, emailSuggestionTokens, emptyStateTokens, fade, fieldMessageTokens, fieldTokens, fieldsetTokens, fileUploadTokens, filtersPanelTokens, floatLabelTokens, formFieldTokens, galleriaTokens, highlightTextTokens, iconLinkTokens, iconTokens, iftaLabelTokens, imageTokens, inputGroupTokens, inputNumberTokens, inputOtpTokens, kanbanTokens, knobTokens, labelTokens, lightDark, linkTokens, listboxTokens, mentionTokens, menuTokens, menubarTokens, messageTokens, mix, monthCalendarTokens, networkStatusTokens, noirScale, overlayBadgeTokens, pageHeaderTokens, paginatorTokens, panelMenuTokens, panelTokens, passwordTokens, pillTokens, pinnedTabsTokens, popoverTokens, presetToCss, primaryBaseStep, progressBarTokens, progressSpinnerTokens, publicHeaderTokens, qrCodeTokens, radioButtonTokens, ratingTokens, relativeLuminance, rippleTokens, scrollPanelTokens, selectTokens, skeletonTokens, sliderTokens, sparklineTokens, speedDialTokens, splitButtonTokens, splitterTokens, statTileTokens, statTilesTokens, statusIconTokens, stepperTokens, stepsTokens, switchLanguageTokens, switchThemeTokens, tableTokens, tabsTokens, tagTokens, textareaTokens, timelineTokens, toCssVariables, toStyleObject, toastTokens, toggleButtonTokens, toggleSwitchTokens, tokenRef, toolbarTokens, tooltipTokens, topbarPreferencesTokens, treeTableTokens, treeTokens, virtualScrollerTokens, wizardTokens };
|
|
5118
6100
|
|
|
5119
6101
|
//# sourceMappingURL=tectra-ng-themes.mjs.map
|