@ttoss/theme 2.12.1 → 2.12.2

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.
@@ -672,12 +672,114 @@ for (const [key, icon] of Object.entries(BrutalIcons)) {
672
672
  var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@0,400;0,700;1,400;1,700&display=swap", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
673
673
 
674
674
  //#endregion
675
- //#region src/themes/Bruttal/BruttalTheme.ts
676
- var coreFonts = {
677
- body: "\"Atkinson Hyperlegible\", sans-serif",
678
- heading: "\"Work Sans\", sans-serif",
679
- mono: "\"Inconsolata\", sans-serif"
675
+ //#region src/themes/Bruttal/BruttalBadges.ts
676
+ var BruttalBadges = {
677
+ positive: {
678
+ color: "action.text.accent.default",
679
+ bg: "action.background.accent.active"
680
+ },
681
+ negative: {
682
+ color: "action.text.negative.default",
683
+ bg: "action.background.negative.default"
684
+ },
685
+ neutral: {
686
+ color: "action.text.primary.default",
687
+ bg: "action.background.secondary.default",
688
+ border: "sm",
689
+ borderColor: "action.border.muted.default"
690
+ },
691
+ informative: {
692
+ color: "action.text.caution.default",
693
+ bg: "action.background.caution.default"
694
+ },
695
+ muted: {
696
+ color: "action.text.muted.default",
697
+ bg: "action.background.muted.default"
698
+ }
699
+ };
700
+
701
+ //#endregion
702
+ //#region src/themes/Bruttal/BruttalButtons.ts
703
+ var BruttalButtons = {
704
+ accent: {
705
+ backgroundColor: "action.background.accent.default",
706
+ color: "action.text.accent.default",
707
+ borderRadius: "sm",
708
+ ":hover:not(:active,[disabled])": {
709
+ filter: "brightness(90%)"
710
+ },
711
+ ":disabled": {
712
+ cursor: "default",
713
+ backgroundColor: "action.background.muted.default",
714
+ borderColor: "action.border.muted.default",
715
+ color: "action.text.muted.default"
716
+ }
717
+ },
718
+ primary: {
719
+ backgroundColor: "action.background.primary.default",
720
+ color: "action.text.secondary.default",
721
+ borderRadius: "sm",
722
+ ":hover:not(:active,[disabled])": {
723
+ filter: "brightness(90%)"
724
+ },
725
+ ":active": {
726
+ backgroundColor: "action.background.primary.default",
727
+ color: "action.text.secondary.default"
728
+ },
729
+ ":disabled": {
730
+ cursor: "default",
731
+ backgroundColor: "action.background.muted.default",
732
+ borderColor: "action.border.muted.default",
733
+ color: "action.text.muted.default"
734
+ }
735
+ },
736
+ secondary: {
737
+ backgroundColor: "action.background.secondary.default",
738
+ color: "action.text.primary.default",
739
+ borderRadius: "sm",
740
+ border: "md",
741
+ borderColor: "action.border.primary.default",
742
+ ":hover:not(:active,[disabled])": {
743
+ filter: "brightness(90%)"
744
+ },
745
+ ":disabled": {
746
+ cursor: "default",
747
+ backgroundColor: "action.background.muted.default",
748
+ borderColor: "action.border.muted.default",
749
+ color: "action.text.muted.default"
750
+ }
751
+ },
752
+ destructive: {
753
+ color: "action.text.negative.default",
754
+ backgroundColor: "action.background.negative.default",
755
+ ":hover:not(:active,[disabled])": {
756
+ filter: "brightness(90%)"
757
+ },
758
+ ":disabled": {
759
+ cursor: "default",
760
+ backgroundColor: "action.background.muted.default",
761
+ borderColor: "action.border.muted.default",
762
+ color: "action.text.muted.default"
763
+ }
764
+ },
765
+ close: {
766
+ color: "action.background.primary.default",
767
+ ":hover:not(:active,[disabled])": {
768
+ filter: "brightness(90%)",
769
+ cursor: "pointer"
770
+ },
771
+ ":active": {
772
+ color: "action.background.primary.active"
773
+ },
774
+ ":disabled": {
775
+ cursor: "default",
776
+ color: "action.background.primary.disabled"
777
+ }
778
+ }
680
779
  };
780
+
781
+ //#endregion
782
+ //#region src/themes/Bruttal/BruttalColors.ts
681
783
  var coreColors = {
682
784
  complimentary: "#f4f3f3",
683
785
  main: "#292C2a",
@@ -705,671 +807,595 @@ var coreColors = {
705
807
  amber600: "#d97706",
706
808
  teal600: "#0d9488"
707
809
  };
708
- var radii = {
709
- none: "0",
710
- "2xs": "0.0625rem",
711
- xs: "0.125rem",
712
- sm: "0.25rem",
713
- md: "0.375rem",
714
- lg: "0.25rem",
715
- xl: "0.25rem",
716
- "2xl": "0.25rem",
717
- "3xl": "0.25rem",
718
- "4xl": "0.25rem",
719
- full: "9999px"
720
- };
721
- var BruttalTheme = {
722
- /**
723
- * Tokens
724
- */
725
- borders: require_defaultTheme.defaultTheme.borders,
726
- sizes: require_defaultTheme.defaultTheme.sizes,
727
- fontSizes: require_defaultTheme.defaultTheme.fontSizes,
728
- fontWeights: require_defaultTheme.defaultTheme.fontWeights,
729
- letterSpacings: require_defaultTheme.defaultTheme.letterSpacings,
730
- space: require_defaultTheme.defaultTheme.space,
731
- lineHeights: require_defaultTheme.defaultTheme.lineHeights,
732
- zIndices: require_defaultTheme.defaultTheme.zIndices,
733
- colors: {
734
- navigation: {
735
- background: {
736
- primary: {
737
- default: coreColors.complimentary
738
- },
739
- muted: {
740
- default: coreColors.complimentary
741
- }
742
- },
743
- text: {
744
- primary: {
745
- default: coreColors.black
746
- },
747
- accent: {
748
- default: coreColors.darkNeutral
749
- },
750
- muted: {
751
- default: coreColors.gray600
752
- },
753
- negative: {
754
- default: coreColors.red700
755
- }
756
- }
757
- },
758
- action: {
759
- text: {
760
- primary: {
761
- default: coreColors.black
762
- },
763
- secondary: {
764
- default: coreColors.white,
765
- active: coreColors.complimentary
766
- },
767
- accent: {
768
- default: coreColors.white
769
- },
770
- negative: {
771
- default: coreColors.white
772
- },
773
- caution: {
774
- default: coreColors.white
775
- },
776
- muted: {
777
- default: coreColors.gray600
778
- }
779
- },
780
- background: {
781
- primary: {
782
- default: coreColors.main,
783
- active: coreColors.gray600,
784
- disabled: coreColors.gray200
785
- },
786
- secondary: {
787
- default: coreColors.gray100,
788
- active: coreColors.darkNeutral
789
- },
790
- negative: {
791
- default: coreColors.red700
792
- },
793
- accent: {
794
- default: coreColors.accent,
795
- active: coreColors.teal600
796
- },
797
- caution: {
798
- default: coreColors.amber600
799
- },
800
- muted: {
801
- default: coreColors.gray200
802
- }
803
- },
804
- border: {
805
- primary: {
806
- default: coreColors.black
807
- },
808
- secondary: {
809
- default: coreColors.gray500,
810
- active: coreColors.darkNeutral
811
- },
812
- muted: {
813
- default: coreColors.gray600
814
- },
815
- accent: {
816
- default: coreColors.accent
817
- }
818
- }
819
- },
820
- input: {
821
- text: {
822
- primary: {
823
- default: coreColors.white
824
- },
825
- secondary: {
826
- default: coreColors.black
827
- },
828
- muted: {
829
- default: coreColors.gray200,
830
- active: coreColors.gray600
831
- },
832
- accent: {
833
- default: coreColors.accent
834
- },
835
- negative: {
836
- default: coreColors.red700
837
- }
838
- },
839
- background: {
840
- primary: {
841
- default: coreColors.main,
842
- active: coreColors.complimentary
843
- },
844
- secondary: {
845
- default: coreColors.gray200,
846
- active: coreColors.white
847
- },
848
- muted: {
849
- default: coreColors.gray600,
850
- active: coreColors.gray200,
851
- disabled: coreColors.gray200
852
- },
853
- accent: {
854
- default: coreColors.accent
855
- },
856
- negative: {
857
- default: coreColors.red700
858
- }
810
+ var BruttalColors = {
811
+ navigation: {
812
+ background: {
813
+ primary: {
814
+ default: coreColors.complimentary
859
815
  },
860
- border: {
861
- primary: {
862
- default: coreColors.main
863
- },
864
- secondary: {
865
- default: coreColors.black,
866
- active: coreColors.darkNeutral
867
- },
868
- muted: {
869
- default: coreColors.gray600
870
- },
871
- accent: {
872
- default: coreColors.accent
873
- },
874
- caution: {
875
- default: coreColors.gray500
876
- },
877
- negative: {
878
- default: coreColors.red700
879
- }
816
+ muted: {
817
+ default: coreColors.complimentary
880
818
  }
881
819
  },
882
- display: {
883
- background: {
884
- primary: {
885
- default: coreColors.white,
886
- active: coreColors.main
887
- },
888
- secondary: {
889
- default: coreColors.white
890
- },
891
- muted: {
892
- default: coreColors.gray200
893
- }
820
+ text: {
821
+ primary: {
822
+ default: coreColors.black
894
823
  },
895
- text: {
896
- primary: {
897
- default: coreColors.black
898
- },
899
- secondary: {
900
- default: coreColors.darkNeutral
901
- },
902
- muted: {
903
- default: coreColors.gray600,
904
- active: coreColors.gray200
905
- },
906
- accent: coreColors.accent,
907
- negative: {
908
- default: coreColors.red700
909
- }
824
+ accent: {
825
+ default: coreColors.darkNeutral
910
826
  },
911
- border: {
912
- primary: {
913
- default: coreColors.main
914
- },
915
- secondary: {
916
- default: coreColors.black
917
- },
918
- muted: {
919
- default: coreColors.gray600,
920
- active: coreColors.darkNeutral
921
- },
922
- accent: {
923
- default: coreColors.accent
924
- },
925
- negative: {
926
- default: coreColors.red700
927
- }
928
- }
929
- },
930
- feedback: {
931
- background: {
932
- primary: {
933
- default: coreColors.white
934
- }
827
+ muted: {
828
+ default: coreColors.gray600
935
829
  },
936
- text: {
937
- primary: {
938
- default: coreColors.white
939
- },
940
- secondary: {
941
- default: coreColors.black
942
- }
830
+ negative: {
831
+ default: coreColors.red700
943
832
  }
944
833
  }
945
834
  },
946
- fonts: coreFonts,
947
- radii,
948
- /**
949
- * Global styles
950
- */
951
- styles: {
952
- root: {
953
- fontFamily: "body",
954
- fontWeight: "normal",
955
- fontSize: "md",
956
- zIndex: "base",
957
- margin: 0,
958
- padding: 0,
959
- backgroundColor: "navigation.background.primary.default",
960
- ".react-select__control": {
961
- border: "md",
962
- borderRadius: "sm",
963
- lineHeight: "normal"
835
+ action: {
836
+ text: {
837
+ primary: {
838
+ default: coreColors.black
964
839
  },
965
- /**
966
- * HTML elements
967
- */
968
- table: {
969
- borderCollapse: "collapse"
840
+ secondary: {
841
+ default: coreColors.white,
842
+ active: coreColors.complimentary
970
843
  },
971
- th: {
972
- paddingX: "4",
973
- paddingY: "4"
844
+ accent: {
845
+ default: coreColors.white
974
846
  },
975
- tr: {
976
- borderBottom: "default"
847
+ negative: {
848
+ default: coreColors.white
977
849
  },
978
- td: {
979
- paddingX: "6",
980
- paddingY: "4"
850
+ caution: {
851
+ default: coreColors.white
981
852
  },
982
- a: {
983
- fontFamily: "body",
984
- textDecorationLine: "underline",
985
- lineHeight: "normal",
986
- color: "navigation.text.primary.default",
987
- "&[aria-invalid=\"true\"]": {
988
- color: "feedback.text.negative.default"
989
- },
990
- "&.quiet:not(:hover)": {
991
- textDecorationLine: "none"
992
- },
993
- ":visited": {
994
- color: "navigation.text.accent.default"
995
- },
996
- "&.warning": {
997
- color: "feedback.text.caution.default"
998
- }
853
+ muted: {
854
+ default: coreColors.gray600
999
855
  }
1000
- }
1001
- },
1002
- /**
1003
- * Components
1004
- */
1005
- badges: {
1006
- positive: {
1007
- color: "action.text.accent.default",
1008
- bg: "action.background.accent.active"
1009
856
  },
1010
- negative: {
1011
- color: "action.text.negative.default",
1012
- bg: "action.background.negative.default"
1013
- },
1014
- neutral: {
1015
- color: "action.text.primary.default",
1016
- bg: "action.background.secondary.default",
1017
- border: "sm",
1018
- borderColor: "action.border.muted.default"
1019
- },
1020
- informative: {
1021
- color: "action.text.caution.default",
1022
- bg: "action.background.caution.default"
1023
- },
1024
- muted: {
1025
- color: "action.text.muted.default",
1026
- bg: "action.background.muted.default"
1027
- }
1028
- },
1029
- buttons: {
1030
- accent: {
1031
- backgroundColor: "action.background.accent.default",
1032
- color: "action.text.accent.default",
1033
- borderRadius: "sm",
1034
- ":hover:not(:active,[disabled])": {
1035
- filter: "brightness(90%)"
857
+ background: {
858
+ primary: {
859
+ default: coreColors.main,
860
+ active: coreColors.gray600,
861
+ disabled: coreColors.gray200
1036
862
  },
1037
- ":disabled": {
1038
- cursor: "default",
1039
- backgroundColor: "action.background.muted.default",
1040
- borderColor: "action.border.muted.default",
1041
- color: "action.text.muted.default"
1042
- }
1043
- },
1044
- primary: {
1045
- backgroundColor: "action.background.primary.default",
1046
- color: "action.text.secondary.default",
1047
- borderRadius: "sm",
1048
- ":hover:not(:active,[disabled])": {
1049
- filter: "brightness(90%)"
863
+ secondary: {
864
+ default: coreColors.gray100,
865
+ active: coreColors.darkNeutral
1050
866
  },
1051
- ":active": {
1052
- backgroundColor: "action.background.primary.default",
1053
- color: "action.text.secondary.default"
867
+ negative: {
868
+ default: coreColors.red700
1054
869
  },
1055
- ":disabled": {
1056
- cursor: "default",
1057
- backgroundColor: "action.background.muted.default",
1058
- borderColor: "action.border.muted.default",
1059
- color: "action.text.muted.default"
1060
- }
1061
- },
1062
- secondary: {
1063
- backgroundColor: "action.background.secondary.default",
1064
- color: "action.text.primary.default",
1065
- borderRadius: "sm",
1066
- border: "md",
1067
- borderColor: "action.border.primary.default",
1068
- ":hover:not(:active,[disabled])": {
1069
- filter: "brightness(90%)"
870
+ accent: {
871
+ default: coreColors.accent,
872
+ active: coreColors.teal600
1070
873
  },
1071
- ":disabled": {
1072
- cursor: "default",
1073
- backgroundColor: "action.background.muted.default",
1074
- borderColor: "action.border.muted.default",
1075
- color: "action.text.muted.default"
1076
- }
1077
- },
1078
- destructive: {
1079
- color: "action.text.negative.default",
1080
- backgroundColor: "action.background.negative.default",
1081
- ":hover:not(:active,[disabled])": {
1082
- filter: "brightness(90%)"
874
+ caution: {
875
+ default: coreColors.amber600
1083
876
  },
1084
- ":disabled": {
1085
- cursor: "default",
1086
- backgroundColor: "action.background.muted.default",
1087
- borderColor: "action.border.muted.default",
1088
- color: "action.text.muted.default"
877
+ muted: {
878
+ default: coreColors.gray200
1089
879
  }
1090
880
  },
1091
- close: {
1092
- color: "action.background.primary.default",
1093
- ":hover:not(:active,[disabled])": {
1094
- filter: "brightness(90%)",
1095
- cursor: "pointer"
881
+ border: {
882
+ primary: {
883
+ default: coreColors.black
884
+ },
885
+ secondary: {
886
+ default: coreColors.gray500,
887
+ active: coreColors.darkNeutral
1096
888
  },
1097
- ":active": {
1098
- color: "action.background.primary.active"
889
+ muted: {
890
+ default: coreColors.gray600
1099
891
  },
1100
- ":disabled": {
1101
- cursor: "default",
1102
- color: "action.background.primary.disabled"
892
+ accent: {
893
+ default: coreColors.accent
1103
894
  }
1104
895
  }
1105
896
  },
1106
- forms: {
1107
- label: {
1108
- color: "display.text.primary.default",
1109
- "&:is([aria-disabled=\"true\"])": {
1110
- color: "display.text.muted.default"
1111
- },
1112
- "& > span[aria-label=\"tooltip\"]": {
1113
- fontSize: "sm",
1114
- marginLeft: "2"
897
+ input: {
898
+ text: {
899
+ primary: {
900
+ default: coreColors.white
1115
901
  },
1116
- "& > div:has(input[type=\"checkbox\"]) > svg": {
1117
- marginRight: 0
902
+ secondary: {
903
+ default: coreColors.black
1118
904
  },
1119
- "&:has(input[type=\"checkbox\"]:disabled)": {
1120
- color: "display.text.muted.default"
905
+ muted: {
906
+ default: coreColors.gray200,
907
+ active: coreColors.gray600
1121
908
  },
1122
- "&:has(div > input[type=\"radio\"])": {
1123
- alignItems: "center"
909
+ accent: {
910
+ default: coreColors.accent
1124
911
  },
1125
- "&:has(div > input[type=\"radio\"]:disabled)": {
1126
- color: "display.text.muted.active"
912
+ negative: {
913
+ default: coreColors.red700
1127
914
  }
1128
915
  },
1129
- radio: {
1130
- color: "input.text.secondary.default",
1131
- fontFamily: "body",
1132
- fontSize: "lg",
1133
- "input:disabled ~ &": {
1134
- color: "input.text.muted.default"
916
+ background: {
917
+ primary: {
918
+ default: coreColors.main,
919
+ active: coreColors.complimentary
1135
920
  },
1136
- "input:checked ~ &": {
1137
- color: "input.text.accent.default"
921
+ secondary: {
922
+ default: coreColors.gray200,
923
+ active: coreColors.white
1138
924
  },
1139
- "input[aria-invalid=\"true\"] ~ &": {
1140
- color: "input.text.negative.default"
925
+ muted: {
926
+ default: coreColors.gray600,
927
+ active: coreColors.gray200,
928
+ disabled: coreColors.gray200
1141
929
  },
1142
- "input:focus ~ &": {
1143
- bg: "transparent"
930
+ accent: {
931
+ default: coreColors.accent
1144
932
  },
1145
- "&:is(svg, svg + svg)": {
1146
- width: "min",
1147
- height: "min"
933
+ negative: {
934
+ default: coreColors.red700
1148
935
  }
1149
936
  },
1150
- checkbox: {
1151
- "input:focus ~ &": {
1152
- bg: "transparent"
1153
- },
1154
- "input:not(:checked) ~ &": {
1155
- color: "input.text.secondary.default"
937
+ border: {
938
+ primary: {
939
+ default: coreColors.main
1156
940
  },
1157
- "input:checked ~ &": {
1158
- color: "input.text.accent.default"
941
+ secondary: {
942
+ default: coreColors.black,
943
+ active: coreColors.darkNeutral
1159
944
  },
1160
- "input:disabled ~ &": {
1161
- color: "input.text.muted.default"
945
+ muted: {
946
+ default: coreColors.gray600
1162
947
  },
1163
- "input:disabled ~ & path": {
1164
- backgroundColor: "input.background.muted.default"
948
+ accent: {
949
+ default: coreColors.accent
1165
950
  },
1166
- "input[aria-invalid=\"true\"] ~ &": {
1167
- color: "display.text.negative.default"
951
+ caution: {
952
+ default: coreColors.gray500
1168
953
  },
1169
- "&:is(svg, svg + svg)": {
1170
- width: "min",
1171
- height: "min"
954
+ negative: {
955
+ default: coreColors.red700
1172
956
  }
1173
- },
1174
- input: {
1175
- color: "display.text.primary.default",
1176
- border: "md",
1177
- borderColor: "display.border.muted.default",
1178
- borderRadius: "sm",
1179
- backgroundColor: "display.background.secondary.default",
1180
- fontSize: "md",
1181
- lineHeight: "normal",
1182
- "::placeholder": {
1183
- color: "display.text.muted.default"
1184
- },
1185
- ":focus-within": {
1186
- outlineColor: "display.border.muted.active"
1187
- },
1188
- ":disabled": {
1189
- backgroundColor: "display.background.muted.default",
1190
- color: "display.text.muted.default",
1191
- border: "sm",
1192
- borderColor: "display.border.muted.default"
1193
- },
1194
- "&[aria-invalid=\"true\"]": {
1195
- borderColor: "display.border.negative.default",
1196
- ":focus-within": {
1197
- outlineColor: "display.border.negative.default"
1198
- }
957
+ }
958
+ },
959
+ display: {
960
+ background: {
961
+ primary: {
962
+ default: coreColors.white,
963
+ active: coreColors.main
1199
964
  },
1200
- "&[aria-invalid=\"true\"] ~ span:has(iconify-icon)": {
1201
- color: "display.text.negative.default"
965
+ secondary: {
966
+ default: coreColors.white
1202
967
  },
1203
- ".is-warning &": {
1204
- border: "md",
1205
- borderColor: "feedback.border.caution.active",
1206
- ":focus-within": {
1207
- outlineColor: "feedback.border.caution.active"
1208
- }
968
+ muted: {
969
+ default: coreColors.gray200
1209
970
  }
1210
971
  },
1211
- inputNumber: {
1212
- color: "display.text.primary.default",
1213
- border: "md",
1214
- borderColor: "display.border.muted.default",
1215
- borderRadius: "sm",
1216
- ":disabled": {
1217
- border: "sm",
1218
- borderColor: "display.border.muted.default",
1219
- color: "display.text.muted.active"
972
+ text: {
973
+ primary: {
974
+ default: coreColors.black
1220
975
  },
1221
- ":disabled ~ span > iconify-icon": {
1222
- color: "display.text.muted.active",
1223
- cursor: "default"
976
+ secondary: {
977
+ default: coreColors.darkNeutral
1224
978
  },
1225
- ":focus-within": {
1226
- outlineColor: "display.border.muted.active"
979
+ muted: {
980
+ default: coreColors.gray600,
981
+ active: coreColors.gray200
1227
982
  },
1228
- ":not(:disabled, [aria-invalid=\"true\"]):hover": {
1229
- borderColor: "display.border.muted.active"
983
+ accent: coreColors.accent,
984
+ negative: {
985
+ default: coreColors.red700
986
+ }
987
+ },
988
+ border: {
989
+ primary: {
990
+ default: coreColors.main
1230
991
  },
1231
- ":not(:disabled, [aria-invalid=\"true\"]) ~ span:has(iconify-icon):hover": {
1232
- color: "display.text.accent.default"
992
+ secondary: {
993
+ default: coreColors.black
1233
994
  },
1234
- "& ~ span:has(iconify-icon)": {
1235
- fontSize: "md"
995
+ muted: {
996
+ default: coreColors.gray600,
997
+ active: coreColors.darkNeutral
1236
998
  },
1237
- "&[aria-invalid=\"true\"]": {
1238
- border: "md",
1239
- borderColor: "display.border.negative.default",
1240
- color: "display.text.negative.default",
1241
- outlineColor: "display.border.negative.default"
999
+ accent: {
1000
+ default: coreColors.accent
1242
1001
  },
1243
- "&[aria-invalid=\"true\"] ~ span>iconify-icon": {
1244
- color: "display.text.negative.default"
1002
+ negative: {
1003
+ default: coreColors.red700
1004
+ }
1005
+ }
1006
+ },
1007
+ feedback: {
1008
+ background: {
1009
+ primary: {
1010
+ default: coreColors.white
1245
1011
  }
1246
1012
  },
1247
- select: {
1248
- color: "display.text.primary.default",
1249
- backgroundColor: "display.background.secondary.default",
1250
- border: "md",
1251
- borderColor: "display.border.muted.default",
1252
- borderRadius: "sm",
1253
- ":disabled": {
1254
- border: "sm",
1255
- borderColor: "display.border.muted.default",
1256
- backgroundColor: "display.background.muted.default",
1257
- color: "display.text.muted.default"
1013
+ text: {
1014
+ primary: {
1015
+ default: coreColors.white
1258
1016
  },
1259
- ":disabled ~ * > span:has(iconify-icon)": {
1260
- color: "display.text.muted.default"
1261
- },
1262
- "&[aria-invalid=\"true\"]": {
1263
- border: "md",
1264
- borderColor: "display.border.negative.default",
1017
+ secondary: {
1018
+ default: coreColors.black
1019
+ }
1020
+ }
1021
+ }
1022
+ };
1023
+
1024
+ //#endregion
1025
+ //#region src/themes/Bruttal/BruttalForms.ts
1026
+ var BruttalForms = {
1027
+ label: {
1028
+ color: "display.text.primary.default",
1029
+ "&:is([aria-disabled=\"true\"])": {
1030
+ color: "display.text.muted.default"
1031
+ },
1032
+ "& > span[aria-label=\"tooltip\"]": {
1033
+ fontSize: "sm",
1034
+ marginLeft: "2"
1035
+ },
1036
+ "& > div:has(input[type=\"checkbox\"]) > svg": {
1037
+ marginRight: 0
1038
+ },
1039
+ "&:has(input[type=\"checkbox\"]:disabled)": {
1040
+ color: "display.text.muted.default"
1041
+ },
1042
+ "&:has(div > input[type=\"radio\"])": {
1043
+ alignItems: "center"
1044
+ },
1045
+ "&:has(div > input[type=\"radio\"]:disabled)": {
1046
+ color: "display.text.muted.active"
1047
+ }
1048
+ },
1049
+ radio: {
1050
+ color: "input.text.secondary.default",
1051
+ fontFamily: "body",
1052
+ fontSize: "lg",
1053
+ "input:disabled ~ &": {
1054
+ color: "input.text.muted.default"
1055
+ },
1056
+ "input:checked ~ &": {
1057
+ color: "input.text.accent.default"
1058
+ },
1059
+ "input[aria-invalid=\"true\"] ~ &": {
1060
+ color: "input.text.negative.default"
1061
+ },
1062
+ "input:focus ~ &": {
1063
+ bg: "transparent"
1064
+ },
1065
+ "&:is(svg, svg + svg)": {
1066
+ width: "16px",
1067
+ height: "16px",
1068
+ flexShrink: 0
1069
+ }
1070
+ },
1071
+ checkbox: {
1072
+ "input:focus ~ &": {
1073
+ bg: "transparent"
1074
+ },
1075
+ "input:not(:checked) ~ &": {
1076
+ color: "input.text.secondary.default"
1077
+ },
1078
+ "input:checked ~ &": {
1079
+ color: "input.text.accent.default"
1080
+ },
1081
+ "input:disabled ~ &": {
1082
+ color: "input.text.muted.default"
1083
+ },
1084
+ "input:disabled ~ & path": {
1085
+ backgroundColor: "input.background.muted.default"
1086
+ },
1087
+ "input[aria-invalid=\"true\"] ~ &": {
1088
+ color: "display.text.negative.default"
1089
+ },
1090
+ "&:is(svg, svg + svg)": {
1091
+ width: "16px",
1092
+ height: "16px",
1093
+ flexShrink: 0
1094
+ }
1095
+ },
1096
+ input: {
1097
+ color: "display.text.primary.default",
1098
+ border: "md",
1099
+ borderColor: "display.border.muted.default",
1100
+ borderRadius: "sm",
1101
+ backgroundColor: "display.background.secondary.default",
1102
+ fontSize: "md",
1103
+ lineHeight: "normal",
1104
+ "::placeholder": {
1105
+ color: "display.text.muted.default"
1106
+ },
1107
+ ":focus-within": {
1108
+ outlineColor: "display.border.muted.active"
1109
+ },
1110
+ ":disabled": {
1111
+ backgroundColor: "display.background.muted.default",
1112
+ color: "display.text.muted.default",
1113
+ border: "sm",
1114
+ borderColor: "display.border.muted.default"
1115
+ },
1116
+ "&[aria-invalid=\"true\"]": {
1117
+ borderColor: "display.border.negative.default",
1118
+ ":focus-within": {
1265
1119
  outlineColor: "display.border.negative.default"
1266
- },
1267
- "&[aria-invalid=\"true\"] ~ * > span.error-icon": {
1268
- color: "display.text.negative.default"
1269
1120
  }
1270
1121
  },
1271
- textarea: {
1272
- color: "display.text.primary.default",
1122
+ "&[aria-invalid=\"true\"] ~ span:has(iconify-icon)": {
1123
+ color: "display.text.negative.default"
1124
+ },
1125
+ ".is-warning &": {
1273
1126
  border: "md",
1274
- borderColor: "input.border.muted.default",
1275
- backgroundColor: "display.background.secondary.default",
1276
- borderRadius: "sm",
1127
+ borderColor: "feedback.border.caution.active",
1277
1128
  ":focus-within": {
1278
- outlineColor: "input.border.primary.default"
1279
- },
1280
- ":disabled::placeholder": {
1281
- color: "input.text.muted.active"
1282
- },
1283
- ":disabled": {
1284
- borderColor: "input.border.muted.default",
1285
- backgroundColor: "input.background.muted.active",
1286
- border: "sm",
1287
- color: "input.text.muted.active"
1288
- },
1289
- "&[aria-invalid=\"true\"]": {
1290
- borderColor: "input.border.negative.default",
1291
- outlineColor: "input.border.negative.default"
1292
- },
1293
- "&[aria-invalid=\"true\"]+span>iconify-icon": {
1294
- color: "input.text.negative.default",
1295
- fontSize: "lg"
1129
+ outlineColor: "feedback.border.caution.active"
1296
1130
  }
1297
1131
  }
1298
1132
  },
1299
- text: {
1300
- default: {
1301
- color: "navigation.text.primary.default",
1302
- fontFamily: "body"
1133
+ inputNumber: {
1134
+ color: "display.text.primary.default",
1135
+ border: "md",
1136
+ borderColor: "display.border.muted.default",
1137
+ borderRadius: "sm",
1138
+ ":disabled": {
1139
+ border: "sm",
1140
+ borderColor: "display.border.muted.default",
1141
+ color: "display.text.muted.active"
1303
1142
  },
1304
- title: {
1305
- fontFamily: "heading",
1306
- fontSize: "5xl",
1307
- lineSpace: "3.5"
1143
+ ":disabled ~ span > iconify-icon": {
1144
+ color: "display.text.muted.active",
1145
+ cursor: "default"
1308
1146
  },
1309
- help: {
1310
- color: "navigation.text.primary.default",
1311
- "&[aria-disabled=\"true\"]": {
1312
- color: "navigation.text.muted.default"
1313
- },
1314
- negative: {
1315
- color: "navigation.text.negative.default",
1316
- "&[aria-disabled=\"true\"]": {
1317
- color: "navigation.text.muted.default"
1318
- }
1319
- }
1147
+ ":focus-within": {
1148
+ outlineColor: "display.border.muted.active"
1320
1149
  },
1321
- headline: {
1322
- fontFamily: "heading",
1323
- fontWeight: "bold",
1324
- lineHeight: "moderate",
1325
- fontSize: "5xl",
1326
- letterSpacing: "wide"
1150
+ ":not(:disabled, [aria-invalid=\"true\"]):hover": {
1151
+ borderColor: "display.border.muted.active"
1327
1152
  },
1328
- subheadline: {
1329
- fontFamily: "body",
1330
- fontWeight: "bold",
1331
- lineHeight: "normal",
1332
- fontSize: "xl",
1333
- letterSpacing: "wide"
1153
+ ":not(:disabled, [aria-invalid=\"true\"]) ~ span:has(iconify-icon):hover": {
1154
+ color: "display.text.accent.default"
1334
1155
  },
1335
- h1: {
1336
- fontFamily: "heading",
1337
- fontWeight: "extrabold",
1338
- lineHeight: "normal",
1339
- fontSize: "3xl",
1340
- letterSpacing: "wide"
1156
+ "& ~ span:has(iconify-icon)": {
1157
+ fontSize: "md"
1341
1158
  },
1342
- h2: {
1343
- fontFamily: "heading",
1344
- fontWeight: "bold",
1345
- lineHeight: "normal",
1346
- fontSize: "2xl",
1347
- letterSpacing: "wide"
1159
+ "&[aria-invalid=\"true\"]": {
1160
+ border: "md",
1161
+ borderColor: "display.border.negative.default",
1162
+ color: "display.text.negative.default",
1163
+ outlineColor: "display.border.negative.default"
1348
1164
  },
1349
- h3: {
1350
- fontFamily: "heading",
1351
- fontWeight: "bold",
1352
- lineHeight: "normal",
1353
- fontSize: "xl",
1354
- letterSpacing: "wide"
1165
+ "&[aria-invalid=\"true\"] ~ span>iconify-icon": {
1166
+ color: "display.text.negative.default"
1167
+ }
1168
+ },
1169
+ select: {
1170
+ color: "display.text.primary.default",
1171
+ backgroundColor: "display.background.secondary.default",
1172
+ border: "md",
1173
+ borderColor: "display.border.muted.default",
1174
+ borderRadius: "sm",
1175
+ ":disabled": {
1176
+ border: "sm",
1177
+ borderColor: "display.border.muted.default",
1178
+ backgroundColor: "display.background.muted.default",
1179
+ color: "display.text.muted.default"
1355
1180
  },
1356
- h4: {
1357
- fontFamily: "heading",
1358
- fontWeight: "semibold",
1359
- lineHeight: "normal",
1360
- fontSize: "lg",
1361
- letterSpacing: "wide"
1181
+ ":disabled ~ * > span:has(iconify-icon)": {
1182
+ color: "display.text.muted.default"
1183
+ },
1184
+ "&[aria-invalid=\"true\"]": {
1185
+ border: "md",
1186
+ borderColor: "display.border.negative.default",
1187
+ outlineColor: "display.border.negative.default"
1188
+ },
1189
+ "&[aria-invalid=\"true\"] ~ * > span.error-icon": {
1190
+ color: "display.text.negative.default"
1191
+ }
1192
+ },
1193
+ textarea: {
1194
+ color: "display.text.primary.default",
1195
+ border: "md",
1196
+ borderColor: "input.border.muted.default",
1197
+ backgroundColor: "display.background.secondary.default",
1198
+ borderRadius: "sm",
1199
+ ":focus-within": {
1200
+ outlineColor: "input.border.primary.default"
1201
+ },
1202
+ ":disabled::placeholder": {
1203
+ color: "input.text.muted.active"
1204
+ },
1205
+ ":disabled": {
1206
+ borderColor: "input.border.muted.default",
1207
+ backgroundColor: "input.background.muted.active",
1208
+ border: "sm",
1209
+ color: "input.text.muted.active"
1210
+ },
1211
+ "&[aria-invalid=\"true\"]": {
1212
+ borderColor: "input.border.negative.default",
1213
+ outlineColor: "input.border.negative.default"
1214
+ },
1215
+ "&[aria-invalid=\"true\"]+span>iconify-icon": {
1216
+ color: "input.text.negative.default",
1217
+ fontSize: "lg"
1218
+ }
1219
+ }
1220
+ };
1221
+
1222
+ //#endregion
1223
+ //#region src/themes/Bruttal/BruttalStyles.ts
1224
+ var BruttalStyles = {
1225
+ root: {
1226
+ fontFamily: "body",
1227
+ fontWeight: "normal",
1228
+ fontSize: "md",
1229
+ zIndex: "base",
1230
+ margin: 0,
1231
+ padding: 0,
1232
+ backgroundColor: "navigation.background.primary.default",
1233
+ ".react-select__control": {
1234
+ border: "md",
1235
+ borderRadius: "sm",
1236
+ lineHeight: "normal"
1362
1237
  },
1363
- h5: {
1364
- fontFamily: "heading",
1365
- fontWeight: "semibold",
1238
+ /**
1239
+ * HTML elements
1240
+ */
1241
+ table: {
1242
+ borderCollapse: "collapse"
1243
+ },
1244
+ th: {
1245
+ paddingX: "4",
1246
+ paddingY: "4"
1247
+ },
1248
+ tr: {
1249
+ borderBottom: "default"
1250
+ },
1251
+ td: {
1252
+ paddingX: "6",
1253
+ paddingY: "4"
1254
+ },
1255
+ a: {
1256
+ fontFamily: "body",
1257
+ textDecorationLine: "underline",
1366
1258
  lineHeight: "normal",
1367
- fontSize: "md",
1368
- letterSpacing: "wide"
1259
+ color: "navigation.text.primary.default",
1260
+ "&[aria-invalid=\"true\"]": {
1261
+ color: "feedback.text.negative.default"
1262
+ },
1263
+ "&.quiet:not(:hover)": {
1264
+ textDecorationLine: "none"
1265
+ },
1266
+ ":visited": {
1267
+ color: "navigation.text.accent.default"
1268
+ },
1269
+ "&.warning": {
1270
+ color: "feedback.text.caution.default"
1271
+ }
1272
+ }
1273
+ }
1274
+ };
1275
+
1276
+ //#endregion
1277
+ //#region src/themes/Bruttal/BruttalText.ts
1278
+ var BruttalText = {
1279
+ default: {
1280
+ color: "navigation.text.primary.default",
1281
+ fontFamily: "body"
1282
+ },
1283
+ title: {
1284
+ fontFamily: "heading",
1285
+ fontSize: "5xl",
1286
+ lineSpace: "3.5"
1287
+ },
1288
+ help: {
1289
+ color: "navigation.text.primary.default",
1290
+ "&[aria-disabled=\"true\"]": {
1291
+ color: "navigation.text.muted.default"
1292
+ },
1293
+ negative: {
1294
+ color: "navigation.text.negative.default",
1295
+ "&[aria-disabled=\"true\"]": {
1296
+ color: "navigation.text.muted.default"
1297
+ }
1369
1298
  }
1299
+ },
1300
+ headline: {
1301
+ fontFamily: "heading",
1302
+ fontWeight: "bold",
1303
+ lineHeight: "moderate",
1304
+ fontSize: "5xl",
1305
+ letterSpacing: "wide"
1306
+ },
1307
+ subheadline: {
1308
+ fontFamily: "body",
1309
+ fontWeight: "bold",
1310
+ lineHeight: "normal",
1311
+ fontSize: "xl",
1312
+ letterSpacing: "wide"
1313
+ },
1314
+ h1: {
1315
+ fontFamily: "heading",
1316
+ fontWeight: "extrabold",
1317
+ lineHeight: "normal",
1318
+ fontSize: "3xl",
1319
+ letterSpacing: "wide"
1320
+ },
1321
+ h2: {
1322
+ fontFamily: "heading",
1323
+ fontWeight: "bold",
1324
+ lineHeight: "normal",
1325
+ fontSize: "2xl",
1326
+ letterSpacing: "wide"
1327
+ },
1328
+ h3: {
1329
+ fontFamily: "heading",
1330
+ fontWeight: "bold",
1331
+ lineHeight: "normal",
1332
+ fontSize: "xl",
1333
+ letterSpacing: "wide"
1334
+ },
1335
+ h4: {
1336
+ fontFamily: "heading",
1337
+ fontWeight: "semibold",
1338
+ lineHeight: "normal",
1339
+ fontSize: "lg",
1340
+ letterSpacing: "wide"
1341
+ },
1342
+ h5: {
1343
+ fontFamily: "heading",
1344
+ fontWeight: "semibold",
1345
+ lineHeight: "normal",
1346
+ fontSize: "md",
1347
+ letterSpacing: "wide"
1370
1348
  }
1371
1349
  };
1372
1350
 
1351
+ //#endregion
1352
+ //#region src/themes/Bruttal/BruttalTheme.ts
1353
+ var coreFonts = {
1354
+ body: "\"Atkinson Hyperlegible\", sans-serif",
1355
+ heading: "\"Work Sans\", sans-serif",
1356
+ mono: "\"Inconsolata\", sans-serif"
1357
+ };
1358
+ var radii = {
1359
+ none: "0",
1360
+ "2xs": "0.0625rem",
1361
+ xs: "0.125rem",
1362
+ sm: "0.25rem",
1363
+ md: "0.375rem",
1364
+ lg: "0.25rem",
1365
+ xl: "0.25rem",
1366
+ "2xl": "0.25rem",
1367
+ "3xl": "0.25rem",
1368
+ "4xl": "0.25rem",
1369
+ full: "9999px"
1370
+ };
1371
+ var BruttalTheme = {
1372
+ /**
1373
+ * Tokens
1374
+ */
1375
+ borders: require_defaultTheme.defaultTheme.borders,
1376
+ sizes: require_defaultTheme.defaultTheme.sizes,
1377
+ fontSizes: require_defaultTheme.defaultTheme.fontSizes,
1378
+ fontWeights: require_defaultTheme.defaultTheme.fontWeights,
1379
+ letterSpacings: require_defaultTheme.defaultTheme.letterSpacings,
1380
+ space: require_defaultTheme.defaultTheme.space,
1381
+ lineHeights: require_defaultTheme.defaultTheme.lineHeights,
1382
+ zIndices: require_defaultTheme.defaultTheme.zIndices,
1383
+ colors: BruttalColors,
1384
+ fonts: coreFonts,
1385
+ radii,
1386
+ /**
1387
+ * Global styles
1388
+ */
1389
+ styles: BruttalStyles,
1390
+ /**
1391
+ * Components
1392
+ */
1393
+ badges: BruttalBadges,
1394
+ buttons: BruttalButtons,
1395
+ forms: BruttalForms,
1396
+ text: BruttalText
1397
+ };
1398
+
1373
1399
  //#endregion
1374
1400
  Object.defineProperty(exports, 'BrutalIcons', {
1375
1401
  enumerable: true,