-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Change Accent and Header Background Color for Fast Templates #2984
Conversation
@@ -12,7 +12,7 @@ | |||
|
|||
class FastBaseTemplate(BasicTemplate): | |||
|
|||
accent_base_color = param.String(doc=""" | |||
accent_base_color = param.String(default="#0072B5", doc=""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted a way for the user to get the color for their app to make it easier to use the color in plots etc.
Codecov Report
@@ Coverage Diff @@
## master #2984 +/- ##
=======================================
Coverage 83.21% 83.22%
=======================================
Files 190 190
Lines 24962 24973 +11
=======================================
+ Hits 20773 20784 +11
Misses 4189 4189
Continue to review full report at Codecov.
|
I like the color but really we need to be way more consistent about theming and styling. If we make this change it needs to apply to all templates and we should define a fixed color palette for both light (default) and dark themes which all the template specific themes can reference somehow. |
I don't think vanilla, bootstrap, material and fast templates can be alike. They are different design systems with very different properties. And the Fast Templates are so far ahead of the rest of the templates. Who will ever take the time to develop the required css files for the other templates? |
I'm not saying the need to be alike but I think there should a central definition of the default color palette, which is then reused by most of the templates.
and then we can have a templated CSS file like this:
then finally each template can use those variables to control its color scheme, e.g. the fast template CSS can then just use:
|
I'm not quite sure what the status on this is. Would it be possible to get into 0.13? Is there anything I should do to get this in? (It would make my "developer advocate" work much easier to have this in. Then I would not have to always pick some more beautiful colors to make examples look nice. And the new users would have less code to worry about). |
This problem here is that the |
You can see this change in action at https://awesome-panel.org |
If you don't like BLUE, we might be able to find a better green than the suggested one :-) |
Will merge and probably follow up separately. |
Addresses #2983
Looks like