-
Notifications
You must be signed in to change notification settings - Fork 48
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
Use a theme CSS variable instead of a Material Design color for the highlight animation #124
Comments
I am not sure if it should be I think that using a variable is a good idea. I think the execution highlight should be a variable itself, something like: --jp-execute-time-highlight: var(--jp-brand-color3, #bbdefb);
/* ... */
background-color: var(--jp-execute-time-highlight); This way if a theme wants to modify |
This seems like a perfect solution to me, @krassowski! Based on this, I would also like to suggest a variable (e.g., In my case, I override the style so that the background color is that of the notebook (white) and not the cell (gray), so that it becomes something more "secondary" in the interface. Thoughts? |
Sounds good to me. |
@krassowski, can I go ahead and open a PR to propose this change, or should we wait for more feedback? |
Personally, I think this change would be uncontroversial and in your place I would go ahead with a PR (having in mind that during the review other solutions may be suggested). |
Hi! 👋
Context
I am creating a JupyterLab theme and as
jupyterlab-execute-time
is one of the extensions used, I would like to be able to guarantee the customization of its styles completely using the CSS variables defined in JupyterLab themes.Problem
Currently, one of the colors used in the highlight animation is one of the Material Design colors and not one of the semantic colors defined in JupyterLab themes, for example:
jupyterlab-execute-time/style/base.css
Lines 1 to 9 in 985728d
Possible solution
The Material Design color used,
--md-blue-100
, corresponds to--jp-brand-color3
in the default JupyterLab themes:So, a possible solution would be to change
var(--md-blue-100, #9fccff)
tovar(--jp-brand-color3, #bbdefb)
, using the current Material Design color as a fallback.Let me know your thoughts, please, and if I can open a PR. Thanks! 😄
The text was updated successfully, but these errors were encountered: