@mui/system#fontWeight TypeScript Examples
The following examples show how to use
@mui/system#fontWeight.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ReportRuleEvaluator.ts From neodash with Apache License 2.0 | 6 votes |
generateClassDefinitionsBasedOnRules = (rules) => {
const classes = {};
rules.forEach((rule, i) => {
if (rule['customization'] == 'cell color') {
classes['& .rule' + i] = {
backgroundColor: rule['customizationValue']
}
}
if (rule['customization'] == 'cell text color') {
classes['& .rule' + i] = {
color: rule['customizationValue'],
fontWeight: "bold"
}
}
if (rule['customization'] == 'row color') {
classes['& .rule' + i] = {
backgroundColor: rule['customizationValue']
}
}
if (rule['customization'] == 'row text color') {
classes['& .rule' + i] = {
color: rule['customizationValue'],
fontWeight: "bold"
}
}
});
return makeStyles({
root: classes,
});
}