blob: 708d78bd452eafaefeab879291b81c5135289ef1 [file] [log] [blame]
/* Copyright 2020 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
/* This file is generated from:
{%- for path in in_files %}
* {{path}}
{%- endfor %}
*/
{#
The :not(body) adds extra selector specificity so that these colors 'win'
against paper-styles/color.html.
TODO(https://crbug.com/1062154): Remove once deprecated colors are removed from
Chrome OS pages.
-#}
html:not(body) {
{%- for model_name, color in light_colors.items() %}
{{model_name | to_css_var_name}}-rgb: {{color | css_color_rgb}};
{{model_name | to_css_var_name}}: {{css_color_from_rgb_var(model_name, color.a)}};
{% endfor %}
}
{%- if dark_colors %}
@media (prefers-color-scheme: dark) {
{#-
The :not(body) adds extra selector specificity so that these colors 'win'
against paper-styles/color.html.
TODO(https://crbug.com/1062154): Remove once deprecated colors are removed from
Chrome OS pages.
#}
html:not(body) {
{%- for model_name, color in dark_colors.items() %}
{{model_name | to_css_var_name}}-rgb: {{color | css_color_rgb}};
{{model_name | to_css_var_name}}: {{css_color_from_rgb_var(model_name, color.a)}};
{% endfor %}
}
}
{%- endif %}