Skip to content

Commit

Permalink
theme types: Fix themeColors annotation.
Browse files Browse the repository at this point in the history
We'll want to deprecate the 'default' name; as I explain on zulip#4009
[1], any 'default' semantics should only apply the device level, at
least on iOS, not within the app.

[1]: zulip#4009
  • Loading branch information
Chris Bobbe authored and gnprice committed May 1, 2020
1 parent c0aac7d commit d9a8cb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/styles/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
import React from 'react';
import type { Context } from 'react';

import type { ThemeName } from '../reduxTypes';

export type ThemeColors = {|
color: string,
backgroundColor: string,
cardColor: string,
dividerColor: string,
|};

export const themeColors: { [string]: ThemeColors } = {
export const themeColors: { [name: ThemeName | 'light']: ThemeColors } = {
night: {
color: 'hsl(210, 11%, 85%)',
backgroundColor: 'hsl(212, 28%, 18%)',
Expand Down

0 comments on commit d9a8cb4

Please sign in to comment.