-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathstyled.d.ts
More file actions
31 lines (30 loc) · 760 Bytes
/
styled.d.ts
File metadata and controls
31 lines (30 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Informando para o typescript as propriedades do tema
import 'styled-components';
// 📃 Sobrescrevendo definições de tipos n o styled-component
// 📃 Precisa add o arquivo no tsconfig.json
declare module 'styled-components' {
export interface DefaultTheme {
title: string;
colors: {
primary: string;
secondary: string;
text: string;
textTitle: string;
white: string;
whiteDark: string;
red: string;
redDark: string;
redShadow: string;
green: string;
greenDark: string;
greenShadow: string;
pink: string;
pinkDark: string;
pinkShadow: string;
purple: string;
purpleDark: string;
purpleShadow: string;
cyan: string;
},
}
}