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

Adjust colors for dark-mode #120

Open
LordSimal opened this issue Feb 24, 2024 · 2 comments
Open

Adjust colors for dark-mode #120

LordSimal opened this issue Feb 24, 2024 · 2 comments

Comments

@LordSimal
Copy link

Summary

It would be nice if the default generated charts also look nice in dark mode. Some of us use system wide dark mode.

Proposal

Adjust text colors etc. to be readable and apropriate in dark mode.

Additional Notes

E.g. (those are generated entries, so don't worry 😉)

image

@LordSimal
Copy link
Author

LordSimal commented Feb 24, 2024

Currently I just added this to my CSS

@media (prefers-color-scheme: dark) {
    .apexcharts-text.apexcharts-yaxis-label,
    .apexcharts-text.apexcharts-xaxis-label,
    .apexcharts-legend-series .apexcharts-legend-text {
        color: theme('colors.gray.300') !important;
        fill: theme('colors.gray.300');
    }

    .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
    .apexcharts-tooltip-text {
        color: theme('colors.gray.700');
        fill: theme('colors.gray.700');
    }
}

@Rusbelito
Copy link

Rusbelito commented May 21, 2024

thanks , its work for me , but it don't change the color of title :c , i add that :

.apexcharts-text.apexcharts-yaxis-title-text , thanks

Currently I just added this to my CSS

@media (prefers-color-scheme: dark) {
    .apexcharts-text.apexcharts-yaxis-label,
    .apexcharts-text.apexcharts-xaxis-label,
    .apexcharts-legend-series .apexcharts-legend-text {
        color: theme('colors.gray.300') !important;
        fill: theme('colors.gray.300');
    }

    .apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
    .apexcharts-tooltip-text {
        color: theme('colors.gray.700');
        fill: theme('colors.gray.700');
    }
}

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

2 participants