@matteoaliano/forest-ui 0.2.7 → 0.2.9
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/bin/sync.mjs +44 -0
- package/dist/{chunk-3FSKMCSC.mjs → chunk-QF5T6J4D.mjs} +214 -74
- package/dist/chunk-QF5T6J4D.mjs.map +1 -0
- package/dist/{index-DoEC7Q1q.d.mts → index-BxpOMmf6.d.mts} +97 -9
- package/dist/{index-DoEC7Q1q.d.ts → index-BxpOMmf6.d.ts} +97 -9
- package/dist/index.d.mts +44 -2
- package/dist/index.d.ts +44 -2
- package/dist/index.js +389 -81
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +173 -11
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.mts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +212 -72
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs +1 -1
- package/guidelines/FOREST_AI_GUIDELINES.md +8 -1
- package/guidelines/FOREST_DEV_GUIDELINES.md +1 -1
- package/guidelines/themes/FOREST_THEME_ALKEMY_PLUS.md +1 -1
- package/guidelines/themes/FOREST_THEME_DEFAULT.md +1 -1
- package/package.json +1 -1
- package/dist/chunk-3FSKMCSC.mjs.map +0 -1
package/bin/sync.mjs
CHANGED
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Supported targets:
|
|
11
11
|
* .claude/<name>.md — Claude Code
|
|
12
12
|
* .cursor/rules/<name>.mdc — Cursor
|
|
13
|
+
* .gemini/<name>.md — Gemini CLI
|
|
14
|
+
* .antigravity/rules.md — Antigravity
|
|
13
15
|
*
|
|
14
16
|
* Guideline categories:
|
|
15
17
|
* - FOREST_AI_GUIDELINES.md — Design system components, tokens, patterns
|
|
@@ -32,12 +34,14 @@ const staticEntries = [
|
|
|
32
34
|
{
|
|
33
35
|
source: resolve(guidelinesDir, "FOREST_AI_GUIDELINES.md"),
|
|
34
36
|
claudeName: "forest-ui.md",
|
|
37
|
+
geminiName: "forest-ui.md",
|
|
35
38
|
cursorName: "forest-ui.mdc",
|
|
36
39
|
cursorDescription: "Forest UI Design System guidelines — components, tokens, and patterns",
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
42
|
source: resolve(guidelinesDir, "FOREST_DEV_GUIDELINES.md"),
|
|
40
43
|
claudeName: "forest-dev.md",
|
|
44
|
+
geminiName: "forest-dev.md",
|
|
41
45
|
cursorName: "forest-dev.mdc",
|
|
42
46
|
cursorDescription: "Forest UI development best practices",
|
|
43
47
|
},
|
|
@@ -58,6 +62,7 @@ function discoverThemeEntries() {
|
|
|
58
62
|
return {
|
|
59
63
|
source: resolve(themesDir, f),
|
|
60
64
|
claudeName: `forest-theme-${themeName}.md`,
|
|
65
|
+
geminiName: `forest-theme-${themeName}.md`,
|
|
61
66
|
cursorName: `forest-theme-${themeName}.mdc`,
|
|
62
67
|
cursorDescription: `Forest UI theme guidelines — ${themeName}`,
|
|
63
68
|
};
|
|
@@ -112,6 +117,45 @@ for (const entry of entries) {
|
|
|
112
117
|
console.log(` ⚠️ Claude Code — .claude/${entry.claudeName} skipped (${err.message})`);
|
|
113
118
|
}
|
|
114
119
|
|
|
120
|
+
// Gemini target
|
|
121
|
+
const geminiDir = resolve(projectRoot, ".gemini");
|
|
122
|
+
const geminiPath = resolve(geminiDir, entry.geminiName);
|
|
123
|
+
total++;
|
|
124
|
+
try {
|
|
125
|
+
mkdirSync(geminiDir, { recursive: true });
|
|
126
|
+
writeFileSync(geminiPath, content, "utf-8");
|
|
127
|
+
console.log(` ✅ Gemini → .gemini/${entry.geminiName}`);
|
|
128
|
+
|
|
129
|
+
// Update .gemini/GEMINI.md to import all synced files
|
|
130
|
+
const geminiMainPath = resolve(geminiDir, "GEMINI.md");
|
|
131
|
+
const geminiMainContent = entries
|
|
132
|
+
.map(e => `@${e.geminiName}`)
|
|
133
|
+
.join("\n");
|
|
134
|
+
writeFileSync(geminiMainPath, `# Forest UI Guidelines\n\n${geminiMainContent}\n`, "utf-8");
|
|
135
|
+
|
|
136
|
+
synced++;
|
|
137
|
+
} catch (err) {
|
|
138
|
+
console.log(` ⚠️ Gemini — .gemini/${entry.geminiName} skipped (${err.message})`);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Antigravity target
|
|
142
|
+
const antiDir = resolve(projectRoot, ".antigravity");
|
|
143
|
+
const antiPath = resolve(antiDir, "rules.md");
|
|
144
|
+
total++;
|
|
145
|
+
try {
|
|
146
|
+
mkdirSync(antiDir, { recursive: true });
|
|
147
|
+
// Concatenate all content into rules.md or use imports if supported.
|
|
148
|
+
// Using imports to keep it clean, pointing to the .gemini folder.
|
|
149
|
+
const antiContent = entries
|
|
150
|
+
.map(e => `@../.gemini/${e.geminiName}`)
|
|
151
|
+
.join("\n");
|
|
152
|
+
writeFileSync(antiPath, `# Forest UI — Antigravity Rules\n\n${antiContent}\n`, "utf-8");
|
|
153
|
+
console.log(` ✅ Antigravity → .antigravity/rules.md`);
|
|
154
|
+
synced++;
|
|
155
|
+
} catch (err) {
|
|
156
|
+
console.log(` ⚠️ Antigravity — .antigravity/rules.md skipped (${err.message})`);
|
|
157
|
+
}
|
|
158
|
+
|
|
115
159
|
// Cursor target
|
|
116
160
|
const cursorDir = resolve(projectRoot, ".cursor", "rules");
|
|
117
161
|
const cursorPath = resolve(cursorDir, entry.cursorName);
|
|
@@ -92,6 +92,54 @@ var colors = {
|
|
|
92
92
|
800: "#1849a9",
|
|
93
93
|
900: "#194185",
|
|
94
94
|
950: "#102a56"
|
|
95
|
+
},
|
|
96
|
+
teal: {
|
|
97
|
+
100: "#ccfbef",
|
|
98
|
+
200: "#99f6e0",
|
|
99
|
+
600: "#0e9384",
|
|
100
|
+
700: "#107569"
|
|
101
|
+
},
|
|
102
|
+
orange: {
|
|
103
|
+
100: "#fdead7",
|
|
104
|
+
200: "#f9dbaf",
|
|
105
|
+
600: "#e04f16",
|
|
106
|
+
700: "#b93815"
|
|
107
|
+
},
|
|
108
|
+
purple: {
|
|
109
|
+
100: "#ebe9fe",
|
|
110
|
+
200: "#d9d6fe",
|
|
111
|
+
600: "#6938ef",
|
|
112
|
+
700: "#5925dc"
|
|
113
|
+
},
|
|
114
|
+
pink: {
|
|
115
|
+
100: "#fce7f6",
|
|
116
|
+
200: "#fcceee",
|
|
117
|
+
600: "#dd2590",
|
|
118
|
+
700: "#c11574"
|
|
119
|
+
},
|
|
120
|
+
fuchsia: {
|
|
121
|
+
100: "#fbe8ff",
|
|
122
|
+
200: "#f6d0fe",
|
|
123
|
+
600: "#ba24d5",
|
|
124
|
+
700: "#9f1ab1"
|
|
125
|
+
},
|
|
126
|
+
orangeDark: {
|
|
127
|
+
100: "#ffe6d5",
|
|
128
|
+
200: "#ffd6ae",
|
|
129
|
+
600: "#e62e05",
|
|
130
|
+
700: "#bc1b06"
|
|
131
|
+
},
|
|
132
|
+
green: {
|
|
133
|
+
100: "#d3f8df",
|
|
134
|
+
200: "#aaf0c4",
|
|
135
|
+
600: "#099250",
|
|
136
|
+
700: "#087443"
|
|
137
|
+
},
|
|
138
|
+
indigo: {
|
|
139
|
+
100: "#e0eaff",
|
|
140
|
+
200: "#c7d7fe",
|
|
141
|
+
600: "#444ce7",
|
|
142
|
+
700: "#3538cd"
|
|
95
143
|
}
|
|
96
144
|
};
|
|
97
145
|
var spacing = {
|
|
@@ -229,7 +277,7 @@ var bg = {
|
|
|
229
277
|
secondarySolid: colors.gray[600],
|
|
230
278
|
tertiary: colors.gray[100],
|
|
231
279
|
quaternary: colors.gray[200],
|
|
232
|
-
active: colors.gray[
|
|
280
|
+
active: colors.gray[200],
|
|
233
281
|
disabled: colors.gray[100],
|
|
234
282
|
disabledSubtle: colors.gray[50],
|
|
235
283
|
overlay: colors.gray[950],
|
|
@@ -376,7 +424,7 @@ var iconColors = {
|
|
|
376
424
|
};
|
|
377
425
|
var navColors = {
|
|
378
426
|
itemIconFg: colors.gray[500],
|
|
379
|
-
itemIconFgActive: colors.gray[
|
|
427
|
+
itemIconFgActive: colors.gray[700],
|
|
380
428
|
itemButtonIconFg: colors.gray[500],
|
|
381
429
|
itemButtonIconFgActive: colors.gray[700]
|
|
382
430
|
};
|
|
@@ -405,7 +453,39 @@ var chartColors = {
|
|
|
405
453
|
series2Fg: colors.brand[600],
|
|
406
454
|
series2FgHover: colors.brand[700],
|
|
407
455
|
series2Bg: colors.brand[100],
|
|
408
|
-
series2BgHover: colors.brand[200]
|
|
456
|
+
series2BgHover: colors.brand[200],
|
|
457
|
+
series3Fg: colors.teal[600],
|
|
458
|
+
series3FgHover: colors.teal[700],
|
|
459
|
+
series3Bg: colors.teal[100],
|
|
460
|
+
series3BgHover: colors.teal[200],
|
|
461
|
+
series4Fg: colors.orange[600],
|
|
462
|
+
series4FgHover: colors.orange[700],
|
|
463
|
+
series4Bg: colors.orange[100],
|
|
464
|
+
series4BgHover: colors.orange[200],
|
|
465
|
+
series5Fg: colors.purple[600],
|
|
466
|
+
series5FgHover: colors.purple[700],
|
|
467
|
+
series5Bg: colors.purple[100],
|
|
468
|
+
series5BgHover: colors.purple[200],
|
|
469
|
+
series6Fg: colors.pink[600],
|
|
470
|
+
series6FgHover: colors.pink[700],
|
|
471
|
+
series6Bg: colors.pink[100],
|
|
472
|
+
series6BgHover: colors.pink[200],
|
|
473
|
+
series7Fg: colors.fuchsia[600],
|
|
474
|
+
series7FgHover: colors.fuchsia[700],
|
|
475
|
+
series7Bg: colors.fuchsia[100],
|
|
476
|
+
series7BgHover: colors.fuchsia[200],
|
|
477
|
+
series8Fg: colors.orangeDark[600],
|
|
478
|
+
series8FgHover: colors.orangeDark[700],
|
|
479
|
+
series8Bg: colors.orangeDark[100],
|
|
480
|
+
series8BgHover: colors.orangeDark[200],
|
|
481
|
+
series9Fg: colors.green[600],
|
|
482
|
+
series9FgHover: colors.green[700],
|
|
483
|
+
series9Bg: colors.green[100],
|
|
484
|
+
series9BgHover: colors.green[200],
|
|
485
|
+
series10Fg: colors.indigo[600],
|
|
486
|
+
series10FgHover: colors.indigo[700],
|
|
487
|
+
series10Bg: colors.indigo[100],
|
|
488
|
+
series10BgHover: colors.indigo[200]
|
|
409
489
|
};
|
|
410
490
|
var alpha = {
|
|
411
491
|
white: {
|
|
@@ -436,6 +516,7 @@ var alpha = {
|
|
|
436
516
|
|
|
437
517
|
// src/theme/palette.ts
|
|
438
518
|
function buildPalette(tokens) {
|
|
519
|
+
var _a;
|
|
439
520
|
const { colors: colors3, text: text3, bg: bg3, fg: fg3, border: border3 } = tokens;
|
|
440
521
|
return {
|
|
441
522
|
primary: {
|
|
@@ -490,7 +571,8 @@ function buildPalette(tokens) {
|
|
|
490
571
|
selected: bg3.brandPrimary,
|
|
491
572
|
disabled: fg3.disabled,
|
|
492
573
|
disabledBackground: bg3.disabled
|
|
493
|
-
}
|
|
574
|
+
},
|
|
575
|
+
chart: (_a = tokens.chartColors) != null ? _a : chartColors
|
|
494
576
|
};
|
|
495
577
|
}
|
|
496
578
|
var palette = buildPalette({
|
|
@@ -498,7 +580,8 @@ var palette = buildPalette({
|
|
|
498
580
|
text,
|
|
499
581
|
bg,
|
|
500
582
|
fg,
|
|
501
|
-
border
|
|
583
|
+
border,
|
|
584
|
+
chartColors
|
|
502
585
|
});
|
|
503
586
|
|
|
504
587
|
// src/theme/typography.ts
|
|
@@ -595,7 +678,7 @@ var typography = buildTypography({
|
|
|
595
678
|
function buildComponents(tokens) {
|
|
596
679
|
const {
|
|
597
680
|
colors: colors3,
|
|
598
|
-
radius:
|
|
681
|
+
radius: radius3,
|
|
599
682
|
focusRings: focusRings3,
|
|
600
683
|
shadows: tokenShadows,
|
|
601
684
|
text: text3,
|
|
@@ -612,7 +695,7 @@ function buildComponents(tokens) {
|
|
|
612
695
|
},
|
|
613
696
|
styleOverrides: {
|
|
614
697
|
root: {
|
|
615
|
-
borderRadius:
|
|
698
|
+
borderRadius: radius3.md,
|
|
616
699
|
fontWeight: 600,
|
|
617
700
|
boxShadow: tokenShadows.xs,
|
|
618
701
|
height: 32,
|
|
@@ -661,7 +744,7 @@ function buildComponents(tokens) {
|
|
|
661
744
|
},
|
|
662
745
|
styleOverrides: {
|
|
663
746
|
root: {
|
|
664
|
-
borderRadius:
|
|
747
|
+
borderRadius: radius3.md
|
|
665
748
|
},
|
|
666
749
|
grouped: {
|
|
667
750
|
"&:not(:last-of-type)": {
|
|
@@ -693,8 +776,7 @@ function buildComponents(tokens) {
|
|
|
693
776
|
// ─── TextField / Input ──────────────────────────────────────────
|
|
694
777
|
MuiTextField: {
|
|
695
778
|
defaultProps: {
|
|
696
|
-
variant: "outlined"
|
|
697
|
-
size: "small"
|
|
779
|
+
variant: "outlined"
|
|
698
780
|
}
|
|
699
781
|
},
|
|
700
782
|
MuiInputBase: {
|
|
@@ -712,7 +794,7 @@ function buildComponents(tokens) {
|
|
|
712
794
|
MuiOutlinedInput: {
|
|
713
795
|
styleOverrides: {
|
|
714
796
|
root: {
|
|
715
|
-
borderRadius:
|
|
797
|
+
borderRadius: radius3.md,
|
|
716
798
|
boxShadow: tokenShadows.xs,
|
|
717
799
|
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
718
800
|
borderColor: border3.brand
|
|
@@ -734,12 +816,7 @@ function buildComponents(tokens) {
|
|
|
734
816
|
borderColor: border3.primary
|
|
735
817
|
},
|
|
736
818
|
input: {
|
|
737
|
-
padding: "
|
|
738
|
-
fontSize: 16,
|
|
739
|
-
lineHeight: "24px"
|
|
740
|
-
},
|
|
741
|
-
inputSizeSmall: {
|
|
742
|
-
padding: "8px 12px",
|
|
819
|
+
padding: "6px 12px",
|
|
743
820
|
fontSize: 14,
|
|
744
821
|
lineHeight: "20px"
|
|
745
822
|
}
|
|
@@ -772,12 +849,7 @@ function buildComponents(tokens) {
|
|
|
772
849
|
}
|
|
773
850
|
},
|
|
774
851
|
outlined: {
|
|
775
|
-
|
|
776
|
-
transform: "translate(14px, 10px) scale(1)",
|
|
777
|
-
"&.MuiInputLabel-sizeSmall": {
|
|
778
|
-
// Align label with custom inputSizeSmall padding (8px 12px)
|
|
779
|
-
transform: "translate(12px, 8px) scale(1)"
|
|
780
|
-
},
|
|
852
|
+
transform: "translate(12px, 6px) scale(1)",
|
|
781
853
|
"&.MuiInputLabel-shrink": {
|
|
782
854
|
transform: "translate(14px, -9px) scale(0.75)"
|
|
783
855
|
}
|
|
@@ -800,20 +872,22 @@ function buildComponents(tokens) {
|
|
|
800
872
|
// ─── Select ─────────────────────────────────────────────────────
|
|
801
873
|
MuiSelect: {
|
|
802
874
|
defaultProps: {
|
|
803
|
-
size: "small",
|
|
804
875
|
MenuProps: {
|
|
805
|
-
autoFocus: false
|
|
876
|
+
autoFocus: false,
|
|
877
|
+
slotProps: {
|
|
878
|
+
backdrop: {
|
|
879
|
+
sx: { backgroundColor: "transparent" }
|
|
880
|
+
}
|
|
881
|
+
}
|
|
806
882
|
}
|
|
807
883
|
},
|
|
808
884
|
styleOverrides: {
|
|
809
885
|
select: {
|
|
810
|
-
display: "flex",
|
|
811
|
-
alignItems: "center",
|
|
812
886
|
"&.MuiSelect-select": {
|
|
813
|
-
minHeight: "
|
|
814
|
-
"
|
|
815
|
-
|
|
816
|
-
|
|
887
|
+
minHeight: "auto",
|
|
888
|
+
padding: "6px 12px",
|
|
889
|
+
fontSize: 14,
|
|
890
|
+
lineHeight: "20px"
|
|
817
891
|
}
|
|
818
892
|
},
|
|
819
893
|
icon: {
|
|
@@ -824,7 +898,7 @@ function buildComponents(tokens) {
|
|
|
824
898
|
MuiMenuItem: {
|
|
825
899
|
styleOverrides: {
|
|
826
900
|
root: {
|
|
827
|
-
borderRadius:
|
|
901
|
+
borderRadius: radius3.md,
|
|
828
902
|
padding: "6px 8px",
|
|
829
903
|
gap: 4,
|
|
830
904
|
"&:hover": {
|
|
@@ -837,15 +911,24 @@ function buildComponents(tokens) {
|
|
|
837
911
|
MuiAutocomplete: {
|
|
838
912
|
styleOverrides: {
|
|
839
913
|
paper: {
|
|
840
|
-
borderRadius:
|
|
914
|
+
borderRadius: radius3.md,
|
|
841
915
|
boxShadow: tokenShadows.lg,
|
|
842
916
|
border: `1px solid ${border3.secondary}`,
|
|
843
917
|
marginTop: 4
|
|
844
918
|
},
|
|
919
|
+
inputRoot: {
|
|
920
|
+
// Override Autocomplete's default padding so the input height stays 32px
|
|
921
|
+
padding: "0 12px",
|
|
922
|
+
"&.MuiOutlinedInput-root .MuiAutocomplete-input": {
|
|
923
|
+
padding: "6px 0",
|
|
924
|
+
fontSize: 14,
|
|
925
|
+
lineHeight: "20px"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
845
928
|
option: {
|
|
846
|
-
fontSize:
|
|
847
|
-
lineHeight: "
|
|
848
|
-
padding: "
|
|
929
|
+
fontSize: 14,
|
|
930
|
+
lineHeight: "20px",
|
|
931
|
+
padding: "6px 12px",
|
|
849
932
|
"&.Mui-focused": {
|
|
850
933
|
backgroundColor: bg3.primaryHover
|
|
851
934
|
},
|
|
@@ -866,7 +949,7 @@ function buildComponents(tokens) {
|
|
|
866
949
|
styleOverrides: {
|
|
867
950
|
root: {
|
|
868
951
|
color: border3.primary,
|
|
869
|
-
borderRadius:
|
|
952
|
+
borderRadius: radius3.xs,
|
|
870
953
|
padding: 0,
|
|
871
954
|
width: 20,
|
|
872
955
|
height: 20,
|
|
@@ -883,7 +966,7 @@ function buildComponents(tokens) {
|
|
|
883
966
|
"&.Mui-focusVisible": {
|
|
884
967
|
outline: "none",
|
|
885
968
|
boxShadow: focusRings3.brand,
|
|
886
|
-
borderRadius:
|
|
969
|
+
borderRadius: radius3.xs
|
|
887
970
|
},
|
|
888
971
|
"&.Mui-disabled": {
|
|
889
972
|
color: border3.primary
|
|
@@ -913,7 +996,7 @@ function buildComponents(tokens) {
|
|
|
913
996
|
"&.Mui-focusVisible": {
|
|
914
997
|
outline: "none",
|
|
915
998
|
boxShadow: focusRings3.brand,
|
|
916
|
-
borderRadius:
|
|
999
|
+
borderRadius: radius3.full
|
|
917
1000
|
},
|
|
918
1001
|
"&.Mui-disabled": {
|
|
919
1002
|
color: border3.primary
|
|
@@ -961,7 +1044,7 @@ function buildComponents(tokens) {
|
|
|
961
1044
|
boxShadow: "0px 1px 2px 0px #1018280d"
|
|
962
1045
|
},
|
|
963
1046
|
track: {
|
|
964
|
-
borderRadius:
|
|
1047
|
+
borderRadius: radius3.full,
|
|
965
1048
|
backgroundColor: border3.secondary,
|
|
966
1049
|
opacity: 1
|
|
967
1050
|
}
|
|
@@ -986,8 +1069,7 @@ function buildComponents(tokens) {
|
|
|
986
1069
|
"&.Mui-selected": {
|
|
987
1070
|
backgroundColor: bg3.brandPrimary,
|
|
988
1071
|
color: buttonColors3.secondaryColor.fg,
|
|
989
|
-
borderColor: border3.
|
|
990
|
-
boxShadow: `inset 0 0 0 1px ${border3.brandSolid}`,
|
|
1072
|
+
borderColor: border3.brandSolid,
|
|
991
1073
|
"&:hover": {
|
|
992
1074
|
backgroundColor: bg3.brandSecondary
|
|
993
1075
|
}
|
|
@@ -1001,7 +1083,7 @@ function buildComponents(tokens) {
|
|
|
1001
1083
|
MuiToggleButtonGroup: {
|
|
1002
1084
|
styleOverrides: {
|
|
1003
1085
|
root: {
|
|
1004
|
-
borderRadius:
|
|
1086
|
+
borderRadius: radius3.md,
|
|
1005
1087
|
overflow: "hidden"
|
|
1006
1088
|
},
|
|
1007
1089
|
grouped: {
|
|
@@ -1009,20 +1091,26 @@ function buildComponents(tokens) {
|
|
|
1009
1091
|
"&:not(:first-of-type)": {
|
|
1010
1092
|
marginLeft: -1
|
|
1011
1093
|
},
|
|
1012
|
-
"&.Mui-selected + &.Mui-selected": {
|
|
1013
|
-
boxShadow: `inset -1px 0 0 0 ${border3.brandSolid}, inset 0 1px 0 0 ${border3.brandSolid}, inset 0 -1px 0 0 ${border3.brandSolid}`
|
|
1014
|
-
},
|
|
1015
1094
|
"&:first-of-type": {
|
|
1016
|
-
borderTopLeftRadius:
|
|
1017
|
-
borderBottomLeftRadius:
|
|
1095
|
+
borderTopLeftRadius: radius3.md,
|
|
1096
|
+
borderBottomLeftRadius: radius3.md
|
|
1018
1097
|
},
|
|
1019
1098
|
"&:last-of-type": {
|
|
1020
|
-
borderTopRightRadius:
|
|
1021
|
-
borderBottomRightRadius:
|
|
1099
|
+
borderTopRightRadius: radius3.md,
|
|
1100
|
+
borderBottomRightRadius: radius3.md
|
|
1022
1101
|
}
|
|
1023
1102
|
}
|
|
1024
1103
|
}
|
|
1025
1104
|
},
|
|
1105
|
+
// ─── Drawer (used by Sidebar) ─────────────────────────────────
|
|
1106
|
+
MuiDrawer: {
|
|
1107
|
+
styleOverrides: {
|
|
1108
|
+
paper: {
|
|
1109
|
+
backgroundColor: bg3.primary,
|
|
1110
|
+
borderRight: `1px solid ${border3.secondary}`
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1026
1114
|
// ─── Card ───────────────────────────────────────────────────────
|
|
1027
1115
|
MuiCard: {
|
|
1028
1116
|
defaultProps: {
|
|
@@ -1030,7 +1118,7 @@ function buildComponents(tokens) {
|
|
|
1030
1118
|
},
|
|
1031
1119
|
styleOverrides: {
|
|
1032
1120
|
root: {
|
|
1033
|
-
borderRadius:
|
|
1121
|
+
borderRadius: radius3.xl,
|
|
1034
1122
|
border: `1px solid ${border3.secondary}`,
|
|
1035
1123
|
backgroundColor: bg3.primary,
|
|
1036
1124
|
boxShadow: tokenShadows.xs,
|
|
@@ -1079,7 +1167,7 @@ function buildComponents(tokens) {
|
|
|
1079
1167
|
backgroundImage: "none"
|
|
1080
1168
|
},
|
|
1081
1169
|
rounded: {
|
|
1082
|
-
borderRadius:
|
|
1170
|
+
borderRadius: radius3.lg
|
|
1083
1171
|
},
|
|
1084
1172
|
elevation1: {
|
|
1085
1173
|
boxShadow: tokenShadows.xs,
|
|
@@ -1120,7 +1208,7 @@ function buildComponents(tokens) {
|
|
|
1120
1208
|
styleOverrides: {
|
|
1121
1209
|
root: {
|
|
1122
1210
|
border: `1px solid ${border3.secondary}`,
|
|
1123
|
-
borderRadius:
|
|
1211
|
+
borderRadius: radius3.lg,
|
|
1124
1212
|
"&:not(:last-child)": {
|
|
1125
1213
|
marginBottom: 8
|
|
1126
1214
|
},
|
|
@@ -1130,7 +1218,7 @@ function buildComponents(tokens) {
|
|
|
1130
1218
|
"&.Mui-expanded": {
|
|
1131
1219
|
margin: 0,
|
|
1132
1220
|
marginBottom: 8,
|
|
1133
|
-
borderRadius:
|
|
1221
|
+
borderRadius: radius3.lg
|
|
1134
1222
|
}
|
|
1135
1223
|
}
|
|
1136
1224
|
}
|
|
@@ -1193,7 +1281,7 @@ function buildComponents(tokens) {
|
|
|
1193
1281
|
MuiChip: {
|
|
1194
1282
|
styleOverrides: {
|
|
1195
1283
|
root: {
|
|
1196
|
-
borderRadius:
|
|
1284
|
+
borderRadius: radius3.md
|
|
1197
1285
|
},
|
|
1198
1286
|
label: {
|
|
1199
1287
|
fontWeight: 500
|
|
@@ -1332,7 +1420,7 @@ function buildComponents(tokens) {
|
|
|
1332
1420
|
MuiTableContainer: {
|
|
1333
1421
|
styleOverrides: {
|
|
1334
1422
|
root: {
|
|
1335
|
-
borderRadius:
|
|
1423
|
+
borderRadius: radius3.xl,
|
|
1336
1424
|
border: `1px solid ${border3.secondary}`,
|
|
1337
1425
|
boxShadow: "none"
|
|
1338
1426
|
}
|
|
@@ -1347,7 +1435,7 @@ function buildComponents(tokens) {
|
|
|
1347
1435
|
lineHeight: "18px",
|
|
1348
1436
|
minWidth: 20,
|
|
1349
1437
|
height: 20,
|
|
1350
|
-
borderRadius:
|
|
1438
|
+
borderRadius: radius3.full
|
|
1351
1439
|
},
|
|
1352
1440
|
colorPrimary: {
|
|
1353
1441
|
backgroundColor: bg3.brandSolid
|
|
@@ -1364,7 +1452,7 @@ function buildComponents(tokens) {
|
|
|
1364
1452
|
dot: {
|
|
1365
1453
|
minWidth: 8,
|
|
1366
1454
|
height: 8,
|
|
1367
|
-
borderRadius:
|
|
1455
|
+
borderRadius: radius3.full
|
|
1368
1456
|
}
|
|
1369
1457
|
}
|
|
1370
1458
|
},
|
|
@@ -1387,7 +1475,7 @@ function buildComponents(tokens) {
|
|
|
1387
1475
|
MuiListItemButton: {
|
|
1388
1476
|
styleOverrides: {
|
|
1389
1477
|
root: {
|
|
1390
|
-
borderRadius:
|
|
1478
|
+
borderRadius: radius3.sm,
|
|
1391
1479
|
padding: "8px 12px",
|
|
1392
1480
|
"&:hover": {
|
|
1393
1481
|
backgroundColor: bg3.primaryHover
|
|
@@ -1435,7 +1523,7 @@ function buildComponents(tokens) {
|
|
|
1435
1523
|
lineHeight: "18px",
|
|
1436
1524
|
fontWeight: 600,
|
|
1437
1525
|
padding: "8px 12px",
|
|
1438
|
-
borderRadius:
|
|
1526
|
+
borderRadius: radius3.md,
|
|
1439
1527
|
boxShadow: tokenShadows.lg
|
|
1440
1528
|
},
|
|
1441
1529
|
arrow: {
|
|
@@ -1450,7 +1538,7 @@ function buildComponents(tokens) {
|
|
|
1450
1538
|
},
|
|
1451
1539
|
styleOverrides: {
|
|
1452
1540
|
root: {
|
|
1453
|
-
borderRadius:
|
|
1541
|
+
borderRadius: radius3.xl,
|
|
1454
1542
|
fontSize: 14,
|
|
1455
1543
|
lineHeight: "20px",
|
|
1456
1544
|
padding: "12px 16px",
|
|
@@ -1516,7 +1604,7 @@ function buildComponents(tokens) {
|
|
|
1516
1604
|
MuiDialog: {
|
|
1517
1605
|
styleOverrides: {
|
|
1518
1606
|
paper: {
|
|
1519
|
-
borderRadius:
|
|
1607
|
+
borderRadius: radius3.xl,
|
|
1520
1608
|
boxShadow: tokenShadows.xl,
|
|
1521
1609
|
padding: 0
|
|
1522
1610
|
}
|
|
@@ -1555,17 +1643,17 @@ function buildComponents(tokens) {
|
|
|
1555
1643
|
MuiLinearProgress: {
|
|
1556
1644
|
styleOverrides: {
|
|
1557
1645
|
root: {
|
|
1558
|
-
borderRadius:
|
|
1646
|
+
borderRadius: radius3.full,
|
|
1559
1647
|
height: 8,
|
|
1560
1648
|
backgroundColor: border3.secondary
|
|
1561
1649
|
},
|
|
1562
1650
|
barColorPrimary: {
|
|
1563
1651
|
backgroundColor: fg3.brandPrimary,
|
|
1564
|
-
borderRadius:
|
|
1652
|
+
borderRadius: radius3.full
|
|
1565
1653
|
},
|
|
1566
1654
|
barColorSecondary: {
|
|
1567
1655
|
backgroundColor: bg3.secondarySolid,
|
|
1568
|
-
borderRadius:
|
|
1656
|
+
borderRadius: radius3.full
|
|
1569
1657
|
}
|
|
1570
1658
|
}
|
|
1571
1659
|
},
|
|
@@ -1589,10 +1677,10 @@ function buildComponents(tokens) {
|
|
|
1589
1677
|
backgroundColor: bg3.tertiary
|
|
1590
1678
|
},
|
|
1591
1679
|
rounded: {
|
|
1592
|
-
borderRadius:
|
|
1680
|
+
borderRadius: radius3.md
|
|
1593
1681
|
},
|
|
1594
1682
|
circular: {
|
|
1595
|
-
borderRadius:
|
|
1683
|
+
borderRadius: radius3.full
|
|
1596
1684
|
}
|
|
1597
1685
|
}
|
|
1598
1686
|
},
|
|
@@ -1602,7 +1690,7 @@ function buildComponents(tokens) {
|
|
|
1602
1690
|
root: {
|
|
1603
1691
|
backgroundColor: bg3.primarySolid,
|
|
1604
1692
|
color: text3.white,
|
|
1605
|
-
borderRadius:
|
|
1693
|
+
borderRadius: radius3.xl,
|
|
1606
1694
|
boxShadow: tokenShadows.lg,
|
|
1607
1695
|
fontSize: 14,
|
|
1608
1696
|
lineHeight: "20px",
|
|
@@ -1637,7 +1725,7 @@ function buildComponents(tokens) {
|
|
|
1637
1725
|
styleOverrides: {
|
|
1638
1726
|
root: {
|
|
1639
1727
|
border: `1px solid ${border3.secondary}`,
|
|
1640
|
-
borderRadius:
|
|
1728
|
+
borderRadius: radius3.xl,
|
|
1641
1729
|
fontFamily: "inherit",
|
|
1642
1730
|
"& .MuiDataGrid-withBorderColor": {
|
|
1643
1731
|
borderColor: border3.secondary
|
|
@@ -1875,7 +1963,27 @@ var colors2 = {
|
|
|
1875
1963
|
/** Success — forest defaults (standard UX green) */
|
|
1876
1964
|
success: colors.success,
|
|
1877
1965
|
/** Blue (info) — forest defaults (standard UX) */
|
|
1878
|
-
blue: colors.blue
|
|
1966
|
+
blue: colors.blue,
|
|
1967
|
+
teal: colors.teal,
|
|
1968
|
+
orange: colors.orange,
|
|
1969
|
+
purple: colors.purple,
|
|
1970
|
+
pink: colors.pink,
|
|
1971
|
+
fuchsia: colors.fuchsia,
|
|
1972
|
+
orangeDark: colors.orangeDark,
|
|
1973
|
+
green: colors.green,
|
|
1974
|
+
indigo: colors.indigo
|
|
1975
|
+
};
|
|
1976
|
+
var radius2 = {
|
|
1977
|
+
...radius,
|
|
1978
|
+
xxs: 1,
|
|
1979
|
+
xs: 2,
|
|
1980
|
+
sm: 3,
|
|
1981
|
+
md: 4,
|
|
1982
|
+
lg: 5,
|
|
1983
|
+
xl: 6,
|
|
1984
|
+
"2xl": 8,
|
|
1985
|
+
"3xl": 10,
|
|
1986
|
+
"4xl": 12
|
|
1879
1987
|
};
|
|
1880
1988
|
var text2 = {
|
|
1881
1989
|
primary: colors2.gray[900],
|
|
@@ -2091,7 +2199,39 @@ var chartColors2 = {
|
|
|
2091
2199
|
series2Fg: red[600],
|
|
2092
2200
|
series2FgHover: red[700],
|
|
2093
2201
|
series2Bg: red[100],
|
|
2094
|
-
series2BgHover: red[200]
|
|
2202
|
+
series2BgHover: red[200],
|
|
2203
|
+
series3Fg: colors2.teal[600],
|
|
2204
|
+
series3FgHover: colors2.teal[700],
|
|
2205
|
+
series3Bg: colors2.teal[100],
|
|
2206
|
+
series3BgHover: colors2.teal[200],
|
|
2207
|
+
series4Fg: colors2.orange[600],
|
|
2208
|
+
series4FgHover: colors2.orange[700],
|
|
2209
|
+
series4Bg: colors2.orange[100],
|
|
2210
|
+
series4BgHover: colors2.orange[200],
|
|
2211
|
+
series5Fg: colors2.purple[600],
|
|
2212
|
+
series5FgHover: colors2.purple[700],
|
|
2213
|
+
series5Bg: colors2.purple[100],
|
|
2214
|
+
series5BgHover: colors2.purple[200],
|
|
2215
|
+
series6Fg: colors2.pink[600],
|
|
2216
|
+
series6FgHover: colors2.pink[700],
|
|
2217
|
+
series6Bg: colors2.pink[100],
|
|
2218
|
+
series6BgHover: colors2.pink[200],
|
|
2219
|
+
series7Fg: colors2.fuchsia[600],
|
|
2220
|
+
series7FgHover: colors2.fuchsia[700],
|
|
2221
|
+
series7Bg: colors2.fuchsia[100],
|
|
2222
|
+
series7BgHover: colors2.fuchsia[200],
|
|
2223
|
+
series8Fg: colors2.orangeDark[600],
|
|
2224
|
+
series8FgHover: colors2.orangeDark[700],
|
|
2225
|
+
series8Bg: colors2.orangeDark[100],
|
|
2226
|
+
series8BgHover: colors2.orangeDark[200],
|
|
2227
|
+
series9Fg: colors2.green[600],
|
|
2228
|
+
series9FgHover: colors2.green[700],
|
|
2229
|
+
series9Bg: colors2.green[100],
|
|
2230
|
+
series9BgHover: colors2.green[200],
|
|
2231
|
+
series10Fg: colors2.indigo[600],
|
|
2232
|
+
series10FgHover: colors2.indigo[700],
|
|
2233
|
+
series10Bg: colors2.indigo[100],
|
|
2234
|
+
series10BgHover: colors2.indigo[200]
|
|
2095
2235
|
};
|
|
2096
2236
|
var focusRings2 = {
|
|
2097
2237
|
brand: "0px 0px 0px 4px #f040403d",
|
|
@@ -2111,7 +2251,7 @@ var alkemyPlusPreset = {
|
|
|
2111
2251
|
tokens: {
|
|
2112
2252
|
colors: colors2,
|
|
2113
2253
|
spacing,
|
|
2114
|
-
radius,
|
|
2254
|
+
radius: radius2,
|
|
2115
2255
|
shadows,
|
|
2116
2256
|
focusRings: focusRings2,
|
|
2117
2257
|
fontFamily: '"Aeonik", sans-serif',
|
|
@@ -2166,5 +2306,5 @@ var forestThemeOptions = {
|
|
|
2166
2306
|
var forestTheme = createTheme(forestThemeOptions);
|
|
2167
2307
|
|
|
2168
2308
|
export { alkemyPlusPreset, alpha, avatarColors, bg, border, breadcrumbColors, buildTheme, buildThemeOptions, buttonColors, chartColors, colors, components, container, display, fg, focusRings, fontFamily, fontSize, fontWeight, forestPreset, forestTheme, forestThemeOptions, getAvailablePresets, getPreset, iconColors, lineHeight, navColors, palette, radius, registerPreset, shadows, shadows2, sliderColors, spacing, text, toggleColors, typography, widths };
|
|
2169
|
-
//# sourceMappingURL=chunk-
|
|
2170
|
-
//# sourceMappingURL=chunk-
|
|
2309
|
+
//# sourceMappingURL=chunk-QF5T6J4D.mjs.map
|
|
2310
|
+
//# sourceMappingURL=chunk-QF5T6J4D.mjs.map
|