Skip to content

Commit

Permalink
Moves theme to root
Browse files Browse the repository at this point in the history
  • Loading branch information
eluciano11 committed Apr 25, 2019
1 parent a0b0ee9 commit 4250a03
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 34 deletions.
38 changes: 4 additions & 34 deletions theme/index.ts
Original file line number Diff line number Diff line change
@@ -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 };
35 changes: 35 additions & 0 deletions theme/theme.ts
Original file line number Diff line number Diff line change
@@ -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 };

0 comments on commit 4250a03

Please sign in to comment.