Skip to content

Commit 11a2044

Browse files
authored
blocking dark mode in production until releasing full support (#1887)
1 parent c47ff67 commit 11a2044

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/style/colors.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ export class Colors {
6161
* and change the design tokens accordingly
6262
*/
6363
supportDarkMode() {
64-
const designTokensColors = Scheme.getSchemeType() === 'dark' ? designTokensDM : designTokens;
65-
Object.assign(this, designTokensColors);
64+
if (__DEV__) { // TODO: remove condition when dark mode will be released
65+
const designTokensColors = Scheme.getSchemeType() === 'dark' ? designTokensDM : designTokens;
66+
Object.assign(this, designTokensColors);
67+
}
6668
}
6769

6870
/**

0 commit comments

Comments
 (0)