feat(app): redesign discovery and align skeletons with rendered UI

This commit is contained in:
Hampus authored and GitHub committed 2026-08-16 19:17:28 +02:00
1 parent e054aa96be
commit 98c40c6979
380 files changed
+50869 -32207

No files matched your search

@@ -2,7 +2,7 @@
import {HdrDisplayMode} from '@app/features/accessibility/state/Accessibility';
import {remFromPx} from '@app/features/theme/layout/RemFromPx';
import {useEffect} from 'react';
import {useLayoutEffect} from 'react';
interface ThemeCssVariablesOptions {
effectiveTheme: string;
@@ -27,7 +27,7 @@ export function useThemeCssVariables({
messageGroupSpacing,
hdrDisplayMode,
}: ThemeCssVariablesOptions): void {
useEffect(() => {
useLayoutEffect(() => {
const htmlNode = document.documentElement;
htmlNode.classList.add(`theme-${effectiveTheme}`);
htmlNode.style.setProperty('--saturation-factor', saturationFactor.toString());