Skip to content

Commit 5e78855

Browse files
committed
feat: expose APPLE_COLORS for external use
1 parent 91edfd6 commit 5e78855

File tree

2 files changed

+222
-0
lines changed

2 files changed

+222
-0
lines changed

src/styles/colors.ts

Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
export type AppleColorShades = {
2+
light: string;
3+
dark: string;
4+
contrastLight: string;
5+
contrastDark: string;
6+
};
7+
8+
export const APPLE_COLORS = {
9+
systemBlue: {
10+
light: "#007aff",
11+
dark: "#0a84ff",
12+
contrastLight: "#0040dd",
13+
contrastDark: "#409cff",
14+
},
15+
systemGreen: {
16+
light: "#34c759",
17+
dark: "#30d158",
18+
contrastLight: "#248a3d",
19+
contrastDark: "#30db5b",
20+
},
21+
systemIndigo: {
22+
light: "#5856d6",
23+
dark: "#5e5ce6",
24+
contrastLight: "#3634a3",
25+
contrastDark: "#7d7aff",
26+
},
27+
systemOrange: {
28+
light: "#ff9500",
29+
dark: "#ff9f0a",
30+
contrastLight: "#c93400",
31+
contrastDark: "#ffb340",
32+
},
33+
systemPink: {
34+
light: "#ff2d55",
35+
dark: "#ff375f",
36+
contrastLight: "#d30f45",
37+
contrastDark: "#ff6482",
38+
},
39+
systemPurple: {
40+
light: "#af52de",
41+
dark: "#bf5af2",
42+
contrastLight: "#8944ab",
43+
contrastDark: "#da8fff",
44+
},
45+
systemRed: {
46+
light: "#ff3b30",
47+
dark: "#ff453a",
48+
contrastLight: "#d70015",
49+
contrastDark: "#ff6961",
50+
},
51+
systemTeal: {
52+
light: "#5ac8fa",
53+
dark: "#64d2ff",
54+
contrastLight: "#0071a4",
55+
contrastDark: "#70d7ff",
56+
},
57+
systemYellow: {
58+
light: "#ffcc00",
59+
dark: "#ffd60a",
60+
contrastLight: "#b36200",
61+
contrastDark: "#ffd426",
62+
},
63+
systemGray: {
64+
light: "#8e8e93",
65+
dark: "#8e8e93",
66+
contrastLight: "#6c6c70",
67+
contrastDark: "#aeaeb2",
68+
},
69+
systemGray2: {
70+
light: "#aeaeb2",
71+
dark: "#636366",
72+
contrastLight: "#8e8e93",
73+
contrastDark: "#7c7c80",
74+
},
75+
systemGray3: {
76+
light: "#c7c7cc",
77+
dark: "#48484a",
78+
contrastLight: "#aeaeb2",
79+
contrastDark: "#545456",
80+
},
81+
systemGray4: {
82+
light: "#d1d1d6",
83+
dark: "#3a3a3c",
84+
contrastLight: "#bcbcc0",
85+
contrastDark: "#444446",
86+
},
87+
systemGray5: {
88+
light: "#e5e5ea",
89+
dark: "#2c2c2e",
90+
contrastLight: "#d8d8dc",
91+
contrastDark: "#363638",
92+
},
93+
systemGray6: {
94+
light: "#f2f2f7",
95+
dark: "#1c1c1e",
96+
contrastLight: "#ebebf0",
97+
contrastDark: "#242426",
98+
},
99+
systemBackground: {
100+
light: "#ffffff",
101+
dark: "#000000",
102+
contrastLight: "#ffffff",
103+
contrastDark: "#000000",
104+
},
105+
secondarySystemBackground: {
106+
light: "#f2f2f7",
107+
dark: "#1c1c1e",
108+
contrastLight: "#ebebf0",
109+
contrastDark: "#242426",
110+
},
111+
tertiarySystemBackground: {
112+
light: "#ffffff",
113+
dark: "#2c2c2e",
114+
contrastLight: "#ffffff",
115+
contrastDark: "#363638",
116+
},
117+
systemGroupedBackground: {
118+
light: "#f2f2f7",
119+
dark: "#000000",
120+
contrastLight: "#ebebf0",
121+
contrastDark: "#000000",
122+
},
123+
secondarySystemGroupedBackground: {
124+
light: "#ffffff",
125+
dark: "#1c1c1e",
126+
contrastLight: "#ffffff",
127+
contrastDark: "#242426",
128+
},
129+
tertiarySystemGroupedBackground: {
130+
light: "#f2f2f7",
131+
dark: "#2c2c2e",
132+
contrastLight: "#ebebf0",
133+
contrastDark: "#363638",
134+
},
135+
systemFill: {
136+
light: "#78788033",
137+
dark: "#7878805c",
138+
contrastLight: "#78788047",
139+
contrastDark: "#78788070",
140+
},
141+
secondarySystemFill: {
142+
light: "#78788028",
143+
dark: "#78788051",
144+
contrastLight: "#7878803d",
145+
contrastDark: "#78788066",
146+
},
147+
tertiarySystemFill: {
148+
light: "#7676801e",
149+
dark: "#7676803d",
150+
contrastLight: "#76768033",
151+
contrastDark: "#76768051",
152+
},
153+
quaternarySystemFill: {
154+
light: "#74748014",
155+
dark: "#7676802e",
156+
contrastLight: "#76768028",
157+
contrastDark: "#76768042",
158+
},
159+
lightText: {
160+
light: "#ffffff99",
161+
dark: "#ffffff99",
162+
contrastLight: "#ffffff99",
163+
contrastDark: "#ffffff99",
164+
},
165+
darkText: {
166+
light: "#000000",
167+
dark: "#000000",
168+
contrastLight: "#000000",
169+
contrastDark: "#000000",
170+
},
171+
label: {
172+
light: "#000000",
173+
dark: "#ffffff",
174+
contrastLight: "#000000",
175+
contrastDark: "#ffffff",
176+
},
177+
secondaryLabel: {
178+
light: "#3c3c4399",
179+
dark: "#ebebf599",
180+
contrastLight: "#3c3c43cc",
181+
contrastDark: "#ebebf5b3",
182+
},
183+
tertiaryLabel: {
184+
light: "#3c3c434c",
185+
dark: "#ebebf54c",
186+
contrastLight: "#3c3c43b3",
187+
contrastDark: "#ebebf58c",
188+
},
189+
quaternaryLabel: {
190+
light: "#3c3c432e",
191+
dark: "#ebebf52e",
192+
contrastLight: "#3c3c438c",
193+
contrastDark: "#ebebf566",
194+
},
195+
link: {
196+
light: "#007aff",
197+
dark: "#0984ff",
198+
contrastLight: "#007aff",
199+
contrastDark: "#0984ff",
200+
},
201+
placeholderText: {
202+
light: "#3c3c434c",
203+
dark: "#ebebf54c",
204+
contrastLight: "#3c3c43b3",
205+
contrastDark: "#ebebf58c",
206+
},
207+
separator: {
208+
light: "#3c3c434a",
209+
dark: "#54545899",
210+
contrastLight: "#3c3c435e",
211+
contrastDark: "#545458ae",
212+
},
213+
opaqueSeparator: {
214+
light: "#c6c6c8",
215+
dark: "#38383a",
216+
contrastLight: "#c6c6c8",
217+
contrastDark: "#38383a",
218+
},
219+
} satisfies Record<string, AppleColorShades>;
220+
221+
export type AppleColor = keyof typeof APPLE_COLORS;

src/styles/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export * from "./buttonStyles";
2+
export * from "./colors";

0 commit comments

Comments
 (0)