Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Commit

Permalink
feat(style): adding typographic variables to theme (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
rusackas committed May 11, 2020
1 parent 6e7ff58 commit f06cb4a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions packages/superset-ui-style/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import styled, { CreateStyled } from '@emotion/styled';

const defaultTheme = {
borderRadius: '4px',
borderRadius: 4,
colors: {
primary: {
base: '#20A7C9',
Expand All @@ -36,7 +36,28 @@ const defaultTheme = {
light5: '#F5F5F8',
},
},
gridUnit: '4px',
typography: {
families: {
sansSerif: `'Inter', Helvetica, Arial`,
serif: `Georgia, 'Times New Roman', Times, serif`,
monospace: `'Fira Code', 'Courier New', monospace`,
},
weights: {
light: 200,
normal: 400,
bold: 700,
},
sizes: {
xxs: 9,
xs: 10,
s: 12,
m: 14,
l: 16,
xl: 21,
xxl: 28,
},
},
gridUnit: 4,
};

export default styled as CreateStyled<typeof defaultTheme>;
Expand Down

1 comment on commit f06cb4a

@vercel
Copy link

@vercel vercel bot commented on f06cb4a May 11, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.