accent.pcss.css

Same filename in this branch
  1. main core/themes/default_admin/migration/css/theme/accent.pcss.css
Same filename and directory in other branches
  1. 11.x core/themes/default_admin/migration/css/theme/accent.pcss.css
  2. 11.x core/themes/default_admin/css/theme/accent.pcss.css

Accent color and focus ring theme styles.

File

core/themes/default_admin/css/theme/accent.pcss.css

View source
  1. /**
  2. * @file
  3. * Accent color and focus ring theme styles.
  4. */
  5. [data-gin-accent="blue"] {
  6. --admin-color-bg-sticky: rgb(235, 241, 253);
  7. }
  8. [data-gin-accent="light_blue"] {
  9. --admin-color-bg-sticky: rgb(238, 243, 251);
  10. }
  11. [data-gin-accent="dark_purple"] {
  12. --admin-color-bg-sticky: rgb(240, 235, 250);
  13. }
  14. [data-gin-accent="purple"] {
  15. --admin-color-bg-sticky: rgb(242, 235, 255);
  16. }
  17. [data-gin-accent="teal"] {
  18. --admin-color-bg-sticky: rgb(236, 245, 245);
  19. }
  20. [data-gin-accent="green"] {
  21. --admin-color-bg-sticky: rgb(235, 245, 242);
  22. }
  23. [data-gin-accent="red"] {
  24. --admin-color-bg-sticky: rgb(252, 235, 238);
  25. }
  26. [data-gin-accent="orange"] {
  27. --admin-color-bg-sticky: rgb(252, 243, 235);
  28. }
  29. [data-gin-accent="yellow"] {
  30. --admin-color-bg-sticky: rgb(249, 244, 235);
  31. }
  32. [data-gin-accent="pink"] {
  33. --admin-color-bg-sticky: rgb(251, 238, 244);
  34. }
  35. [data-gin-accent="neutral"] {
  36. --admin-color-bg-sticky: rgb(236, 236, 236);
  37. }
  38. [data-gin-accent="custom"] {
  39. --admin-color-bg-sticky: rgb(236, 236, 236);
  40. }
  41. @media (forced-colors: none) {
  42. .gin--high-contrast-mode {
  43. --admin-color-bg: #d9dbde;
  44. --admin-color-text: rgb(0, 0, 0, 0.8);
  45. --admin-color-text-soft: rgb(0, 0, 0, 0.8);
  46. --admin-color-icon: rgb(0, 0, 0, 0.8);
  47. --admin-color-focus: rgb(0, 0, 0, 0.8);
  48. --admin-color-border: rgb(0, 0, 0, 0.8);
  49. --admin-color-border-soft: rgb(0, 0, 0, 0.6);
  50. --admin-color-border-loud: rgb(0, 0, 0, 0.8);
  51. --admin-color-border-input: rgb(0, 0, 0, 0.8);
  52. --admin-color-border-table: rgb(0, 0, 0, 0.8);
  53. .gin--dark-mode
  54. }
  55. }
  56. [data-gin-focus="green"] {
  57. --admin-color-focus: rgb(8, 163, 144, 0.6);
  58. }
  59. [data-gin-focus="claro"] {
  60. --admin-color-focus: rgb(38, 167, 105, 0.6);
  61. }
  62. [data-gin-focus="orange"] {
  63. --admin-color-focus: rgb(236, 124, 87, 0.6);
  64. }
  65. [data-gin-focus="dark"] {
  66. --admin-color-focus: var(--admin-color-focus-neutral);
  67. }
  68. [data-gin-focus="accent"] {
  69. /* stylelint-disable-next-line color-function-notation */
  70. --admin-color-focus: rgb(from var(--admin-color-primary) r g b / 0.6);
  71. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.