Skip to content

Commit

Permalink
feat(typography): add
Browse files Browse the repository at this point in the history
Signed-off-by: Sudhanshu Dasgupta <[email protected]>
  • Loading branch information
sudhanshutech committed Apr 15, 2024
1 parent 897d6ab commit a7aba00
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/theme/components/formlabel.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiFormLabel: Components<Theme>['MuiFormLabel'] = {
const {
palette: {
background: { brand }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'&.Mui-focused': {
color: brand?.default
}
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/input.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiInput: Components<Theme>['MuiInput'] = {
const {
palette: {
background: { graphics }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'&:before': {
borderBottom: '2px solid rgba(0, 0, 0, 0.5)'
},
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/outlinedinput.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ export const MuiOutlinedInput: Components<Theme>['MuiOutlinedInput'] = {
const {
palette: {
background: { graphics, brand }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
borderColor: graphics?.default
},
Expand Down
4 changes: 3 additions & 1 deletion src/theme/components/textfield.modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ export const MuiTextField: Components<Theme>['MuiTextField'] = {
const {
palette: {
background: { graphics }
}
},
typography: { textB1Regular }
} = theme;
return {
...textB1Regular,
'--TextField-brandBorderColor': 'rgba(0, 0, 0, 0.5)',
'--TextField-brandBorderHoverColor': graphics?.default,
'--TextField-brandBorderFocusedColor': graphics?.default,
Expand Down

0 comments on commit a7aba00

Please sign in to comment.