element-web-synapse01pim.gr.jp

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

_dark.pcss (9855B)


      1 /* Colors from Figma Compound https://www.figma.com/file/X4XTH9iS2KGJ2wFKDqkyed/Compound?node-id=559%3A741 */
      2 /* ******************** */
      3 $primary-content: var(--cpd-color-text-primary);
      4 $secondary-content: var(--cpd-color-text-secondary);
      5 $tertiary-content: var(--cpd-color-gray-800);
      6 $quaternary-content: var(--cpd-color-gray-600);
      7 $quinary-content: var(--cpd-color-gray-400);
      8 
      9 $system: var(--cpd-color-bg-subtle-primary);
     10 $system-transparent: #e1e6ec00;
     11 $background: var(--cpd-color-bg-canvas-default);
     12 $overlay-background: var(--cpd-color-alpha-gray-1300);
     13 
     14 $panels: var(--cpd-color-bg-subtle-secondary);
     15 $panel-actions: var(--cpd-color-alpha-gray-300);
     16 
     17 $separator: var(--cpd-color-gray-400);
     18 $system: var(--cpd-color-bg-subtle-secondary);
     19 
     20 /* ******************** */
     21 
     22 /**
     23  * Creating a `semantic` color scale. This will not be needed with the new
     24  * visual language, but necessary during the transition period
     25  * This abstract the `green` away from where accent shades are used
     26  * Take: `background: rgba($accent, 0.1);`
     27  * would be transformed to: `background: $accent-300;`
     28  *
     29  * To use under very rare circumstances, always prefer the semantics defined
     30  * in https://compound.element.io/?path=/docs /tokens-semantic-colors--docs
     31  */
     32 $accent-100: var(--cpd-color-green-100);
     33 $accent-200: var(--cpd-color-green-200);
     34 $accent-300: var(--cpd-color-green-300);
     35 $accent-400: var(--cpd-color-green-400);
     36 $accent-500: var(--cpd-color-green-500);
     37 $accent-600: var(--cpd-color-green-600);
     38 $accent-700: var(--cpd-color-green-700);
     39 $accent-800: var(--cpd-color-green-800);
     40 $accent-900: var(--cpd-color-green-900);
     41 $accent-1000: var(--cpd-color-green-1000);
     42 $accent-1100: var(--cpd-color-green-1100);
     43 $accent-1200: var(--cpd-color-green-1200);
     44 $accent-1300: var(--cpd-color-green-1300);
     45 $accent-1400: var(--cpd-color-green-1400);
     46 
     47 /* Reused Figma non-compound colors */
     48 /* ******************** */
     49 $inverted-bg-color: var(--cpd-color-bg-action-primary-rest);
     50 $header-panel-bg-color: var(--cpd-color-bg-subtle-secondary);
     51 $header-panel-bg-hover: var(--cpd-color-bg-action-secondary-hovered);
     52 /* ******************** */
     53 
     54 /* Theme specific colors */
     55 /* ******************** */
     56 $icon-button-color: var(--cpd-color-icon-tertiary);
     57 /* ******************** */
     58 
     59 /* Colors that aren't in Figma and are theme specific - we need to get rid of these */
     60 /* ******************** */
     61 $header-panel-text-secondary-color: #c8c8cd;
     62 $room-highlight-color: #343a46;
     63 $text-secondary-color: #b9bec6;
     64 /* ******************** */
     65 
     66 /* Colors that aren't in Figma - we need to get rid of these */
     67 /* ******************** */
     68 $dark-panel-bg-color: var(--cpd-color-bg-subtle-secondary);
     69 $muted-fg-color: $header-panel-text-primary-color;
     70 $light-fg-color: $header-panel-text-secondary-color;
     71 $focus-bg-color: $room-highlight-color;
     72 $info-plinth-bg-color: $header-panel-bg-color;
     73 $event-selected-color: var(--cpd-color-bg-subtle-secondary);
     74 $topleftmenu-color: $primary-content;
     75 $roomtopic-color: $text-secondary-color;
     76 $spacePanel-bg-color: rgba(38, 39, 43, 0.82);
     77 $panel-gradient: rgba(34, 38, 46, 0), rgba(34, 38, 46, 1);
     78 $h3-color: $primary-content;
     79 $event-highlight-bg-color: #25271f;
     80 $header-panel-text-primary-color: $text-secondary-color;
     81 /* ******************** */
     82 
     83 /* Tooltip */
     84 /* ******************** */
     85 $tooltip-timeline-bg-color: $spacePanel-bg-color;
     86 $tooltip-timeline-fg-color: $primary-content;
     87 /* ******************** */
     88 
     89 /* Widget */
     90 /* ******************** */
     91 $widget-menu-bar-bg-color: $header-panel-bg-color;
     92 $widget-body-bg-color: $panel-actions;
     93 /* ******************** */
     94 
     95 /* Menu */
     96 /* ******************** */
     97 $menu-border-color: #000000;
     98 $menu-bg-color: $header-panel-bg-color;
     99 $menu-box-shadow-color: $background;
    100 $menu-selected-color: $room-highlight-color;
    101 /* ******************** */
    102 
    103 /* Settings */
    104 /* ******************** */
    105 $settings-profile-button-bg-color: #e7e7e7;
    106 $settings-subsection-fg-color: $text-secondary-color;
    107 /* ******************** */
    108 
    109 /* Room */
    110 /* ******************** */
    111 $room-icon-unread-color: var(--cpd-color-icon-tertiary);
    112 /* ******************** */
    113 
    114 /* RoomHeader */
    115 /* ******************** */
    116 $roomheader-addroom-bg-color: rgba(92, 100, 112, 0.3);
    117 $roomheader-addroom-fg-color: $primary-content;
    118 /* ******************** */
    119 
    120 /* Rich-text-editor */
    121 /* ******************** */
    122 $pill-bg-color: var(--cpd-color-bg-action-primary-rest);
    123 $pill-hover-bg-color: var(--cpd-color-bg-action-primary-hovered);
    124 $pill-press-bg-color: var(--cpd-color-bg-action-primary-pressed);
    125 /* ******************** */
    126 
    127 /* Inputs */
    128 /* ******************** */
    129 $input-border-color: rgba(231, 231, 231, 0.2);
    130 $input-darker-bg-color: #181b21;
    131 $input-darker-fg-color: #61708b;
    132 $input-lighter-bg-color: #f2f5f8;
    133 $input-placeholder: var(--cpd-color-text-secondary);
    134 /* ******************** */
    135 
    136 /* Dialog */
    137 /* ******************** */
    138 $dialog-title-fg-color: $primary-content;
    139 $dialog-backdrop-color: #00000080;
    140 $dialog-close-fg-color: $icon-button-color;
    141 $dialog-close-external-color: $primary-content;
    142 /* ******************** */
    143 
    144 /* Tabbed views */
    145 /* ******************** */
    146 $tab-label-fg-color: $secondary-content;
    147 $tab-label-active-fg-color: $primary-content;
    148 /* ******************** */
    149 
    150 /* Buttons */
    151 /* ******************** */
    152 $button-primary-fg-color: $primary-content;
    153 $button-secondary-bg-color: transparent;
    154 $button-danger-fg-color: $primary-content;
    155 $button-danger-disabled-fg-color: $primary-content;
    156 /* ******************** */
    157 
    158 /* Toggle switch */
    159 /* ******************** */
    160 $togglesw-off-color: $room-highlight-color;
    161 /* ******************** */
    162 
    163 /* Authpage */
    164 /* ******************** */
    165 $authpage-primary-color: $primary-content;
    166 /* background colour of the modal, when the background is blurred */
    167 $authpage-modal-content-with-blur-bg-color: rgb(0, 0, 0, 0.59);
    168 /* ******************** */
    169 
    170 /* Message action bar */
    171 /* ******************** */
    172 $message-action-bar-bg-color: $header-panel-bg-color;
    173 $message-action-bar-fg-color: $header-panel-text-primary-color;
    174 $message-action-bar-border-color: #616b7f;
    175 $message-action-bar-hover-border-color: $header-panel-text-primary-color;
    176 /* ******************** */
    177 
    178 /* Reaction row */
    179 /* ******************** */
    180 $reaction-row-button-hover-border-color: $header-panel-text-primary-color;
    181 $reaction-row-button-selected-bg-color: #1f6954;
    182 /* ******************** */
    183 
    184 /* Voice messages */
    185 /* ******************** */
    186 $voice-record-stop-border-color: $quaternary-content;
    187 $voice-record-icon-color: $quaternary-content;
    188 /* ******************** */
    189 
    190 /* Bubble tiles */
    191 /* ******************** */
    192 $eventbubble-self-bg: var(--cpd-color-green-300);
    193 $eventbubble-others-bg: var(--cpd-color-gray-300);
    194 $eventbubble-bg-hover: var(--cpd-color-bg-subtle-secondary);
    195 /* ******************** */
    196 
    197 /* Lightbox */
    198 /* ******************** */
    199 $lightbox-background-bg-color: $menu-border-color;
    200 $lightbox-background-bg-opacity: 0.85;
    201 /* ******************** */
    202 
    203 /* VoIP */
    204 /* ******************** */
    205 $call-view-button-on-foreground: $primary-content;
    206 $call-view-button-on-background: $system;
    207 $call-view-button-off-foreground: $system;
    208 $call-view-button-off-background: $primary-content;
    209 $call-view-content-background: $quinary-content;
    210 
    211 $video-feed-secondary-background: $system;
    212 
    213 $call-system: $system;
    214 $call-background: $background;
    215 $call-primary-content: $primary-content;
    216 $call-light-quaternary-content: #c1c6cd;
    217 /* ******************** */
    218 
    219 /* Location sharing */
    220 /* ******************** */
    221 $location-live-color: #5c56f5;
    222 $location-live-secondary-color: #deddfd;
    223 /* ******************** */
    224 
    225 /* Location sharing */
    226 /* ******************** */
    227 .maplibregl-ctrl-attrib-button {
    228     color: $background;
    229 }
    230 /* ******************** */
    231 
    232 /* One-off colors */
    233 /* ******************** */
    234 $progressbar-bg-color: var(--cpd-color-gray-200);
    235 $kbd-border-color: $strong-input-border-color;
    236 $visual-bell-bg-color: #800;
    237 $event-timestamp-color: var(--cpd-color-text-secondary);
    238 $composer-shadow-color: rgba(0, 0, 0, 0.28);
    239 $breadcrumb-placeholder-bg-color: #272c35;
    240 $resend-button-divider-color: var(--cpd-color-gray-700);
    241 $inlinecode-border-color: $quinary-content;
    242 $inlinecode-background-color: $system;
    243 $codeblock-background-color: #2a3039;
    244 $scrollbar-thumb-color: rgba(255, 255, 255, 0.2);
    245 $selected-color: $room-highlight-color;
    246 /* ******************** */
    247 
    248 /* blur amounts for left left panel (only for element theme) */
    249 /* ******************** */
    250 :root {
    251     --lp-background-blur: 45px;
    252 }
    253 /* ******************** */
    254 
    255 body {
    256     color-scheme: dark;
    257 }
    258 
    259 /* Nasty hacks to apply a filter to arbitrary monochrome artwork to make it */
    260 /* better match the theme.  Typically applied to dark grey 'off' buttons or */
    261 /* light grey 'on' buttons. */
    262 /* ******************** */
    263 .mx_filterFlipColor {
    264     filter: invert(1);
    265 }
    266 /* ******************** */
    267 
    268 /* markdown overrides */
    269 /* ******************** */
    270 .mx_EventTile_content .markdown-body {
    271     table {
    272         tr {
    273             background-color: $menu-border-color;
    274         }
    275 
    276         tr:nth-child(2n) {
    277             background-color: #080808;
    278         }
    279     }
    280 }
    281 /* ******************** */
    282 
    283 /* diff highlight colors */
    284 /* ******************** */
    285 .hljs-tag {
    286     color: inherit; /* Without this they'd be weirdly blue which doesn't match the theme */
    287 }
    288 
    289 .hljs-addition {
    290     background: #1a4b59;
    291 }
    292 
    293 .hljs-deletion {
    294     background: #53232a;
    295 }
    296 /* ******************** */
    297 
    298 /* Splash Page Gradient */
    299 .mx_SplashPage::before {
    300     background-image:
    301         radial-gradient(53.85% 66.75% at 87.55% 0%, hsla(0deg, 0%, 11%, 0.15) 0%, hsla(250deg, 100%, 88%, 0) 100%),
    302         radial-gradient(41.93% 41.93% at 0% 0%, hsla(0deg, 0%, 38%, 0.28) 0%, hsla(250deg, 100%, 88%, 0) 100%),
    303         radial-gradient(100% 100% at 0% 0%, hsla(250deg, 100%, 88%, 0.3) 0%, hsla(0deg, 100%, 86%, 0) 100%),
    304         radial-gradient(106.35% 96.26% at 100% 0%, hsla(25deg, 100%, 88%, 0.4) 0%, hsla(167deg, 76%, 82%, 0) 100%) !important;
    305 }