Skip to content

Commit

Permalink
#26 Remove hardcode colors from the component
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhya-metacell committed Aug 9, 2022
1 parent 78d3309 commit 858a7eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions example/components/assets/styles/variables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const vars = {
...nodeRed,
...nodeBlue,
...nodeGray,
functionTextColor: '#4579EE',
functionCodeColor: '#ED745D',
};

export default vars;
5 changes: 3 additions & 2 deletions example/components/widgets/ExpandedCustomNodeWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ import {MetaNodeModel} from "../../../dist";
import {Box, Typography} from "@mui/material";
import NodeSelection from "./NodeSelection";
import InputOutputNode from "./InputOutputNode";
import vars from "../assets/styles/variables";

const styles = {
root: {
textColor: {
color: '#4579EE',
color: vars.functionTextColor
},
codeColor: {
color: '#ED745D'
color: vars.functionCodeColor
}
}
};
Expand Down

0 comments on commit 858a7eb

Please sign in to comment.