How to change the color of admonitions? #928
Answered
by
HEIGE-PCloud
soto-sergio
asked this question in
Q&A
-
Hello, everybody, can someone explain me how to change the color of the admonition? |
Beta Was this translation helpful? Give feedback.
Answered by
HEIGE-PCloud
Apr 20, 2023
Replies: 1 comment
-
In // ========== Admonition ========== //
// Color map of the admonition
$admonition-color-map: (
'note': #448aff,
'abstract': #00b0ff,
'info': #00b8d4,
'tip': #00bfa5,
'success': #00c853,
'question': #64dd17,
'warning': #ff9100,
'failure': #ff5252,
'danger': #ff1744,
'bug': #f50057,
'example': #651fff,
'quote': #9e9e9e,
);
// Color map of the admonition background
$admonition-background-color-map: (
'note': rgba(68, 138, 255, 0.1),
'abstract': rgba(0, 176, 255, 0.1),
'info': rgba(0, 184, 212, 0.1),
'tip': rgba(0, 191, 165, 0.1),
'success': rgba(0, 200, 83, 0.1),
'question': rgba(100, 221, 23, 0.1),
'warning': rgba(255, 145, 0, 0.1),
'failure': rgba(255, 82, 82, 0.1),
'danger': rgba(255, 23, 68, 0.1),
'bug': rgba(245, 0, 87, 0.1),
'example': rgba(101, 31, 255, 0.1),
'quote': rgba(159, 159, 159, 0.1),
); and then change the color to your preferences. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HEIGE-PCloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In
your_site/assets/css/_override.scss
, add