Open shashkovdanil opened 11 months ago
This is brave task
@preschian @roiLeo I want use this variables across project instead of include ktheme
. What do you think?
I want use this variables across project instead of
include ktheme
. What do you think?
We can achieve that while on the go. I think migrating most of the part from global.scss
to tailwindcss utilities is better. It can help us to reduce the CSS size
I expect to reduce no of lines from global.scss
@preschian do you wanna use tailwindcss not only in UI? If so, I can do it in this task, also get rid of most of the styles in global.scss
do you wanna use tailwindcss not only in UI?
For me, yes. It would be better if we could also use that in our Kodadot app. Are there other reasons we can't use Tailwind in our app? cc @kodadot/internal-dev
If so, I can do it in this task, also get rid of most of the styles in global.scss
next, chunk CSS entry
Ye, tailwindcss is good in terms of performance https://tailwindcss.com/docs/optimizing-for-production
I want use this variables across project instead of
include ktheme
. What do you think?
let's got! Goal is to replace Bulma in libs/ui
and kodadot repo.
I'm just wondering what's the difference with nuxt-tailwind & official tailwind package? only viewer?
The biggest difference is the presence of viewer, the rest is minor things like writing config not in a separate file, but in nuxt.module.ts, and pre-installed nesting. I'd leave the configuration explicit, to be honest
Okay guys, scope for this task
.is-*
classes from global.scss@roiLeo @preschian that sounds good?
Sounds good! I would migrate our UI components first, then migrate all in-app helpers to tailwind.
Okay guys, scope for this task
- Use variables instead of include ktheme
- Setup tailwindcss for kodadot and remove
.is-*
classes from global.scss
looks good 👍
- Remove Bulma
this one is not in the same PR right? this one will be huge
Task for components
Are there other reasons we can't use Tailwind in our app? cc @kodadot/internal-dev
Isnt it better to use unocss + some custom thingies? Just asking for a friend
Nah, tailwindcss is a very well developed tool that has a large community, financial support, lots of handy stuff like code editor extensions. Also good documentation
@roiLeo assign this task on me please
Related issue https://github.com/kodadot/nft-gallery/issues/8556
Note that we need to refactor css by:
@apply
when we can't use class nor responsivethis one is open
Is your feature request related to a problem?
!important
Discussion is here https://github.com/kodadot/nft-gallery/discussions/8066
Describe the solution you would like
Find all the places where inline styles and !important are used and rewrite them.
Right now scss variables are used mostly for themes, I want to use a bunch of https://color-mode.nuxtjs.org/ + :root selector
сс @preschian @roiLeo
Describe alternatives you have considered
-
Screenshots
No response
Are there opened related issues?
No response