Skip to content

Commit

Permalink
change from static definition to types
Browse files Browse the repository at this point in the history
  • Loading branch information
agneym committed Dec 18, 2019
1 parent ccd45a0 commit f52b4d7
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions playground/src/types/styled-components.d.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,8 @@
import "styled-components";

import theme from "../utils/theme";

declare module "styled-components" {
export interface DefaultTheme {
container: {
border: string;
minHeight: string;
};
error: {
background: string;
color: string;
};
console: {
background: string;
};
tabs: {
tabHeader: {
borderBottom: string;
};
tabPanel: {
phoneHeight: string;
};
selectedTab: {
borderBottom: string;
};
};
}
type Theme = typeof theme;
export interface DefaultTheme extends Theme {}
}

0 comments on commit f52b4d7

Please sign in to comment.