2021-08-04 15:48:41 +08:00
|
|
|
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-08-04 15:48:41 +08:00
|
|
|
$primary-content: #ffffff;
|
|
|
|
$secondary-content: #A9B2BC;
|
|
|
|
$tertiary-content: #8E99A4;
|
|
|
|
$quaternary-content: #6F7882;
|
|
|
|
$quinary-content: #394049;
|
2021-11-29 23:59:21 +08:00
|
|
|
|
2021-08-12 22:16:13 +08:00
|
|
|
$system: #21262C;
|
2022-04-13 19:24:44 +08:00
|
|
|
$system-transparent: rgba($system, 0.0); // XXX: workaround for Safari 15.3 linear-gradient bug
|
2021-08-04 15:48:41 +08:00
|
|
|
$background: #15191E;
|
2022-04-13 16:44:15 +08:00
|
|
|
$overlay-background: rgba($background, 0.85);
|
2021-11-29 23:59:21 +08:00
|
|
|
|
2021-08-04 15:48:41 +08:00
|
|
|
$panel-base: #8D97A5; // This color is not intended for use in the app
|
2021-11-29 23:59:21 +08:00
|
|
|
$panels: rgba($system, 0.9);
|
2021-08-04 15:48:41 +08:00
|
|
|
$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);
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-08-04 15:48:41 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Reused Figma non-compound colors
|
|
|
|
// ********************
|
|
|
|
$inverted-bg-color: $background;
|
2020-07-15 01:19:07 +08:00
|
|
|
$header-panel-bg-color: #20252B;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
|
|
|
|
|
|
|
// Theme specific colors
|
|
|
|
// ********************
|
|
|
|
$icon-button-color: $tertiary-content;
|
|
|
|
// ********************
|
|
|
|
|
2021-11-29 23:59:21 +08:00
|
|
|
// Colors that aren't in Figma and are theme specific - we need to get rid of these
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
|
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
2019-02-13 21:10:55 +08:00
|
|
|
$room-highlight-color: #343a46;
|
2021-11-29 23:59:21 +08:00
|
|
|
$text-secondary-color: #B9BEC6;
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
// Colors that aren't in Figma - we need to get rid of these
|
|
|
|
// ********************
|
|
|
|
$dark-panel-bg-color: $header-panel-bg-color;
|
|
|
|
$muted-fg-color: $header-panel-text-primary-color;
|
|
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
|
|
|
$focus-bg-color: $room-highlight-color;
|
|
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
2021-11-15 17:42:06 +08:00
|
|
|
$event-selected-color: $system;
|
|
|
|
$topleftmenu-color: $primary-content;
|
|
|
|
$roomtopic-color: $text-secondary-color;
|
2022-03-23 07:07:37 +08:00
|
|
|
$spacePanel-bg-color: rgba(38, 39, 43, 0.82);
|
2021-11-29 23:59:21 +08:00
|
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
$h3-color: $primary-content;
|
|
|
|
$event-highlight-bg-color: #25271F;
|
|
|
|
$header-panel-text-primary-color: $text-secondary-color;
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
// Tooltip
|
|
|
|
// ********************
|
2022-03-23 07:07:37 +08:00
|
|
|
$tooltip-timeline-bg-color: $spacePanel-bg-color;
|
2021-11-29 23:59:21 +08:00
|
|
|
$tooltip-timeline-fg-color: $primary-content;
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
// Widget
|
|
|
|
// ********************
|
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
|
|
|
$widget-body-bg-color: $panel-actions;
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
// Menu
|
|
|
|
// ********************
|
|
|
|
$menu-border-color: #000000;
|
|
|
|
$menu-bg-color: $header-panel-bg-color;
|
|
|
|
$menu-box-shadow-color: $background;
|
|
|
|
$menu-selected-color: $room-highlight-color;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Settings
|
|
|
|
// ********************
|
|
|
|
$settings-profile-overlay-placeholder-fg-color: #454545;
|
|
|
|
$settings-profile-button-bg-color: #e7e7e7;
|
|
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
|
|
|
// ********************
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2022-04-04 19:36:54 +08:00
|
|
|
// Room
|
|
|
|
// ********************
|
|
|
|
$room-icon-unread-color: #fff;
|
|
|
|
// ********************
|
|
|
|
|
2021-11-29 23:59:21 +08:00
|
|
|
// RoomHeader
|
|
|
|
// ********************
|
|
|
|
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
|
|
|
$roomheader-addroom-fg-color: $primary-content;
|
|
|
|
// ********************
|
2021-12-03 17:23:38 +08:00
|
|
|
|
2021-11-29 23:59:21 +08:00
|
|
|
// Rich-text-editor
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
2021-11-29 23:59:21 +08:00
|
|
|
$other-user-pill-bg-color: $room-highlight-color;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Inputs
|
|
|
|
// ********************
|
2020-07-15 01:19:27 +08:00
|
|
|
$input-border-color: rgba(231, 231, 231, 0.2);
|
2021-11-10 17:46:33 +08:00
|
|
|
$input-darker-bg-color: #181b21;
|
|
|
|
$input-darker-fg-color: #61708b;
|
2019-02-12 23:40:06 +08:00
|
|
|
$input-lighter-bg-color: #f2f5f8;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-12 23:40:06 +08:00
|
|
|
|
2021-11-29 23:59:21 +08:00
|
|
|
// Dialog
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-08-12 17:17:04 +08:00
|
|
|
$dialog-title-fg-color: $primary-content;
|
2021-11-29 20:52:09 +08:00
|
|
|
$dialog-backdrop-color: $menu-border-color;
|
2019-02-18 20:14:55 +08:00
|
|
|
$dialog-close-fg-color: #9fa9ba;
|
2022-01-07 22:54:45 +08:00
|
|
|
$dialog-close-external-color: $primary-content;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-18 20:14:55 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// RoomList
|
|
|
|
// ********************
|
2021-11-29 20:52:09 +08:00
|
|
|
$roomlist-bg-color: rgba($system, 0.90);
|
2020-11-03 01:22:45 +08:00
|
|
|
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
2021-11-29 20:52:09 +08:00
|
|
|
$roomtile-default-badge-bg-color: $input-darker-fg-color;
|
2020-06-13 03:52:54 +08:00
|
|
|
// ********************
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
// Tabbed views
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-08-12 17:18:40 +08:00
|
|
|
$tab-label-fg-color: $primary-content;
|
|
|
|
$tab-label-active-fg-color: $primary-content;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-12 23:40:06 +08:00
|
|
|
|
|
|
|
// Buttons
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-08-04 16:06:11 +08:00
|
|
|
$button-primary-fg-color: $primary-content;
|
2019-02-12 23:40:06 +08:00
|
|
|
$button-secondary-bg-color: transparent;
|
2021-08-04 16:06:11 +08:00
|
|
|
$button-danger-fg-color: $primary-content;
|
|
|
|
$button-danger-disabled-fg-color: $primary-content;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-12 23:40:06 +08:00
|
|
|
|
2020-04-23 19:28:00 +08:00
|
|
|
// Toggle switch
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2020-04-23 19:28:00 +08:00
|
|
|
$togglesw-off-color: $room-highlight-color;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2020-04-23 19:28:00 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Authpage
|
|
|
|
// ********************
|
2021-09-10 13:21:53 +08:00
|
|
|
$authpage-primary-color: $primary-content;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-09-09 14:11:47 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Message action bar
|
|
|
|
// ********************
|
2019-05-01 00:41:11 +08: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;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-04-29 20:04:16 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Reaction row
|
|
|
|
// ********************
|
2019-05-02 01:05:11 +08:00
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
2019-05-02 18:48:32 +08:00
|
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-05-17 19:09:47 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Voice messages
|
|
|
|
// ********************
|
2021-08-12 17:20:30 +08:00
|
|
|
$voice-record-stop-border-color: $quaternary-content;
|
|
|
|
$voice-record-icon-color: $quaternary-content;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-10-23 11:32:45 +08:00
|
|
|
|
2021-07-01 21:23:00 +08:00
|
|
|
// Bubble tiles
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2022-01-24 20:33:55 +08:00
|
|
|
$eventbubble-self-bg: #133A34;
|
|
|
|
$eventbubble-others-bg: #21262C;
|
2021-08-04 14:46:09 +08:00
|
|
|
$eventbubble-bg-hover: #1C2026;
|
2021-07-13 16:15:12 +08:00
|
|
|
$eventbubble-reply-color: #C1C6CD;
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2021-07-01 21:23:00 +08:00
|
|
|
|
2021-11-29 23:59:21 +08:00
|
|
|
// Lightbox
|
|
|
|
// ********************
|
|
|
|
$lightbox-background-bg-color: $menu-border-color;
|
|
|
|
$lightbox-background-bg-opacity: 0.85;
|
|
|
|
// ********************
|
|
|
|
|
2021-11-16 01:24:11 +08:00
|
|
|
// VoIP
|
|
|
|
// ********************
|
|
|
|
$call-view-button-on-foreground: $primary-content;
|
|
|
|
$call-view-button-on-background: $system;
|
|
|
|
$call-view-button-off-foreground: $system;
|
|
|
|
$call-view-button-off-background: $primary-content;
|
|
|
|
|
|
|
|
$video-feed-secondary-background: $system;
|
2022-04-20 23:03:33 +08:00
|
|
|
|
|
|
|
$video-lobby-system: $system;
|
|
|
|
$video-lobby-background: $background;
|
|
|
|
$video-lobby-primary-content: $primary-content;
|
2021-11-16 01:24:11 +08:00
|
|
|
// ********************
|
|
|
|
|
2022-03-02 21:00:40 +08:00
|
|
|
// Location sharing
|
|
|
|
// ********************
|
|
|
|
$location-live-color: #5c56f5;
|
2022-03-22 00:43:43 +08:00
|
|
|
$location-live-secondary-color: #deddfd;
|
2022-03-02 21:00:40 +08:00
|
|
|
// ********************
|
|
|
|
|
2022-01-17 17:30:26 +08:00
|
|
|
// Location sharing
|
|
|
|
// ********************
|
|
|
|
.maplibregl-ctrl-attrib-button {
|
|
|
|
color: $background;
|
|
|
|
}
|
|
|
|
// ********************
|
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// One-off colors
|
|
|
|
// ********************
|
2021-11-29 23:59:21 +08:00
|
|
|
$progressbar-bg-color: $system;
|
2021-11-29 20:52:09 +08:00
|
|
|
$kbd-border-color: $menu-border-color;
|
2021-11-15 17:42:06 +08:00
|
|
|
$visual-bell-bg-color: #800;
|
2021-11-29 23:59:21 +08:00
|
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
$slider-background-color: $quinary-content;
|
|
|
|
$appearance-tab-border-color: $room-highlight-color;
|
|
|
|
$composer-shadow-color: rgba(0, 0, 0, 0.28);
|
|
|
|
$breadcrumb-placeholder-bg-color: #272c35;
|
2021-11-15 17:42:06 +08:00
|
|
|
$theme-button-bg-color: #e3e8f0;
|
2021-11-29 23:59:21 +08:00
|
|
|
$resend-button-divider-color: rgba($header-panel-text-primary-color, 0.74);
|
2021-11-15 17:42:06 +08:00
|
|
|
$codeblock-background-color: #2a3039;
|
|
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
$selected-color: $room-highlight-color;
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
// blur amounts for left left panel (only for element theme)
|
|
|
|
// ********************
|
|
|
|
:root {
|
|
|
|
--lp-background-blur: 45px;
|
|
|
|
}
|
|
|
|
// ********************
|
2018-04-12 07:24:22 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// Mixins
|
|
|
|
// ********************
|
2018-04-12 07:24:22 +08:00
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2020-11-20 23:45:34 +08:00
|
|
|
border-radius: 8px;
|
2018-04-12 07:24:22 +08:00
|
|
|
font-family: $font-family;
|
2020-03-31 22:26:23 +08:00
|
|
|
font-size: $font-14px;
|
2019-02-12 23:40:06 +08:00
|
|
|
color: $button-fg-color;
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2018-04-12 07:24:22 +08:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2019-02-12 23:40:06 +08:00
|
|
|
@define-mixin mx_DialogButton_danger {
|
2021-11-11 21:37:29 +08:00
|
|
|
background-color: $accent;
|
2019-02-12 23:40:06 +08:00
|
|
|
}
|
|
|
|
|
2018-12-07 05:39:59 +08:00
|
|
|
@define-mixin mx_DialogButton_secondary {
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2021-11-11 21:37:29 +08:00
|
|
|
border: 1px solid $accent !important;
|
|
|
|
color: $accent;
|
2019-02-12 23:40:06 +08:00
|
|
|
background-color: $button-secondary-bg-color;
|
2018-12-07 05:39:59 +08:00
|
|
|
}
|
|
|
|
|
2019-08-29 22:20:14 +08:00
|
|
|
@define-mixin mx_Dialog_link {
|
2021-11-11 21:37:29 +08:00
|
|
|
color: $accent;
|
2019-08-29 22:20:14 +08:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-08-29 22:20:14 +08:00
|
|
|
|
2019-02-13 18:06:18 +08: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.
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-13 18:06:18 +08:00
|
|
|
.mx_filterFlipColor {
|
|
|
|
filter: invert(1);
|
|
|
|
}
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-02-13 18:06:18 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// markdown overrides
|
|
|
|
// ********************
|
2019-02-13 18:06:18 +08:00
|
|
|
.mx_EventTile_content .markdown-body {
|
|
|
|
table {
|
|
|
|
tr {
|
2021-11-29 20:52:09 +08:00
|
|
|
background-color: $menu-border-color;
|
2019-02-13 18:06:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
tr:nth-child(2n) {
|
|
|
|
background-color: #080808;
|
|
|
|
}
|
|
|
|
}
|
2019-12-29 13:52:57 +08:00
|
|
|
}
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|
2019-12-29 13:52:57 +08:00
|
|
|
|
2021-11-15 17:42:06 +08:00
|
|
|
// diff highlight colors
|
|
|
|
// ********************
|
2021-07-07 15:22:12 +08:00
|
|
|
.hljs-tag {
|
2021-07-07 16:28:29 +08:00
|
|
|
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
|
2019-12-29 13:52:57 +08:00
|
|
|
}
|
2021-07-12 18:32:30 +08:00
|
|
|
|
|
|
|
.hljs-addition {
|
|
|
|
background: #1a4b59;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hljs-deletion {
|
|
|
|
background: #53232a;
|
|
|
|
}
|
2021-11-15 17:42:06 +08:00
|
|
|
// ********************
|