-
Notifications
You must be signed in to change notification settings - Fork 400
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
Apply tailwind #16
Apply tailwind #16
Conversation
frontend/src/theme.scss
Outdated
@@ -0,0 +1,15 @@ | |||
|
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.
@jculvey I think that we might want to remove this file as well, right?
(if so, do you prefer me to do it now or in a followup PR?)
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.
Yeah, if we're not using any of that stuff anymore go for it. Better to do it now I think to make sure we've covered our bases.
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.
no, it is being used, that's why I kept it
so I can either remove it and remove the scss code using its sass variables, or I can just remove it and replace usages of its sass variables with the hardcoded values
I think it's mostly used for the colors, I guess I can try to completely remove it alongside the variables usages and check that it doesn't break the ui too much, if it does I can hardcode the values or try to apply some tailwind classes
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 did a bit of both (removed things that didn't require a complex refactoring and replaced variables with hardcoded values everywhere else)
(you can see the specific commit here: 362304f)
@@ -27,7 +27,7 @@ export default component$(() => { | |||
</div> | |||
)} | |||
<div class={`w-full ${showColumns ? 'max-w-lg' : ''}`}> | |||
<div class={`bg-slate-800 ${showColumns ? 'rounded ' : 'min-h-dscreen'}`}> |
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.
dscreen
was my invention 🙈
@jculvey with tailwind things do look quite similar to our current version but we do need to tweak some stuff (especially spacing), but I feel like this is good enough to get merged as is (and we can gradually improve things), please check it out locally and let me know what you think 🙂