Skip to content

Commit e20c7c0

Browse files
committed
fix(dark): use correct hex order
1 parent 42a1ecd commit e20c7c0

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { generateColorSteps } from '../../utils/theme';
2+
3+
// TODO: ADD TYPE
4+
export const darkPrimitiveColors = {
5+
// TODO: Update hex values to use the text color variable and background color variable
6+
gray: generateColorSteps('#ffffff', '#000', true),
7+
};

core/src/themes/base/dark.tokens.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import { mix, generateColorSteps } from '../../utils/theme';
1+
import { mix } from '../../utils/theme';
22
import type { DarkTheme } from '../themes.interfaces';
33

4+
import { darkPrimitiveColors } from './dark.tokens.primitives';
5+
46
const colors = {
57
primary: '#4d8dff',
68
secondary: '#46b1ff',
@@ -11,7 +13,7 @@ const colors = {
1113
light: '#222428',
1214
medium: '#989aa2',
1315
dark: '#f4f5f8',
14-
gray: generateColorSteps('#000000', '#ffffff', true),
16+
...darkPrimitiveColors,
1517
};
1618

1719
export const darkTheme: DarkTheme = {
@@ -220,5 +222,8 @@ export const darkTheme: DarkTheme = {
220222
IonItem: {
221223
background: '#000000',
222224
},
225+
IonBreadcrumb: {
226+
separatorColor: colors.gray['550']!,
227+
},
223228
},
224229
};

core/src/themes/base/light.tokens.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,9 @@ export const lightTheme: LightTheme = {
160160
},
161161
},
162162
},
163+
components: {
164+
IonBreadcrumb: {
165+
separatorColor: '#73849a',
166+
},
167+
},
163168
};

core/src/themes/ios/dark.tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import { darkTheme as baseDarkTheme } from '../base/dark.tokens';
2+
import { darkPrimitiveColors as baseDarkPrimitiveColors } from '../base/dark.tokens.primitives';
23
import type { DarkTheme } from '../themes.interfaces';
34

45
const colors = {
5-
gray: baseDarkTheme.color!.gray!,
6+
gray: baseDarkPrimitiveColors.gray,
67
};
78

89
export const darkTheme: DarkTheme = {
@@ -56,7 +57,6 @@ export const darkTheme: DarkTheme = {
5657
},
5758

5859
color: {
59-
// TODO: Update hex values to use the text color variable and background color variable
6060
gray: colors.gray,
6161
},
6262

0 commit comments

Comments
 (0)