Commit 33a9de15 authored by Meredith Lane's avatar Meredith Lane Committed by Commit Bot

[ReaderMode] Update background and text colours for themes

Updates background, text and link colours to match Figma mocks, and also
fix some colour contrast issues.

Bug: 1025300
Change-Id: I1fca11a04863718ffa1676fe978538a2ebacd6c4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2114475Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Meredith Lane <meredithl@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753037}
parent 3eac5981
...@@ -11,8 +11,12 @@ ...@@ -11,8 +11,12 @@
:root { :root {
--google-blue-700: 25, 103, 210; --google-blue-700: 25, 103, 210;
--google-blue-300: 138, 180, 248;
--google-brown-900: 62, 39, 35; --google-brown-900: 62, 39, 35;
--google-grey-50: 248, 249, 250;
--google-grey-900: 32, 33, 36;
--google-purple-700: 132, 48, 206; --google-purple-700: 132, 48, 206;
--google-purple-300: 197, 138, 249;
--google-yellow-50: 254, 247, 224; --google-yellow-50: 254, 247, 224;
--google-yellow-100: 254, 239, 195; --google-yellow-100: 254, 239, 195;
} }
...@@ -111,13 +115,13 @@ body { ...@@ -111,13 +115,13 @@ body {
* and with CSS class constants in viewer.cc */ * and with CSS class constants in viewer.cc */
.light { .light {
background-color: #FAFAFA; background-color: #FFF;
color: #424242; color: rgb(var(--google-grey-900));
} }
.dark { .dark {
background-color: #212121; background-color: rgb(var(--google-grey-900));
color: #E0E0E0; color: #FFF;
} }
.sepia { .sepia {
...@@ -126,7 +130,7 @@ body { ...@@ -126,7 +130,7 @@ body {
} }
.light a:link { .light a:link {
color: rgb(85, 85, 255); color: rgb(var(--google-blue-600));
} }
.sepia a:link { .sepia a:link {
...@@ -134,11 +138,11 @@ body { ...@@ -134,11 +138,11 @@ body {
} }
.dark a:link { .dark a:link {
color: rgb(136, 136, 255); color: rgb(var(--google-blue-300));
} }
.light a:visited { .light a:visited {
color: rgb(144, 34, 144); color: rgb(var(--google-purple-700));
} }
.sepia a:visited { .sepia a:visited {
...@@ -146,13 +150,13 @@ body { ...@@ -146,13 +150,13 @@ body {
} }
.dark a:visited { .dark a:visited {
color: rgb(216, 114, 216); color: rgb(var(--google-purple-300));
} }
.light code, .light code,
.light pre { .light pre {
background-color: #EEE; background-color: rgb(var(--google-grey-50));
border-color: #AAA; border-color: rgb(var(--google-grey-900));
} }
.sepia code, .sepia code,
...@@ -163,8 +167,8 @@ body { ...@@ -163,8 +167,8 @@ body {
.dark code, .dark code,
.dark pre { .dark pre {
background-color: #333; background-color: #000;
border-color: #555; border-color: rgba(255, 255, 255, 0.5);
} }
.light tbody tr:nth-child(odd) { .light tbody tr:nth-child(odd) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment