-
-
Notifications
You must be signed in to change notification settings - Fork 531
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
Provide ability to set design system independently from template #4326
Conversation
07a15ff
to
3b080c5
Compare
92c72b3
to
7d5b037
Compare
Codecov Report
@@ Coverage Diff @@
## main #4326 +/- ##
==========================================
- Coverage 81.80% 81.77% -0.03%
==========================================
Files 238 243 +5
Lines 34872 35206 +334
==========================================
+ Hits 28526 28791 +265
- Misses 6346 6415 +69
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
f9a5320
to
d7df015
Compare
pre-commit.ci autofix |
Would ot be possible One day to set the design system in a separate package? Say I want to use a custom design system. |
Definitely, if you provide URLs you should already be able to achieve this. Still have to add support for serving them locally though. |
cf09bf1
to
1b1ab09
Compare
This PR introduces the concept of a
Design
which can be configured directly on individual components, globally on thepn.config
and via a template (i.e. the MaterialTemplate uses theMaterial
Design
object).This allows applying design system to our components independently of templates, e.g. also in notebooks. Here is an overview of the design of different component types in a notebook. This is very much a WIP and I'm not aiming to get everything looking perfectly in this PR. I'm mostly trying to ensure that the different design systems we offer render at all and further tweak specific CSS in subsequent PRs.
Below are the three design systems displayed in JupyterLab (using the default theme and adapting to the JupyterLab theme). Note that any properties set in Python, e.g. the Bokeh theme, do not automatically adapt to the JupyterLab dark theme.
Bootstrap
Material
Fast