Skip to content

Commit 6703afa

Browse files
committed
updated color sceheme for links and root
1 parent a1c7488 commit 6703afa

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,12 @@ import { toggleExpanded, setCurrentTabInApp } from '../../../slices/mainSlice';
2222
import { useDispatch } from 'react-redux';
2323
import { LinkTypesProps, DefaultMargin, ToolTipStyles } from '../../../FrontendTypes';
2424

25-
const linkStroke = '#F00008'; //#F00008 original
26-
const rootStroke = '#F00008'; //#F00008 original
27-
const nodeParentFill = '#161521'; //#161521 original
28-
const nodeChildFill = '#62d6fb'; //#62d6fb original
29-
const nodeParentStroke = '#F00008'; //#F00008 original
30-
const nodeChildStroke = '#4D4D4D'; //#4D4D4D original
3125
let stroke = '';
3226

33-
/* Heat Map Colors (for links) */
34-
const lightOrange = '#F1B476';
35-
const darkOrange = '#E4765B';
36-
const red = '#C64442';
37-
const plum = '#8C2743';
27+
const lightWeight = '#94a3b8'; // Lightest gray for minimal props
28+
const mediumWeight = '#64748b'; // Medium gray for light prop load
29+
const heavyWeight = '#475569'; // Darker gray for medium load
30+
const veryHeavy = '#14b8a6'; // Teal for heavy prop load
3831

3932
const defaultMargin: DefaultMargin = {
4033
top: 30,
@@ -284,13 +277,13 @@ export default function ComponentMap({
284277
stroke = '#808080';
285278
} else {
286279
if (childPropsLength <= 1) {
287-
stroke = lightOrange;
280+
stroke = lightWeight;
288281
} else if (childPropsLength <= 2) {
289-
stroke = darkOrange;
282+
stroke = mediumWeight;
290283
} else if (childPropsLength <= 3) {
291-
stroke = red;
284+
stroke = heavyWeight;
292285
} else {
293-
stroke = plum;
286+
stroke = veryHeavy;
294287
}
295288
}
296289

0 commit comments

Comments
 (0)