/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @import url("chrome://global/skin/design-system/tokens-shared.css"); :root, :host(.anonymous-content-host) { /** Font size **/ --font-size-root: 15px; /* Set at the `:root`. Do not use */ --font-size-small: 0.867rem; /* 13px */ --font-size-large: 1.133rem; /* 17px */ --font-size-xlarge: 1.467rem; /* 22px */ --font-size-xxlarge: 1.6rem; /* 24px */ } @media not (prefers-contrast) { :root, :host(.anonymous-content-host) { /** Border **/ --border-interactive-color: light-dark(var(--color-gray-60), var(--color-gray-50)); /** Button **/ /* TODO Bug 1821203 - Gray use needs to be consolidated */ --button-background-color: color-mix(in srgb, currentColor 7%, transparent); --button-background-color-hover: color-mix(in srgb, currentColor 14%, transparent); --button-background-color-active: color-mix(in srgb, currentColor 21%, transparent); /** Link **/ --link-color: var(--brand-color-accent); --link-color-hover: var(--brand-color-accent-hover); --link-color-active: var(--brand-color-accent-active); --link-color-visited: var(--link-color); /** Color **/ --color-accent-primary: var(--brand-color-accent); --color-accent-primary-hover: var(--brand-color-accent-hover); --color-accent-primary-active: var(--brand-color-accent-active); --brand-color-accent: light-dark(var(--color-blue-50), var(--color-cyan-50)); --brand-color-accent-hover: light-dark(var(--color-blue-60), var(--color-cyan-30)); --brand-color-accent-active: light-dark(var(--color-blue-70), var(--color-cyan-20)); --color-canvas: light-dark(var(--color-white), var(--color-gray-90)); /** Text **/ --text-color: light-dark(var(--color-gray-100), var(--color-gray-05)); --text-color-deemphasized: light-dark( color-mix(in srgb, currentColor 69%, transparent), color-mix(in srgb, currentColor 75%, transparent) ); } }