Skip to content

docs(readme): fix ThemeProvider import path in Theming example#223

Open
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-readme-theme-import-path-20260629
Open

docs(readme): fix ThemeProvider import path in Theming example#223
andrerfneves wants to merge 1 commit into
mainfrom
maintenance/fix-readme-theme-import-path-20260629

Conversation

@andrerfneves

Copy link
Copy Markdown
Owner

Summary

Fixes the Theming code example in the README to use a relative import path instead of a non-existent @/ path alias.

Why

The README Theming code example showed:

import { ThemeProvider } from '@/components/theme-provider'

But the project does not configure the @/ path alias. The actual source files (app.tsx, main.tsx) all use relative imports:

import { ThemeProvider } from './components/theme-provider'

A user copying the example verbatim would get a module resolution error. Changing to ./components/theme-provider ensures the example works without additional configuration.

Changes

  • README.md: Changed @/components/theme-provider./components/theme-provider in the Theming section code example

Note

This PR only fixes the import path. The storageKey value in the same code block (ui-themelightning-decoder-theme) is addressed separately in PR #194.

Test Plan

  • No behavior change — documentation-only fix
  • All 52 existing tests pass
  • Production build succeeds

The README Theming code example showed an import using a `@/` path
alias (`@/components/theme-provider`), but the project does not
configure this alias. The actual source files use relative imports.

Changed to `./components/theme-provider` to match the actual project
import pattern and ensure the example works when copied verbatim.

Note: The `storageKey` value in the same example is addressed
separately in PR #194.
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightning-decoder Ready Ready Preview, Comment Jun 29, 2026 12:06pm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant