Refactor: centralize theme definitions and enhance dynamic theming capabilities

This commit is contained in:
2026-02-22 11:45:59 +05:30
parent 8df4ef3b49
commit c0c363a77e
3 changed files with 349 additions and 103 deletions

View File

@@ -87,6 +87,35 @@
}
.dot-grid {
position: fixed;
inset: 0;
pointer-events: none;
}
.dot-grid::before {
content: '';
position: fixed;
inset: 0;
background-image: radial-gradient(var(--grid-pattern) 1px, transparent 1px);
background-size: 24px 24px;
/* Lock Y so scroll never changes it; keep X drift via CSS variable. */
background-position: var(--dot-grid-x, 0px) 0px;
will-change: background-position;
animation: dot-grid-drift-x 3s linear infinite;
}
@keyframes dot-grid-drift-x {
from {
background-position: 0px 0px;
}
to {
background-position: 24px 0px;
}
}
@media (prefers-reduced-motion: reduce) {
.dot-grid::before {
animation: none;
}
}