variables.scss 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @use 'sass:color';
  2. // Dependent colors
  3. $black: #000000;
  4. $white: #ffffff;
  5. $classic-base-color: hsl(240deg, 16%, 19%);
  6. $classic-primary-color: hsl(240deg, 29%, 70%);
  7. $classic-secondary-color: hsl(255deg, 25%, 88%);
  8. $classic-highlight-color: hsl(240deg, 100%, 69%);
  9. $blurple-600: hsl(252deg, 59%, 51%); // Iris
  10. $blurple-500: hsl(240deg, 100%, 69%); // Brand purple
  11. $blurple-300: hsl(237deg, 92%, 75%); // Faded Blue
  12. $grey-600: hsl(240deg, 8%, 33%); // Trout
  13. $grey-100: hsl(240deg, 51%, 90%); // Topaz
  14. // Differences
  15. $success-green: lighten(hsl(138deg, 32%, 35%), 8%);
  16. $base-overlay-background: $white !default;
  17. $valid-value-color: $success-green !default;
  18. $ui-base-color: $classic-secondary-color !default;
  19. $ui-base-lighter-color: hsl(250deg, 24%, 75%);
  20. $ui-primary-color: $classic-primary-color !default;
  21. $ui-secondary-color: $classic-base-color !default;
  22. $ui-highlight-color: $classic-highlight-color !default;
  23. $ui-button-secondary-color: $grey-600 !default;
  24. $ui-button-secondary-border-color: $grey-600 !default;
  25. $ui-button-secondary-focus-color: $white !default;
  26. $ui-button-tertiary-color: $blurple-500 !default;
  27. $ui-button-tertiary-border-color: $blurple-500 !default;
  28. $primary-text-color: $black !default;
  29. $darker-text-color: $classic-base-color !default;
  30. $highlight-text-color: $ui-highlight-color !default;
  31. $dark-text-color: hsl(240deg, 16%, 32%);
  32. $action-button-color: hsl(240deg, 16%, 45%);
  33. $inverted-text-color: $black !default;
  34. $lighter-text-color: $classic-base-color !default;
  35. $light-text-color: hsl(240deg, 16%, 32%);
  36. // Newly added colors
  37. $account-background-color: $white !default;
  38. // Invert darkened and lightened colors
  39. @function darken($color, $amount) {
  40. @return hsl(
  41. hue($color),
  42. color.channel($color, 'saturation', $space: hsl),
  43. color.channel($color, 'lightness', $space: hsl) + $amount
  44. );
  45. }
  46. @function lighten($color, $amount) {
  47. @return hsl(
  48. hue($color),
  49. color.channel($color, 'saturation', $space: hsl),
  50. color.channel($color, 'lightness', $space: hsl) - $amount
  51. );
  52. }
  53. $emojis-requiring-inversion: 'chains';
  54. body {
  55. --dropdown-border-color: hsl(240deg, 25%, 88%);
  56. --dropdown-background-color: #fff;
  57. --modal-border-color: hsl(240deg, 25%, 88%);
  58. --modal-background-color: var(--background-color-tint);
  59. --background-border-color: hsl(240deg, 25%, 88%);
  60. --background-color: #fff;
  61. --background-color-tint: rgba(255, 255, 255, 80%);
  62. --background-filter: blur(10px);
  63. --on-surface-color: #{transparentize($ui-base-color, 0.65)};
  64. --rich-text-container-color: rgba(255, 216, 231, 100%);
  65. --rich-text-text-color: rgba(114, 47, 83, 100%);
  66. --rich-text-decorations-color: rgba(255, 175, 212, 100%);
  67. }