Commit c4abbccc authored by dpapad's avatar dpapad Committed by Commit Bot

WebUI Polymer3: Invoke rgbify_hex_vars.py for Polymer3 as well.

Bug: 965770
Change-Id: Iad5894729b88c65f93258dd2bb5b91f9d1328f48
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715402
Auto-Submit: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarRebekah Potter <rbpotter@chromium.org>
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680198}
parent 2c8bdfae
...@@ -19,30 +19,50 @@ const template = html` ...@@ -19,30 +19,50 @@ const template = html`
/* Material Design color palette for Google products */ /* Material Design color palette for Google products */
--google-red-100: #f4c7c3; --google-red-100-rgb: 244, 199, 195; /* #f4c7c3 */
--google-red-300: #e67c73; --google-red-100: rgb(var(--google-red-100-rgb));
--google-red-500: #db4437; --google-red-300-rgb: 230, 124, 115; /* #e67c73 */
--google-red-700: #c53929; --google-red-300: rgb(var(--google-red-300-rgb));
--google-red-500-rgb: 219, 68, 55; /* #db4437 */
--google-blue-100: #c6dafc; --google-red-500: rgb(var(--google-red-500-rgb));
--google-blue-300: #7baaf7; --google-red-700-rgb: 197, 57, 41; /* #c53929 */
--google-blue-500: #4285f4; --google-red-700: rgb(var(--google-red-700-rgb));
--google-blue-700: #3367d6;
--google-blue-100-rgb: 198, 218, 252; /* #c6dafc */
--google-green-100: #b7e1cd; --google-blue-100: rgb(var(--google-blue-100-rgb));
--google-green-300: #57bb8a; --google-blue-300-rgb: 123, 170, 247; /* #7baaf7 */
--google-green-500: #0f9d58; --google-blue-300: rgb(var(--google-blue-300-rgb));
--google-green-700: #0b8043; --google-blue-500-rgb: 66, 133, 244; /* #4285f4 */
--google-blue-500: rgb(var(--google-blue-500-rgb));
--google-yellow-100: #fce8b2; --google-blue-700-rgb: 51, 103, 214; /* #3367d6 */
--google-yellow-300: #f7cb4d; --google-blue-700: rgb(var(--google-blue-700-rgb));
--google-yellow-500: #f4b400;
--google-yellow-700: #f09300; --google-green-100-rgb: 183, 225, 205; /* #b7e1cd */
--google-green-100: rgb(var(--google-green-100-rgb));
--google-grey-100: #f5f5f5; --google-green-300-rgb: 87, 187, 138; /* #57bb8a */
--google-grey-300: #e0e0e0; --google-green-300: rgb(var(--google-green-300-rgb));
--google-grey-500: #9e9e9e; --google-green-500-rgb: 15, 157, 88; /* #0f9d58 */
--google-grey-700: #616161; --google-green-500: rgb(var(--google-green-500-rgb));
--google-green-700-rgb: 11, 128, 67; /* #0b8043 */
--google-green-700: rgb(var(--google-green-700-rgb));
--google-yellow-100-rgb: 252, 232, 178; /* #fce8b2 */
--google-yellow-100: rgb(var(--google-yellow-100-rgb));
--google-yellow-300-rgb: 247, 203, 77; /* #f7cb4d */
--google-yellow-300: rgb(var(--google-yellow-300-rgb));
--google-yellow-500-rgb: 244, 180, 0; /* #f4b400 */
--google-yellow-500: rgb(var(--google-yellow-500-rgb));
--google-yellow-700-rgb: 240, 147, 0; /* #f09300 */
--google-yellow-700: rgb(var(--google-yellow-700-rgb));
--google-grey-100-rgb: 245, 245, 245; /* #f5f5f5 */
--google-grey-100: rgb(var(--google-grey-100-rgb));
--google-grey-300-rgb: 224, 224, 224; /* #e0e0e0 */
--google-grey-300: rgb(var(--google-grey-300-rgb));
--google-grey-500-rgb: 158, 158, 158; /* #9e9e9e */
--google-grey-500: rgb(var(--google-grey-500-rgb));
--google-grey-700-rgb: 97, 97, 97; /* #616161 */
--google-grey-700: rgb(var(--google-grey-700-rgb));
/* Material Design color palette from online spec document */ /* Material Design color palette from online spec document */
...@@ -337,4 +357,4 @@ const template = html` ...@@ -337,4 +357,4 @@ const template = html`
</custom-style> </custom-style>
`; `;
template.setAttribute('style', 'display: none;'); template.setAttribute('style', 'display: none;');
document.head.appendChild(template.content); document.head.appendChild(template.content);
\ No newline at end of file
...@@ -85,7 +85,10 @@ fi ...@@ -85,7 +85,10 @@ fi
echo 'Stripping unnecessary prefixed CSS rules...' echo 'Stripping unnecessary prefixed CSS rules...'
python ../v1_0/css_strip_prefixes.py --file_extension=js python ../v1_0/css_strip_prefixes.py --file_extension=js
# TODO rgbify_hex_vars.py echo 'Generating -rgb versions of --google-* vars in paper-style/colors.js...'
python ../v1_0/rgbify_hex_vars.py --filter-prefix=google --replace \
components-chromium/paper-styles/color.js
# TODO create components summary # TODO create components summary
# TODO generate gn # TODO generate gn
# TODO find unused elements? # TODO find unused elements?
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