diff --git a/src/homeworks/templates/homeworks/form.html b/src/homeworks/templates/homeworks/form.html
index 5888ba7..406f4c3 100644
--- a/src/homeworks/templates/homeworks/form.html
+++ b/src/homeworks/templates/homeworks/form.html
@@ -48,6 +48,20 @@
#publish-at-wrapper {
transition: opacity 0.2s ease;
}
+
+ @media (prefers-color-scheme: dark) {
+ .section-form {
+ background-color: #2d2d2d;
+ border-color: #404040;
+ }
+ .widget-form {
+ background-color: #1a3a2a;
+ border-color: #2d5a3d;
+ }
+ .field-hint {
+ color: #a0b0c0;
+ }
+ }
{% endblock %}
diff --git a/src/homeworks/templates/homeworks/matrix.html b/src/homeworks/templates/homeworks/matrix.html
index a65fce5..bfd2d80 100644
--- a/src/homeworks/templates/homeworks/matrix.html
+++ b/src/homeworks/templates/homeworks/matrix.html
@@ -436,6 +436,78 @@
Legend:
min-width: 120px;
}
}
+
+@media (prefers-color-scheme: dark) {
+ .matrix-container {
+ border-color: #404040;
+ }
+
+ .matrix-table thead {
+ background-color: #2d2d2d;
+ }
+
+ .matrix-table thead th {
+ background-color: #2d2d2d;
+ border-bottom-color: #404040;
+ }
+
+ .sticky-cell {
+ background-color: #2d2d2d;
+ }
+
+ .matrix-table thead .sticky-cell {
+ background-color: #363636;
+ }
+
+ .student-cell {
+ border-right-color: #404040;
+ }
+
+ .student-name {
+ color: #e0e0e0;
+ }
+
+ .summary-header {
+ background-color: #363636 !important;
+ }
+
+ .summary-cell {
+ background-color: #2d2d2d;
+ border-left-color: #404040;
+ }
+
+ .status-submitted {
+ background-color: #1a4d2a !important;
+ border-color: #2d7b3d !important;
+ }
+
+ .status-in-progress {
+ background-color: #4d3a1a !important;
+ border-color: #7b5a2d !important;
+ }
+
+ .status-not-started {
+ background-color: #2d2d2d !important;
+ border-color: #404040 !important;
+ }
+
+ .status-overdue {
+ background-color: #4d1a1a !important;
+ border-color: #7b2d2d !important;
+ }
+
+ .legend-box {
+ border-color: #404040;
+ }
+
+ .student-row:hover {
+ background-color: #363636;
+ }
+
+ .student-row:hover .sticky-cell {
+ background-color: #404040;
+ }
+}