Skip to content

Commit 61aa713

Browse files
committed
Create a file for the two themes.
1 parent a2ec419 commit 61aa713

File tree

2 files changed

+81
-37
lines changed

2 files changed

+81
-37
lines changed

netflix-create-react-vite-app/src/styles/theme.tsx

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ declare module 'styled-components' {
1313
purple: string;
1414
lightPurple: string;
1515
yellow: string;
16+
buttonText: string;
1617
};
1718
fontFamily: string;
1819
space: string[];
@@ -23,40 +24,4 @@ declare module 'styled-components' {
2324
}
2425
}
2526

26-
export const theme: DefaultTheme = {
27-
colors: {
28-
grey: '#333',
29-
black: '#000',
30-
white: '#fff',
31-
blue: '#8EB3CC',
32-
purple:"#5928ed",
33-
lightPurple:"#9b8bf4",
34-
yellow:"#ffff00",
35-
red: '#ff0000',
36-
orange: '#FFA500',
37-
green: '#00FF00',
38-
},
39-
fontFamily: 'Montserrat, sans-serif',
40-
space: [
41-
'0px',
42-
'2px',
43-
'4px',
44-
'6px',
45-
'8px',
46-
'12px',
47-
'16px',
48-
'18px',
49-
'20px',
50-
'24px',
51-
'32px',
52-
'40px',
53-
'64px',
54-
'128px',
55-
'256px',
56-
'512px',
57-
],
58-
fontSize: ['0.5rem', '0.7rem', '0.8rem', '1rem', '1.25rem', '1.5rem', '2rem', '2.5rem'],
59-
borderRadius: ['2px', '4px', '6px', '8px'],
60-
borderShadow: ['0 25px 100px -10px rgba(169, 154, 154, 0.54)'],
61-
lineHeight: ['1.2', '1.3', '1.4', '1.5', '1.8', '2'],
62-
};
27+
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
import { DefaultTheme } from 'styled-components';
2+
3+
export const purpleTheme: DefaultTheme = {
4+
colors: {
5+
grey: '#333',
6+
black: '#000',
7+
white: '#fff',
8+
blue: '#8EB3CC',
9+
purple:"#5928ed",
10+
lightPurple:"#9b8bf4",
11+
yellow:"#ffff00",
12+
red: '#ff0000',
13+
orange: '#FFA500',
14+
green: '#00FF00',
15+
buttonText: '#fff',
16+
},
17+
fontFamily: 'Montserrat, sans-serif',
18+
space: [
19+
'0px',
20+
'2px',
21+
'4px',
22+
'6px',
23+
'8px',
24+
'12px',
25+
'16px',
26+
'18px',
27+
'20px',
28+
'24px',
29+
'32px',
30+
'40px',
31+
'64px',
32+
'128px',
33+
'256px',
34+
'512px',
35+
],
36+
fontSize: ['0.5rem', '0.7rem', '0.8rem', '1rem', '1.25rem', '1.5rem', '2rem', '2.5rem'],
37+
borderRadius: ['2px', '4px', '6px', '8px'],
38+
borderShadow: ['0 25px 100px -10px rgba(169, 154, 154, 0.54)'],
39+
lineHeight: ['1.2', '1.3', '1.4', '1.5', '1.8', '2'],
40+
};
41+
42+
export const yellowTheme: DefaultTheme = {
43+
colors: {
44+
grey: '#333',
45+
black: '#000',
46+
white: '#fff',
47+
blue: '#8EB3CC',
48+
purple:"#ffff00",
49+
lightPurple:"#FFFF99",
50+
yellow:"#ffff00",
51+
red: '#ff0000',
52+
orange: '#FFA500',
53+
green: '#00FF00',
54+
buttonText: '#000',
55+
},
56+
fontFamily: 'Montserrat, sans-serif',
57+
space: [
58+
'0px',
59+
'2px',
60+
'4px',
61+
'6px',
62+
'8px',
63+
'12px',
64+
'16px',
65+
'18px',
66+
'20px',
67+
'24px',
68+
'32px',
69+
'40px',
70+
'64px',
71+
'128px',
72+
'256px',
73+
'512px',
74+
],
75+
fontSize: ['0.5rem', '0.7rem', '0.8rem', '1rem', '1.25rem', '1.5rem', '2rem', '2.5rem'],
76+
borderRadius: ['2px', '4px', '6px', '8px'],
77+
borderShadow: ['0 25px 100px -10px rgba(169, 154, 154, 0.54)'],
78+
lineHeight: ['1.2', '1.3', '1.4', '1.5', '1.8', '2'],
79+
};

0 commit comments

Comments
 (0)