Skip to content

Commit

Permalink
fix(styles/common): fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 committed Oct 30, 2024
1 parent c5d2d74 commit 3a736a2
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 51 deletions.
100 changes: 50 additions & 50 deletions packages/components/src/core/styles/common/SDSAppTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
header: fontFamily,
tabular: fontFamily,
},
styles: {
mobileStyles: {
body: {
regular: {
button: {
Expand All @@ -211,17 +211,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
l: {
fontSize: 18,
fontSize: 16,
fontWeight: FontWeight.regular,
letterSpacing: "0px",
lineHeight: "28px",
lineHeight: "26px",
textTransform: "none",
},
m: {
fontSize: 16,
fontSize: 14,
fontWeight: FontWeight.regular,
letterSpacing: "0px",
lineHeight: "26px",
lineHeight: "24px",
textTransform: "none",
},
s: {
Expand All @@ -246,10 +246,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 11,
fontSize: 12,
fontWeight: FontWeight.regular,
letterSpacing: "0.1px",
lineHeight: "16px",
lineHeight: "18px",
textTransform: "none",
},
},
Expand All @@ -262,17 +262,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
l: {
fontSize: 18,
fontSize: 16,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "28px",
lineHeight: "26px",
textTransform: "none",
},
m: {
fontSize: 16,
fontSize: 14,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "26px",
lineHeight: "24px",
textTransform: "none",
},
s: {
Expand All @@ -297,10 +297,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 11,
fontSize: 12,
fontWeight: FontWeight.semibold,
letterSpacing: "0.1px",
lineHeight: "16px",
lineHeight: "18px",
textTransform: "none",
},
},
Expand All @@ -322,10 +322,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "uppercase",
},
xxxxs: {
fontSize: 10,
fontSize: 11,
fontWeight: FontWeight.semibold,
letterSpacing: "0.5px",
lineHeight: "14px",
lineHeight: "16px",
textTransform: "uppercase",
},
},
Expand Down Expand Up @@ -367,17 +367,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
header: {
semibold: {
l: {
fontSize: 18,
fontSize: 16,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "24px",
lineHeight: "22px",
textTransform: "none",
},
m: {
fontSize: 16,
fontSize: 14,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "22px",
lineHeight: "20px",
textTransform: "none",
},
s: {
Expand All @@ -388,10 +388,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xl: {
fontSize: 22,
fontSize: 18,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "30px",
lineHeight: "24px",
textTransform: "none",
},
xs: {
Expand All @@ -402,10 +402,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxl: {
fontSize: 26,
fontSize: 22,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "34px",
lineHeight: "30px",
textTransform: "none",
},
xxs: {
Expand All @@ -416,10 +416,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 11,
fontSize: 12,
fontWeight: FontWeight.semibold,
letterSpacing: "0.1px",
lineHeight: "16px",
lineHeight: "18px",
textTransform: "none",
},
},
Expand Down Expand Up @@ -463,7 +463,7 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
},
},
},
mobileStyles: {
styles: {
body: {
regular: {
button: {
Expand All @@ -474,17 +474,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
l: {
fontSize: 16,
fontSize: 18,
fontWeight: FontWeight.regular,
letterSpacing: "0px",
lineHeight: "26px",
lineHeight: "28px",
textTransform: "none",
},
m: {
fontSize: 14,
fontSize: 16,
fontWeight: FontWeight.regular,
letterSpacing: "0px",
lineHeight: "24px",
lineHeight: "26px",
textTransform: "none",
},
s: {
Expand All @@ -509,10 +509,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 12,
fontSize: 11,
fontWeight: FontWeight.regular,
letterSpacing: "0.1px",
lineHeight: "18px",
lineHeight: "16px",
textTransform: "none",
},
},
Expand All @@ -525,17 +525,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
l: {
fontSize: 16,
fontSize: 18,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "26px",
lineHeight: "28px",
textTransform: "none",
},
m: {
fontSize: 14,
fontSize: 16,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "24px",
lineHeight: "26px",
textTransform: "none",
},
s: {
Expand All @@ -560,10 +560,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 12,
fontSize: 11,
fontWeight: FontWeight.semibold,
letterSpacing: "0.1px",
lineHeight: "18px",
lineHeight: "16px",
textTransform: "none",
},
},
Expand All @@ -585,10 +585,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "uppercase",
},
xxxxs: {
fontSize: 11,
fontSize: 10,
fontWeight: FontWeight.semibold,
letterSpacing: "0.5px",
lineHeight: "16px",
lineHeight: "14px",
textTransform: "uppercase",
},
},
Expand Down Expand Up @@ -630,17 +630,17 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
header: {
semibold: {
l: {
fontSize: 16,
fontSize: 18,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "22px",
lineHeight: "24px",
textTransform: "none",
},
m: {
fontSize: 14,
fontSize: 16,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "20px",
lineHeight: "22px",
textTransform: "none",
},
s: {
Expand All @@ -651,10 +651,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xl: {
fontSize: 18,
fontSize: 22,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "24px",
lineHeight: "30px",
textTransform: "none",
},
xs: {
Expand All @@ -665,10 +665,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxl: {
fontSize: 22,
fontSize: 26,
fontWeight: FontWeight.semibold,
letterSpacing: "0px",
lineHeight: "30px",
lineHeight: "34px",
textTransform: "none",
},
xxs: {
Expand All @@ -679,10 +679,10 @@ const sharedAppTheme: Omit<AppTheme, "colors" | "mode"> = {
textTransform: "none",
},
xxxs: {
fontSize: 12,
fontSize: 11,
fontWeight: FontWeight.semibold,
letterSpacing: "0.1px",
lineHeight: "18px",
lineHeight: "16px",
textTransform: "none",
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/core/styles/common/mixins/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { css, SerializedStyles } from "@emotion/react";
import { Breakpoint, TypographyStyle } from "@mui/material";
import { TypographyStyle } from "@mui/material";
import { Typography } from "../types";
import { CommonThemeProps, getTypography } from "../selectors/theme";

Expand Down

0 comments on commit 3a736a2

Please sign in to comment.