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

widget font colour #62

Open
gawells opened this issue Oct 14, 2021 · 4 comments
Open

widget font colour #62

gawells opened this issue Oct 14, 2021 · 4 comments

Comments

@gawells
Copy link

gawells commented Oct 14, 2021

I really like these themes, but in the dark ones I can't see font labels for widgets (from holoviz/panel). Is there a quick way to set the font colour? I don't know css much, and it wasn't obvious to me what to change.

@arbennett
Copy link
Owner

Hmm, could you post some code and possible a screenshot? It's probably related to #8

@gawells
Copy link
Author

gawells commented Oct 14, 2021

here's an example using the base16-nord theme

image

@gawells
Copy link
Author

gawells commented Oct 14, 2021

This code example should work

import numpy as np
import pandas as pd
import panel as pn
import holoviews as hv 
import hvplot.pandas

pn.extension(sizing_mode='stretch_width')

from bokeh.sampledata.autompg import autompg

mag_slider = pn.widgets.FloatSlider(name='Minimum Magnitude', start=0, end=4000, value=6)

autompgi = autompg.interactive()
select_column  = pn.widgets.Select(name='Column', options=list(autompg.columns))
autompgi[autompgi[select_column] > mag_slider].head(20)
autompgi.hvplot(x=select_column,y='cyl')

@arbennett
Copy link
Owner

Awesome - thank you!

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