From 4250a03d922fe3c85e3e13b4e4860b4e215f5c59 Mon Sep 17 00:00:00 2001 From: Emmanuel Luciano Date: Thu, 25 Apr 2019 12:17:27 -0400 Subject: [PATCH] Moves theme to root --- theme/index.ts | 38 ++++---------------------------------- theme/theme.ts | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 34 deletions(-) create mode 100644 theme/theme.ts diff --git a/theme/index.ts b/theme/index.ts index 32abe53..16a21de 100644 --- a/theme/index.ts +++ b/theme/index.ts @@ -1,35 +1,5 @@ -import { Colors, colors } from "./colors"; -import { Shadows, shadows } from "./shadows"; -import { space, radii } from "./units"; -import { - TypographyElement, - fontSizes, - lineHeights, - FontWeights, - fontWeights -} from "./typography"; -import { Variant, buttons } from "./variants"; +import { Sizes, Variants, Headers } from "./constants"; +import { palette } from "./palette"; +import { Theme } from "./theme"; -interface BaseTheme { - colors: Colors; - shadows: Shadows; - fontSizes: TypographyElement; - fontWeights: FontWeights; - lineHeights: TypographyElement; - buttons: Variant; - space: number[]; - radii: number[]; -} - -const Theme: BaseTheme = { - colors, - shadows, - fontSizes, - fontWeights, - lineHeights, - buttons, - space, - radii -}; - -export { Theme }; +export { Theme, Sizes, Variants, Headers, palette }; diff --git a/theme/theme.ts b/theme/theme.ts new file mode 100644 index 0000000..32abe53 --- /dev/null +++ b/theme/theme.ts @@ -0,0 +1,35 @@ +import { Colors, colors } from "./colors"; +import { Shadows, shadows } from "./shadows"; +import { space, radii } from "./units"; +import { + TypographyElement, + fontSizes, + lineHeights, + FontWeights, + fontWeights +} from "./typography"; +import { Variant, buttons } from "./variants"; + +interface BaseTheme { + colors: Colors; + shadows: Shadows; + fontSizes: TypographyElement; + fontWeights: FontWeights; + lineHeights: TypographyElement; + buttons: Variant; + space: number[]; + radii: number[]; +} + +const Theme: BaseTheme = { + colors, + shadows, + fontSizes, + fontWeights, + lineHeights, + buttons, + space, + radii +}; + +export { Theme };