Reorganize theme files (#7130)
This commit is contained in:
parent
75c02a641b
commit
720b092844
2 changed files with 334 additions and 295 deletions
|
@ -1,4 +1,5 @@
|
|||
// Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741
|
||||
// ********************
|
||||
$accent: #0DBD8B;
|
||||
$alert: #FF5B55;
|
||||
$links: #0086e6;
|
||||
|
@ -15,182 +16,198 @@ $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
|
||||
|
||||
// unified palette
|
||||
// try to use these colors when possible
|
||||
// Reused Figma non-compound colors
|
||||
// ********************
|
||||
$inverted-bg-color: $background;
|
||||
$header-panel-bg-color: #20252B;
|
||||
// ********************
|
||||
|
||||
// Theme specific colors
|
||||
// ********************
|
||||
$icon-button-color: $tertiary-content;
|
||||
// ********************
|
||||
|
||||
// Colors that aren't in Figma - we need to get rid of these
|
||||
// ********************
|
||||
$header-panel-text-primary-color: #B9BEC6;
|
||||
$header-panel-text-secondary-color: #c8c8cd;
|
||||
$text-secondary-color: #B9BEC6;
|
||||
$header-panel-text-secondary-color: #c8c8cd;
|
||||
$room-highlight-color: #343a46;
|
||||
|
||||
// typical text (dark-on-white in light skin)
|
||||
$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
|
||||
$info-plinth-fg-color: #888;
|
||||
$event-highlight-bg-color: #25271F;
|
||||
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
|
||||
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
||||
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
||||
$event-selected-color: $system;
|
||||
$progressbar-bg-color: $system;
|
||||
$topleftmenu-color: $primary-content;
|
||||
$roomheader-color: $primary-content;
|
||||
$roomheader-addroom-fg-color: $primary-content;
|
||||
$h3-color: $primary-content;
|
||||
$focus-bg-color: $room-highlight-color;
|
||||
$roomtopic-color: $text-secondary-color;
|
||||
$light-fg-color: $header-panel-text-secondary-color;
|
||||
$composer-e2e-icon-color: $header-panel-text-primary-color;
|
||||
$header-divider-color: $header-panel-text-primary-color;
|
||||
$groupFilterPanel-button-color: $header-panel-text-primary-color;
|
||||
$groupheader-button-color: $header-panel-text-primary-color;
|
||||
$rightpanel-button-color: $header-panel-text-primary-color;
|
||||
$muted-fg-color: $header-panel-text-primary-color;
|
||||
$info-plinth-bg-color: $header-panel-bg-color;
|
||||
$dark-panel-bg-color: $header-panel-bg-color;
|
||||
$preview-bar-bg-color: $header-panel-bg-color;
|
||||
// ********************
|
||||
|
||||
$other-user-pill-bg-color: $room-highlight-color;
|
||||
// Settings
|
||||
// ********************
|
||||
$settings-grey-fg-color: #a2a2a2;
|
||||
$settings-profile-overlay-placeholder-fg-color: #454545;
|
||||
$settings-profile-button-bg-color: #e7e7e7;
|
||||
$settings-subsection-fg-color: $text-secondary-color;
|
||||
// ********************
|
||||
|
||||
// Rich-text editor
|
||||
// ********************
|
||||
$rte-room-pill-color: $room-highlight-color;
|
||||
$rte-group-pill-color: $room-highlight-color;
|
||||
// ********************
|
||||
|
||||
// informational plinth
|
||||
$info-plinth-bg-color: $header-panel-bg-color;
|
||||
$info-plinth-fg-color: #888;
|
||||
|
||||
$preview-bar-bg-color: $header-panel-bg-color;
|
||||
|
||||
$groupFilterPanel-bg-color: rgba(38, 39, 43, 0.82);
|
||||
$inverted-bg-color: $background;
|
||||
|
||||
// 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
|
||||
// Inputs
|
||||
// ********************
|
||||
$input-border-color: rgba(231, 231, 231, 0.2);
|
||||
$input-darker-bg-color: #181b21;
|
||||
$input-darker-fg-color: #61708b;
|
||||
$input-lighter-bg-color: #f2f5f8;
|
||||
$input-focused-border-color: #238cf5;
|
||||
// ********************
|
||||
|
||||
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
|
||||
|
||||
// scrollbars
|
||||
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
||||
|
||||
// context menus
|
||||
// Menu
|
||||
// ********************
|
||||
$menu-border-color: #000000;
|
||||
$menu-bg-color: $header-panel-bg-color;
|
||||
$menu-box-shadow-color: $background;
|
||||
$menu-selected-color: $room-highlight-color;
|
||||
// ********************
|
||||
|
||||
$avatar-initial-color: #ffffff;
|
||||
|
||||
$h3-color: $primary-content;
|
||||
|
||||
// Dialogs
|
||||
// ********************
|
||||
$dialog-title-fg-color: $primary-content;
|
||||
$dialog-backdrop-color: #000;
|
||||
$dialog-shadow-color: rgba(0, 0, 0, 0.48);
|
||||
$dialog-close-fg-color: #9fa9ba;
|
||||
|
||||
$lightbox-background-bg-color: #000;
|
||||
$lightbox-background-bg-opacity: 0.85;
|
||||
|
||||
$settings-grey-fg-color: #a2a2a2;
|
||||
$settings-profile-overlay-placeholder-fg-color: #454545;
|
||||
$settings-profile-button-bg-color: #e7e7e7;
|
||||
$settings-subsection-fg-color: $text-secondary-color;
|
||||
|
||||
$topleftmenu-color: $primary-content;
|
||||
$roomheader-color: $primary-content;
|
||||
$roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
|
||||
$roomheader-addroom-fg-color: $primary-content;
|
||||
$groupFilterPanel-button-color: $header-panel-text-primary-color;
|
||||
$groupheader-button-color: $header-panel-text-primary-color;
|
||||
$rightpanel-button-color: $header-panel-text-primary-color;
|
||||
$icon-button-color: $tertiary-content;
|
||||
$roomtopic-color: $text-secondary-color;
|
||||
|
||||
$header-divider-color: $header-panel-text-primary-color;
|
||||
$composer-e2e-icon-color: $header-panel-text-primary-color;
|
||||
|
||||
// ********************
|
||||
|
||||
$theme-button-bg-color: #e3e8f0;
|
||||
// Lightbox
|
||||
// ********************
|
||||
$lightbox-background-bg-color: #000;
|
||||
$lightbox-background-bg-opacity: 0.85;
|
||||
// ********************
|
||||
|
||||
// RoomList
|
||||
// ********************
|
||||
$roomlist-button-bg-color: rgba(141, 151, 165, 0.2); // Buttons include the filter box, explore button, and sublist buttons
|
||||
$roomlist-bg-color: rgba(33, 38, 44, 0.90);
|
||||
$roomsublist-skeleton-ui-bg: linear-gradient(180deg, #3e444c 0%, #3e444c00 100%);
|
||||
|
||||
$roomtile-default-badge-bg-color: #61708b;
|
||||
|
||||
// ********************
|
||||
|
||||
// Widgets
|
||||
// ********************
|
||||
$widget-menu-bar-bg-color: $header-panel-bg-color;
|
||||
$widget-body-bg-color: rgba(141, 151, 165, 0.2);
|
||||
|
||||
$event-highlight-bg-color: #25271F;
|
||||
|
||||
// event timestamp
|
||||
$event-timestamp-color: $text-secondary-color;
|
||||
// ********************
|
||||
|
||||
// Tabbed views
|
||||
// ********************
|
||||
$tab-label-fg-color: $primary-content;
|
||||
$tab-label-active-fg-color: $primary-content;
|
||||
$tab-label-active-icon-bg-color: $primary-content;
|
||||
// ********************
|
||||
|
||||
// Buttons
|
||||
// ********************
|
||||
$button-primary-fg-color: $primary-content;
|
||||
$button-secondary-bg-color: transparent;
|
||||
$button-danger-fg-color: $primary-content;
|
||||
$button-danger-disabled-fg-color: $primary-content;
|
||||
$button-danger-disabled-bg-color: #f5b6bb; // TODO: Verify color
|
||||
// ********************
|
||||
|
||||
// Toggle switch
|
||||
// ********************
|
||||
$togglesw-off-color: $room-highlight-color;
|
||||
// ********************
|
||||
|
||||
// Slider
|
||||
$slider-background-color: $quinary-content;
|
||||
|
||||
$progressbar-bg-color: $system;
|
||||
|
||||
$visual-bell-bg-color: #800;
|
||||
|
||||
// Authpage
|
||||
// ********************
|
||||
$authpage-primary-color: $primary-content;
|
||||
// ********************
|
||||
|
||||
$dark-panel-bg-color: $header-panel-bg-color;
|
||||
$panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
|
||||
|
||||
// Message action bar
|
||||
// ********************
|
||||
$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
|
||||
// ********************
|
||||
$reaction-row-button-border-color: #616b7f;
|
||||
$reaction-row-button-hover-border-color: $header-panel-text-primary-color;
|
||||
$reaction-row-button-selected-bg-color: #1f6954;
|
||||
// ********************
|
||||
|
||||
$kbd-border-color: #000000;
|
||||
|
||||
// Tooltips
|
||||
// ********************
|
||||
$tooltip-timeline-bg-color: $groupFilterPanel-bg-color;
|
||||
$tooltip-timeline-fg-color: $primary-content;
|
||||
// ********************
|
||||
|
||||
$breadcrumb-placeholder-bg-color: #272c35;
|
||||
|
||||
// Voice messages
|
||||
// ********************
|
||||
$voice-record-stop-border-color: $quaternary-content;
|
||||
$voice-record-icon-color: $quaternary-content;
|
||||
|
||||
// Appearance tab colors
|
||||
$appearance-tab-border-color: $room-highlight-color;
|
||||
|
||||
// blur amounts for left left panel (only for element theme)
|
||||
:root {
|
||||
--lp-background-blur: 45px;
|
||||
}
|
||||
|
||||
$composer-shadow-color: rgba(0, 0, 0, 0.28);
|
||||
|
||||
$codeblock-background-color: #2a3039;
|
||||
// ********************
|
||||
|
||||
// Bubble tiles
|
||||
// ********************
|
||||
$eventbubble-self-bg: #14322E;
|
||||
$eventbubble-others-bg: $event-selected-color;
|
||||
$eventbubble-bg-hover: #1C2026;
|
||||
$eventbubble-reply-color: #C1C6CD;
|
||||
// ********************
|
||||
|
||||
// ***** Mixins! *****
|
||||
// One-off colors
|
||||
// ********************
|
||||
$kbd-border-color: #000000;
|
||||
$visual-bell-bg-color: #800;
|
||||
$avatar-initial-color: #ffffff;
|
||||
$theme-button-bg-color: #e3e8f0;
|
||||
$codeblock-background-color: #2a3039;
|
||||
$resend-button-divider-color: #b9bec64a; // muted-text with a 4A opacity.
|
||||
$breadcrumb-placeholder-bg-color: #272c35;
|
||||
$composer-shadow-color: rgba(0, 0, 0, 0.28);
|
||||
$scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
|
||||
$primary-hairline-color: transparent;
|
||||
$slider-background-color: $quinary-content;
|
||||
$event-timestamp-color: $text-secondary-color;
|
||||
$selected-color: $room-highlight-color;
|
||||
$other-user-pill-bg-color: $room-highlight-color;
|
||||
$appearance-tab-border-color: $room-highlight-color;
|
||||
// ********************
|
||||
|
||||
// blur amounts for left left panel (only for element theme)
|
||||
// ********************
|
||||
:root {
|
||||
--lp-background-blur: 45px;
|
||||
}
|
||||
// ********************
|
||||
|
||||
// Mixins
|
||||
// ********************
|
||||
@define-mixin mx_DialogButton {
|
||||
/* align images in buttons (eg spinners) */
|
||||
vertical-align: middle;
|
||||
|
@ -225,15 +242,19 @@ $eventbubble-reply-color: #C1C6CD;
|
|||
color: $accent;
|
||||
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:
|
||||
// markdown overrides
|
||||
// ********************
|
||||
.mx_EventTile_content .markdown-body {
|
||||
table {
|
||||
tr {
|
||||
|
@ -245,8 +266,10 @@ $eventbubble-reply-color: #C1C6CD;
|
|||
}
|
||||
}
|
||||
}
|
||||
// ********************
|
||||
|
||||
// highlight.js overrides
|
||||
// diff highlight colors
|
||||
// ********************
|
||||
.hljs-tag {
|
||||
color: inherit; // Without this they'd be weirdly blue which doesn't match the theme
|
||||
}
|
||||
|
@ -258,3 +281,4 @@ $eventbubble-reply-color: #C1C6CD;
|
|||
.hljs-deletion {
|
||||
background: #53232a;
|
||||
}
|
||||
// ********************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue