You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
4.9 KiB

9 months ago
  1. // Dark color mode variables
  2. //
  3. // Custom variables for the `[data-bs-theme="dark"]` theme. Use this as a starting point for your own custom color modes by creating a new theme-specific file like `_variables-dark.scss` and adding the variables you need.
  4. //
  5. // Global colors
  6. //
  7. // scss-docs-start sass-dark-mode-vars
  8. // scss-docs-start theme-text-dark-variables
  9. $primary-text-emphasis-dark: tint-color($primary, 40%) !default;
  10. $secondary-text-emphasis-dark: tint-color($secondary, 40%) !default;
  11. $success-text-emphasis-dark: tint-color($success, 40%) !default;
  12. $info-text-emphasis-dark: tint-color($info, 40%) !default;
  13. $warning-text-emphasis-dark: tint-color($warning, 40%) !default;
  14. $danger-text-emphasis-dark: tint-color($danger, 40%) !default;
  15. $light-text-emphasis-dark: $gray-100 !default;
  16. $dark-text-emphasis-dark: $gray-300 !default;
  17. // scss-docs-end theme-text-dark-variables
  18. // scss-docs-start theme-bg-subtle-dark-variables
  19. $primary-bg-subtle-dark: shade-color($primary, 80%) !default;
  20. $secondary-bg-subtle-dark: shade-color($secondary, 80%) !default;
  21. $success-bg-subtle-dark: shade-color($success, 80%) !default;
  22. $info-bg-subtle-dark: shade-color($info, 80%) !default;
  23. $warning-bg-subtle-dark: shade-color($warning, 80%) !default;
  24. $danger-bg-subtle-dark: shade-color($danger, 80%) !default;
  25. $light-bg-subtle-dark: $gray-800 !default;
  26. $dark-bg-subtle-dark: mix($gray-800, $black) !default;
  27. // scss-docs-end theme-bg-subtle-dark-variables
  28. // scss-docs-start theme-border-subtle-dark-variables
  29. $primary-border-subtle-dark: shade-color($primary, 40%) !default;
  30. $secondary-border-subtle-dark: shade-color($secondary, 40%) !default;
  31. $success-border-subtle-dark: shade-color($success, 40%) !default;
  32. $info-border-subtle-dark: shade-color($info, 40%) !default;
  33. $warning-border-subtle-dark: shade-color($warning, 40%) !default;
  34. $danger-border-subtle-dark: shade-color($danger, 40%) !default;
  35. $light-border-subtle-dark: $gray-700 !default;
  36. $dark-border-subtle-dark: $gray-800 !default;
  37. // scss-docs-end theme-border-subtle-dark-variables
  38. $body-color-dark: $gray-300 !default;
  39. $body-bg-dark: $gray-900 !default;
  40. $body-secondary-color-dark: rgba($body-color-dark, .75) !default;
  41. $body-secondary-bg-dark: $gray-800 !default;
  42. $body-tertiary-color-dark: rgba($body-color-dark, .5) !default;
  43. $body-tertiary-bg-dark: mix($gray-800, $gray-900, 50%) !default;
  44. $body-emphasis-color-dark: $white !default;
  45. $border-color-dark: $gray-700 !default;
  46. $border-color-translucent-dark: rgba($white, .15) !default;
  47. $headings-color-dark: inherit !default;
  48. $link-color-dark: tint-color($primary, 40%) !default;
  49. $link-hover-color-dark: shift-color($link-color-dark, -$link-shade-percentage) !default;
  50. $code-color-dark: tint-color($code-color, 40%) !default;
  51. $mark-color-dark: $body-color-dark !default;
  52. $mark-bg-dark: $yellow-800 !default;
  53. //
  54. // Forms
  55. //
  56. $form-select-indicator-color-dark: $body-color-dark !default;
  57. $form-select-indicator-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$form-select-indicator-color-dark}' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/></svg>") !default;
  58. $form-switch-color-dark: rgba($white, .25) !default;
  59. $form-switch-bg-image-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-color-dark}'/></svg>") !default;
  60. // scss-docs-start form-validation-colors-dark
  61. $form-valid-color-dark: $green-300 !default;
  62. $form-valid-border-color-dark: $green-300 !default;
  63. $form-invalid-color-dark: $red-300 !default;
  64. $form-invalid-border-color-dark: $red-300 !default;
  65. // scss-docs-end form-validation-colors-dark
  66. //
  67. // Accordion
  68. //
  69. $accordion-icon-color-dark: $primary-text-emphasis-dark !default;
  70. $accordion-icon-active-color-dark: $primary-text-emphasis-dark !default;
  71. $accordion-button-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-color-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
  72. $accordion-button-active-icon-dark: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='#{$accordion-icon-active-color-dark}'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !default;
  73. // scss-docs-end sass-dark-mode-vars