Files
Verso/services/web/frontend/js/shared/hooks/use-themed-page.tsx
T
claude ac02fd707e
Build and Deploy Verso / deploy (push) Successful in 15m0s
feat(lumiere): grainy gradient background + editor chrome theme
- Replace flat #f0f4f8 main content bg with layered grainy gradient:
  soft radial teal/blue orbs (background-attachment: fixed) plus
  SVG feTurbulence noise tile for organic depth
- Cards get backdrop-filter glass effect over the textured surface
- New ide-lumiere.scss: sets body[data-lumiere] via useThemedPage, then
  overrides toolbar (white + 3px teal→blue accent stripe), rail (teal
  active states), and file-tree (teal selected/hover) CSS variables

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-11 11:39:58 +00:00

17 lines
636 B
TypeScript

import { useLayoutEffect } from 'react'
import { useActiveOverallTheme } from './use-active-overall-theme'
import { useUserSettingsContext } from '@/shared/context/user-settings-context'
export default function useThemedPage(featureFlag?: string) {
const activeOverallTheme = useActiveOverallTheme(featureFlag)
const {
userSettings: { overallTheme },
} = useUserSettingsContext()
useLayoutEffect(() => {
document.body.dataset.theme =
activeOverallTheme === 'dark' ? 'default' : 'light'
document.body.dataset.lumiere = overallTheme === 'lumiere-' ? 'true' : 'false'
}, [activeOverallTheme, overallTheme])
}