Skip to content

[BUG] Fix DOMTokenList error caused by theme names containing spaces #223

Description

@kunal-10-cloud

Current behaviour

When running npm run dev, the application throws a DOMTokenList error in the browser console:
The error occurs in src/app/layout.tsx at line 37 where the ThemeProvider component is used. This prevents the application from starting properly and breaks theme switching functionality.

Steps to reproduce

  1. Clone the repository
  2. Run npm install to install dependencies
  3. Run npm run dev to start the development server
  4. Open browser console
  5. See the DOMTokenList error

Expected outcome

The application should start without any DOMTokenList errors, and theme switching should work correctly. The ThemeProvider should only use valid CSS class tokens (without spaces or special characters).

Screenshots / Recordings

Image ---

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions