@ttoss/theme 1.8.6 → 2.0.1

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.
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { __commonJS, __toESM } from "../../chunk-ICKGF6JN.js";
2
+ import { __commonJS, __toESM, defaultTheme } from "../../chunk-ZYSSWTLH.js";
3
3
 
4
4
  // ../../node_modules/.pnpm/@iconify+icons-carbon@1.2.20/node_modules/@iconify/icons-carbon/add-filled.js
5
5
  var require_add_filled = __commonJS({
@@ -765,190 +765,11 @@ Object.entries(BrutalIcons).forEach(([key, icon]) => {
765
765
  // src/themes/Bruttal/BruttalFonts.ts
766
766
  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"];
767
767
 
768
- // src/themes/Bruttal/helpers/geometricCalc.ts
769
- var SIZE_TYPE = "rem";
770
- var calcMultiplyingValues = (initialValue, base, ratio, sizeType = SIZE_TYPE) => {
771
- const result = initialValue * Math.pow(base, ratio);
772
- return `${result.toFixed(2)}${sizeType}`;
773
- };
774
- var calcDividingValues = (initialValue, base, ratio, sizeType = SIZE_TYPE) => {
775
- const result = initialValue / Math.pow(base, ratio);
776
- return `${result.toFixed(2)}${sizeType}`;
777
- };
778
-
779
- // src/themes/Bruttal/tokens/fontSizes.ts
780
- var SIZE_TYPE2 = "rem";
781
- var BASE = 1;
782
- var MULTIPLIER_FACTOR = 1.333;
783
- var fontSizes = {
784
- "2xs": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, -3),
785
- xs: calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, -2),
786
- sm: calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, -1),
787
- base: `${BASE}${SIZE_TYPE2}`,
788
- lg: calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 1),
789
- xl: calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 2),
790
- "2xl": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 3),
791
- "3xl": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 4),
792
- "4xl": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 5),
793
- "5xl": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 6),
794
- "6xl": calcMultiplyingValues(BASE, MULTIPLIER_FACTOR, 7)
795
- };
796
-
797
- // src/themes/Bruttal/tokens/fontWeights.ts
798
- var fontWeights = {
799
- thin: 100,
800
- extralight: 200,
801
- light: 300,
802
- normal: 400,
803
- medium: 500,
804
- semibold: 600,
805
- bold: 700,
806
- extrabold: 800
807
- };
808
-
809
- // src/themes/Bruttal/tokens/letterSpacings.ts
810
- var letterSpacings = {
811
- tighter: "-0.05em",
812
- tight: "-0.025em",
813
- regular: "0em",
814
- wide: "0.05em",
815
- wider: "0.1em",
816
- widest: "0.5em"
817
- };
818
-
819
- // src/themes/Bruttal/tokens/lineHeights.ts
820
- var BASE2 = 100;
821
- var MULTIPLIER_FACTOR2 = 1.333;
822
- var SIZE_TYPE3 = "%";
823
- var lineHeights = {
824
- "2xs": calcMultiplyingValues(BASE2, MULTIPLIER_FACTOR2, -3, SIZE_TYPE3),
825
- xs: calcMultiplyingValues(BASE2, MULTIPLIER_FACTOR2, -2, SIZE_TYPE3),
826
- sm: calcDividingValues(BASE2, MULTIPLIER_FACTOR2, 1, SIZE_TYPE3),
827
- base: "normal",
828
- lg: calcMultiplyingValues(BASE2, MULTIPLIER_FACTOR2, 1, SIZE_TYPE3),
829
- xl: calcMultiplyingValues(BASE2, MULTIPLIER_FACTOR2, 2, SIZE_TYPE3),
830
- "2xl": calcMultiplyingValues(BASE2, MULTIPLIER_FACTOR2, 3, SIZE_TYPE3),
831
- flat: "100%"
832
- };
833
-
834
- // src/themes/Bruttal/tokens/space.ts
835
- var SIZE_TYPE4 = "rem";
836
- var MD = 0.5;
837
- var MULTIPLIER_FACTOR3 = 1.618;
838
- var space = {
839
- none: 0,
840
- "2xs": calcDividingValues(MD, MULTIPLIER_FACTOR3, 3),
841
- xs: calcDividingValues(MD, MULTIPLIER_FACTOR3, 2),
842
- sm: calcDividingValues(MD, MULTIPLIER_FACTOR3, 1),
843
- md: `${MD}${SIZE_TYPE4}`,
844
- lg: calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 1),
845
- xl: calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 2),
846
- "2xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 3),
847
- "3xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 4),
848
- "4xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 5),
849
- "5xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 6),
850
- "6xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 7),
851
- "7xl": calcMultiplyingValues(MD, MULTIPLIER_FACTOR3, 8)
852
- };
853
-
854
- // src/themes/Bruttal/tokens/zIndices.ts
855
- var zIndices = {
856
- deep: -9999,
857
- behind: -1,
858
- auto: "auto",
859
- base: 0,
860
- docked: 10,
861
- /**
862
- * Sticky is a CSS property that can be applied to an element to make it
863
- * "stick" or remain fixed in a specific position relative to the viewport
864
- * as the user scrolls the page. When an element is set as sticky, it will
865
- * initially behave like a normal element but once the user scrolls past a
866
- * certain threshold, it will stick to the designated position.
867
- */
868
- sticky: 100,
869
- /**
870
- * An overlay is a graphical element used in user interfaces to cover or
871
- * partially obscure the underlying content. It is typically a
872
- * semi-transparent or opaque layer that is positioned above other elements
873
- * on the screen. Overlays are commonly employed to provide visual effects,
874
- * create modal or pop-up dialogs, highlight or focus user attention, or
875
- * serve as a background for elements such as tooltips, modals, or dropdown
876
- * menus. They are often used to add depth, dimension, and visual hierarchy
877
- * to the interface by visually separating or layering content.
878
- */
879
- overlay: 1e3,
880
- /**
881
- * A modal is a user interface component that appears as a dialog or window
882
- * overlay on top of the main content, temporarily interrupting the user's
883
- * interaction flow. It is commonly used to display additional information,
884
- * request user input, or confirm an action. Modals typically have a higher
885
- * z-index value than other elements on the page to ensure they are visually
886
- * prominent and receive the user's full attention. They often feature a
887
- * close button or an overlay click outside the modal to dismiss them and
888
- * return to the underlying content. Modals help to focus user attention and
889
- * provide a context-specific interaction within a larger interface.
890
- */
891
- modal: 2e3,
892
- /**
893
- * A dropdown is a user interface component that presents a list of
894
- * selectable options when triggered by a user action, such as clicking on a
895
- * dropdown button or input field. When activated, a dropdown expands
896
- * vertically to reveal a list of choices, allowing the user to select a
897
- * single option. The selected option is then displayed in the closed state
898
- * of the dropdown. Dropdowns are commonly used to conserve space on a page
899
- * or provide a convenient way to choose from a predefined set of options.
900
- * They can be found in various contexts, such as navigation menus, form
901
- * inputs, or filter controls. Dropdowns enhance user interaction by
902
- * providing a compact and organized selection mechanism within the interface.
903
- */
904
- dropdown: 3e3,
905
- /**
906
- * A popover is a user interface component that provides contextual
907
- * information or options when triggered by a user action, such as hovering
908
- * over an element or clicking a button. It typically appears as a small
909
- * overlay near the triggering element, offering additional details, actions,
910
- * or related content. Popovers are designed to be non-intrusive and provide
911
- * concise information or quick actions without requiring the user to
912
- * navigate to a different page or screen. They are often used to enhance the
913
- * user's understanding or provide supplementary functionality within a
914
- * specific context. Popovers are commonly positioned above other elements in
915
- * the interface to ensure visibility and accessibility.
916
- */
917
- popover: 4e3,
918
- /**
919
- * A tooltip is a small, informative message or hint that appears when a user
920
- * hovers over or interacts with an element, such as a button, link, or icon.
921
- * It is typically displayed as a brief, contextual text or label that
922
- * provides additional information or clarifies the purpose of the element.
923
- * Tooltips are used to improve the user's understanding of interface
924
- * elements and enhance usability. They are generally positioned near the
925
- * associated element, often appearing as a small box or bubble that pops up
926
- * temporarily and disappears when the user moves the cursor away from the
927
- * element. Tooltips are designed to be unobtrusive and provide helpful
928
- * guidance or supplementary details without requiring the user to take any
929
- * additional actions.
930
- */
931
- tooltip: 5e3,
932
- /**
933
- * A toast is a brief, temporary notification or message that appears on the
934
- * screen to provide important information or alerts to the user. It
935
- * typically appears as a small box or banner positioned in a non-intrusive
936
- * area of the interface, such as the top or bottom of the screen. Toasts are
937
- * used to communicate updates, notifications, or status messages that may
938
- * require the user's attention but do not require immediate action. They are
939
- * designed to be unobtrusive and automatically disappear after a short
940
- * period, often with a fade-out animation. Toasts are commonly used in web
941
- * and mobile applications to provide timely feedback or inform the user
942
- * about completed actions, errors, or system updates.
943
- */
944
- toast: 6e3
945
- };
946
-
947
768
  // src/themes/Bruttal/BruttalTheme.ts
948
769
  var coreFonts = {
949
- main: '"Atkinson Hyperlegible", sans-serif',
950
- contrast: '"Work Sans", sans-serif',
951
- monospace: '"Inconsolata", sans-serif'
770
+ body: '"Atkinson Hyperlegible", sans-serif',
771
+ heading: '"Work Sans", sans-serif',
772
+ mono: '"Inconsolata", sans-serif'
952
773
  };
953
774
  var brandColors = {
954
775
  complimentary: "#f4f3f3",
@@ -980,81 +801,212 @@ var coreColors = {
980
801
  amber600: "#d97706",
981
802
  teal600: "#0d9488"
982
803
  };
983
- var coreBorders = {
984
- none: "0px solid",
985
- thin: "1px solid",
986
- medium: "2px solid",
987
- thick: "4px solid"
988
- };
989
- var coreRadii = {
990
- sharp: "0px",
991
- xs: "2px",
992
- sm: "4px",
993
- md: "6px",
994
- lg: "8px",
995
- xl: "12px",
996
- "2xl": "16px",
997
- "3xl": "24px",
998
- circle: "9999px"
999
- };
1000
804
  var BruttalTheme = {
1001
805
  /**
1002
806
  * Tokens
1003
807
  */
1004
- fontSizes,
1005
- fontWeights,
1006
- letterSpacings,
1007
- space,
1008
- lineHeights,
1009
- zIndices,
808
+ borders: defaultTheme.borders,
809
+ fontSizes: defaultTheme.fontSizes,
810
+ fontWeights: defaultTheme.fontWeights,
811
+ letterSpacings: defaultTheme.letterSpacings,
812
+ space: defaultTheme.space,
813
+ lineHeights: defaultTheme.lineHeights,
814
+ zIndices: defaultTheme.zIndices,
1010
815
  colors: {
1011
- background: coreColors.complimentary,
1012
- text: coreColors.black,
1013
- muted: coreColors.gray200,
1014
- onMuted: coreColors.gray600,
1015
- mutedOutline: coreColors.gray300,
1016
- danger: coreColors.red700,
1017
- onDanger: coreColors.white,
1018
- notice: coreColors.amber600,
1019
- onNotice: coreColors.white,
1020
- positive: coreColors.teal600,
1021
- onPositive: coreColors.white,
1022
- surface: coreColors.white,
1023
- contentHeader: coreColors.gray200,
1024
- onContentHeader: coreColors.black,
1025
- outline: coreColors.gray500,
1026
- primary: coreColors.main,
1027
- onPrimary: coreColors.white,
1028
- secondary: coreColors.gray100,
1029
- onSecondary: coreColors.black,
1030
- highlight: coreColors.darkNeutral,
1031
- onHighlight: coreColors.complimentary,
1032
- accent: coreColors.accent,
1033
- onAccent: coreColors.white,
1034
- neutral: coreColors.darkNeutral,
1035
- onNeutral: coreColors.lightNeutral,
1036
- underemphasize: coreColors.gray300
1037
- },
1038
- fonts: {
1039
- main: coreColors.main,
1040
- contrast: coreFonts.contrast,
1041
- body: coreFonts.main,
1042
- highlight: coreFonts.main,
1043
- caption: coreFonts.main
1044
- },
1045
- borders: {
1046
- default: coreBorders.thin,
1047
- secondary: coreBorders.medium,
1048
- muted: coreBorders.thin,
1049
- interaction: coreBorders.medium,
1050
- danger: coreBorders.medium,
1051
- highlight: coreBorders.medium
1052
- },
1053
- radii: {
1054
- informative: coreRadii.xs,
1055
- default: coreRadii.sm,
1056
- action: coreRadii.sm
816
+ navigation: {
817
+ backgound: {
818
+ primary: {
819
+ default: coreColors.complimentary
820
+ }
821
+ },
822
+ text: {
823
+ primary: {
824
+ default: coreColors.black
825
+ },
826
+ accent: {
827
+ default: coreColors.darkNeutral
828
+ },
829
+ muted: {
830
+ default: coreColors.gray600
831
+ },
832
+ negative: {
833
+ default: coreColors.red700
834
+ }
835
+ }
836
+ },
837
+ action: {
838
+ text: {
839
+ primary: {
840
+ default: coreColors.black
841
+ },
842
+ secondary: {
843
+ default: coreColors.white,
844
+ active: coreColors.complimentary
845
+ },
846
+ accent: {
847
+ default: coreColors.white
848
+ },
849
+ negative: {
850
+ default: coreColors.white
851
+ },
852
+ caution: {
853
+ default: coreColors.white
854
+ },
855
+ muted: {
856
+ default: coreColors.gray600
857
+ }
858
+ },
859
+ background: {
860
+ primary: {
861
+ default: coreColors.main,
862
+ active: coreColors.complimentary
863
+ },
864
+ secondary: {
865
+ default: coreColors.gray100,
866
+ active: coreColors.darkNeutral
867
+ },
868
+ negative: {
869
+ default: coreColors.red700
870
+ },
871
+ accent: {
872
+ default: coreColors.accent,
873
+ active: coreColors.teal600
874
+ },
875
+ caution: {
876
+ default: coreColors.amber600
877
+ },
878
+ muted: {
879
+ default: coreColors.gray200
880
+ }
881
+ },
882
+ border: {
883
+ primary: {
884
+ default: coreColors.black
885
+ },
886
+ secondary: {
887
+ default: coreColors.gray500,
888
+ active: coreColors.darkNeutral
889
+ },
890
+ muted: {
891
+ default: coreColors.gray600
892
+ },
893
+ accent: {
894
+ default: coreColors.accent
895
+ }
896
+ }
897
+ },
898
+ input: {
899
+ text: {
900
+ primary: {
901
+ default: coreColors.white
902
+ },
903
+ secondary: {
904
+ default: coreColors.black
905
+ },
906
+ muted: {
907
+ default: coreColors.gray200,
908
+ active: coreColors.gray600
909
+ },
910
+ accent: {
911
+ default: coreColors.accent
912
+ },
913
+ negative: {
914
+ default: coreColors.red700
915
+ }
916
+ },
917
+ background: {
918
+ primary: {
919
+ default: coreColors.main,
920
+ active: coreColors.complimentary
921
+ },
922
+ secondary: {
923
+ default: coreColors.gray200,
924
+ active: coreColors.white
925
+ },
926
+ muted: {
927
+ default: coreColors.gray600,
928
+ active: coreColors.gray200,
929
+ disabled: coreColors.gray200
930
+ },
931
+ accent: {
932
+ default: coreColors.accent
933
+ },
934
+ negative: {
935
+ default: coreColors.red700
936
+ }
937
+ },
938
+ border: {
939
+ primary: {
940
+ default: coreColors.main
941
+ },
942
+ secondary: {
943
+ default: coreColors.black,
944
+ active: coreColors.darkNeutral
945
+ },
946
+ muted: {
947
+ default: coreColors.gray600
948
+ },
949
+ accent: {
950
+ default: coreColors.accent
951
+ },
952
+ caution: {
953
+ default: coreColors.gray500
954
+ },
955
+ negative: {
956
+ default: coreColors.red700
957
+ }
958
+ }
959
+ },
960
+ display: {
961
+ background: {
962
+ primary: {
963
+ default: coreColors.main
964
+ },
965
+ secondary: {
966
+ default: coreColors.white
967
+ },
968
+ muted: {
969
+ default: coreColors.gray200
970
+ }
971
+ },
972
+ text: {
973
+ primary: {
974
+ default: coreColors.black
975
+ },
976
+ secondary: {
977
+ default: coreColors.darkNeutral
978
+ },
979
+ muted: {
980
+ default: coreColors.gray600,
981
+ active: coreColors.gray200
982
+ },
983
+ accent: coreColors.accent,
984
+ negative: {
985
+ default: coreColors.red700
986
+ }
987
+ },
988
+ border: {
989
+ primary: {
990
+ default: coreColors.main
991
+ },
992
+ secondary: {
993
+ default: coreColors.black
994
+ },
995
+ muted: {
996
+ default: coreColors.gray600,
997
+ active: coreColors.darkNeutral
998
+ },
999
+ accent: {
1000
+ default: coreColors.accent
1001
+ },
1002
+ negative: {
1003
+ default: coreColors.red700
1004
+ }
1005
+ }
1006
+ }
1057
1007
  },
1008
+ fonts: coreFonts,
1009
+ radii: defaultTheme.radii,
1058
1010
  /**
1059
1011
  * Global styles
1060
1012
  */
@@ -1062,11 +1014,15 @@ var BruttalTheme = {
1062
1014
  root: {
1063
1015
  fontFamily: "body",
1064
1016
  fontWeight: "normal",
1065
- fontSize: "base",
1017
+ fontSize: "md",
1066
1018
  zIndex: "base",
1067
1019
  margin: 0,
1068
1020
  padding: 0,
1069
- backgroundColor: "background",
1021
+ backgroundColor: "navigation.background.primary.default",
1022
+ ".react-select__control": {
1023
+ border: "md",
1024
+ borderRadius: "sm"
1025
+ },
1070
1026
  /**
1071
1027
  * HTML elements
1072
1028
  */
@@ -1074,27 +1030,27 @@ var BruttalTheme = {
1074
1030
  borderCollapse: "collapse"
1075
1031
  },
1076
1032
  th: {
1077
- paddingX: "md",
1078
- paddingY: "md"
1033
+ paddingX: "4",
1034
+ paddingY: "4"
1079
1035
  },
1080
1036
  tr: {
1081
1037
  borderBottom: "default"
1082
1038
  },
1083
1039
  td: {
1084
- paddingX: "xl",
1085
- paddingY: "md"
1040
+ paddingX: "6",
1041
+ paddingY: "4"
1086
1042
  }
1087
1043
  },
1088
1044
  a: {
1089
- color: "text",
1045
+ color: "navigation.text.primary.default",
1090
1046
  fontFamily: "body",
1091
1047
  textDecorationLine: "underline",
1092
- lineHeight: "base",
1048
+ lineHeight: "normal",
1093
1049
  "&.quiet:not(:hover)": {
1094
1050
  textDecorationLine: "none"
1095
1051
  },
1096
1052
  ":visited": {
1097
- color: "highlight"
1053
+ color: "navigation.text.accent.default"
1098
1054
  }
1099
1055
  }
1100
1056
  },
@@ -1103,133 +1059,130 @@ var BruttalTheme = {
1103
1059
  */
1104
1060
  badges: {
1105
1061
  positive: {
1106
- color: "onPositive",
1107
- bg: "positive"
1062
+ color: "action.text.accent.default",
1063
+ bg: "action.background.accent.active"
1108
1064
  },
1109
1065
  negative: {
1110
- color: "onDanger",
1111
- bg: "danger"
1066
+ color: "action.text.negative.default",
1067
+ bg: "action.background.negative.default"
1112
1068
  },
1113
1069
  neutral: {
1114
- color: "onSecondary",
1115
- bg: "secondary",
1116
- border: "muted",
1117
- borderColor: "onMuted"
1070
+ color: "action.text.primary.default",
1071
+ bg: "action.background.secondary.default",
1072
+ border: "sm",
1073
+ borderColor: "action.border.muted.default"
1118
1074
  },
1119
1075
  informative: {
1120
- color: "onNotice",
1121
- bg: "notice"
1076
+ color: "action.text.caution.default",
1077
+ bg: "action.background.caution.default"
1122
1078
  },
1123
1079
  muted: {
1124
- color: "onMuted",
1125
- bg: "muted"
1080
+ color: "action.text.muted.default",
1081
+ bg: "action.background.muted.default"
1126
1082
  }
1127
1083
  },
1128
1084
  buttons: {
1129
1085
  accent: {
1130
- backgroundColor: "accent",
1131
- color: "onAccent",
1132
- borderRadius: "action",
1133
- borderColor: "accent",
1086
+ backgroundColor: "action.background.accent.default",
1087
+ color: "action.text.accent.default",
1088
+ borderRadius: "sm",
1134
1089
  ":hover:not(:active,[disabled])": {
1135
1090
  filter: "brightness(90%)"
1136
1091
  },
1137
1092
  ":disabled": {
1138
1093
  cursor: "default",
1139
- backgroundColor: "muted",
1140
- borderColor: "muted",
1141
- color: "onMuted"
1094
+ backgroundColor: "action.background.muted.default",
1095
+ borderColor: "action.border.muted.default",
1096
+ color: "action.text.muted.default"
1142
1097
  }
1143
1098
  },
1144
1099
  primary: {
1145
- backgroundColor: "primary",
1146
- color: "onPrimary",
1147
- borderRadius: "action",
1148
- borderColor: "primary",
1100
+ backgroundColor: "action.background.primary.default",
1101
+ color: "action.text.secondary.default",
1102
+ borderRadius: "sm",
1149
1103
  ":hover:not(:active,[disabled])": {
1150
1104
  filter: "brightness(90%)"
1151
1105
  },
1152
1106
  ":active": {
1153
- backgroundColor: "primary",
1154
- color: "onPrimary",
1155
- borderColor: "outline"
1107
+ backgroundColor: "action.background.primary.default",
1108
+ color: "action.text.secondary.default"
1156
1109
  },
1157
1110
  ":disabled": {
1158
1111
  cursor: "default",
1159
- backgroundColor: "muted",
1160
- borderColor: "muted",
1161
- color: "onMuted"
1112
+ backgroundColor: "action.background.muted.default",
1113
+ borderColor: "action.border.muted.default",
1114
+ color: "action.text.muted.default"
1162
1115
  }
1163
1116
  },
1164
1117
  secondary: {
1165
- backgroundColor: "secondary",
1166
- color: "onSecondary",
1167
- borderRadius: "action",
1168
- border: "secondary",
1169
- borderColor: "onSecondary",
1118
+ backgroundColor: "action.background.secondary.default",
1119
+ color: "action.text.primary.default",
1120
+ borderRadius: "sm",
1121
+ border: "md",
1122
+ borderColor: "action.border.primary.default",
1170
1123
  ":hover:not(:active,[disabled])": {
1171
1124
  filter: "brightness(90%)"
1172
1125
  },
1173
1126
  ":disabled": {
1174
1127
  cursor: "default",
1175
- backgroundColor: "muted",
1176
- borderColor: "muted",
1177
- color: "onMuted"
1128
+ backgroundColor: "action.background.muted.default",
1129
+ borderColor: "action.border.muted.default",
1130
+ color: "action.text.muted.default"
1178
1131
  }
1179
1132
  },
1180
1133
  destructive: {
1181
- color: "onDanger",
1182
- backgroundColor: "danger",
1134
+ color: "action.text.negative.default",
1135
+ backgroundColor: "action.background.negative.default",
1183
1136
  ":hover:not(:active,[disabled])": {
1184
1137
  filter: "brightness(90%)"
1185
1138
  },
1186
1139
  ":disabled": {
1187
1140
  cursor: "default",
1188
- backgroundColor: "muted",
1189
- borderColor: "muted",
1190
- color: "onMuted"
1141
+ backgroundColor: "action.background.muted.default",
1142
+ borderColor: "action.border.muted.default",
1143
+ color: "action.text.muted.default"
1191
1144
  }
1192
1145
  },
1193
1146
  closeButton: {
1194
- backgroundColor: "background",
1195
- color: "primary",
1196
- border: "default",
1197
- borderColor: "primary",
1198
- borderRadius: "action",
1147
+ backgroundColor: "action.background.primary.active",
1148
+ color: "action.text.primary.default",
1149
+ border: "sm",
1150
+ borderColor: "action.border.primary.default",
1151
+ borderRadius: "sm",
1199
1152
  ":disabled": {
1200
- border: "muted",
1201
- borderColor: "onMuted",
1202
- backgroundColor: "muted",
1203
- color: "onMuted",
1153
+ border: "sm",
1154
+ backgroundColor: "action.background.muted.default",
1155
+ borderColor: "action.border.muted.default",
1156
+ color: "action.text.muted.default",
1204
1157
  cursor: "not-allowed"
1205
1158
  },
1206
1159
  ":is(:focus-within, :hover):not(:disabled)": {
1207
- color: "onHighlight",
1208
- backgroundColor: "highlight",
1209
- borderColor: "highlight"
1160
+ color: "action.text.secondary.active",
1161
+ backgroundColor: "action.background.secondary.active",
1162
+ borderColor: "action.border.secondary.active"
1210
1163
  }
1211
1164
  },
1212
1165
  actionButton: {
1213
1166
  default: {
1214
- backgroundColor: "secondary",
1215
- color: "onSecondary",
1216
- border: "default",
1217
- borderColor: "onSecondary",
1167
+ backgroundColor: "action.background.secondary.default",
1168
+ color: "action.text.primary.default",
1169
+ border: "sm",
1170
+ borderColor: "action.background.primary.default",
1218
1171
  transition: "all 0.2s",
1219
1172
  ":is(:focus-within, :hover)": {
1220
- backgroundColor: "highlight",
1221
- borderColor: "highlight",
1222
- color: "onHighlight"
1173
+ backgroundColor: "action.background.secondary.active",
1174
+ borderColor: "action.border.secondary.active",
1175
+ color: "action.text.secondary.active"
1223
1176
  }
1224
1177
  },
1225
1178
  accent: {
1226
- backgroundColor: "accent",
1227
- color: "onAccent",
1179
+ backgroundColor: "action.background.accent.default",
1180
+ color: "action.text.accent.default",
1228
1181
  border: "none"
1229
1182
  },
1230
1183
  quiet: {
1231
- backgroundColor: "transparent",
1232
- color: "text",
1184
+ backgroundColor: "action.background.muted.default",
1185
+ color: "action.text.accent.default",
1233
1186
  border: "none",
1234
1187
  borderColor: "transparent"
1235
1188
  }
@@ -1237,8 +1190,8 @@ var BruttalTheme = {
1237
1190
  },
1238
1191
  cards: {
1239
1192
  primary: {
1240
- backgroundColor: "primary",
1241
- border: "1px solid black",
1193
+ backgroundColor: "display.background.secondary.default",
1194
+ border: "sm",
1242
1195
  padding: [4, 5],
1243
1196
  display: "flex",
1244
1197
  flexDirection: "column",
@@ -1248,47 +1201,50 @@ var BruttalTheme = {
1248
1201
  },
1249
1202
  forms: {
1250
1203
  label: {
1251
- color: "text",
1204
+ color: "display.text.primary.default",
1252
1205
  '&:is([aria-disabled="true"])': {
1253
- color: "onMuted"
1206
+ color: "display.text.muted.default"
1254
1207
  },
1255
1208
  '& > span[aria-label="tooltip"]': {
1256
1209
  fontSize: "sm",
1257
- marginLeft: "2xs"
1210
+ marginLeft: "2"
1258
1211
  },
1259
1212
  '&:has(input[type="checkbox"])': {
1260
- fontSize: "base",
1261
- gap: "md"
1213
+ fontSize: "md",
1214
+ gap: "2"
1262
1215
  },
1263
1216
  '& > div:has(input[type="checkbox"]) > svg': {
1264
1217
  marginRight: 0
1265
1218
  },
1266
1219
  '&:has(input[type="checkbox"]:disabled)': {
1267
- color: "onMuted"
1220
+ color: "display.text.muted.default"
1268
1221
  },
1269
1222
  '&:has(div > input[type="radio"])': {
1270
1223
  alignItems: "center"
1271
1224
  },
1272
1225
  '&:has(div > input[type="radio"]:disabled)': {
1273
- color: "muted"
1226
+ color: "display.text.muted.active"
1274
1227
  }
1275
1228
  },
1276
1229
  radio: {
1277
- color: "text",
1230
+ color: "input.text.secondary.default",
1278
1231
  fontFamily: "body",
1279
1232
  fontSize: "lg",
1280
1233
  "input:disabled ~ &": {
1281
- color: "muted"
1234
+ color: "input.text.muted.default"
1235
+ },
1236
+ "input:checked ~ &": {
1237
+ color: "input.text.accent.default"
1282
1238
  },
1283
1239
  'input[aria-invalid="true"] ~ &': {
1284
- color: "danger"
1240
+ color: "input.text.negative.default"
1285
1241
  },
1286
1242
  "input:focus ~ &": {
1287
1243
  bg: "transparent"
1288
1244
  },
1289
1245
  "&:is(svg, svg + svg)": {
1290
- width: fontSizes.base,
1291
- height: fontSizes.base
1246
+ width: "min",
1247
+ height: "min"
1292
1248
  }
1293
1249
  },
1294
1250
  checkbox: {
@@ -1296,207 +1252,210 @@ var BruttalTheme = {
1296
1252
  bg: "transparent"
1297
1253
  },
1298
1254
  "input:not(:checked) ~ &": {
1299
- color: "primary"
1255
+ color: "input.text.secondary.default"
1256
+ },
1257
+ "input:checked ~ &": {
1258
+ color: "input.text.accent.default"
1300
1259
  },
1301
1260
  "input:disabled ~ &": {
1302
- color: "muted"
1261
+ color: "input.text.muted.default"
1303
1262
  },
1304
1263
  "input:disabled ~ & path": {
1305
- backgroundColor: "onMuted"
1264
+ backgroundColor: "input.background.muted.default"
1306
1265
  },
1307
1266
  'input[aria-invalid="true"] ~ &': {
1308
- color: "danger"
1267
+ color: "display.text.negative.default"
1309
1268
  },
1310
1269
  "&:is(svg, svg + svg)": {
1311
- width: fontSizes.base,
1312
- height: fontSizes.base
1270
+ width: "min",
1271
+ height: "min"
1313
1272
  }
1314
1273
  },
1315
1274
  input: {
1316
- color: "text",
1317
- border: "interaction",
1318
- borderColor: "onMuted",
1319
- borderRadius: "action",
1320
- backgroundColor: "surface",
1321
- fontSize: "base",
1322
- lineHeight: "base",
1275
+ color: "display.text.primary.default",
1276
+ border: "md",
1277
+ borderColor: "display.border.muted.default",
1278
+ borderRadius: "sm",
1279
+ backgroundColor: "display.background.secondary.default",
1280
+ fontSize: "md",
1281
+ lineHeight: "normal",
1323
1282
  "::placeholder": {
1324
- color: "onMuted"
1283
+ color: "display.text.muted.default"
1325
1284
  },
1326
1285
  ":focus-within": {
1327
- outlineColor: "neutral"
1286
+ outlineColor: "display.border.muted.active"
1328
1287
  },
1329
1288
  ":disabled": {
1330
- backgroundColor: "muted",
1331
- color: "onMuted",
1332
- border: "muted",
1333
- borderColor: "onMuted"
1289
+ backgroundColor: "display.background.muted.default",
1290
+ color: "display.text.muted.default",
1291
+ border: "sm",
1292
+ borderColor: "display.border.muted.default"
1334
1293
  },
1335
1294
  '&[aria-invalid="true"]': {
1336
- borderColor: "danger"
1295
+ borderColor: "display.border.negative.default"
1337
1296
  },
1338
1297
  '&[aria-invalid="true"] ~ span:has(iconify-icon)': {
1339
- color: "danger"
1298
+ color: "display.text.negative.default"
1340
1299
  }
1341
1300
  },
1342
1301
  inputNumber: {
1343
- color: "text",
1344
- border: "interaction",
1345
- borderColor: "onMuted",
1346
- borderRadius: "action",
1302
+ color: "display.text.primary.default",
1303
+ border: "md",
1304
+ borderColor: "display.border.muted.default",
1305
+ borderRadius: "sm",
1347
1306
  ":disabled": {
1348
- border: "muted",
1349
- borderColor: "onMuted",
1350
- color: "muted"
1307
+ border: "sm",
1308
+ borderColor: "display.border.muted.default",
1309
+ color: "display.text.muted.active"
1351
1310
  },
1352
1311
  ":disabled ~ span > iconify-icon": {
1353
- color: "muted",
1312
+ color: "display.text.muted.active",
1354
1313
  cursor: "default"
1355
1314
  },
1356
1315
  ":focus-within": {
1357
- outlineColor: "highlight"
1316
+ outlineColor: "display.border.muted.active"
1358
1317
  },
1359
1318
  ':not(:disabled, [aria-invalid="true"]):hover': {
1360
- borderColor: "highlight"
1319
+ borderColor: "display.border.muted.active"
1361
1320
  },
1362
1321
  ':not(:disabled, [aria-invalid="true"]) ~ span:has(iconify-icon):hover': {
1363
- color: "highlight"
1322
+ color: "display.text.accent.default"
1364
1323
  },
1365
1324
  "& ~ span:has(iconify-icon)": {
1366
- fontSize: "base"
1325
+ fontSize: "md"
1367
1326
  },
1368
1327
  '&[aria-invalid="true"]': {
1369
- border: "danger",
1370
- borderColor: "danger",
1371
- color: "danger",
1372
- outlineColor: "danger"
1328
+ border: "md",
1329
+ borderColor: "display.border.negative.default",
1330
+ color: "display.text.negative.default",
1331
+ outlineColor: "display.border.negative.default"
1373
1332
  },
1374
1333
  '&[aria-invalid="true"] ~ span>iconify-icon': {
1375
- color: "danger"
1334
+ color: "display.text.negative.default"
1376
1335
  }
1377
1336
  },
1378
1337
  select: {
1379
- color: "text",
1380
- backgroundColor: "surface",
1381
- border: "interaction",
1382
- borderColor: "onMuted",
1383
- borderRadius: "action",
1338
+ color: "display.text.primary.default",
1339
+ backgroundColor: "display.background.secondary.default",
1340
+ border: "md",
1341
+ borderColor: "display.border.muted.default",
1342
+ borderRadius: "sm",
1384
1343
  ":disabled": {
1385
- border: "muted",
1386
- borderColor: "onMuted",
1387
- backgroundColor: "muted",
1388
- color: "onMuted"
1344
+ border: "sm",
1345
+ borderColor: "display.border.muted.default",
1346
+ backgroundColor: "display.background.muted.default",
1347
+ color: "display.text.muted.default"
1389
1348
  },
1390
1349
  ":disabled ~ * > span:has(iconify-icon)": {
1391
- color: "onMuted"
1350
+ color: "display.text.muted.default"
1392
1351
  },
1393
1352
  '&[aria-invalid="true"]': {
1394
- border: "danger",
1395
- borderColor: "danger",
1396
- outlineColor: "danger"
1353
+ border: "md",
1354
+ borderColor: "display.border.negative.default",
1355
+ outlineColor: "display.border.negative.default"
1397
1356
  },
1398
1357
  '&[aria-invalid="true"] ~ * > span.error-icon': {
1399
- color: "danger"
1358
+ color: "display.text.negative.default"
1400
1359
  }
1401
1360
  },
1402
1361
  textarea: {
1403
- color: "text",
1404
- border: "interaction",
1405
- borderColor: "onMuted",
1406
- backgroundColor: "surface",
1407
- borderRadius: "action",
1362
+ color: "display.text.primary.default",
1363
+ border: "md",
1364
+ borderColor: "input.border.muted.default",
1365
+ backgroundColor: "display.background.secondary.default",
1366
+ borderRadius: "sm",
1408
1367
  ":focus-within": {
1409
- outlineColor: "primary"
1368
+ outlineColor: "input.border.primary.default"
1410
1369
  },
1411
1370
  ":disabled::placeholder": {
1412
- color: "onMuted"
1371
+ color: "input.text.muted.active"
1413
1372
  },
1414
1373
  ":disabled": {
1415
- borderColor: "onMuted",
1416
- backgroundColor: "muted",
1417
- border: "muted",
1418
- color: "onMuted"
1374
+ borderColor: "input.border.muted.default",
1375
+ backgroundColor: "input.background.muted.active",
1376
+ border: "sm",
1377
+ color: "input.text.muted.active"
1419
1378
  },
1420
1379
  '&[aria-invalid="true"]': {
1421
- borderColor: "danger",
1422
- outlineColor: "danger"
1380
+ borderColor: "input.border.negative.default",
1381
+ outlineColor: "input.border.negative.default"
1423
1382
  },
1424
1383
  '&[aria-invalid="true"]+span>iconify-icon': {
1425
- color: "danger",
1426
- fontSize: "base"
1384
+ color: "input.text.negative.default",
1385
+ fontSize: "lg"
1427
1386
  }
1428
1387
  }
1429
1388
  },
1430
1389
  text: {
1431
1390
  default: {
1432
- color: "text",
1391
+ color: "navigation.text.primary.default",
1433
1392
  fontFamily: "body"
1434
1393
  },
1435
1394
  title: {
1436
1395
  fontFamily: "heading",
1437
- fontSize: 4,
1396
+ fontSize: "5xl",
1438
1397
  lineSpace: "3.5"
1439
1398
  },
1440
1399
  help: {
1441
- color: "text",
1400
+ color: "navigation.text.primary.default",
1442
1401
  '&[aria-disabled="true"]': {
1443
- color: "onMuted"
1402
+ color: "navigation.text.muted.default"
1444
1403
  },
1445
1404
  negative: {
1446
- color: "danger",
1405
+ color: "navigation.text.negative.default",
1447
1406
  '&[aria-disabled="true"]': {
1448
- color: "onMuted"
1407
+ color: "navigation.text.muted.default"
1449
1408
  }
1450
1409
  }
1451
1410
  },
1452
1411
  headline: {
1453
- fontFamily: "contrast",
1412
+ fontFamily: "heading",
1454
1413
  fontWeight: "bold",
1455
- lineHeight: "flat",
1414
+ lineHeight: "moderate",
1456
1415
  fontSize: "5xl",
1457
- letterSpacing: "regular"
1416
+ letterSpacing: "wide"
1458
1417
  },
1459
1418
  subheadline: {
1460
- fontFamily: "main",
1419
+ fontFamily: "body",
1461
1420
  fontWeight: "bold",
1462
- lineHeight: "base",
1421
+ lineHeight: "normal",
1463
1422
  fontSize: "xl",
1464
- letterSpacing: "regular"
1423
+ letterSpacing: "wide"
1465
1424
  },
1466
1425
  h1: {
1467
- fontFamily: "contrast",
1426
+ fontFamily: "heading",
1468
1427
  fontWeight: "extrabold",
1469
- lineHeight: "base",
1428
+ lineHeight: "normal",
1470
1429
  fontSize: "3xl",
1471
- letterSpacing: "regular"
1430
+ letterSpacing: "wide"
1472
1431
  },
1473
1432
  h2: {
1474
- fontFamily: "contrast",
1433
+ fontFamily: "heading",
1475
1434
  fontWeight: "bold",
1476
- lineHeight: "base",
1435
+ lineHeight: "normal",
1477
1436
  fontSize: "2xl",
1478
- letterSpacing: "regular"
1437
+ letterSpacing: "wide"
1479
1438
  },
1480
1439
  h3: {
1481
- fontFamily: "contrast",
1440
+ fontFamily: "heading",
1482
1441
  fontWeight: "bold",
1483
- lineHeight: "base",
1442
+ lineHeight: "normal",
1484
1443
  fontSize: "xl",
1485
- letterSpacing: "regular"
1444
+ letterSpacing: "wide"
1486
1445
  },
1487
1446
  h4: {
1488
- fontFamily: "contrast",
1447
+ fontFamily: "heading",
1489
1448
  fontWeight: "semibold",
1490
- lineHeight: "base",
1449
+ lineHeight: "normal",
1491
1450
  fontSize: "lg",
1492
- letterSpacing: "regular"
1451
+ letterSpacing: "wide"
1493
1452
  },
1494
1453
  h5: {
1495
- fontFamily: "contrast",
1454
+ fontFamily: "heading",
1496
1455
  fontWeight: "semibold",
1497
- lineHeight: "base",
1498
- fontSize: "base",
1499
- letterSpacing: "regular"
1456
+ lineHeight: "normal",
1457
+ fontSize: "md",
1458
+ letterSpacing: "wide"
1500
1459
  }
1501
1460
  }
1502
1461
  };