@redocly/theme
Version:
Shared UI components lib
244 lines (213 loc) • 12.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.activeBrandPaletteLight = void 0;
const styled_components_1 = require("styled-components");
function brandPaletteLight(palette) {
switch (palette) {
case 'slate':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-10); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-7); // @presenter Color
`;
case 'pink':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-7); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'coral':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'amber':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-7); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'jade':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-5); // @presenter Color
`;
case 'cyan':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'ocean':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'indigo':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
case 'iris':
return (0, styled_components_1.css) `
--color-brand-1:
--color-brand-2:
--color-brand-3:
--color-brand-4:
--color-brand-5:
--color-brand-6:
--color-brand-7:
--color-brand-8:
--color-brand-9:
--color-brand-10:
--color-brand-11:
--text-color-on-color:
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
--search-ai-gradient-start-color: var(--color-brand-8); // @presenter Color
--search-ai-gradient-end-color: var(--color-brand-4); // @presenter Color
`;
default:
return (0, styled_components_1.css) `
--button-bg-color-primary-legacy: var(--color-blue-6); // @presenter Color
--button-bg-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
--button-bg-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
--toc-item-text-color-active-legacy: var(--text-color-primary); // @presenter Color
--toc-item-border-color-active-legacy: var(--border-color-invers); // @presenter Color
--checkbox-border-color-legacy: var(--border-color-primary); // @presenter Color
--checkbox-box-color-active-legacy: var(--color-warm-grey-10); // @presenter Color
--switch-bg-color-selected-legacy: var(--color-warm-grey-9); // @presenter Color
--md-tabs-active-tab-bg-color-legacy: var(--bg-color-active); // @presenter Color
--md-tabs-active-tab-text-color-legacy: var(--text-color-primary); // @presenter Color
--md-tabs-active-tab-border-color-legacy: var(--text-color-primary); // @presenter Color
--admonition-default-bg-color-legacy: var(--color-warm-grey-2); // @presenter Color
--admonition-default-icon-color-legacy: var(--color-warm-grey-11); // @presenter Color
--admonition-default-border-color-legacy: var(--color-warm-grey-4); // @presenter Color
--menu-item-bg-color-active-legacy: var(--tree-bg-color-active); // @presenter Color
--menu-item-color-active-legacy: var(--tree-content-color-default); // @presenter Color
--menu-item-color-active-hover-legacy: var(--tree-content-color-hover); // @presenter Color
--menu-item-bg-color-active-hover-legacy: var(--color-hover-base); // @presenter Color
--code-block-highlighted-bg-color-legacy: var(--layer-color-hover); // @presenter Color
--code-block-tokens-string-color-legacy: var(--color-blue-7); // @presenter Color
--security-header-color-legacy: var(--link-color-primary); // @presenter Color
--schema-name-color-legacy: var(--text-color-primary); // @presenter Color
--search-ai-conversation-input-border-color-focus-legacy: var(--color-blue-6); // @presenter Color
--search-ai-user-bg-color-legacy: var(--color-blue-6); // @presenter Color
--button-content-color-link-legacy: var(--link-color-primary); // @presenter Color
--button-content-color-link-hover-legacy: var(--link-color-primary-hover); // @presenter Color
--button-content-color-link-pressed-legacy: var(--link-color-primary-pressed); // @presenter Color
--link-color-primary-legacy: var(--color-blue-6); // @presenter Color
--link-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
--link-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
--link-color-visited-legacy: var(--color-purple-7); // @presenter Color
--search-ai-gradient-start-color-legacy:
--search-ai-gradient-end-color-legacy:
`;
}
}
/**
* @tokens Palette
*/
exports.activeBrandPaletteLight = (0, styled_components_1.css) `
${({ palette }) => brandPaletteLight(palette)}
`;
//# sourceMappingURL=palette.js.map