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