@alsha-research/picaso-ui 0.0.1 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +20 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +23 -23
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +20 -10
- package/dist/index.js.map +1 -1
- package/package.json +3 -6
package/dist/index.css
CHANGED
|
@@ -3580,11 +3580,11 @@ input[type="number"] {
|
|
|
3580
3580
|
/* -------------------------------------------------------------------------- */
|
|
3581
3581
|
/* Dark mode */
|
|
3582
3582
|
/* */
|
|
3583
|
-
/* Opt-in: nothing below applies unless <html> has data-
|
|
3583
|
+
/* Opt-in: nothing below applies unless <html> has data-picaso-ui-mode="dark", */
|
|
3584
3584
|
/* which ThemeProvider / ThemeScript set. Light mode is unchanged. */
|
|
3585
3585
|
/* -------------------------------------------------------------------------- */
|
|
3586
3586
|
|
|
3587
|
-
:root[data-
|
|
3587
|
+
:root[data-picaso-ui-mode="dark"] {
|
|
3588
3588
|
color-scheme: dark;
|
|
3589
3589
|
|
|
3590
3590
|
/* Gray: reversed so surfaces are dark and text is light */
|
|
@@ -3632,7 +3632,7 @@ input[type="number"] {
|
|
|
3632
3632
|
}
|
|
3633
3633
|
|
|
3634
3634
|
/* Primary default (ThemeProvider replaces this when a brand colour is chosen) */
|
|
3635
|
-
:root[data-
|
|
3635
|
+
:root[data-picaso-ui-mode="dark"] .theme-primary {
|
|
3636
3636
|
--primary-25: #0d192e;
|
|
3637
3637
|
--primary-50: #0d1d38;
|
|
3638
3638
|
--primary-100: #0e264b;
|
|
@@ -3643,56 +3643,56 @@ input[type="number"] {
|
|
|
3643
3643
|
--primary-900: #8fbaf7;
|
|
3644
3644
|
}
|
|
3645
3645
|
|
|
3646
|
-
:root[data-
|
|
3646
|
+
:root[data-picaso-ui-mode="dark"] body {
|
|
3647
3647
|
background-color: #0b0f19;
|
|
3648
3648
|
color: var(--gray-900);
|
|
3649
3649
|
}
|
|
3650
3650
|
|
|
3651
3651
|
/* Components that use white as a surface colour */
|
|
3652
|
-
:root[data-
|
|
3653
|
-
:root[data-
|
|
3654
|
-
:root[data-
|
|
3652
|
+
:root[data-picaso-ui-mode="dark"] .bg-white,
|
|
3653
|
+
:root[data-picaso-ui-mode="dark"] .hover\:bg-white:hover,
|
|
3654
|
+
:root[data-picaso-ui-mode="dark"] .focus-within\:bg-white:focus-within {
|
|
3655
3655
|
background-color: var(--gray-25);
|
|
3656
3656
|
}
|
|
3657
3657
|
|
|
3658
3658
|
/* keep the Radio's inner dot (h-1.5 w-1.5) white on its coloured background */
|
|
3659
|
-
:root[data-
|
|
3659
|
+
:root[data-picaso-ui-mode="dark"] .bg-white.w-1\.5 {
|
|
3660
3660
|
background-color: #fff;
|
|
3661
3661
|
}
|
|
3662
3662
|
|
|
3663
|
-
:root[data-
|
|
3663
|
+
:root[data-picaso-ui-mode="dark"] .bg-white\/90 {
|
|
3664
3664
|
background-color: color-mix(in srgb, var(--gray-25) 90%, transparent);
|
|
3665
3665
|
}
|
|
3666
3666
|
|
|
3667
|
-
:root[data-
|
|
3667
|
+
:root[data-picaso-ui-mode="dark"] .text-black {
|
|
3668
3668
|
color: var(--gray-900);
|
|
3669
3669
|
}
|
|
3670
3670
|
|
|
3671
3671
|
/* Table column dividers use a fixed light grey */
|
|
3672
|
-
:root[data-
|
|
3672
|
+
:root[data-picaso-ui-mode="dark"] .shadow-table {
|
|
3673
3673
|
--tw-shadow: inset -3px 0px 0px 0px var(--gray-200);
|
|
3674
3674
|
--tw-shadow-colored: inset -3px 0px 0px 0px var(--tw-shadow-color);
|
|
3675
3675
|
}
|
|
3676
|
-
:root[data-
|
|
3676
|
+
:root[data-picaso-ui-mode="dark"] .shadow-tableRight {
|
|
3677
3677
|
--tw-shadow: inset 3px 0px 0px 0px var(--gray-200);
|
|
3678
3678
|
--tw-shadow-colored: inset 3px 0px 0px 0px var(--tw-shadow-color);
|
|
3679
3679
|
}
|
|
3680
3680
|
|
|
3681
3681
|
/* Ring offsets default to white; :where() keeps this at zero specificity so a
|
|
3682
3682
|
consumer's own ring-offset-* class still wins. */
|
|
3683
|
-
:where(:root[data-
|
|
3684
|
-
:where(:root[data-
|
|
3685
|
-
:where(:root[data-
|
|
3683
|
+
:where(:root[data-picaso-ui-mode="dark"]) *,
|
|
3684
|
+
:where(:root[data-picaso-ui-mode="dark"]) ::before,
|
|
3685
|
+
:where(:root[data-picaso-ui-mode="dark"]) ::after {
|
|
3686
3686
|
--tw-ring-offset-color: var(--gray-25);
|
|
3687
3687
|
}
|
|
3688
3688
|
|
|
3689
3689
|
/* Skeleton */
|
|
3690
|
-
:root[data-
|
|
3691
|
-
:root[data-
|
|
3692
|
-
:root[data-
|
|
3690
|
+
:root[data-picaso-ui-mode="dark"] .skeleton,
|
|
3691
|
+
:root[data-picaso-ui-mode="dark"] .skeleton.skeleton-wave,
|
|
3692
|
+
:root[data-picaso-ui-mode="dark"] .skeleton.skeleton-pulse {
|
|
3693
3693
|
background-color: var(--gray-100);
|
|
3694
3694
|
}
|
|
3695
|
-
:root[data-
|
|
3695
|
+
:root[data-picaso-ui-mode="dark"] .skeleton.skeleton-shimmer {
|
|
3696
3696
|
background-image: linear-gradient(
|
|
3697
3697
|
100deg,
|
|
3698
3698
|
var(--gray-100) 20%,
|
|
@@ -3700,7 +3700,7 @@ input[type="number"] {
|
|
|
3700
3700
|
var(--gray-100) 60%
|
|
3701
3701
|
);
|
|
3702
3702
|
}
|
|
3703
|
-
:root[data-
|
|
3703
|
+
:root[data-picaso-ui-mode="dark"] .skeleton.skeleton-wave::after {
|
|
3704
3704
|
background: linear-gradient(
|
|
3705
3705
|
90deg,
|
|
3706
3706
|
transparent,
|
|
@@ -3710,13 +3710,13 @@ input[type="number"] {
|
|
|
3710
3710
|
}
|
|
3711
3711
|
|
|
3712
3712
|
/* Scrollbar */
|
|
3713
|
-
:root[data-
|
|
3713
|
+
:root[data-picaso-ui-mode="dark"] .customScroll::-webkit-scrollbar-track {
|
|
3714
3714
|
background-color: var(--gray-25);
|
|
3715
3715
|
}
|
|
3716
|
-
:root[data-
|
|
3716
|
+
:root[data-picaso-ui-mode="dark"] .customScroll::-webkit-scrollbar-thumb {
|
|
3717
3717
|
background: var(--gray-200);
|
|
3718
3718
|
}
|
|
3719
|
-
:root[data-
|
|
3719
|
+
:root[data-picaso-ui-mode="dark"] .customScroll::-webkit-scrollbar-thumb:hover {
|
|
3720
3720
|
background: var(--gray-400);
|
|
3721
3721
|
}
|
|
3722
3722
|
.placeholder\:text-gray-500::-moz-placeholder {
|