2019-10-02 17:05:57 +08:00
|
|
|
/*
|
2024-09-09 21:57:16 +08:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2019-10-02 17:05:57 +08:00
|
|
|
Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
|
|
|
2024-09-09 21:57:16 +08:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2019-10-02 17:05:57 +08:00
|
|
|
*/
|
|
|
|
|
2020-06-23 23:53:16 +08:00
|
|
|
$font-family: var(--font-family, $font-family);
|
|
|
|
$monospace-font-family: var(--font-family-monospace, $monospace-font-family);
|
2021-09-27 14:35:02 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
|
2024-07-15 18:02:29 +08:00
|
|
|
$accent: var(--accent-color, $accent);
|
2021-10-13 22:43:01 +08:00
|
|
|
$alert: var(--alert, $alert);
|
|
|
|
$links: var(--links, $links);
|
|
|
|
$primary-content: var(--primary-content, $primary-content);
|
|
|
|
$secondary-content: var(--secondary-content, $secondary-content);
|
|
|
|
$tertiary-content: var(--tertiary-content, $tertiary-content);
|
|
|
|
$quaternary-content: var(--quaternary-content, $quaternary-content);
|
|
|
|
$quinary-content: var(--quinary-content, $quinary-content);
|
|
|
|
$system: var(--system, $system);
|
2023-07-13 01:46:49 +08:00
|
|
|
$system-transparent: var(--system-transparent, #e1e6ec00);
|
2021-10-13 22:43:01 +08:00
|
|
|
$background: var(--background, $background);
|
2023-07-13 01:46:49 +08:00
|
|
|
$panels: var(--panels, var(--cpd-color-gray-600));
|
|
|
|
$panel-actions: var(--panels-actions, var(--cpd-color-gray-300));
|
2021-09-27 14:35:02 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* --timeline-background-color */
|
2019-10-01 21:31:43 +08:00
|
|
|
$button-secondary-bg-color: var(--timeline-background-color);
|
|
|
|
$lightbox-border-color: var(--timeline-background-color);
|
|
|
|
$menu-bg-color: var(--timeline-background-color);
|
|
|
|
$message-action-bar-bg-color: var(--timeline-background-color);
|
2021-08-12 17:10:47 +08:00
|
|
|
$background: var(--timeline-background-color);
|
2023-07-13 01:46:49 +08:00
|
|
|
$togglesw-ball-color: var(--cpd-color-bg-action-primary-rest);
|
2021-12-03 17:05:25 +08:00
|
|
|
$togglesw-off-color: var(--togglesw-off-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
$droptarget-bg-color: var(--timeline-background-color-50pct); /* still needs alpha at .5 */
|
|
|
|
$authpage-modal-bg-color: var(--timeline-background-color-50pct); /* still needs alpha at .59 */
|
2020-07-15 00:20:28 +08:00
|
|
|
$roomheader-bg-color: var(--timeline-background-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --roomlist-highlights-color */
|
2021-08-25 15:17:22 +08:00
|
|
|
$panel-actions: var(--roomlist-highlights-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --sidebar-color */
|
2022-03-23 07:07:37 +08:00
|
|
|
$spacePanel-bg-color: var(--sidebar-color);
|
2019-10-01 21:31:43 +08:00
|
|
|
$tooltip-timeline-bg-color: var(--sidebar-color);
|
|
|
|
$dialog-backdrop-color: var(--sidebar-color-50pct);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --roomlist-background-color */
|
2019-10-01 21:31:43 +08:00
|
|
|
$header-panel-bg-color: var(--roomlist-background-color);
|
2023-10-11 22:43:01 +08:00
|
|
|
$header-panel-bg-hover: var(--cpd-color-gray-200);
|
2019-10-01 21:31:43 +08:00
|
|
|
$panel-gradient: var(--roomlist-background-color-0pct), var(--roomlist-background-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* these were #f2f5f8 instead of #f3f8fd, but close enough */
|
2019-10-01 21:31:43 +08:00
|
|
|
$dark-panel-bg-color: var(--roomlist-background-color);
|
|
|
|
$input-lighter-bg-color: var(--roomlist-background-color);
|
|
|
|
$secondary-accent-color: var(--roomlist-background-color);
|
|
|
|
$selected-color: var(--roomlist-background-color);
|
|
|
|
$widget-menu-bar-bg-color: var(--roomlist-background-color);
|
2020-07-18 05:59:35 +08:00
|
|
|
$roomlist-bg-color: var(--roomlist-background-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --timeline-text-color */
|
2019-10-01 21:31:43 +08:00
|
|
|
$message-action-bar-fg-color: var(--timeline-text-color);
|
2021-08-12 17:27:12 +08:00
|
|
|
$primary-content: var(--timeline-text-color);
|
2019-10-01 21:31:43 +08:00
|
|
|
$roomtopic-color: var(--timeline-text-color-50pct);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #212121 */
|
2019-10-01 21:31:43 +08:00
|
|
|
$topleftmenu-color: var(--timeline-text-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #45474a */
|
2019-10-01 21:31:43 +08:00
|
|
|
$dialog-title-fg-color: var(--timeline-text-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #4e5054 */
|
2019-10-01 21:31:43 +08:00
|
|
|
$authpage-lang-color: var(--timeline-text-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #232f32 */
|
2021-09-09 14:11:47 +08:00
|
|
|
$authpage-primary-color: var(--timeline-text-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* --roomlist-text-secondary-color */
|
2020-07-18 06:18:15 +08:00
|
|
|
$roomtile-default-badge-bg-color: var(--roomlist-text-secondary-color);
|
2020-07-15 00:20:28 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* --roomlist-separator-color */
|
2019-10-01 21:31:43 +08:00
|
|
|
$input-darker-bg-color: var(--roomlist-separator-color);
|
2022-12-12 19:24:14 +08:00
|
|
|
$primary-hairline-color: var(--roomlist-separator-color); /* originally #e5e5e5, but close enough */
|
2023-07-13 01:46:49 +08:00
|
|
|
$secondary-hairline-color: var(--secondary-hairline-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --timeline-text-secondary-color */
|
2019-10-01 21:31:43 +08:00
|
|
|
$authpage-secondary-color: var(--timeline-text-secondary-color);
|
|
|
|
$pinned-color: var(--timeline-text-secondary-color);
|
|
|
|
$settings-subsection-fg-color: var(--timeline-text-secondary-color);
|
|
|
|
$roomheader-addroom-bg-color: var(--timeline-text-secondary-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #747474 */
|
2019-10-01 21:31:43 +08:00
|
|
|
$light-fg-color: var(--timeline-text-secondary-color);
|
2021-12-03 17:05:25 +08:00
|
|
|
$focus-bg-color: var(--focus-bg-color, $focus-bg-color);
|
|
|
|
$room-highlight-color: var(--room-highlight-color);
|
|
|
|
|
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* was #888888 */
|
2019-10-01 21:31:43 +08:00
|
|
|
$info-plinth-fg-color: var(--timeline-text-secondary-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --primary-color */
|
2021-11-11 21:37:29 +08:00
|
|
|
$accent-alt: var(--primary-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* --warning-color */
|
|
|
|
$button-danger-disabled-bg-color: var(--warning-color-50pct); /* still needs alpha at 0.5 */
|
|
|
|
|
|
|
|
/* --timeline-highlights-color */
|
2020-04-28 22:49:25 +08:00
|
|
|
$event-selected-color: var(--timeline-highlights-color);
|
|
|
|
$event-highlight-bg-color: var(--timeline-highlights-color);
|
2022-07-27 21:39:29 +08:00
|
|
|
|
|
|
|
/* redirect some variables away from their hardcoded values in the light theme */
|
2021-08-12 17:27:12 +08:00
|
|
|
$settings-grey-fg-color: $primary-content;
|
2021-08-06 19:07:09 +08:00
|
|
|
|
2022-07-27 21:39:29 +08:00
|
|
|
/* --eventbubble colors */
|
2021-08-06 19:07:09 +08:00
|
|
|
$eventbubble-self-bg: var(--eventbubble-self-bg, $eventbubble-self-bg);
|
|
|
|
$eventbubble-others-bg: var(--eventbubble-others-bg, $eventbubble-others-bg);
|
|
|
|
$eventbubble-bg-hover: var(--eventbubble-bg-hover, $eventbubble-bg-hover);
|
2021-12-03 17:05:25 +08:00
|
|
|
|
2022-12-12 19:24:14 +08:00
|
|
|
$reaction-row-button-selected-bg-color: var(
|
|
|
|
--reaction-row-button-selected-bg-color,
|
|
|
|
$reaction-row-button-selected-bg-color
|
|
|
|
);
|
2021-12-03 17:05:25 +08:00
|
|
|
|
|
|
|
$menu-selected-color: var(--menu-selected-color, $menu-selected-color);
|
2022-05-05 17:13:09 +08:00
|
|
|
$pill-bg-color: var(--other-user-pill-bg-color, $pill-bg-color);
|
|
|
|
$pill-hover-bg-color: var(--other-user-pill-bg-color, $pill-hover-bg-color);
|
2024-03-22 08:27:13 +08:00
|
|
|
$pill-press-bg-color: var(--other-user-pill-bg-color, $pill-press-bg-color);
|
2022-02-17 17:40:23 +08:00
|
|
|
$icon-button-color: var(--icon-button-color, $icon-button-color);
|
2023-07-13 01:46:49 +08:00
|
|
|
|
|
|
|
$strong-input-border-color: var(--strong-input-border-color, $strong-input-border-color);
|
|
|
|
$inverted-bg-color: var(--strong-input-border-color, $inverted-bg-color);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Variation of the accent color.
|
|
|
|
* Generate this colour scale using LeonardoColor
|
|
|
|
* TODO: Add link
|
|
|
|
*/
|
|
|
|
$accent-100: var(--accent-color-100);
|
|
|
|
$accent-200: var(--accent-color-200);
|
|
|
|
$accent-300: var(--accent-color-300);
|
|
|
|
$accent-400: var(--accent-color-400);
|
|
|
|
$accent-500: var(--accent-color-500);
|
|
|
|
$accent-600: var(--accent-color-600);
|
|
|
|
$accent-700: var(--accent-color-700);
|
|
|
|
$accent-800: var(--accent-color-800);
|
|
|
|
$accent-900: var(--accent-color-900);
|
|
|
|
$accent-1000: var(--accent-color-1000);
|
|
|
|
$accent-1100: var(--accent-color-1100);
|
|
|
|
$accent-1200: var(--accent-color-1200);
|
|
|
|
$accent-1300: var(--accent-color-1300);
|
|
|
|
$accent-1400: var(--accent-color-1400);
|