element-web-Github/res/themes/dark/css/_dark.scss

319 lines
9.6 KiB
SCSS
Raw Normal View History

// 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;
$system: #21262C;
$background: #15191E;
$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);
$panel-actions: rgba($panel-base, 0.2);
$space-nav: rgba($panel-base, 0.1);
// TODO: Move userId colors here
2019-02-12 23:40:06 +08:00
// unified palette
// try to use these colors when possible
$header-panel-bg-color: #20252B;
2019-02-13 21:10:55 +08:00
$header-panel-border-color: #000000;
$header-panel-text-primary-color: #B9BEC6;
2019-02-12 23:40:06 +08:00
$header-panel-text-secondary-color: #c8c8cd;
$text-primary-color: $primary-content;
$text-secondary-color: #B9BEC6;
$quaternary-fg-color: $quaternary-content;
2019-02-13 21:10:55 +08:00
$search-bg-color: #181b21;
2019-02-12 23:40:06 +08:00
$search-placeholder-color: #61708b;
2019-02-13 21:10:55 +08:00
$room-highlight-color: #343a46;
// typical text (dark-on-white in light skin)
2019-02-12 23:40:06 +08:00
$primary-fg-color: $text-primary-color;
$muted-fg-color: $header-panel-text-primary-color;
// additional text colors
$secondary-fg-color: $secondary-content;
$tertiary-fg-color: $tertiary-content;
// used for dialog box text
2019-02-12 23:40:06 +08:00
$light-fg-color: $header-panel-text-secondary-color;
2019-02-12 23:40:06 +08:00
// used for focusing form controls
$focus-bg-color: $room-highlight-color;
2019-02-13 23:11:29 +08:00
$mention-user-pill-bg-color: $warning-color;
$other-user-pill-bg-color: $room-highlight-color;
$rte-room-pill-color: $room-highlight-color;
$rte-group-pill-color: $room-highlight-color;
2019-02-13 23:11:29 +08:00
2019-02-12 23:40:06 +08:00
// informational plinth
$info-plinth-bg-color: $header-panel-bg-color;
$info-plinth-fg-color: #888;
2019-02-12 23:40:06 +08:00
$preview-bar-bg-color: $header-panel-bg-color;
2020-10-15 06:30:38 +08:00
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
$inverted-bg-color: $background;
2019-02-13 18:30:38 +08:00
// used by AddressSelector
$selected-color: $room-highlight-color;
// selected for hoverover & selected event tiles
$event-selected-color: $system;
// used for the hairline dividers in RoomView
$primary-hairline-color: transparent;
// used for the border of input text fields
2020-07-15 01:19:27 +08:00
$input-border-color: rgba(231, 231, 231, 0.2);
2019-02-12 23:40:06 +08: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;
$input-invalid-border-color: $warning-color;
2019-02-12 23:40:06 +08:00
$field-focused-label-bg-color: $background;
2021-04-22 06:22:27 +08:00
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
2019-02-12 23:40:06 +08:00
// scrollbars
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
$scrollbar-track-color: transparent;
2019-02-12 23:40:06 +08:00
// context menus
$menu-border-color: $header-panel-border-color;
$menu-bg-color: $header-panel-bg-color;
$menu-box-shadow-color: $background;
2019-02-12 23:40:06 +08:00
$menu-selected-color: $room-highlight-color;
$avatar-initial-color: #ffffff;
$avatar-bg-color: $background;
$h3-color: $primary-fg-color;
$dialog-title-fg-color: $primary-content;
$dialog-backdrop-color: #000;
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
$dialog-close-fg-color: #9fa9ba;
2019-02-12 23:40:06 +08:00
$dialog-background-bg-color: $header-panel-bg-color;
$lightbox-background-bg-color: #000;
$lightbox-background-bg-opacity: 0.85;
$settings-grey-fg-color: #a2a2a2;
$settings-profile-placeholder-bg-color: $system;
2019-02-12 23:40:06 +08:00
$settings-profile-overlay-placeholder-fg-color: #454545;
2020-09-24 02:30:01 +08:00
$settings-profile-button-bg-color: #e7e7e7;
$settings-profile-button-fg-color: $settings-profile-overlay-placeholder-fg-color;
2019-02-12 23:40:06 +08:00
$settings-subsection-fg-color: $text-secondary-color;
2019-02-12 23:40:06 +08:00
$topleftmenu-color: $text-primary-color;
$roomheader-color: $text-primary-color;
$roomheader-bg-color: $background;
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
2019-02-16 02:16:10 +08:00
$roomheader-addroom-fg-color: $text-primary-color;
2020-10-15 06:30:38 +08:00
$groupFilterPanel-button-color: $header-panel-text-primary-color;
2019-02-13 01:48:27 +08:00
$groupheader-button-color: $header-panel-text-primary-color;
$rightpanel-button-color: $header-panel-text-primary-color;
$icon-button-color: $tertiary-content;
2019-02-12 23:40:06 +08:00
$roomtopic-color: $text-secondary-color;
$eventtile-meta-color: $roomtopic-color;
2019-02-13 21:57:59 +08:00
$header-divider-color: $header-panel-text-primary-color;
$composer-e2e-icon-color: $header-panel-text-primary-color;
2019-02-13 18:52:03 +08:00
2020-06-13 03:52:54 +08:00
// ********************
$theme-button-bg-color: #e3e8f0;
$dialpad-button-bg-color: $quinary-content;
2020-06-13 03:52:54 +08:00
2020-07-18 05:59:35 +08:00
$roomlist-button-bg-color: rgba(141, 151, 165, 0.2); // Buttons include the filter box, explore button, and sublist buttons
$roomlist-filter-active-bg-color: $background;
2020-07-18 05:59:35 +08:00
$roomlist-bg-color: rgba(33, 38, 44, 0.90);
$roomlist-header-color: $tertiary-fg-color;
$roomsublist-divider-color: $primary-fg-color;
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
2020-06-13 03:52:54 +08:00
2020-10-15 06:30:38 +08:00
$groupFilterPanel-divider-color: $roomlist-header-color;
$roomtile-preview-color: $secondary-fg-color;
$roomtile-default-badge-bg-color: #61708b;
$roomtile-selected-bg-color: rgba(141, 151, 165, 0.2);
2020-06-13 03:52:54 +08:00
// ********************
2020-07-18 05:59:35 +08:00
$notice-secondary-color: $roomlist-header-color;
$panel-divider-color: transparent;
2018-10-23 21:48:44 +08:00
2019-02-16 01:20:02 +08:00
$widget-menu-bar-bg-color: $header-panel-bg-color;
$widget-body-bg-color: rgba(141, 151, 165, 0.2);
// event redaction
$event-redacted-fg-color: #606060;
$event-redacted-border-color: #000000;
2019-07-03 00:31:11 +08:00
$event-highlight-fg-color: $warning-color;
$event-highlight-bg-color: #25271F;
2019-07-03 00:31:11 +08:00
// event timestamp
2019-02-12 23:40:06 +08:00
$event-timestamp-color: $text-secondary-color;
// Tabbed views
$tab-label-fg-color: $text-primary-color;
$tab-label-active-fg-color: $text-primary-color;
$tab-label-bg-color: transparent;
$tab-label-active-bg-color: $accent-color;
$tab-label-icon-bg-color: $text-primary-color;
$tab-label-active-icon-bg-color: $text-primary-color;
// Buttons
$button-primary-fg-color: $primary-content;
2019-02-12 23:40:06 +08:00
$button-primary-bg-color: $accent-color;
$button-secondary-bg-color: transparent;
$button-danger-fg-color: $primary-content;
2019-02-13 22:05:45 +08:00
$button-danger-bg-color: $notice-primary-color;
$button-danger-disabled-fg-color: $primary-content;
2019-02-12 23:40:06 +08:00
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
$button-link-fg-color: $accent-color;
$button-link-bg-color: transparent;
2019-02-12 23:40:06 +08:00
2020-04-23 19:28:00 +08:00
// Toggle switch
$togglesw-off-color: $room-highlight-color;
$progressbar-fg-color: $accent-color;
$progressbar-bg-color: $system;
$visual-bell-bg-color: #800;
2019-02-12 23:40:06 +08:00
$room-warning-bg-color: $header-panel-bg-color;
2019-02-18 21:50:17 +08:00
$dark-panel-bg-color: $header-panel-bg-color;
2019-02-13 23:06:24 +08:00
$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-bg-color: $header-panel-bg-color;
$reaction-row-button-border-color: #616b7f;
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
$reaction-row-button-selected-bg-color: #1f6954;
$reaction-row-button-selected-border-color: $accent-color;
$kbd-border-color: #000000;
2020-10-15 06:30:38 +08:00
$tooltip-timeline-bg-color: $groupFilterPanel-bg-color;
$tooltip-timeline-fg-color: $primary-content;
$interactive-tooltip-bg-color: $background;
$interactive-tooltip-fg-color: $primary-content;
$breadcrumb-placeholder-bg-color: #272c35;
$user-tile-hover-bg-color: $header-panel-bg-color;
$message-body-panel-fg-color: $secondary-fg-color;
$message-body-panel-bg-color: $quinary-content;
$message-body-panel-icon-fg-color: $secondary-fg-color;
$message-body-panel-icon-bg-color: $system; // "System Dark"
2021-05-06 04:00:56 +08:00
$voice-record-stop-border-color: $quaternary-fg-color;
$voice-record-waveform-incomplete-fg-color: $quaternary-fg-color;
$voice-record-icon-color: $quaternary-fg-color;
$voice-playback-button-bg-color: $message-body-panel-icon-bg-color;
$voice-playback-button-fg-color: $message-body-panel-icon-fg-color;
// Appearance tab colors
$appearance-tab-border-color: $room-highlight-color;
2020-04-23 18:33:28 +08:00
// blur amounts for left left panel (only for element theme, used in _mods.scss)
$roomlist-background-blur-amount: 60px;
2020-10-15 06:30:38 +08:00
$groupFilterPanel-background-blur-amount: 30px;
$composer-shadow-color: rgba(0, 0, 0, 0.28);
2021-07-01 21:23:00 +08:00
// Bubble tiles
$eventbubble-self-bg: #14322E;
$eventbubble-others-bg: $event-selected-color;
$eventbubble-bg-hover: #1C2026;
$eventbubble-avatar-outline: $background;
$eventbubble-reply-color: #C1C6CD;
2021-07-01 21:23:00 +08:00
2019-02-12 23:40:06 +08:00
// ***** Mixins! *****
@define-mixin mx_DialogButton {
/* align images in buttons (eg spinners) */
vertical-align: middle;
border: 0px;
border-radius: 8px;
font-family: $font-family;
font-size: $font-14px;
2019-02-12 23:40:06 +08:00
color: $button-fg-color;
background-color: $button-bg-color;
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 {
background-color: $accent-color;
}
@define-mixin mx_DialogButton_secondary {
// flip colours for the secondary ones
font-weight: 600;
border: 1px solid $accent-color !important;
color: $accent-color;
2019-02-12 23:40:06 +08:00
background-color: $button-secondary-bg-color;
}
@define-mixin mx_Dialog_link {
color: $accent-color;
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;
}
}
}
// highlight.js overrides
.hljs-tag {
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
}
.hljs-addition {
background: #1a4b59;
}
.hljs-deletion {
background: #53232a;
}