uniskin 0.3.0 → 0.5.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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  One semantic class vocabulary, swappable Tailwind CSS v4 UI skins.
4
4
 
5
+ [Live demo](https://uniskin-css.vercel.app) · [Skin builder](https://uniskin-css.vercel.app/builder/) · [GitHub](https://github.com/Munawarhussain729/uniskin)
6
+
5
7
  Write `ui-button ui-primary` once, in plain HTML, React, Vue, PHP or anything
6
8
  else. Pick an **adapter** in your CSS to decide how it looks: the built-in
7
9
  default, a shadcn/ui look, a daisyUI look, or your own. Switching adapters
@@ -0,0 +1,17 @@
1
+ import { type ComponentName, type Intent, type SizeModifier, type StateModifier, type StyleModifier } from "./types.js";
2
+ /** Which modifiers a component supports. Mirrors the coverage matrix in `docs/vocabulary.md`. */
3
+ export interface Coverage {
4
+ intents: readonly Intent[];
5
+ styles: readonly StyleModifier[];
6
+ sizes: readonly SizeModifier[];
7
+ states: readonly StateModifier[];
8
+ }
9
+ /**
10
+ * The documented coverage matrix, keyed by component. `warnUnsupported`
11
+ * checks adapters against this rather than against every modifier, so a
12
+ * fully conforming adapter is not warned about combinations that are not
13
+ * part of the vocabulary. `test/vocabulary-docs.test.ts` keeps it in sync
14
+ * with the table in `docs/vocabulary.md`.
15
+ */
16
+ export declare const COVERAGE: Record<ComponentName, Coverage>;
17
+ //# sourceMappingURL=coverage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"coverage.d.ts","sourceRoot":"","sources":["../src/coverage.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,aAAa,EAClB,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,YAAY,CAAC;AAEpB,iGAAiG;AACjG,MAAM,WAAW,QAAQ;IACvB,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;IACjC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/B,MAAM,EAAE,SAAS,aAAa,EAAE,CAAC;CAClC;AAKD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,aAAa,EAAE,QAAQ,CA6BpD,CAAC"}
@@ -0,0 +1,41 @@
1
+ import { INTENTS, SIZES, STATES, STYLES, } from "./types.js";
2
+ const NONE = { intents: [], styles: [], sizes: [], states: [] };
3
+ const ALL = { intents: INTENTS, styles: STYLES, sizes: SIZES, states: STATES };
4
+ /**
5
+ * The documented coverage matrix, keyed by component. `warnUnsupported`
6
+ * checks adapters against this rather than against every modifier, so a
7
+ * fully conforming adapter is not warned about combinations that are not
8
+ * part of the vocabulary. `test/vocabulary-docs.test.ts` keeps it in sync
9
+ * with the table in `docs/vocabulary.md`.
10
+ */
11
+ export const COVERAGE = {
12
+ button: ALL,
13
+ input: ALL,
14
+ textarea: ALL,
15
+ select: ALL,
16
+ checkbox: ALL,
17
+ radio: ALL,
18
+ switch: ALL,
19
+ field: NONE,
20
+ "field-label": NONE,
21
+ "field-hint": NONE,
22
+ "field-error": NONE,
23
+ card: ALL,
24
+ "card-header": NONE,
25
+ "card-body": NONE,
26
+ "card-footer": NONE,
27
+ badge: ALL,
28
+ alert: ALL,
29
+ modal: { ...NONE, styles: ["ghost", "soft"], sizes: SIZES, states: ["active"] },
30
+ "modal-box": { ...NONE, intents: INTENTS, sizes: SIZES },
31
+ tabs: { ...ALL, states: [] },
32
+ tab: { ...NONE, intents: INTENTS, sizes: SIZES, states: STATES },
33
+ table: ALL,
34
+ "table-wrap": NONE,
35
+ accordion: { ...ALL, states: [] },
36
+ "accordion-item": NONE,
37
+ "accordion-trigger": NONE,
38
+ "accordion-panel": NONE,
39
+ progress: { ...NONE, intents: INTENTS, styles: ["outline", "ghost"], sizes: SIZES },
40
+ };
41
+ //# sourceMappingURL=coverage.js.map
@@ -0,0 +1 @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E,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;IAChE,KAAK,EAAE,GAAG;IACV,YAAY,EAAE,IAAI;IAClB,SAAS,EAAE,EAAE,GAAG,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE;IACjC,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;IACzB,iBAAiB,EAAE,IAAI;IACvB,QAAQ,EAAE,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE;CACpF,CAAC"}
@@ -33,6 +33,8 @@ export declare const defaultAdapter: {
33
33
  readonly "--ui-surface-muted": "oklch(0.96 0.005 265)";
34
34
  readonly "--ui-border": "oklch(0.89 0.008 265)";
35
35
  readonly "--ui-ring": "oklch(0.62 0.18 262)";
36
+ readonly "--ui-overlay": "rgb(0 0 0 / 0.5)";
37
+ readonly "--ui-overlay-soft": "rgb(255 255 255 / 0.6)";
36
38
  readonly "--ui-radius": "0.5rem";
37
39
  readonly "--ui-text-sm": "0.8125rem";
38
40
  readonly "--ui-text-md": "0.9375rem";
@@ -58,6 +60,8 @@ export declare const defaultAdapter: {
58
60
  readonly "--ui-surface-muted": "oklch(0.26 0.015 265)";
59
61
  readonly "--ui-border": "oklch(0.34 0.015 265)";
60
62
  readonly "--ui-ring": "oklch(0.7 0.15 262)";
63
+ readonly "--ui-overlay": "rgb(0 0 0 / 0.5)";
64
+ readonly "--ui-overlay-soft": "rgb(255 255 255 / 0.6)";
61
65
  };
62
66
  readonly components: {
63
67
  readonly button: {
@@ -81,7 +85,7 @@ export declare const defaultAdapter: {
81
85
  readonly border: "1px solid transparent";
82
86
  readonly "background-color": "var(--ui-c)";
83
87
  readonly color: "var(--ui-on-c)";
84
- readonly "border-color": "var(--ui-c)";
88
+ readonly "border-color": "var(--ui-c-border, var(--ui-c))";
85
89
  readonly cursor: "pointer";
86
90
  readonly "user-select": "none";
87
91
  readonly "text-decoration": "none";
@@ -100,7 +104,7 @@ export declare const defaultAdapter: {
100
104
  readonly outline: {
101
105
  readonly "background-color": "transparent";
102
106
  readonly color: "var(--ui-c-text)";
103
- readonly "border-color": "var(--ui-c)";
107
+ readonly "border-color": "var(--ui-c-border, var(--ui-c))";
104
108
  readonly "&:hover": {
105
109
  readonly "background-color": "var(--ui-c)";
106
110
  readonly "border-color": "var(--ui-c)";
@@ -122,8 +126,8 @@ export declare const defaultAdapter: {
122
126
  readonly "border-color": "transparent";
123
127
  readonly color: "var(--ui-c-soft-fg)";
124
128
  readonly "&:hover": {
125
- readonly "background-color": "var(--ui-c)";
126
- readonly "border-color": "var(--ui-c)";
129
+ readonly "background-color": "var(--ui-c-soft-hover, var(--ui-c))";
130
+ readonly "border-color": "var(--ui-c-border, var(--ui-c))";
127
131
  readonly color: "var(--ui-on-c)";
128
132
  };
129
133
  };
@@ -595,7 +599,7 @@ export declare const defaultAdapter: {
595
599
  readonly styles: {
596
600
  readonly outline: {
597
601
  readonly "box-shadow": "none";
598
- readonly "border-color": "var(--ui-c)";
602
+ readonly "border-color": "var(--ui-c-border, var(--ui-c))";
599
603
  };
600
604
  readonly ghost: {
601
605
  readonly "box-shadow": "none";
@@ -670,7 +674,7 @@ export declare const defaultAdapter: {
670
674
  readonly "line-height": "1";
671
675
  readonly padding: "0.3125rem 0.625rem";
672
676
  readonly "border-radius": "9999px";
673
- readonly border: "1px solid var(--ui-c)";
677
+ readonly border: "1px solid var(--ui-c-border, var(--ui-c))";
674
678
  readonly "background-color": "var(--ui-c)";
675
679
  readonly color: "var(--ui-on-c)";
676
680
  readonly "white-space": "nowrap";
@@ -715,7 +719,7 @@ export declare const defaultAdapter: {
715
719
  readonly "line-height": "1.4";
716
720
  readonly padding: "0.875rem 1rem";
717
721
  readonly "border-radius": "var(--ui-radius)";
718
- readonly border: "1px solid var(--ui-c)";
722
+ readonly border: "1px solid var(--ui-c-border, var(--ui-c))";
719
723
  readonly "background-color": "var(--ui-c)";
720
724
  readonly color: "var(--ui-on-c)";
721
725
  };
@@ -748,6 +752,332 @@ export declare const defaultAdapter: {
748
752
  };
749
753
  readonly states: Record<"disabled" | "loading" | "active", CssRuleObject>;
750
754
  };
755
+ readonly table: {
756
+ readonly base: {
757
+ readonly "--ui-c": "var(--ui-neutral)";
758
+ readonly "--ui-c-text": "var(--ui-neutral-text, var(--ui-neutral))";
759
+ readonly "--ui-on-c": "var(--ui-neutral-fg)";
760
+ readonly "--ui-c-soft": "var(--ui-neutral-soft)";
761
+ readonly "--ui-c-soft-fg": "var(--ui-neutral-soft-fg)";
762
+ readonly width: "100%";
763
+ readonly "border-collapse": "collapse";
764
+ readonly "font-family": "var(--ui-font-sans)";
765
+ readonly "font-size": "var(--ui-text-md)";
766
+ readonly "line-height": "1.25";
767
+ readonly color: "var(--ui-surface-fg)";
768
+ readonly "& caption": {
769
+ readonly "caption-side": "bottom";
770
+ readonly "font-size": "var(--ui-text-sm)";
771
+ readonly color: "color-mix(in oklab, var(--ui-surface-fg) 65%, var(--ui-surface))";
772
+ readonly "padding-block": "0.5rem";
773
+ readonly "text-align": "start";
774
+ };
775
+ readonly "& th, & td": {
776
+ readonly padding: "var(--ui-table-pad-y, 0.5rem) var(--ui-table-pad-x, 0.75rem)";
777
+ readonly "text-align": "start";
778
+ readonly "vertical-align": "top";
779
+ };
780
+ readonly "& thead th": {
781
+ readonly "font-weight": "600";
782
+ readonly "font-size": "var(--ui-text-sm)";
783
+ readonly color: "var(--ui-table-head-fg, var(--ui-surface-fg))";
784
+ readonly "background-color": "var(--ui-table-head-bg, var(--ui-surface))";
785
+ readonly "border-bottom": "2px solid color-mix(in oklab, var(--ui-c) 55%, var(--ui-surface-fg))";
786
+ readonly position: "sticky";
787
+ readonly top: "0";
788
+ };
789
+ readonly "& th[aria-sort]": {
790
+ readonly cursor: "pointer";
791
+ };
792
+ readonly '& th[aria-sort="ascending"]::after, & th[aria-sort="descending"]::after': {
793
+ readonly content: "\"\"";
794
+ readonly display: "inline-block";
795
+ readonly "margin-inline-start": "0.4em";
796
+ readonly "border-inline": "0.3em solid transparent";
797
+ };
798
+ readonly '& th[aria-sort="ascending"]::after': {
799
+ readonly "border-bottom": "0.35em solid currentColor";
800
+ };
801
+ readonly '& th[aria-sort="descending"]::after': {
802
+ readonly "border-top": "0.35em solid currentColor";
803
+ };
804
+ readonly "& tbody tr": {
805
+ readonly "border-bottom": "1px solid var(--ui-table-border, var(--ui-border))";
806
+ readonly transition: "background-color 0.15s ease";
807
+ };
808
+ readonly "& tbody tr:last-child": {
809
+ readonly "border-bottom": "0";
810
+ };
811
+ readonly "& tbody tr:hover": {
812
+ readonly "background-color": "var(--ui-table-row-hover, var(--ui-surface-muted))";
813
+ };
814
+ readonly "& tbody tr.ui-active, & tbody tr[aria-selected='true']": {
815
+ readonly "background-color": "var(--ui-c-soft)";
816
+ readonly color: "var(--ui-c-soft-fg)";
817
+ };
818
+ readonly "& tbody tr.ui-disabled, & tbody tr[aria-disabled='true']": {
819
+ readonly opacity: "0.5";
820
+ };
821
+ readonly "@media (prefers-reduced-motion: reduce)": {
822
+ readonly "& tbody tr": {
823
+ readonly transition: "none";
824
+ };
825
+ };
826
+ };
827
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
828
+ readonly styles: {
829
+ readonly soft: {
830
+ readonly "& tbody tr:nth-of-type(even)": {
831
+ readonly "background-color": "var(--ui-table-stripe, var(--ui-surface-muted))";
832
+ };
833
+ readonly "& tbody tr.ui-active, & tbody tr[aria-selected='true']": {
834
+ readonly "background-color": "var(--ui-c-soft)";
835
+ };
836
+ };
837
+ readonly outline: {
838
+ readonly "& th, & td": {
839
+ readonly border: "1px solid var(--ui-table-border, var(--ui-border))";
840
+ };
841
+ };
842
+ readonly ghost: {
843
+ readonly "& tbody tr": {
844
+ readonly "border-bottom-color": "transparent";
845
+ };
846
+ readonly "& thead th": {
847
+ readonly "border-bottom-color": "color-mix(in oklab, var(--ui-c) 55%, var(--ui-surface-fg))";
848
+ };
849
+ };
850
+ };
851
+ readonly sizes: {
852
+ readonly sm: {
853
+ readonly "font-size": "var(--ui-text-sm)";
854
+ readonly "--ui-table-pad-y": "0.25rem";
855
+ readonly "--ui-table-pad-x": "0.5rem";
856
+ };
857
+ readonly lg: {
858
+ readonly "font-size": "var(--ui-text-lg)";
859
+ readonly "--ui-table-pad-y": "0.75rem";
860
+ readonly "--ui-table-pad-x": "1rem";
861
+ };
862
+ };
863
+ readonly states: {
864
+ readonly loading: {
865
+ readonly "& tbody": {
866
+ readonly animation: "ui-pulse 1.2s ease-in-out infinite";
867
+ };
868
+ };
869
+ };
870
+ };
871
+ readonly "table-wrap": {
872
+ readonly base: {
873
+ readonly "overflow-x": "auto";
874
+ readonly border: "1px solid var(--ui-table-border, var(--ui-border))";
875
+ readonly "border-radius": "var(--ui-radius)";
876
+ readonly "&:focus-visible": {
877
+ readonly outline: "2px solid var(--ui-ring)";
878
+ readonly "outline-offset": "2px";
879
+ };
880
+ };
881
+ };
882
+ readonly accordion: {
883
+ readonly base: {
884
+ readonly "--ui-c": "var(--ui-neutral)";
885
+ readonly "--ui-c-text": "var(--ui-surface-fg)";
886
+ readonly "--ui-on-c": "var(--ui-neutral-fg)";
887
+ readonly "--ui-c-soft": "var(--ui-neutral-soft)";
888
+ readonly "--ui-c-soft-fg": "var(--ui-neutral-soft-fg)";
889
+ readonly display: "block";
890
+ readonly "font-family": "var(--ui-font-sans)";
891
+ readonly "font-size": "var(--ui-text-md)";
892
+ readonly "line-height": "1.25";
893
+ readonly color: "var(--ui-surface-fg)";
894
+ readonly border: "1px solid var(--ui-accordion-border, var(--ui-border))";
895
+ readonly "border-radius": "var(--ui-radius)";
896
+ readonly overflow: "hidden";
897
+ readonly "& .ui-accordion-item + .ui-accordion-item": {
898
+ readonly "border-top": "1px solid var(--ui-accordion-border, var(--ui-border))";
899
+ };
900
+ };
901
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
902
+ readonly styles: {
903
+ readonly outline: {
904
+ readonly border: "0";
905
+ readonly display: "grid";
906
+ readonly gap: "0.5rem";
907
+ readonly overflow: "visible";
908
+ readonly "& .ui-accordion-item": {
909
+ readonly border: "1px solid var(--ui-accordion-border, var(--ui-border))";
910
+ readonly "border-radius": "var(--ui-radius)";
911
+ readonly overflow: "hidden";
912
+ };
913
+ };
914
+ readonly ghost: {
915
+ readonly border: "0";
916
+ readonly "& .ui-accordion-item + .ui-accordion-item": {
917
+ readonly "border-top": "0";
918
+ };
919
+ };
920
+ readonly soft: {
921
+ readonly border: "0";
922
+ readonly "background-color": "var(--ui-accordion-soft-bg, var(--ui-surface-muted))";
923
+ readonly "& .ui-accordion-item + .ui-accordion-item": {
924
+ readonly "border-top-color": "var(--ui-surface)";
925
+ };
926
+ readonly "& .ui-accordion-item[open]": {
927
+ readonly "background-color": "var(--ui-c-soft)";
928
+ };
929
+ readonly "& .ui-accordion-item[open] > .ui-accordion-trigger": {
930
+ readonly color: "var(--ui-c-soft-fg)";
931
+ };
932
+ readonly "& .ui-accordion-item[open] > .ui-accordion-trigger:focus-visible": {
933
+ readonly "outline-color": "var(--ui-c-soft-fg)";
934
+ };
935
+ readonly "& .ui-accordion-item[open] > .ui-accordion-panel": {
936
+ readonly color: "var(--ui-c-soft-fg)";
937
+ };
938
+ };
939
+ };
940
+ readonly sizes: {
941
+ readonly sm: {
942
+ readonly "font-size": "var(--ui-text-sm)";
943
+ readonly "--ui-accordion-pad-y": "0.5rem";
944
+ readonly "--ui-accordion-pad-x": "0.75rem";
945
+ };
946
+ readonly lg: {
947
+ readonly "font-size": "var(--ui-text-lg)";
948
+ readonly "--ui-accordion-pad-y": "1rem";
949
+ readonly "--ui-accordion-pad-x": "1.25rem";
950
+ };
951
+ };
952
+ };
953
+ readonly "accordion-item": {
954
+ readonly base: {
955
+ readonly display: "block";
956
+ readonly "&[open] > .ui-accordion-trigger": {
957
+ readonly color: "color-mix(in oklab, var(--ui-c-text) 75%, var(--ui-surface-fg))";
958
+ };
959
+ readonly "&[open] > .ui-accordion-trigger::after": {
960
+ readonly transform: "translateY(0.15em) rotate(-135deg)";
961
+ };
962
+ readonly "&[open] > .ui-accordion-panel": {
963
+ readonly animation: "ui-accordion-reveal 0.18s ease-out";
964
+ };
965
+ };
966
+ };
967
+ readonly "accordion-trigger": {
968
+ readonly base: {
969
+ readonly display: "flex";
970
+ readonly "align-items": "center";
971
+ readonly "justify-content": "space-between";
972
+ readonly gap: "1rem";
973
+ readonly padding: "var(--ui-accordion-pad-y, 0.75rem) var(--ui-accordion-pad-x, 1rem)";
974
+ readonly "font-weight": "500";
975
+ readonly color: "var(--ui-surface-fg)";
976
+ readonly cursor: "pointer";
977
+ readonly "list-style": "none";
978
+ readonly "user-select": "none";
979
+ readonly transition: string;
980
+ readonly "&::-webkit-details-marker": {
981
+ readonly display: "none";
982
+ };
983
+ readonly "&::marker": {
984
+ readonly content: "\"\"";
985
+ };
986
+ readonly "&::after": {
987
+ readonly content: "\"\"";
988
+ readonly flex: "none";
989
+ readonly width: "0.5em";
990
+ readonly height: "0.5em";
991
+ readonly "border-right": "2px solid currentColor";
992
+ readonly "border-bottom": "2px solid currentColor";
993
+ readonly transform: "translateY(-0.15em) rotate(45deg)";
994
+ readonly transition: "transform 0.15s ease";
995
+ };
996
+ readonly "&:hover": {
997
+ readonly "background-color": "var(--ui-accordion-hover, var(--ui-surface-muted))";
998
+ };
999
+ readonly "&:focus-visible": {
1000
+ readonly "outline-offset": "-2px";
1001
+ };
1002
+ readonly "@media (prefers-reduced-motion: reduce)": {
1003
+ readonly transition: "none";
1004
+ readonly "&::after": {
1005
+ readonly transition: "none";
1006
+ };
1007
+ };
1008
+ };
1009
+ };
1010
+ readonly "accordion-panel": {
1011
+ readonly base: {
1012
+ readonly padding: "0 var(--ui-accordion-pad-x, 1rem) var(--ui-accordion-pad-y, 0.75rem)";
1013
+ readonly "font-size": "var(--ui-text-sm)";
1014
+ readonly "line-height": "1.55";
1015
+ readonly color: "color-mix(in oklab, var(--ui-surface-fg) 78%, var(--ui-surface))";
1016
+ };
1017
+ };
1018
+ readonly progress: {
1019
+ readonly base: {
1020
+ readonly "--ui-c": "var(--ui-neutral)";
1021
+ readonly "--ui-c-text": "var(--ui-surface-fg)";
1022
+ readonly "--ui-on-c": "var(--ui-neutral-fg)";
1023
+ readonly "--ui-c-soft": "var(--ui-neutral-soft)";
1024
+ readonly "--ui-c-soft-fg": "var(--ui-neutral-soft-fg)";
1025
+ readonly appearance: "none";
1026
+ readonly "-webkit-appearance": "none";
1027
+ readonly display: "block";
1028
+ readonly width: "100%";
1029
+ readonly height: "var(--ui-progress-h, 0.5rem)";
1030
+ readonly border: "0";
1031
+ readonly "border-radius": "9999px";
1032
+ readonly overflow: "hidden";
1033
+ readonly "background-color": "var(--ui-progress-track, var(--ui-surface-muted))";
1034
+ readonly color: "var(--ui-progress-bar, var(--ui-c-text))";
1035
+ readonly "&::-webkit-progress-bar": {
1036
+ readonly "background-color": "transparent";
1037
+ };
1038
+ readonly "&::-webkit-progress-value": {
1039
+ readonly "background-color": "currentColor";
1040
+ readonly "border-radius": "inherit";
1041
+ readonly transition: "width 0.2s ease";
1042
+ };
1043
+ readonly "&::-moz-progress-bar": {
1044
+ readonly "background-color": "currentColor";
1045
+ readonly "border-radius": "inherit";
1046
+ };
1047
+ readonly "&:indeterminate": {
1048
+ readonly "background-image": "linear-gradient(90deg, transparent 0, currentColor 50%, transparent 100%)";
1049
+ readonly "background-size": "40% 100%";
1050
+ readonly "background-repeat": "no-repeat";
1051
+ readonly animation: "ui-progress-slide 1.4s ease-in-out infinite alternate";
1052
+ };
1053
+ readonly "@media (prefers-reduced-motion: reduce)": {
1054
+ readonly "&::-webkit-progress-value": {
1055
+ readonly transition: "none";
1056
+ };
1057
+ readonly "&:indeterminate": {
1058
+ readonly "background-image": "none";
1059
+ readonly "background-color": "color-mix(in oklab, currentColor 35%, var(--ui-progress-track, var(--ui-surface-muted)))";
1060
+ };
1061
+ };
1062
+ };
1063
+ readonly intents: Record<"primary" | "secondary" | "success" | "warning" | "danger", CssRuleObject>;
1064
+ readonly styles: {
1065
+ readonly outline: {
1066
+ readonly "box-shadow": "inset 0 0 0 1px var(--ui-progress-border, var(--ui-border))";
1067
+ };
1068
+ readonly ghost: {
1069
+ readonly "background-color": "transparent";
1070
+ };
1071
+ };
1072
+ readonly sizes: {
1073
+ readonly sm: {
1074
+ readonly "--ui-progress-h": "0.25rem";
1075
+ };
1076
+ readonly lg: {
1077
+ readonly "--ui-progress-h": "0.75rem";
1078
+ };
1079
+ };
1080
+ };
751
1081
  readonly modal: {
752
1082
  readonly base: {
753
1083
  readonly position: "fixed";
@@ -764,7 +1094,7 @@ export declare const defaultAdapter: {
764
1094
  readonly margin: "0";
765
1095
  readonly padding: "1rem";
766
1096
  readonly border: "0";
767
- readonly "background-color": "rgb(0 0 0 / 0.5)";
1097
+ readonly "background-color": "var(--ui-overlay, rgb(0 0 0 / 0.5))";
768
1098
  readonly visibility: "hidden";
769
1099
  readonly opacity: "0";
770
1100
  readonly "pointer-events": "none";
@@ -787,7 +1117,7 @@ export declare const defaultAdapter: {
787
1117
  readonly "background-color": "transparent";
788
1118
  };
789
1119
  readonly soft: {
790
- readonly "background-color": "rgb(255 255 255 / 0.6)";
1120
+ readonly "background-color": "var(--ui-overlay-soft, rgb(255 255 255 / 0.6))";
791
1121
  readonly "backdrop-filter": "blur(6px)";
792
1122
  };
793
1123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"default-theme.d.ts","sourceRoot":"","sources":["../src/default-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,aAAa,EAAe,MAAM,YAAY,CAAC;AA+JrF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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