DEV Community

Cover image for Color Palette is served with ShadCn Theme Editor
Giuliano1993
Giuliano1993

Posted on

Color Palette is served with ShadCn Theme Editor

Good morning everyone and happy MonDEV! ☕

Also this week we are ready, keyboard in hand, to drink a sea of coffee and produce an equal amount of code 😎

And as always to support you in the process, here is your Monday morning coffee with the tool of the week!

It's Front End's turn again, and since we had fun last time with ShadCn (if you missed the newsletter I'm talking about, you can find it here), let's continue with another tool to associate with this beautiful library of components!

Specifically today I want to tell you about ShadCn Theme Editor, a beautiful tool as simple as it is powerful (just the kind I like).

By installing this package in dev mode, you can include a component in your project to view all the variables that configure the shadcn theme. At that point, you can customize them one by one, or use the randomizer to try various color possibilities.

ShadCn Theme Editor

Once you are satisfied with the result, you just have to copy all these styles with the button at the top and paste them into the ::root of your css as variables, and that's it, you will have edited your theme for the ShadCn components.

Easier than this is really tough! 😉

Articles of the week

  • 7 Beautiful Next-Level Button Components with Vue, VueUse, and TailwindCSS: Talking about components, this article by vue school offers 7 very interesting ways to create your buttons in vue. It can also be a good opportunity to review some concepts related to interaction with elements on the page, if it's not the part you deal with in your daily routine!
  • State of frontend: Frontend week? Let's talk about frontend then! If you are curious about trends and data and want to have some ideas about it with a focus on the frontend, then this report is the right fit for you!

Very well! This week too I would say we are full of ideas and news to try! So I leave you to finish your coffee and as always...

Happy Coding!

Top comments (0)