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

[Feaure] Defining explicit dark mode color for a custom color. #3844

Open
leonard84 opened this issue Jun 20, 2024 · 1 comment
Open

[Feaure] Defining explicit dark mode color for a custom color. #3844

leonard84 opened this issue Jun 20, 2024 · 1 comment

Comments

@leonard84
Copy link

leonard84 commented Jun 20, 2024

This is about Bulma.

Is it a bug/feature/question or do you need help?
Feature, probably

Overview of the problem

This is about the Bulma CSS framework

I'm using Bulma version [1.0.1]

I am sure this issue is not a duplicate?
Yes, as far as I can tell.

Description

I already asked this on Stackoverflow. Due to the lack of an answer, I guess that this is currently not possible. So, I'm opening this feature request.

I already figured out how to add a custom color to Bulma. Now, I want to know how I can get it to use a different color value in dark mode.

$groovy: #4298B8; 
// dark mode #286B86;

$custom-colors: (
        'groovy': $groovy
);

@use "bulma/sass" with (
  $custom-colors: $custom-colors,
);

What I want to achieve is that groovy uses #4298B8 for light mode and #286B86 for dark mode.

Steps to Reproduce

See code above, or checkout from repo.

Expected behavior

There is a way to define #286B86 as dark mode color for groovy

Actual behavior

There is no option to define an explicit dark mode color.

https://groovyconsole.dev/

@maerteijn
Copy link

maerteijn commented Jun 25, 2024

Hi @leonard84,

See my comment on another issue how to do this with the current implementation of Bulma:

#3804 (comment)

I didn’t use a $custom-colors variable there but the principle stays the same: Override the css variables for the dark theme (with sass).

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