2022-06-09 12:51:19 +02:00
|
|
|
/*
|
2022-06-21 10:48:42 +02:00
|
|
|
GoToSocial
|
2024-01-13 16:33:53 +01:00
|
|
|
Copyright (C) GoToSocial Authors admin@gotosocial.org
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-06-21 10:48:42 +02:00
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-06-21 10:48:42 +02:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-06-21 10:48:42 +02:00
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2022-06-09 12:51:19 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2022-06-21 10:48:42 +02:00
|
|
|
This stylesheets defines (color) variables to be used by other stylesheets on the page
|
|
|
|
postcss-custom-prop-vars will transpile these to css --variables
|
2022-06-09 12:51:19 +02:00
|
|
|
*/
|
|
|
|
|
2022-07-04 16:23:59 +02:00
|
|
|
/* Color definitions */
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
/* Foreground */
|
|
|
|
$white1: #fafaff; /* default text color, contrast >= 5.0 with all $grays */
|
|
|
|
$white2: #b3b5c6; /* less important text, can be used with $gray1 (6.8), $gray2 (5.5), $gray3 (4.9), $gray4 (4.5) */
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
/* Background shades, contrast >= 5.0 with $white1 (#fafaff) */
|
|
|
|
$gray1: #2a2b2f;
|
|
|
|
$gray2: #35363b;
|
|
|
|
$gray3: #3a3b41;
|
|
|
|
$gray4: #45464e;
|
|
|
|
$gray5: #4d4e56;
|
|
|
|
$gray6: #575861;
|
|
|
|
$gray7: #5d5e67;
|
|
|
|
$gray8: #696a75;
|
2022-06-09 12:51:19 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
$orange1: #fd6a00; /* Used for non-text accent colors, can be used as background: $gray1 for text color (contrast 4.6)*/
|
|
|
|
$orange2: #ff853e; /* hover/selected accent to $orange1, can be used with $gray1 (5.7), $gray2 (4.6) */
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2024-07-27 21:27:02 +02:00
|
|
|
$blue0: #00336B; /* darkest blue, can be used for links in error alerts, on $error2 (6.00) */
|
2022-09-29 12:02:41 +02:00
|
|
|
$blue1: #3a9fde; /* darker blue for smaller elements (borders), can only be used with $gray1 (4.7) */
|
|
|
|
$blue2: #66befe; /* all-round accent color, can be used with $gray1 (6.8), $gray2 (5.5), $gray3 (4.9), $gray4 (4.5) */
|
|
|
|
$blue3: #89caff; /* hover/selected accent to $blue2, can be used with $gray1 (7.9), $gray2 (6.3), $gray3 (5.6), $gray4 (5.2), $gray5 (4.7) */
|
2024-07-27 21:27:02 +02:00
|
|
|
$blue4: #b3ddff; /* used as background for info alerts */
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2024-07-27 21:27:02 +02:00
|
|
|
$red1: #860000; /* Error border/foreground text, can be used with $error2 (5.0), $white1 (10), $white2 (5.1) */
|
|
|
|
$red2: #dd2c2c; /* Error button background text, can be used with $white1 (4.51) */
|
|
|
|
$red3: #ff9796; /* Error background text, can be used with $error1 (5.0), $gray1 (6.6), $gray2 (5.3), $gray3 (4.8) */
|
2023-01-18 14:45:14 +01:00
|
|
|
|
|
|
|
$green1: #94E749; /* Green for positive/confirmation, similar contrast (luminance) as $blue2 */
|
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
$boxshadow: 0 0.4rem 1rem -0.1rem rgba(0,0,0,0.15);
|
|
|
|
$boxshadow-border: 0.08rem solid $gray1;
|
|
|
|
|
|
|
|
/* Color variables as used in a specific location */
|
|
|
|
|
|
|
|
/* Base */
|
2022-09-29 12:02:41 +02:00
|
|
|
$fg: $white1;
|
|
|
|
$bg: $gray1;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
$bg-accent: $gray5;
|
|
|
|
$fg-accent: $blue3;
|
|
|
|
$fg-reduced: $white2;
|
|
|
|
$border-accent: $orange2;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
$link-fg: $fg-accent;
|
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
/* Profile */
|
2023-05-11 17:46:32 +02:00
|
|
|
$profile-bg: $gray4;
|
2024-07-27 22:17:43 +02:00
|
|
|
$avatar-border: $orange2;
|
2022-11-15 10:19:32 +01:00
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
$role-admin: $orange2;
|
|
|
|
$role-mod: $blue2;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
/* Status */
|
2023-12-27 11:23:52 +01:00
|
|
|
$status-bg: $gray3;
|
|
|
|
$status-info-bg: $gray2;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2023-12-27 11:23:52 +01:00
|
|
|
$status-focus-bg: $gray5;
|
|
|
|
$status-focus-info-bg: $gray4;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2022-09-29 12:02:41 +02:00
|
|
|
$no-img-desc-bg: $orange1;
|
|
|
|
$no-img-desc-fg: $gray1;
|
|
|
|
|
|
|
|
$bg-sensitive: $gray1;
|
2022-08-14 19:22:13 +02:00
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
/* Form inputs */
|
2022-09-29 12:02:41 +02:00
|
|
|
$input-bg: $gray4;
|
|
|
|
$input-disabled-bg: $gray2;
|
|
|
|
$input-border: $blue1;
|
2023-01-18 14:45:14 +01:00
|
|
|
$input-error-border: $error3;
|
2022-09-29 12:02:41 +02:00
|
|
|
$input-focus-border: $blue3;
|
|
|
|
|
2023-03-29 12:18:45 +02:00
|
|
|
$settings-nav-bg: $bg;
|
|
|
|
$settings-nav-header-fg: $orange2;
|
2022-09-29 12:02:41 +02:00
|
|
|
|
|
|
|
$settings-nav-bg-hover: $gray3;
|
2023-03-29 12:18:45 +02:00
|
|
|
$settings-nav-fg-hover: $fg;
|
2022-09-29 12:02:41 +02:00
|
|
|
|
2023-03-29 12:18:45 +02:00
|
|
|
$settings-nav-bg-active: $blue3;
|
|
|
|
$settings-nav-border-active: $info-bg;
|
|
|
|
$settings-nav-fg-active: $gray2;
|
2022-07-04 16:23:59 +02:00
|
|
|
|
2024-07-27 22:17:43 +02:00
|
|
|
/* Buttons */
|
|
|
|
$button-bg: $blue2;
|
|
|
|
$button-fg: $gray1;
|
|
|
|
$button-hover-bg: $blue3;
|
|
|
|
|
|
|
|
$button-danger-bg: $error3;
|
|
|
|
$button-danger-fg: $white1;
|
|
|
|
$button-danger-hover-bg: $error2;
|
|
|
|
|
|
|
|
/* Alerts */
|
2024-07-27 21:27:02 +02:00
|
|
|
$info-fg: $gray1;
|
|
|
|
$info-bg: $blue4;
|
|
|
|
$info-link: $blue0;
|
|
|
|
|
|
|
|
$error-fg: $red1;
|
|
|
|
$error-bg: $red3;
|
|
|
|
$error-link: $blue0;
|
2022-08-08 10:40:51 +02:00
|
|
|
|
2023-01-25 18:06:41 +01:00
|
|
|
$list-entry-bg: $gray2;
|
|
|
|
$list-entry-alternate-bg: $gray3;
|
2023-05-11 17:46:32 +02:00
|
|
|
$list-entry-hover-bg: $gray4;
|
|
|
|
|
|
|
|
/* Plyr video player */
|
|
|
|
$plyr-color-main: $orange2;
|
|
|
|
$plyr-video-background: $bg-accent;
|
|
|
|
$plyr-badge-background: $bg-accent;
|
|
|
|
$plyr-video-controls-background: $bg-accent;
|
|
|
|
$plyr-badge-text-color: $fg;
|
|
|
|
$plyr-badge-border-radius: $br;
|
|
|
|
$plyr-video-progress-buffered-background: $gray8;
|