2021-08-04 07:48:41 +00:00
|
|
|
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
|
|
|
|
$accent: #0DBD8B;
|
|
|
|
$alert: #FF5B55;
|
|
|
|
$links: #0086e6;
|
|
|
|
$primary-content: #ffffff;
|
|
|
|
$secondary-content: #A9B2BC;
|
|
|
|
$tertiary-content: #8E99A4;
|
|
|
|
$quaternary-content: #6F7882;
|
|
|
|
$quinary-content: #394049;
|
2021-08-12 14:16:13 +00:00
|
|
|
$system: #21262C;
|
2021-08-04 07:48:41 +00:00
|
|
|
$background: #15191E;
|
2021-08-12 14:16:13 +00:00
|
|
|
$panels: rgba($system, 0.9);
|
2021-08-04 07:48:41 +00:00
|
|
|
$panel-base: #8D97A5; // This color is not intended for use in the app
|
|
|
|
$panel-selected: rgba($panel-base, 0.3);
|
|
|
|
$panel-hover: rgba($panel-base, 0.1);
|
|
|
|
$panel-actions: rgba($panel-base, 0.2);
|
|
|
|
$space-nav: rgba($panel-base, 0.1);
|
|
|
|
|
|
|
|
// TODO: Move userId colors here
|
2021-08-04 06:46:09 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
// unified palette
|
|
|
|
// try to use these colors when possible
|
2020-07-14 17:19:07 +00:00
|
|
|
$header-panel-bg-color: #20252B;
|
2019-02-13 13:10:55 +00:00
|
|
|
$header-panel-border-color: #000000;
|
2020-07-14 16:39:14 +00:00
|
|
|
$header-panel-text-primary-color: #B9BEC6;
|
2019-02-12 15:40:06 +00:00
|
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
2020-07-14 16:39:14 +00:00
|
|
|
$text-secondary-color: #B9BEC6;
|
2019-02-13 13:10:55 +00:00
|
|
|
$search-bg-color: #181b21;
|
2019-02-12 15:40:06 +00:00
|
|
|
$search-placeholder-color: #61708b;
|
2019-02-13 13:10:55 +00:00
|
|
|
$room-highlight-color: #343a46;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
// typical text (dark-on-white in light skin)
|
2020-01-03 00:40:18 +00:00
|
|
|
$muted-fg-color: $header-panel-text-primary-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2020-07-31 16:52:19 +00:00
|
|
|
// additional text colors
|
2021-08-04 08:06:11 +00:00
|
|
|
$secondary-fg-color: $secondary-content;
|
|
|
|
$tertiary-fg-color: $tertiary-content;
|
2020-07-31 16:52:19 +00:00
|
|
|
|
2018-04-11 23:24:22 +00:00
|
|
|
// used for dialog box text
|
2019-02-12 15:40:06 +00:00
|
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
// used for focusing form controls
|
|
|
|
$focus-bg-color: $room-highlight-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2019-02-13 15:11:29 +00:00
|
|
|
$mention-user-pill-bg-color: $warning-color;
|
|
|
|
$other-user-pill-bg-color: $room-highlight-color;
|
2019-02-18 11:41:23 +00:00
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
|
|
|
$rte-group-pill-color: $room-highlight-color;
|
2019-02-13 15:11:29 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
// informational plinth
|
|
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
|
|
|
$info-plinth-fg-color: #888;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
$preview-bar-bg-color: $header-panel-bg-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2020-10-14 22:30:38 +00:00
|
|
|
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
|
2021-08-12 09:12:10 +00:00
|
|
|
$inverted-bg-color: $background;
|
2019-02-13 10:30:38 +00:00
|
|
|
|
|
|
|
// used by AddressSelector
|
|
|
|
$selected-color: $room-highlight-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
// selected for hoverover & selected event tiles
|
2021-08-12 14:16:13 +00:00
|
|
|
$event-selected-color: $system;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
// used for the hairline dividers in RoomView
|
2020-07-14 16:39:14 +00:00
|
|
|
$primary-hairline-color: transparent;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
// used for the border of input text fields
|
2020-07-14 17:19:27 +00:00
|
|
|
$input-border-color: rgba(231, 231, 231, 0.2);
|
2019-02-12 15:40:06 +00:00
|
|
|
$input-darker-bg-color: $search-bg-color;
|
|
|
|
$input-darker-fg-color: $search-placeholder-color;
|
|
|
|
$input-lighter-bg-color: #f2f5f8;
|
|
|
|
$input-lighter-fg-color: $input-darker-fg-color;
|
|
|
|
$input-focused-border-color: #238cf5;
|
|
|
|
$input-valid-border-color: $accent-color;
|
2019-01-31 23:36:19 +00:00
|
|
|
$input-invalid-border-color: $warning-color;
|
2019-02-12 15:40:06 +00:00
|
|
|
|
2021-08-12 09:14:11 +00:00
|
|
|
$field-focused-label-bg-color: $background;
|
2021-04-21 22:22:27 +00:00
|
|
|
|
2021-04-23 22:04:53 +00:00
|
|
|
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
|
2019-02-12 15:40:06 +00:00
|
|
|
|
2019-01-21 18:01:18 +00:00
|
|
|
// scrollbars
|
|
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
$scrollbar-track-color: transparent;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
// context menus
|
|
|
|
$menu-border-color: $header-panel-border-color;
|
|
|
|
$menu-bg-color: $header-panel-bg-color;
|
2021-08-12 09:14:11 +00:00
|
|
|
$menu-box-shadow-color: $background;
|
2019-02-12 15:40:06 +00:00
|
|
|
$menu-selected-color: $room-highlight-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2021-08-06 06:34:46 +00:00
|
|
|
$avatar-initial-color: #ffffff;
|
2021-08-12 09:14:11 +00:00
|
|
|
$avatar-bg-color: $background;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2021-08-12 09:27:12 +00:00
|
|
|
$h3-color: $primary-content;
|
2019-02-16 03:56:42 +00:00
|
|
|
|
2021-08-12 09:17:04 +00:00
|
|
|
$dialog-title-fg-color: $primary-content;
|
2019-02-18 12:14:55 +00:00
|
|
|
$dialog-backdrop-color: #000;
|
|
|
|
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
|
|
|
|
$dialog-close-fg-color: #9fa9ba;
|
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
$dialog-background-bg-color: $header-panel-bg-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
$lightbox-background-bg-color: #000;
|
2021-04-22 12:59:02 +00:00
|
|
|
$lightbox-background-bg-opacity: 0.85;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
$settings-grey-fg-color: #a2a2a2;
|
2021-08-12 14:16:13 +00:00
|
|
|
$settings-profile-placeholder-bg-color: $system;
|
2019-02-12 15:40:06 +00:00
|
|
|
$settings-profile-overlay-placeholder-fg-color: #454545;
|
2020-09-23 18:30:01 +00:00
|
|
|
$settings-profile-button-bg-color: #e7e7e7;
|
|
|
|
$settings-profile-button-fg-color: $settings-profile-overlay-placeholder-fg-color;
|
2019-02-12 15:40:06 +00:00
|
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2021-08-12 09:18:40 +00:00
|
|
|
$topleftmenu-color: $primary-content;
|
|
|
|
$roomheader-color: $primary-content;
|
2021-08-12 09:14:11 +00:00
|
|
|
$roomheader-bg-color: $background;
|
2020-07-14 16:39:14 +00:00
|
|
|
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
2021-08-12 09:18:40 +00:00
|
|
|
$roomheader-addroom-fg-color: $primary-content;
|
2020-10-14 22:30:38 +00:00
|
|
|
$groupFilterPanel-button-color: $header-panel-text-primary-color;
|
2019-02-12 17:48:27 +00:00
|
|
|
$groupheader-button-color: $header-panel-text-primary-color;
|
2019-02-12 17:31:47 +00:00
|
|
|
$rightpanel-button-color: $header-panel-text-primary-color;
|
2021-08-04 08:06:11 +00:00
|
|
|
$icon-button-color: $tertiary-content;
|
2019-02-12 15:40:06 +00:00
|
|
|
$roomtopic-color: $text-secondary-color;
|
|
|
|
$eventtile-meta-color: $roomtopic-color;
|
2018-12-06 21:39:59 +00:00
|
|
|
|
2019-02-13 13:57:59 +00:00
|
|
|
$header-divider-color: $header-panel-text-primary-color;
|
2020-07-14 12:30:05 +00:00
|
|
|
$composer-e2e-icon-color: $header-panel-text-primary-color;
|
2019-02-13 10:52:03 +00:00
|
|
|
|
2020-06-12 19:52:54 +00:00
|
|
|
// ********************
|
|
|
|
|
|
|
|
$theme-button-bg-color: #e3e8f0;
|
2021-08-04 08:06:11 +00:00
|
|
|
$dialpad-button-bg-color: $quinary-content;
|
2020-06-12 19:52:54 +00:00
|
|
|
|
2020-07-17 21:59:35 +00:00
|
|
|
$roomlist-button-bg-color: rgba(141, 151, 165, 0.2); // Buttons include the filter box, explore button, and sublist buttons
|
2021-08-12 09:14:11 +00:00
|
|
|
$roomlist-filter-active-bg-color: $background;
|
2020-07-17 21:59:35 +00:00
|
|
|
$roomlist-bg-color: rgba(33, 38, 44, 0.90);
|
2020-07-31 16:52:19 +00:00
|
|
|
$roomlist-header-color: $tertiary-fg-color;
|
2021-08-12 09:27:12 +00:00
|
|
|
$roomsublist-divider-color: $primary-content;
|
2020-11-02 17:22:45 +00:00
|
|
|
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
2020-06-12 19:52:54 +00:00
|
|
|
|
2020-10-14 22:30:38 +00:00
|
|
|
$groupFilterPanel-divider-color: $roomlist-header-color;
|
2020-08-22 00:10:05 +00:00
|
|
|
|
2020-07-31 16:52:19 +00:00
|
|
|
$roomtile-preview-color: $secondary-fg-color;
|
2020-07-17 22:18:15 +00:00
|
|
|
$roomtile-default-badge-bg-color: #61708b;
|
|
|
|
$roomtile-selected-bg-color: rgba(141, 151, 165, 0.2);
|
2020-06-12 19:52:54 +00:00
|
|
|
|
|
|
|
// ********************
|
|
|
|
|
2020-07-17 21:59:35 +00:00
|
|
|
$notice-secondary-color: $roomlist-header-color;
|
2020-07-14 20:15:24 +00:00
|
|
|
|
2020-07-14 16:39:14 +00:00
|
|
|
$panel-divider-color: transparent;
|
2018-10-23 13:48:44 +00:00
|
|
|
|
2019-02-15 17:20:02 +00:00
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
2020-10-19 17:47:15 +00:00
|
|
|
$widget-body-bg-color: rgba(141, 151, 165, 0.2);
|
2018-04-11 23:24:22 +00:00
|
|
|
|
2019-02-15 15:14:59 +00:00
|
|
|
// event redaction
|
|
|
|
$event-redacted-fg-color: #606060;
|
|
|
|
$event-redacted-border-color: #000000;
|
|
|
|
|
2019-07-02 16:31:11 +00:00
|
|
|
$event-highlight-fg-color: $warning-color;
|
2019-07-09 17:29:13 +00:00
|
|
|
$event-highlight-bg-color: #25271F;
|
2019-07-02 16:31:11 +00:00
|
|
|
|
2018-04-11 23:24:22 +00:00
|
|
|
// event timestamp
|
2019-02-12 15:40:06 +00:00
|
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
|
|
|
|
// Tabbed views
|
2021-08-12 09:18:40 +00:00
|
|
|
$tab-label-fg-color: $primary-content;
|
|
|
|
$tab-label-active-fg-color: $primary-content;
|
2019-02-12 15:40:06 +00:00
|
|
|
$tab-label-bg-color: transparent;
|
|
|
|
$tab-label-active-bg-color: $accent-color;
|
2021-08-12 09:18:40 +00:00
|
|
|
$tab-label-icon-bg-color: $primary-content;
|
|
|
|
$tab-label-active-icon-bg-color: $primary-content;
|
2019-02-12 15:40:06 +00:00
|
|
|
|
|
|
|
// Buttons
|
2021-08-04 08:06:11 +00:00
|
|
|
$button-primary-fg-color: $primary-content;
|
2019-02-12 15:40:06 +00:00
|
|
|
$button-primary-bg-color: $accent-color;
|
|
|
|
$button-secondary-bg-color: transparent;
|
2021-08-04 08:06:11 +00:00
|
|
|
$button-danger-fg-color: $primary-content;
|
2019-02-13 14:05:45 +00:00
|
|
|
$button-danger-bg-color: $notice-primary-color;
|
2021-08-04 08:06:11 +00:00
|
|
|
$button-danger-disabled-fg-color: $primary-content;
|
2019-02-12 15:40:06 +00:00
|
|
|
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
|
2019-07-04 22:45:40 +00:00
|
|
|
$button-link-fg-color: $accent-color;
|
|
|
|
$button-link-bg-color: transparent;
|
2019-02-12 15:40:06 +00:00
|
|
|
|
2020-04-23 11:28:00 +00:00
|
|
|
// Toggle switch
|
|
|
|
$togglesw-off-color: $room-highlight-color;
|
|
|
|
|
2021-03-05 21:14:43 +00:00
|
|
|
$progressbar-fg-color: $accent-color;
|
2021-08-12 14:16:13 +00:00
|
|
|
$progressbar-bg-color: $system;
|
2021-03-05 21:14:43 +00:00
|
|
|
|
2019-08-28 16:00:57 +00:00
|
|
|
$visual-bell-bg-color: #800;
|
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
$room-warning-bg-color: $header-panel-bg-color;
|
|
|
|
|
2019-02-18 13:50:17 +00:00
|
|
|
$dark-panel-bg-color: $header-panel-bg-color;
|
2019-02-13 15:06:24 +00:00
|
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
|
2019-04-30 16:41:11 +00:00
|
|
|
$message-action-bar-bg-color: $header-panel-bg-color;
|
|
|
|
$message-action-bar-fg-color: $header-panel-text-primary-color;
|
|
|
|
$message-action-bar-border-color: #616b7f;
|
|
|
|
$message-action-bar-hover-border-color: $header-panel-text-primary-color;
|
2019-04-29 12:04:16 +00:00
|
|
|
|
2019-05-01 17:05:11 +00:00
|
|
|
$reaction-row-button-bg-color: $header-panel-bg-color;
|
|
|
|
$reaction-row-button-border-color: #616b7f;
|
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
2019-05-02 10:48:32 +00:00
|
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
|
|
|
$reaction-row-button-selected-border-color: $accent-color;
|
2019-05-17 11:09:47 +00:00
|
|
|
|
2020-03-18 17:32:36 +00:00
|
|
|
$kbd-border-color: #000000;
|
|
|
|
|
2020-10-14 22:30:38 +00:00
|
|
|
$tooltip-timeline-bg-color: $groupFilterPanel-bg-color;
|
2021-08-04 08:06:11 +00:00
|
|
|
$tooltip-timeline-fg-color: $primary-content;
|
2019-05-01 17:05:11 +00:00
|
|
|
|
2021-08-12 09:12:10 +00:00
|
|
|
$interactive-tooltip-bg-color: $background;
|
2021-08-04 08:06:11 +00:00
|
|
|
$interactive-tooltip-fg-color: $primary-content;
|
2019-06-21 10:41:19 +00:00
|
|
|
|
2019-09-12 12:42:27 +00:00
|
|
|
$breadcrumb-placeholder-bg-color: #272c35;
|
|
|
|
|
2020-01-03 00:40:18 +00:00
|
|
|
$user-tile-hover-bg-color: $header-panel-bg-color;
|
|
|
|
|
2021-05-05 03:13:37 +00:00
|
|
|
$message-body-panel-fg-color: $secondary-fg-color;
|
2021-08-06 06:34:46 +00:00
|
|
|
$message-body-panel-bg-color: $quinary-content;
|
2021-07-21 19:11:11 +00:00
|
|
|
$message-body-panel-icon-fg-color: $secondary-fg-color;
|
2021-08-12 14:16:13 +00:00
|
|
|
$message-body-panel-icon-bg-color: $system; // "System Dark"
|
2021-03-05 03:07:48 +00:00
|
|
|
|
2021-08-12 09:20:30 +00:00
|
|
|
$voice-record-stop-border-color: $quaternary-content;
|
|
|
|
$voice-record-waveform-incomplete-fg-color: $quaternary-content;
|
|
|
|
$voice-record-icon-color: $quaternary-content;
|
2021-05-05 20:00:56 +00:00
|
|
|
$voice-playback-button-bg-color: $message-body-panel-icon-bg-color;
|
|
|
|
$voice-playback-button-fg-color: $message-body-panel-icon-fg-color;
|
|
|
|
|
2020-06-22 11:28:15 +00:00
|
|
|
// Appearance tab colors
|
|
|
|
$appearance-tab-border-color: $room-highlight-color;
|
2020-04-23 10:33:28 +00:00
|
|
|
|
2020-07-14 16:39:14 +00:00
|
|
|
// blur amounts for left left panel (only for element theme, used in _mods.scss)
|
|
|
|
$roomlist-background-blur-amount: 60px;
|
2020-10-14 22:30:38 +00:00
|
|
|
$groupFilterPanel-background-blur-amount: 30px;
|
2020-07-14 16:39:14 +00:00
|
|
|
|
2020-07-16 14:26:25 +00:00
|
|
|
$composer-shadow-color: rgba(0, 0, 0, 0.28);
|
|
|
|
|
2021-07-01 13:23:00 +00:00
|
|
|
// Bubble tiles
|
2021-08-04 06:46:09 +00:00
|
|
|
$eventbubble-self-bg: #14322E;
|
|
|
|
$eventbubble-others-bg: $event-selected-color;
|
|
|
|
$eventbubble-bg-hover: #1C2026;
|
2021-08-12 09:14:11 +00:00
|
|
|
$eventbubble-avatar-outline: $background;
|
2021-07-13 08:15:12 +00:00
|
|
|
$eventbubble-reply-color: #C1C6CD;
|
2021-07-01 13:23:00 +00:00
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
// ***** Mixins! *****
|
2018-04-11 23:24:22 +00:00
|
|
|
|
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2020-11-20 15:45:34 +00:00
|
|
|
border-radius: 8px;
|
2018-04-11 23:24:22 +00:00
|
|
|
font-family: $font-family;
|
2020-03-31 14:26:23 +00:00
|
|
|
font-size: $font-14px;
|
2019-02-12 15:40:06 +00:00
|
|
|
color: $button-fg-color;
|
|
|
|
background-color: $button-bg-color;
|
2018-04-11 23:24:22 +00:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-12 15:40:06 +00:00
|
|
|
@define-mixin mx_DialogButton_danger {
|
|
|
|
background-color: $accent-color;
|
|
|
|
}
|
|
|
|
|
2018-12-06 21:39:59 +00:00
|
|
|
@define-mixin mx_DialogButton_secondary {
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2021-04-02 07:07:36 +00:00
|
|
|
border: 1px solid $accent-color !important;
|
2018-12-06 21:39:59 +00:00
|
|
|
color: $accent-color;
|
2019-02-12 15:40:06 +00:00
|
|
|
background-color: $button-secondary-bg-color;
|
2018-12-06 21:39:59 +00:00
|
|
|
}
|
|
|
|
|
2019-08-29 14:20:14 +00:00
|
|
|
@define-mixin mx_Dialog_link {
|
|
|
|
color: $accent-color;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2019-02-13 10:06:18 +00:00
|
|
|
// Nasty hacks to apply a filter to arbitrary monochrome artwork to make it
|
|
|
|
// better match the theme. Typically applied to dark grey 'off' buttons or
|
|
|
|
// light grey 'on' buttons.
|
|
|
|
.mx_filterFlipColor {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
// markdown overrides:
|
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
table {
|
|
|
|
tr {
|
|
|
|
background-color: #000000;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
|
|
|
background-color: #080808;
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 05:52:57 +00:00
|
|
|
}
|
|
|
|
|
2021-07-07 07:22:12 +00:00
|
|
|
// highlight.js overrides
|
|
|
|
.hljs-tag {
|
2021-07-07 08:28:29 +00:00
|
|
|
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
|
2019-12-29 05:52:57 +00:00
|
|
|
}
|
2021-07-12 10:32:30 +00:00
|
|
|
|
|
|
|
.hljs-addition {
|
|
|
|
background: #1a4b59;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
|
|
|
background: #53232a;
|
|
|
|
}
|