@matteoaliano/forest-ui 0.2.10 → 0.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/theme.js CHANGED
@@ -96,14 +96,19 @@ var colors = {
96
96
  950: "#102a56"
97
97
  },
98
98
  teal: {
99
+ 50: "#f0fdf9",
99
100
  100: "#ccfbef",
100
101
  200: "#99f6e0",
102
+ 300: "#5fe9d0",
103
+ 400: "#2ed3b7",
101
104
  600: "#0e9384",
102
105
  700: "#107569"
103
106
  },
104
107
  orange: {
105
108
  100: "#fdead7",
106
109
  200: "#f9dbaf",
110
+ 300: "#f7b27a",
111
+ 400: "#f38744",
107
112
  600: "#e04f16",
108
113
  700: "#b93815"
109
114
  },
@@ -116,24 +121,31 @@ var colors = {
116
121
  pink: {
117
122
  100: "#fce7f6",
118
123
  200: "#fcceee",
124
+ 400: "#f670c7",
125
+ 500: "#ee46bc",
119
126
  600: "#dd2590",
120
127
  700: "#c11574"
121
128
  },
122
129
  fuchsia: {
123
130
  100: "#fbe8ff",
124
131
  200: "#f6d0fe",
132
+ 400: "#e478fa",
133
+ 500: "#d444f1",
125
134
  600: "#ba24d5",
126
135
  700: "#9f1ab1"
127
136
  },
128
137
  orangeDark: {
129
138
  100: "#ffe6d5",
130
139
  200: "#ffd6ae",
140
+ 400: "#ff692e",
141
+ 500: "#ff4405",
131
142
  600: "#e62e05",
132
143
  700: "#bc1b06"
133
144
  },
134
145
  green: {
135
146
  100: "#d3f8df",
136
147
  200: "#aaf0c4",
148
+ 500: "#16b364",
137
149
  600: "#099250",
138
150
  700: "#087443"
139
151
  },
@@ -142,6 +154,30 @@ var colors = {
142
154
  200: "#c7d7fe",
143
155
  600: "#444ce7",
144
156
  700: "#3538cd"
157
+ },
158
+ violet: {
159
+ 100: "#ece9fe",
160
+ 200: "#ddd6fe",
161
+ 500: "#875bf7",
162
+ 600: "#7839ee"
163
+ },
164
+ rose: {
165
+ 100: "#ffe4e8",
166
+ 200: "#fecdd6",
167
+ 400: "#fd6f8e",
168
+ 500: "#f63d68"
169
+ },
170
+ blueLight: {
171
+ 100: "#e0f2fe",
172
+ 200: "#b9e6fe",
173
+ 400: "#36bffa",
174
+ 500: "#0ba5ec"
175
+ },
176
+ cyan: {
177
+ 100: "#cff9fe",
178
+ 200: "#a5f0fc",
179
+ 600: "#088ab2",
180
+ 700: "#0e7090"
145
181
  }
146
182
  };
147
183
  var spacing = {
@@ -438,7 +474,7 @@ var toggleColors = {
438
474
  buttonFgDisabled: colors.gray[50]
439
475
  };
440
476
  var chartColors = {
441
- axisFg: colors.gray[200],
477
+ axisFg: colors.gray[100],
442
478
  gridlineFg: colors.gray[100],
443
479
  labelFg: colors.gray[600],
444
480
  labelFgEmphasis: colors.gray[700],
@@ -448,31 +484,19 @@ var chartColors = {
448
484
  tooltipFg: colors.base.white,
449
485
  crosshairFg: colors.gray[500],
450
486
  legendFg: text.tertiary,
451
- categorical: [
452
- "#7B61FF",
453
- "#FF7E67",
454
- "#76DFD5",
455
- "#F6C343",
456
- "#B36A6F",
457
- "#71BCF6",
458
- "#FFB076",
459
- "#11819D",
460
- "#3CB371",
461
- "#FFBCAE",
462
- "#C87EED",
463
- "#76C5AF"
464
- ],
465
- vibrant: [
466
- "#6B38FB",
467
- // 1. Deep Purple
468
- "#E85B22",
469
- // 2. Deep Orange
470
- "#4AABFF",
471
- // 3. Bright Blue
472
- "#E83B1A",
473
- // 4. True Red
474
- "#E02088"
475
- // 5. Magenta
487
+ series: [
488
+ { fg: colors.violet[500], fgHover: colors.violet[600], bg: colors.violet[100], bgHover: colors.violet[200] },
489
+ { fg: colors.orangeDark[400], fgHover: colors.orangeDark[500], bg: colors.orangeDark[100], bgHover: colors.orangeDark[200] },
490
+ { fg: colors.teal[300], fgHover: colors.teal[400], bg: colors.teal[50], bgHover: colors.teal[100] },
491
+ { fg: colors.warning[400], fgHover: colors.warning[500], bg: colors.warning[100], bgHover: colors.warning[200] },
492
+ { fg: colors.rose[400], fgHover: colors.rose[500], bg: colors.rose[100], bgHover: colors.rose[200] },
493
+ { fg: colors.blueLight[400], fgHover: colors.blueLight[500], bg: colors.blueLight[100], bgHover: colors.blueLight[200] },
494
+ { fg: colors.orange[300], fgHover: colors.orange[400], bg: colors.orange[100], bgHover: colors.orange[200] },
495
+ { fg: colors.cyan[600], fgHover: colors.cyan[700], bg: colors.cyan[100], bgHover: colors.cyan[200] },
496
+ { fg: colors.green[500], fgHover: colors.green[600], bg: colors.green[100], bgHover: colors.green[200] },
497
+ { fg: colors.pink[400], fgHover: colors.pink[500], bg: colors.pink[100], bgHover: colors.pink[200] },
498
+ { fg: colors.fuchsia[400], fgHover: colors.fuchsia[500], bg: colors.fuchsia[100], bgHover: colors.fuchsia[200] },
499
+ { fg: colors.teal[600], fgHover: colors.teal[700], bg: colors.teal[100], bgHover: colors.teal[200] }
476
500
  ]
477
501
  };
478
502
  var alpha = {
@@ -857,18 +881,21 @@ function buildComponents(tokens) {
857
881
  }
858
882
  }
859
883
  },
860
- // ─── Select ─────────────────────────────────────────────────────
861
- MuiSelect: {
884
+ // ─── Menu ──────────────────────────────────────────────────────
885
+ MuiMenu: {
862
886
  defaultProps: {
863
- MenuProps: {
864
- autoFocus: false,
865
- slotProps: {
866
- backdrop: {
867
- sx: { backgroundColor: "transparent" }
868
- }
887
+ autoFocus: false
888
+ },
889
+ styleOverrides: {
890
+ root: {
891
+ "& .MuiBackdrop-root": {
892
+ backgroundColor: "transparent"
869
893
  }
870
894
  }
871
- },
895
+ }
896
+ },
897
+ // ─── Select ─────────────────────────────────────────────────────
898
+ MuiSelect: {
872
899
  styleOverrides: {
873
900
  select: {
874
901
  "&.MuiSelect-select": {
@@ -1887,19 +1914,8 @@ var forestPreset = {
1887
1914
  };
1888
1915
 
1889
1916
  // src/theme/presets/alkemy-plus.ts
1890
- var red = {
1891
- 50: "#fef2f2",
1892
- 200: "#fecaca",
1893
- 600: "#dc2626",
1894
- 700: "#b91c1c",
1895
- 800: "#991b1b",
1896
- 900: "#7f1d1d"};
1897
1917
  var colors2 = {
1898
- base: {
1899
- white: "#ffffff",
1900
- black: "#000000",
1901
- transparent: "#ffffff00"
1902
- },
1918
+ ...colors,
1903
1919
  /** Brand scale — black-based for primary actions */
1904
1920
  brand: {
1905
1921
  25: "#fafafa",
@@ -1929,36 +1945,7 @@ var colors2 = {
1929
1945
  800: "#27272a",
1930
1946
  900: "#18181b",
1931
1947
  950: "#09090b"
1932
- },
1933
- /** Error — forest defaults (standard UX red) */
1934
- error: colors.error,
1935
- /** Warning — orange/yellow tones from Alkemy+ palette */
1936
- warning: {
1937
- 25: "#fffcf5",
1938
- 50: "#fff7ed",
1939
- 100: "#ffedd5",
1940
- 200: "#fed7aa",
1941
- 300: "#fdba74",
1942
- 400: "#fb923c",
1943
- 500: "#f08828",
1944
- 600: "#ea580c",
1945
- 700: "#c2410c",
1946
- 800: "#9a3412",
1947
- 900: "#7c2d12",
1948
- 950: "#431407"
1949
- },
1950
- /** Success — forest defaults (standard UX green) */
1951
- success: colors.success,
1952
- /** Blue (info) — forest defaults (standard UX) */
1953
- blue: colors.blue,
1954
- teal: colors.teal,
1955
- orange: colors.orange,
1956
- purple: colors.purple,
1957
- pink: colors.pink,
1958
- fuchsia: colors.fuchsia,
1959
- orangeDark: colors.orangeDark,
1960
- green: colors.green,
1961
- indigo: colors.indigo
1948
+ }
1962
1949
  };
1963
1950
  var radius2 = {
1964
1951
  ...radius,
@@ -1983,10 +1970,10 @@ var text2 = {
1983
1970
  placeholder: colors2.gray[500],
1984
1971
  placeholderSubtle: colors2.gray[300],
1985
1972
  white: colors2.base.white,
1986
- brandPrimary: red[900],
1987
- brandSecondary: red[700],
1988
- brandTertiary: red[600],
1989
- brandTertiaryAlt: red[600],
1973
+ brandPrimary: colors2.brand[900],
1974
+ brandSecondary: colors2.brand[700],
1975
+ brandTertiary: colors2.brand[600],
1976
+ brandTertiaryAlt: colors2.brand[600],
1990
1977
  primaryOnBrand: colors2.base.white,
1991
1978
  secondaryOnBrand: colors2.brand[200],
1992
1979
  tertiaryOnBrand: colors2.brand[200],
@@ -1998,22 +1985,22 @@ var text2 = {
1998
1985
  var bg2 = {
1999
1986
  primary: colors2.gray[50],
2000
1987
  primaryAlt: colors2.gray[50],
2001
- primaryHover: colors2.gray[50],
1988
+ primaryHover: colors2.gray[100],
2002
1989
  primarySolid: colors2.gray[950],
2003
1990
  secondary: colors2.base.white,
2004
1991
  secondaryAlt: colors2.base.white,
2005
1992
  secondarySubtle: colors2.gray[25],
2006
- secondaryHover: colors2.gray[100],
1993
+ secondaryHover: colors2.gray[50],
2007
1994
  secondarySolid: colors2.gray[600],
2008
1995
  tertiary: colors2.gray[100],
2009
1996
  quaternary: colors2.gray[200],
2010
- active: colors2.gray[50],
1997
+ active: colors2.gray[200],
2011
1998
  disabled: colors2.gray[100],
2012
1999
  disabledSubtle: colors2.gray[50],
2013
2000
  overlay: colors2.gray[950],
2014
- brandPrimary: colors2.brand[100],
2015
- brandPrimaryAlt: colors2.brand[100],
2016
- brandSecondary: colors2.brand[200],
2001
+ brandPrimary: colors2.brand[50],
2002
+ brandPrimaryAlt: colors2.brand[50],
2003
+ brandSecondary: colors2.brand[100],
2017
2004
  brandSolid: colors2.brand[600],
2018
2005
  brandSolidHover: colors2.brand[700],
2019
2006
  brandSection: colors2.brand[800],
@@ -2065,7 +2052,6 @@ var border2 = {
2065
2052
  errorSolid: colors2.error[600]
2066
2053
  };
2067
2054
  var buttonColors2 = {
2068
- /** Primary buttons — black */
2069
2055
  primary: {
2070
2056
  bg: colors2.brand[600],
2071
2057
  bgHover: colors2.brand[700],
@@ -2082,7 +2068,6 @@ var buttonColors2 = {
2082
2068
  border: colors2.gray[300],
2083
2069
  borderHover: colors2.gray[300]
2084
2070
  },
2085
- /** Outlined accent buttons — dark */
2086
2071
  secondaryColor: {
2087
2072
  bg: colors2.base.white,
2088
2073
  bgHover: colors2.brand[50],
@@ -2096,11 +2081,10 @@ var buttonColors2 = {
2096
2081
  fgHover: colors2.gray[700],
2097
2082
  bgHover: colors2.gray[50]
2098
2083
  },
2099
- /** Text accent buttons — red */
2100
2084
  tertiaryColor: {
2101
- fg: red[700],
2102
- fgHover: red[800],
2103
- bgHover: red[50]
2085
+ fg: colors2.brand[700],
2086
+ fgHover: colors2.brand[800],
2087
+ bgHover: colors2.brand[50]
2104
2088
  },
2105
2089
  primaryError: {
2106
2090
  bg: colors2.error[600],
@@ -2129,22 +2113,23 @@ var avatarColors2 = {
2129
2113
  contrastBorder: "#00000014",
2130
2114
  profilePhotoBorder: colors2.base.white,
2131
2115
  focusBorder: "#a0a0a624"
2116
+ // gray[400] + 14% alpha
2132
2117
  };
2133
2118
  var breadcrumbColors2 = {
2134
2119
  fg: colors2.gray[600],
2135
2120
  fgHover: colors2.gray[700],
2136
2121
  bgHover: colors2.gray[50],
2137
- brandBgHover: red[50],
2138
- brandFgHover: red[700],
2122
+ brandBgHover: colors2.brand[50],
2123
+ brandFgHover: colors2.brand[700],
2139
2124
  iconFg: colors2.gray[500],
2140
2125
  iconFgHover: colors2.gray[700],
2141
- brandIconFgHover: red[700]
2126
+ brandIconFgHover: colors2.brand[700]
2142
2127
  };
2143
2128
  var iconColors2 = {
2144
- fgBrand: red[600],
2145
- fgBrandOnBrand: red[200],
2129
+ fgBrand: colors2.brand[600],
2130
+ fgBrandOnBrand: colors2.brand[200],
2146
2131
  featuredModernBorder: colors2.gray[200],
2147
- featuredLightFgBrand: red[600],
2132
+ featuredLightFgBrand: colors2.brand[600],
2148
2133
  featuredLightFgGray: colors2.gray[500],
2149
2134
  featuredLightFgError: colors2.error[600],
2150
2135
  featuredLightFgWarning: colors2.warning[600],
@@ -2157,19 +2142,19 @@ var iconColors2 = {
2157
2142
  };
2158
2143
  var navColors2 = {
2159
2144
  itemIconFg: colors2.gray[500],
2160
- itemIconFgActive: colors2.gray[500],
2145
+ itemIconFgActive: colors2.gray[700],
2161
2146
  itemButtonIconFg: colors2.gray[500],
2162
2147
  itemButtonIconFgActive: colors2.gray[700]
2163
2148
  };
2164
2149
  var sliderColors2 = {
2165
- handleBorder: red[600],
2150
+ handleBorder: colors2.brand[600],
2166
2151
  handleBg: colors2.base.white
2167
2152
  };
2168
2153
  var toggleColors2 = {
2169
2154
  buttonFgDisabled: colors2.gray[50]
2170
2155
  };
2171
2156
  var chartColors2 = {
2172
- axisFg: colors2.gray[200],
2157
+ axisFg: colors2.gray[100],
2173
2158
  gridlineFg: colors2.gray[100],
2174
2159
  labelFg: colors2.gray[600],
2175
2160
  labelFgEmphasis: colors2.gray[700],
@@ -2179,52 +2164,25 @@ var chartColors2 = {
2179
2164
  tooltipFg: colors2.base.white,
2180
2165
  crosshairFg: colors2.gray[500],
2181
2166
  legendFg: text2.tertiary,
2182
- categorical: [
2183
- "#7B61FF",
2184
- "#FF7E67",
2185
- "#76DFD5",
2186
- "#F6C343",
2187
- "#B36A6F",
2188
- "#71BCF6",
2189
- "#FFB076",
2190
- "#11819D",
2191
- "#3CB371",
2192
- "#FFBCAE",
2193
- "#C87EED",
2194
- "#76C5AF"
2195
- ],
2196
- vibrant: [
2197
- "#6B38FB",
2198
- "#E85B22",
2199
- "#4AABFF",
2200
- "#E83B1A",
2201
- "#E02088"
2202
- ],
2203
- series6Fg: colors2.brand[400],
2204
- series6FgHover: colors2.brand[500],
2205
- series6Bg: colors2.brand[100],
2206
- series6BgHover: colors2.brand[200],
2207
- series7Fg: colors2.fuchsia[600],
2208
- series7FgHover: colors2.fuchsia[700],
2209
- series7Bg: colors2.fuchsia[100],
2210
- series7BgHover: colors2.fuchsia[200],
2211
- series8Fg: colors2.teal[600],
2212
- series8FgHover: colors2.teal[700],
2213
- series8Bg: colors2.teal[100],
2214
- series8BgHover: colors2.teal[200],
2215
- series9Fg: colors2.indigo[600],
2216
- series9FgHover: colors2.indigo[700],
2217
- series9Bg: colors2.indigo[100],
2218
- series9BgHover: colors2.indigo[200],
2219
- series10Fg: colors2.green[600],
2220
- series10FgHover: colors2.green[700],
2221
- series10Bg: colors2.green[100],
2222
- series10BgHover: colors2.green[200]
2167
+ series: [
2168
+ { fg: colors2.violet[500], fgHover: colors2.violet[600], bg: colors2.violet[100], bgHover: colors2.violet[200] },
2169
+ { fg: colors2.orangeDark[400], fgHover: colors2.orangeDark[500], bg: colors2.orangeDark[100], bgHover: colors2.orangeDark[200] },
2170
+ { fg: colors2.teal[300], fgHover: colors2.teal[400], bg: colors2.teal[50], bgHover: colors2.teal[100] },
2171
+ { fg: colors2.warning[400], fgHover: colors2.warning[500], bg: colors2.warning[100], bgHover: colors2.warning[200] },
2172
+ { fg: colors2.rose[400], fgHover: colors2.rose[500], bg: colors2.rose[100], bgHover: colors2.rose[200] },
2173
+ { fg: colors2.blueLight[400], fgHover: colors2.blueLight[500], bg: colors2.blueLight[100], bgHover: colors2.blueLight[200] },
2174
+ { fg: colors2.orange[300], fgHover: colors2.orange[400], bg: colors2.orange[100], bgHover: colors2.orange[200] },
2175
+ { fg: colors2.cyan[600], fgHover: colors2.cyan[700], bg: colors2.cyan[100], bgHover: colors2.cyan[200] },
2176
+ { fg: colors2.green[500], fgHover: colors2.green[600], bg: colors2.green[100], bgHover: colors2.green[200] },
2177
+ { fg: colors2.pink[400], fgHover: colors2.pink[500], bg: colors2.pink[100], bgHover: colors2.pink[200] },
2178
+ { fg: colors2.fuchsia[400], fgHover: colors2.fuchsia[500], bg: colors2.fuchsia[100], bgHover: colors2.fuchsia[200] },
2179
+ { fg: colors2.teal[600], fgHover: colors2.teal[700], bg: colors2.teal[100], bgHover: colors2.teal[200] }
2180
+ ]
2223
2181
  };
2224
2182
  var focusRings2 = {
2225
- brand: "0px 0px 0px 4px #f040403d",
2226
- brandShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #f040403d",
2227
- brandShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #f040403d",
2183
+ brand: "0px 0px 0px 4px #4040403d",
2184
+ brandShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #4040403d",
2185
+ brandShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #4040403d",
2228
2186
  gray: "0px 0px 0px 4px #a0a0a624",
2229
2187
  grayShadowXs: "0px 1px 2px 0px #1018280d, 0px 0px 0px 4px #a0a0a624",
2230
2188
  grayShadowSm: "0px 1px 3px 0px #1018281a, 0px 1px 2px 0px #1018280f, 0px 0px 0px 4px #a0a0a624",