diff --git a/packages/apps/src/themes.ts b/packages/apps/src/themes.ts index d5cbe5cea7..0f39d261c9 100644 --- a/packages/apps/src/themes.ts +++ b/packages/apps/src/themes.ts @@ -20,8 +20,8 @@ export const darkTheme: ThemeDef = { colorError: 'rgba(255, 0, 0, 0.85)', colorLabel: 'rgba(244, 242, 240, 0.45)', colorSummary: 'rgba(244, 242, 240, 0.75)', - fontFamily: '"Nunito Sans", sans-serif', fontMono: 'monospace', + fontSans: '"Nunito Sans", sans-serif', theme: 'dark' }; @@ -42,7 +42,7 @@ export const lightTheme: ThemeDef = { colorError: 'rgba(139, 0, 0)', colorLabel: 'rgba(78, 78, 78, 0.66)', colorSummary: 'rgba(0, 0, 0, 0.6)', - fontFamily: '"Nunito Sans", sans-serif', fontMono: 'monospace', + fontSans: '"Nunito Sans", sans-serif', theme: 'light' }; diff --git a/packages/react-components/src/Table/Foot.tsx b/packages/react-components/src/Table/Foot.tsx index 4b38eda62a..5aaf7ceb7b 100644 --- a/packages/react-components/src/Table/Foot.tsx +++ b/packages/react-components/src/Table/Foot.tsx @@ -27,7 +27,7 @@ function Foot ({ className = '', footer, isEmpty }: Props): React.ReactElement

` td { color: rgba(${theme.theme === 'dark' ? '254, 240, 240' : '78, 78, 78'}, 0.66); - font-family: ${theme.fontFamily}; + font-family: ${theme.fontSans}; font-weight: 400; padding: 0.75rem 1rem 0.25rem; text-align: right; diff --git a/packages/react-components/src/Table/Head.tsx b/packages/react-components/src/Table/Head.tsx index 202310f486..645dfa0aaf 100644 --- a/packages/react-components/src/Table/Head.tsx +++ b/packages/react-components/src/Table/Head.tsx @@ -53,7 +53,7 @@ export default React.memo(styled(Head)(({ theme }: ThemeProps) => ` z-index: 1; th { - font-family: ${theme.fontFamily}; + font-family: ${theme.fontSans}; font-weight: 400; padding: 0.75rem 1rem 0.25rem; text-align: right; diff --git a/packages/react-components/src/styles/components.ts b/packages/react-components/src/styles/components.ts index d346bd3cca..767cb79cab 100644 --- a/packages/react-components/src/styles/components.ts +++ b/packages/react-components/src/styles/components.ts @@ -50,9 +50,9 @@ export default css` color: #2e86ab !important; background: none !important; } - + button.ui--Button { - font-family: ${({ theme }: ThemeProps) => theme.fontFamily}; + font-family: ${({ theme }: ThemeProps) => theme.fontSans}; } .editable { diff --git a/packages/react-components/src/styles/index.ts b/packages/react-components/src/styles/index.ts index d23a772662..df1487904d 100644 --- a/packages/react-components/src/styles/index.ts +++ b/packages/react-components/src/styles/index.ts @@ -215,7 +215,7 @@ export default createGlobalStyle` #root { background: ${({ theme }) => theme.bgPage}; color: ${({ theme }) => theme.color}; - font-family: ${({ theme }) => theme.fontFamily}; + font-family: ${({ theme }) => theme.fontSans}; height: 100%; } @@ -300,7 +300,7 @@ export default createGlobalStyle` body { height: 100%; margin: 0; - font-family: ${({ theme }) => theme.fontFamily}; + font-family: ${({ theme }) => theme.fontSans}; } br { @@ -332,7 +332,7 @@ export default createGlobalStyle` h1, h2, h3, h4, h5 { color: ${({ theme }) => theme.colorSummary}; - font-family: ${({ theme }) => theme.fontFamily}; + font-family: ${({ theme }) => theme.fontSans}; font-weight: 400; } @@ -366,7 +366,7 @@ export default createGlobalStyle` box-sizing: border-box; color: ${({ theme }) => theme.colorLabel}; display: block; - font-family: ${({ theme }) => theme.fontFamily}; + font-family: ${({ theme }) => theme.fontSans}; font-size: 1rem; font-weight: 400; } diff --git a/packages/react-components/src/styles/semantic.ts b/packages/react-components/src/styles/semantic.ts index 88843f4373..71426b2024 100644 --- a/packages/react-components/src/styles/semantic.ts +++ b/packages/react-components/src/styles/semantic.ts @@ -26,7 +26,7 @@ export default css` .ui.selection.dropdown > input { background: ${({ theme }: ThemeProps) => theme.bgInput}; color: ${({ theme }: ThemeProps) => theme.color}; - font-family: ${({ theme }: ThemeProps) => theme.fontFamily}; + font-family: ${({ theme }: ThemeProps) => theme.fontSans}; &:focus { background: ${({ theme }: ThemeProps) => theme.bgInput}; @@ -127,7 +127,7 @@ export default css` background: ${({ theme }: ThemeProps) => theme.bgPage}; box-shadow: none; color: ${({ theme }: ThemeProps) => theme.color}; - font-family: ${({ theme }: ThemeProps) => theme.fontFamily}; + font-family: ${({ theme }: ThemeProps) => theme.fontSans}; > .actions, > .content { @@ -145,7 +145,7 @@ export default css` background: transparent; border-bottom: none; color: ${({ theme }: ThemeProps) => theme.colorSummary}; - font-family: ${({ theme }: ThemeProps) => theme.fontFamily}; + font-family: ${({ theme }: ThemeProps) => theme.fontSans}; font-size: 1.75rem; font-weight: 400; line-height: 1.25rem; diff --git a/packages/react-components/src/types.ts b/packages/react-components/src/types.ts index 58f3459724..9f7befd4e0 100644 --- a/packages/react-components/src/types.ts +++ b/packages/react-components/src/types.ts @@ -142,7 +142,7 @@ export interface ThemeDef { colorError: string; colorLabel: string; colorSummary: string; - fontFamily: string; + fontSans: string; fontMono: string; theme: 'dark' | 'light'; }