Skip to content

Commit

Permalink
chore: add input styles
Browse files Browse the repository at this point in the history
  • Loading branch information
k0stik committed Oct 20, 2023
1 parent 1130613 commit 5a90adb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/theme/components/inputs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Theme } from "@mui/material/styles";

const inputs = (): Theme["components"] => {
return {
MuiInputBase: {
variants: [
{
props: { size: "medium" },
style: {
fontSize: "14px",
},
},
{
props: { size: "small" },
style: {
height: "30px",
fontSize: "13px",
},
},
],
},
};
};

export default inputs;
2 changes: 2 additions & 0 deletions src/theme/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createTheme, Theme } from "@mui/material/styles";

import buttons from "./components/buttons";
import chips from "./components/chips";
import inputs from "./components/inputs";
import lightPalette from "./palette";
import shadows from "./shadows";
import typography from "./typography";
Expand Down Expand Up @@ -95,6 +96,7 @@ const buildTheme = (theme: Theme) => {
components: {
...buttons(theme),
...chips(),
...inputs(),
...MuiSvgIconSizesOverrides,
},
});
Expand Down

0 comments on commit 5a90adb

Please sign in to comment.