2021-08-12 16:20:30 +02:00
|
|
|
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
|
|
|
|
$system: #21262C;
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
// unified palette
|
|
|
|
// try to use these colors when possible
|
|
|
|
$bg-color: #181b21;
|
2020-07-14 18:39:14 +02:00
|
|
|
$base-color: #15171b;
|
|
|
|
$base-text-color: #edf3ff;
|
2020-07-09 14:48:15 +02:00
|
|
|
$header-panel-bg-color: #22262e;
|
2020-07-14 18:39:14 +02:00
|
|
|
$header-panel-text-primary-color: #a1b2d1;
|
2020-07-09 14:48:15 +02:00
|
|
|
$header-panel-text-secondary-color: #c8c8cd;
|
2020-07-14 18:39:14 +02:00
|
|
|
$text-primary-color: #edf3ff;
|
|
|
|
$text-secondary-color: #a1b2d1;
|
2020-07-09 14:48:15 +02:00
|
|
|
$room-highlight-color: #343a46;
|
|
|
|
|
|
|
|
// typical text (dark-on-white in light skin)
|
|
|
|
$primary-fg-color: $text-primary-color;
|
2020-08-13 16:16:31 +02:00
|
|
|
$secondary-fg-color: $primary-fg-color;
|
2020-08-14 19:53:56 +02:00
|
|
|
$tertiary-fg-color: $primary-fg-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
$primary-bg-color: $bg-color;
|
|
|
|
$muted-fg-color: $header-panel-text-primary-color;
|
|
|
|
|
|
|
|
// used for dialog box text
|
|
|
|
$light-fg-color: $header-panel-text-secondary-color;
|
|
|
|
|
|
|
|
// used for focusing form controls
|
|
|
|
$focus-bg-color: $room-highlight-color;
|
|
|
|
|
|
|
|
$other-user-pill-bg-color: $room-highlight-color;
|
|
|
|
$rte-room-pill-color: $room-highlight-color;
|
|
|
|
|
|
|
|
// informational plinth
|
|
|
|
$info-plinth-bg-color: $header-panel-bg-color;
|
|
|
|
$info-plinth-fg-color: #888;
|
|
|
|
|
2022-03-23 00:07:37 +01:00
|
|
|
$spacePanel-bg-color: $base-color;
|
|
|
|
$inverted-bg-color: $spacePanel-bg-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
// used by AddressSelector
|
|
|
|
$selected-color: $room-highlight-color;
|
|
|
|
|
|
|
|
// selected for hoverover & selected event tiles
|
|
|
|
$event-selected-color: $header-panel-bg-color;
|
|
|
|
|
|
|
|
// used for the hairline dividers in RoomView
|
2021-11-10 10:46:33 +01:00
|
|
|
$primary-hairline-color: #000000;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
// used for the border of input text fields
|
|
|
|
$input-border-color: #e7e7e7;
|
2021-11-10 10:46:33 +01:00
|
|
|
$input-darker-bg-color: #181b21;
|
|
|
|
$input-darker-fg-color: #61708b;
|
2020-07-09 14:48:15 +02:00
|
|
|
$input-lighter-bg-color: #f2f5f8;
|
|
|
|
|
2021-04-22 00:22:27 +02:00
|
|
|
$resend-button-divider-color: $muted-fg-color;
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
// scrollbars
|
|
|
|
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
|
|
|
|
|
|
|
// context menus
|
2021-11-10 10:46:33 +01:00
|
|
|
$menu-border-color: #000000;
|
2020-07-09 14:48:15 +02:00
|
|
|
$menu-bg-color: $header-panel-bg-color;
|
|
|
|
$menu-box-shadow-color: $bg-color;
|
|
|
|
$menu-selected-color: $room-highlight-color;
|
|
|
|
|
|
|
|
$avatar-initial-color: #ffffff;
|
|
|
|
|
|
|
|
$h3-color: $primary-fg-color;
|
|
|
|
|
|
|
|
$dialog-title-fg-color: $base-text-color;
|
|
|
|
$dialog-backdrop-color: #000;
|
|
|
|
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
|
|
|
|
$dialog-close-fg-color: #9fa9ba;
|
2022-01-07 15:54:45 +01:00
|
|
|
$dialog-close-external-color: $text-primary-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
$lightbox-background-bg-color: #000;
|
2021-04-22 14:59:02 +02:00
|
|
|
$lightbox-background-bg-opacity: 0.85;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
$settings-grey-fg-color: #a2a2a2;
|
|
|
|
$settings-profile-overlay-placeholder-fg-color: #454545;
|
2020-09-23 20:30:01 +02:00
|
|
|
$settings-profile-button-bg-color: #e7e7e7;
|
2020-07-09 14:48:15 +02:00
|
|
|
$settings-subsection-fg-color: $text-secondary-color;
|
|
|
|
|
|
|
|
$topleftmenu-color: $text-primary-color;
|
2021-11-10 10:46:33 +01:00
|
|
|
$roomheader-addroom-bg-color: #3c4556;
|
2020-07-09 14:48:15 +02:00
|
|
|
$roomheader-addroom-fg-color: $text-primary-color;
|
2020-07-28 14:19:11 +02:00
|
|
|
$icon-button-color: $header-panel-text-primary-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
$roomtopic-color: $text-secondary-color;
|
|
|
|
|
2021-10-16 20:54:23 +02:00
|
|
|
// Legacy theme backports
|
2021-10-16 20:56:02 +02:00
|
|
|
$accent: #0DBD8B;
|
|
|
|
$alert: #FF5B55;
|
|
|
|
$links: #0086e6;
|
2021-10-16 20:54:23 +02:00
|
|
|
$primary-content: $primary-fg-color;
|
|
|
|
$secondary-content: $secondary-fg-color;
|
|
|
|
$tertiary-content: $tertiary-fg-color;
|
|
|
|
$quaternary-content: #6F7882;
|
|
|
|
$quinary-content: $quaternary-content;
|
2021-10-16 20:56:02 +02:00
|
|
|
$system: #21262C;
|
2021-10-16 20:54:23 +02:00
|
|
|
$background: $primary-bg-color;
|
2021-10-16 20:56:02 +02:00
|
|
|
$panels: rgba($system, 0.9);
|
|
|
|
$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);
|
2021-10-16 20:54:23 +02:00
|
|
|
$panel-actions: $roomtile-selected-bg-color;
|
2021-10-16 20:56:02 +02:00
|
|
|
$space-nav: rgba($panel-base, 0.1);
|
|
|
|
|
2021-10-16 20:54:23 +02:00
|
|
|
// Legacy theme backports
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
// ********************
|
|
|
|
|
2021-11-15 18:24:11 +01:00
|
|
|
$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;
|
2021-07-07 08:32:06 +02:00
|
|
|
|
2021-11-29 13:52:09 +01:00
|
|
|
$roomlist-filter-active-bg-color: $panel-actions;
|
2020-07-17 23:59:35 +02:00
|
|
|
$roomlist-bg-color: $header-panel-bg-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
2020-11-02 18:22:45 +01:00
|
|
|
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
2020-07-09 14:48:15 +02:00
|
|
|
|
2022-03-23 00:07:37 +01:00
|
|
|
$spacePanel-divider-color: $tertiary-content;
|
2020-08-22 02:10:05 +02:00
|
|
|
|
2020-07-18 00:18:15 +02:00
|
|
|
$roomtile-default-badge-bg-color: #61708b;
|
|
|
|
$roomtile-selected-bg-color: #1A1D23;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
// ********************
|
|
|
|
|
|
|
|
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
2020-10-19 19:47:15 +02:00
|
|
|
$widget-body-bg-color: #1A1D23;
|
2020-07-09 14:48:15 +02:00
|
|
|
|
|
|
|
$event-highlight-bg-color: #25271F;
|
|
|
|
|
|
|
|
// event timestamp
|
|
|
|
$event-timestamp-color: $text-secondary-color;
|
|
|
|
|
|
|
|
// Tabbed views
|
|
|
|
$tab-label-fg-color: $text-primary-color;
|
|
|
|
$tab-label-active-fg-color: $text-primary-color;
|
|
|
|
|
|
|
|
// Buttons
|
|
|
|
$button-primary-fg-color: #ffffff;
|
|
|
|
$button-secondary-bg-color: transparent;
|
|
|
|
$button-danger-fg-color: #ffffff;
|
|
|
|
$button-danger-disabled-fg-color: #ffffff;
|
|
|
|
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
|
|
|
|
|
|
|
|
// Toggle switch
|
|
|
|
$togglesw-off-color: $room-highlight-color;
|
|
|
|
|
2021-03-05 22:14:43 +01:00
|
|
|
$progressbar-bg-color: #21262c;
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
$visual-bell-bg-color: #800;
|
|
|
|
|
|
|
|
$dark-panel-bg-color: $header-panel-bg-color;
|
|
|
|
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
|
|
|
|
|
|
|
$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;
|
|
|
|
|
|
|
|
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
|
|
|
$reaction-row-button-selected-bg-color: #1f6954;
|
|
|
|
|
|
|
|
$kbd-border-color: #000000;
|
|
|
|
|
2022-03-23 00:07:37 +01:00
|
|
|
$tooltip-timeline-bg-color: $spacePanel-bg-color;
|
2020-07-09 14:48:15 +02:00
|
|
|
$tooltip-timeline-fg-color: #ffffff;
|
|
|
|
|
|
|
|
$breadcrumb-placeholder-bg-color: #272c35;
|
|
|
|
|
2021-05-05 22:00:56 +02:00
|
|
|
// See non-legacy dark for variable information
|
|
|
|
$voice-record-stop-border-color: #6F7882;
|
|
|
|
$voice-record-icon-color: #6F7882;
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
// Appearance tab colors
|
|
|
|
$appearance-tab-border-color: $room-highlight-color;
|
|
|
|
|
2020-07-16 16:26:25 +02:00
|
|
|
$composer-shadow-color: tranparent;
|
|
|
|
|
2021-10-23 05:32:45 +02:00
|
|
|
$codeblock-background-color: #2a3039;
|
|
|
|
|
2021-08-06 13:07:09 +02:00
|
|
|
// Bubble tiles
|
|
|
|
$eventbubble-self-bg: #14322E;
|
|
|
|
$eventbubble-others-bg: $event-selected-color;
|
|
|
|
$eventbubble-bg-hover: #1C2026;
|
|
|
|
$eventbubble-reply-color: #C1C6CD;
|
|
|
|
|
2022-03-02 14:00:40 +01:00
|
|
|
// Location sharing
|
|
|
|
// ********************
|
|
|
|
$location-marker-color: #ffffff;
|
|
|
|
$location-live-color: #5c56f5;
|
2022-03-21 17:43:43 +01:00
|
|
|
$location-live-secondary-color: #deddfd;
|
2022-03-02 14:00:40 +01:00
|
|
|
// ********************
|
|
|
|
|
2020-07-09 14:48:15 +02:00
|
|
|
// ***** Mixins! *****
|
|
|
|
|
|
|
|
@define-mixin mx_DialogButton {
|
|
|
|
/* align images in buttons (eg spinners) */
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 0px;
|
2020-11-20 16:45:34 +01:00
|
|
|
border-radius: 8px;
|
2020-07-09 14:48:15 +02:00
|
|
|
font-family: $font-family;
|
|
|
|
font-size: $font-14px;
|
|
|
|
color: $button-fg-color;
|
2021-11-11 14:37:29 +01:00
|
|
|
background-color: $accent;
|
2020-07-09 14:48:15 +02:00
|
|
|
width: auto;
|
|
|
|
padding: 7px;
|
|
|
|
padding-left: 1.5em;
|
|
|
|
padding-right: 1.5em;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin mx_DialogButton_danger {
|
2021-11-11 14:37:29 +01:00
|
|
|
background-color: $accent;
|
2020-07-09 14:48:15 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin mx_DialogButton_secondary {
|
|
|
|
// flip colours for the secondary ones
|
|
|
|
font-weight: 600;
|
2021-11-11 14:37:29 +01:00
|
|
|
border: 1px solid $accent !important;
|
|
|
|
color: $accent;
|
2020-07-09 14:48:15 +02:00
|
|
|
background-color: $button-secondary-bg-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
@define-mixin mx_Dialog_link {
|
2021-11-11 14:37:29 +01:00
|
|
|
color: $accent;
|
2020-07-09 14:48:15 +02:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-07 09:22:12 +02:00
|
|
|
// highlight.js overrides:
|
|
|
|
.hljs-tag {
|
2021-07-07 10:28:29 +02:00
|
|
|
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
|
2020-07-09 14:48:15 +02:00
|
|
|
}
|