Skip to content

[Bug] Page styles bleeding into displayed components #219

@luchillo17

Description

@luchillo17

Describe the bug
The components that should display the changes being done to the theme are being affected by the base theme of the page: https://github.com/jnsahaj/tweakcn/blob/main/app/globals.css

To Reproduce
Steps to reproduce the behavior:

  1. Grab any component with a border in any example theme, see how the input borders are affected by CSS at the page level and those are not included in the theme code.

Expected behavior
I expected the theme being modified to be sandboxed, so the general theme of the TweakCN page doesn't affect the examples and the theme being edited.

Screenshots
Image

Image

My theme in the page:

Image

My theme in my app:

Image Image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 140.0.7339.128

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions