Skip to content

Commit 2a2d586

Browse files
authored
Add yellow tag for dark mode (#251)
* Adjust background and foreground of objects * Dark mode style for missing image * Add yellow tag for dark mode
1 parent 5abed10 commit 2a2d586

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app/assets/sass/components/_dark-mode.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ $app-tag--green-dark-text: nhsuk-tint(nhsuk-colour("green"), 80%);
2626
$app-tag--orange-dark-background: nhsuk-shade(nhsuk-colour("warm-yellow"), 70%);
2727
$app-tag--orange-dark-border: nhsuk-tint(nhsuk-colour("warm-yellow"), 50%);
2828
$app-tag--orange-dark-text: nhsuk-tint(nhsuk-colour("warm-yellow"), 50%);
29+
$app-tag--yellow-dark-background: nhsuk-shade(nhsuk-colour("yellow"), 70%);
30+
$app-tag--yellow-dark-border: nhsuk-tint(nhsuk-colour("yellow"), 50%);
31+
$app-tag--yellow-dark-text: nhsuk-tint(nhsuk-colour("yellow"), 50%);
2932
$app-tag--blue-dark-background: nhsuk-shade(nhsuk-colour("blue"), 30%);
3033
$app-tag--blue-dark-border: nhsuk-tint(nhsuk-colour("blue"), 80%);
3134
$app-tag--blue-dark-text: nhsuk-tint(nhsuk-colour("blue"), 80%);
@@ -248,6 +251,12 @@ $app-tag--blue-dark-text: nhsuk-tint(nhsuk-colour("blue"), 80%);
248251
color: $app-tag--orange-dark-text;
249252
}
250253

254+
.nhsuk-tag--yellow {
255+
background-color: $app-tag--yellow-dark-background;
256+
border-color: $app-tag--yellow-dark-border;
257+
color: $app-tag--yellow-dark-text;
258+
}
259+
251260
.nhsuk-tag--blue {
252261
background-color: $app-tag--blue-dark-background;
253262
border-color: $app-tag--blue-dark-border;

0 commit comments

Comments
 (0)