Skip to content

Commit

Permalink
feat(type): add new types
Browse files Browse the repository at this point in the history
Add new types for themes on styled-components module
  • Loading branch information
mateusfg7 committed Aug 31, 2020
1 parent 8300909 commit bbab41b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/styles/styled.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import 'styled-components';

declare module 'styled-components' {
export interface DefaultTheme {
title: string;

colors: {
header: {
text: string;
background: string;
};
footer: {
text: string;
background: string;
};
config: {
arrow_button: {
color: string;
hover: string;
checked: string;
};
fieldset: {
color: string;
title_background: string;
input_background: string;
};
reset_button: {
color: string;
background: string;
hover: string;
active: {
desktop: string;
mobile: string;
};
};
};
};
}
}

0 comments on commit bbab41b

Please sign in to comment.