Skip to content

Commit

Permalink
Improved color contrast of highlighted text. Fixes #37. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jumjamjohn authored and klaudiosinani committed Aug 26, 2018
1 parent 7849b8e commit 01135e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ exports.decorateConfig = config => {
const selection = color(primary).alpha(0.3).string();
const transparent = color(secondary).alpha(0).string();
const header = color(background).isDark() ? '#FAFAFA' : '#010101';
const activeTab = color(secondary).isDark() ? '#FAFAFA' : '#383A42';
const isSecondaryDark = color(secondary).isDark();
const activeTab = isSecondaryDark ? '#FAFAFA' : '#383A42';
const highlight = isSecondaryDark ? '#FFFFFF' : '#000000';
const secondHighlight = isSecondaryDark ? '#C7C7C7' : '#686868';
const tab = color(activeTab).darken(0.1);

// Set poketab
Expand All @@ -106,15 +109,15 @@ exports.decorateConfig = config => {
blue: secondary,
magenta: secondary,
cyan: secondary,
white: secondary,
white: secondHighlight,
lightBlack: tertiary,
lightRed: secondary,
lightGreen: secondary,
lightYellow: secondary,
lightBlue: secondary,
lightMagenta: secondary,
lightCyan: secondary,
lightWhite: secondary
lightWhite: highlight
}
};

Expand Down

0 comments on commit 01135e7

Please sign in to comment.