Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Mode Copying #114

Open
andreas-bylund opened this issue May 30, 2024 · 3 comments
Open

Incorrect Mode Copying #114

andreas-bylund opened this issue May 30, 2024 · 3 comments

Comments

@andreas-bylund
Copy link

Description:

When selecting to copy a mode, the incorrect mode is copied. Specifically:

  • When selecting to copy Light mode, Dark mode is copied instead.
  • When selecting to copy Dark mode, Light mode is copied instead.

Steps to Reproduce:

  1. Select the option to copy Light mode.
  2. Observe that Dark mode is copied instead.
  3. Select the option to copy Dark mode.
  4. Observe that Light mode is copied instead.

Example:

Outcome when I copy the following component in Light Mode:

<section className="p-6 bg-gray-800 text-gray-100">
    [...]
</section>

And when I copy the same component in Dark mode:

<section className="p-6 dark:bg-gray-100 dark:text-gray-800">
    [...]
</section>
@ndizeyedavid
Copy link

copy the available mode and then tweak it

@matronator
Copy link

Also, when you have dark mode turned on on the site, it switches the colors in the snippet, so dark mode uses light colors and vice versa.

@Microwawe
Copy link
Owner

Hi and thanks for the feedback!

Yea the dark/light mode buttons might be a bit misleading, because those just copy the component as it is on the screen with or without the dark-variant.

If you want to copy the "actual" light mode only, you can switch the whole site to the light theme from the settings in the left edge by clicking the power button and then copying the light mode.

This is the first time someone has mentioned this as an issue so do you guys have suggestions for making the different copy-buttons easier to understand?

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

No branches or pull requests

4 participants