vrtpro / chocolattech

🍫 Choco Latte's replacement & open source alternative website with better improvements
https://chocolatte.falcxxdev.cyou
MIT License
13 stars 1 forks source link

[TailwindCSS] Extend custom arbitrary values inside config file #2

Closed azukashi closed 1 year ago

azukashi commented 1 year ago

I am currently using arbitrary values inside a component files, using it in inline class, and repeated it. So the code is now spammed with *-[...] things. I don't want this. What i want is, it has registred as class by extending to the tailwindcss.config.cjs config file.

I have bg-[#ACACAC], when i need it on another element, I don't want to repeat the same way. Copying this code and paste it inside another class="...". I want this thing is registred as new class and using it like bg-my-own-grey so it can be more readable by newbies or people that only understanding css and it's syntax.

I will fix this issue when i want but if anyone is interested in helping, feel free. Just fork, made your changes, and send a PR.

azukashi commented 1 year ago

taken by me

azukashi commented 1 year ago

done in #8.

azukashi commented 1 year ago

there are still arbitrary values ​​that have not been extended to the config file. only colors extended into the config.