diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 00a8d192..c9a0ae32 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -7,6 +7,7 @@ Changelog
- Enh #363: Deny access for files from message where current user is not participant
- Fix #412: Fix active message after mark unread
- Fix #15: When replying to a message, the conversation is marked as unread
+- Enh #417: Replace theme variables with CSS variables
3.2.2 (July 9, 2024)
--------------------
diff --git a/models/Message.php b/models/Message.php
index 8eaf3327..af4c2dae 100644
--- a/models/Message.php
+++ b/models/Message.php
@@ -433,7 +433,7 @@ public function getPinIcon($userId = null): ?Icon
if ($this->isPinned($userId)) {
return Icon::get('map-pin')
->tooltip(Yii::t('MailModule.base', 'Pinned'))
- ->color(Yii::$app->view->theme->variable('danger', 'red'));
+ ->color('var(--danger)');
}
return null;
diff --git a/views/emails/NewMessage.php b/views/emails/NewMessage.php
index 4420634d..7ae6f4c1 100644
--- a/views/emails/NewMessage.php
+++ b/views/emails/NewMessage.php
@@ -1,198 +1,201 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- = $headline ?>
-
- |
-
-
-
- |
-
-
-
-
-
- |
-
-
-
-
-
-
- |
-
-
-
- |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- |
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
- |
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
- |
-
-
-
- |
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ = $headline ?>
+
+ |
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+ |
+
+