-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/sidebar shadow #29
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Dan-Y-Ko If we proceed with this solution, do you prefer to put the custom classes for the sidebar in a specific css file for the sidebar? |
The issue I see with that is I see there's 2 colors for the same theme color. with your suggestion, would we have this duplication for everything? |
@Dan-Y-Ko The problem is, if we need to use custom themes colours outside of Tailwind CSS classes we can't. One solution could be use css variables, for example for the sidebar shadow's color.
The reason is that the Tailwind configuration file is a JavaScript object that gets processed at build time to generate the necessary CSS. The var(--variable-name) syntax is a runtime CSS feature, and it's not directly interpretable within the Tailwind configuration. |
What about creating a custom shadow in tailwind config? |
Hi @JaneMoroz I think the problem will be the same, we will have to update the rgba() color value of the neutral-focus value if we change it in the future.
The only difference is that we put the custom shadow in the tailwind config, instead of doing it in the global.css with a selector. |
@timothyrusso the shadow color is also based on the theme chosen, right? |
@JaneMoroz yes this is the request |
Smth like this works
|
Actually |
Thanks @JaneMoroz!!! I'll push the modification, let's see if it is ok also for @Dan-Y-Ko |
@timothyrusso Maybe opacity should be changed to 5% as Dan mentioned above => |
@JaneMoroz I think from neutral-focus |
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.
LGTM!
Good job :)
Description
Add shadow to the sidebar.
We must think about using css variables for all our colors, for example something like this:
Issue link
Fixes # (issue)
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: