How to Setup Shadcn UI + Themes in NextJs 14

  Рет қаралды 32,294

Hamed Bahram

Hamed Bahram

Күн бұрын

Пікірлер: 64
@alexdin1565
@alexdin1565 7 ай бұрын
woow amazing you are the first one on youtube who cover theming topic thakns
@hamedbahram
@hamedbahram 7 ай бұрын
My pleasure! Glad to hear that.
@Elliot-Dx
@Elliot-Dx 7 ай бұрын
Now that's some proper explanation, appreciate it... just 1 query though, how do you make multi-layer navbar menu with active state of parent & child ?
@hamedbahram
@hamedbahram 7 ай бұрын
I'll have that in mind for future videos.
@muhammadsetyanto3515
@muhammadsetyanto3515 Ай бұрын
Fantastic! Thanks sir.
@hamedbahram
@hamedbahram Ай бұрын
You're welcome!
@teacookie-wynn
@teacookie-wynn 2 ай бұрын
Finally someone talking about custom themes...
@hamedbahram
@hamedbahram 2 ай бұрын
There you have it :)
@idontknowmyname2387
@idontknowmyname2387 2 ай бұрын
absolutely amazing!
@hamedbahram
@hamedbahram 2 ай бұрын
Thank you!
@sayedalisinasadat2908
@sayedalisinasadat2908 5 ай бұрын
it was useful for me and if you have time please make video Radix UI 😍.
@hamedbahram
@hamedbahram 5 ай бұрын
For sure! Thanks for the suggestions.
@fakhrulislamfuad8072
@fakhrulislamfuad8072 7 ай бұрын
nice video bro.. keep this good work up😃😃
@hamedbahram
@hamedbahram 7 ай бұрын
Thanks! I appreciate that.
@emmanuelmantilla1465
@emmanuelmantilla1465 5 ай бұрын
Hello, just want to add something if you add more themes then tailwind will have problems to know which are dark and which don't, imagine you add 'darkgreen', then TW will treat it as a regular theme, that would be troublesome because if you use (dark:text-white) then that will only be applied to the default dark theme not to the 'darkgreen', in order to tell TW about it you need to specify it in the config file. if someone needs to know the code to let tailwind know to which colors apply dark mode just let me know.
@hamedbahram
@hamedbahram 5 ай бұрын
Wouldn't it be easier with css variables?
@sivadhanushuppalapati4041
@sivadhanushuppalapati4041 7 ай бұрын
Hi sir, Installing this UI library increases the project/ application size? If so is this to be concerned sir?
@hamedbahram
@hamedbahram 7 ай бұрын
This is not a UI library to install, you can copy paste only the components you're using. With or without this you're going to need to write your components.
@pravinshinde4979
@pravinshinde4979 19 күн бұрын
Awesome! thank you very much, it was really helpful
@hamedbahram
@hamedbahram 19 күн бұрын
Glad to hear that!
@raymondmichael4987
@raymondmichael4987 7 ай бұрын
How to enable both light and dark mode on a particular color, like orange in dark and light mode. ❤😊😊
@hamedbahram
@hamedbahram 7 ай бұрын
You can have next-themes control the light and dark and create another theme toggle for the other colors. Then in your CSS you'd have light and dark class for every other theme. Does that make sense?
@d4rzk252
@d4rzk252 7 ай бұрын
@@hamedbahramSo I will just do .orange.dark {...}, .orange.light {...} in css?
@raymondmichael4987
@raymondmichael4987 7 ай бұрын
@@hamedbahram For light .orange{} For dark .dark .orange {} Right?
@hamedbahram
@hamedbahram 7 ай бұрын
@@raymondmichael4987 Exactly!
@hamedbahram
@hamedbahram 7 ай бұрын
@@d4rzk252 Exactly!
@fabouwes9240
@fabouwes9240 6 ай бұрын
I've been trying to create another plugging (next to dark/light plugging) which gonna change the color theme, but I haven't succeed so far. I can only have one color more than dark/light. Any ideas?
@hamedbahram
@hamedbahram 6 ай бұрын
You have to separate the theming from the light/dark mode.
@PootCoinSol
@PootCoinSol 2 ай бұрын
If anyone has issues where it wont select the correct multiple theme, make sure your custom theme is below :root. I was dumb and had it above so the root theme was constantly overriding my custom theme
@hamedbahram
@hamedbahram 2 ай бұрын
Good point!
@MeenaVlogs1313
@MeenaVlogs1313 5 ай бұрын
How can change js html css into next.js ?
@hamedbahram
@hamedbahram 5 ай бұрын
Do you know React?
@MeenaVlogs1313
@MeenaVlogs1313 5 ай бұрын
@@hamedbahram yes
@MichaelHofweller
@MichaelHofweller 2 ай бұрын
The theme provider adds the dark or light class that then throws this error: Prop `className` did not match. Server: "__className_3a0388 dark" Client: "__className_3a0388" Any help with a fix?
@hamedbahram
@hamedbahram 2 ай бұрын
Clone my code and see what you're doing differently. For additional resource read here → github.com/pacocoursey/next-themes?tab=readme-ov-file#avoid-hydration-mismatch
@MichaelHofweller
@MichaelHofweller 2 ай бұрын
@@hamedbahram Cool I'll check it out. Thank you! Great videos.
@MichaelHofweller
@MichaelHofweller 2 ай бұрын
@@hamedbahram The solution as far as I can tell was the use of supressHydrationWarning in the
@zvinzv
@zvinzv 7 ай бұрын
i love it ❤‍🔥, can i know what is the font name used in vscode?
@hamedbahram
@hamedbahram 7 ай бұрын
My pleasure! My font is Operator mono
@uixmat
@uixmat 7 ай бұрын
Been using Radix Primitives and more recently shadcn ui for a while now. frickin love em!
@hamedbahram
@hamedbahram 7 ай бұрын
Absolutely 💯
@PooyaDehghani-s1m
@PooyaDehghani-s1m 7 ай бұрын
Well done Hamed Jan, thanks.
@hamedbahram
@hamedbahram 7 ай бұрын
Thanks! Appreciate that.
@BooleanOperator
@BooleanOperator 6 ай бұрын
Another great tutorial, Thanks Hamed.
@hamedbahram
@hamedbahram 6 ай бұрын
Thanks! I appreciate that.
@neoTriny
@neoTriny 3 ай бұрын
Awesome ! Just discovered this channel. Thanks for the nice explanations @hamed. Go ahead Next js 💥
@hamedbahram
@hamedbahram 3 ай бұрын
Thanks! Welcome to the channel.
@harirasamir2436
@harirasamir2436 4 ай бұрын
Waw bravo high-quality content and excellent courses. Thanks Hamed well done
@hamedbahram
@hamedbahram 4 ай бұрын
Thank you! welcome to the channel 🙌🏼
@sattayaprata
@sattayaprata 18 күн бұрын
how to setting Themes config in NextJs 14 by get value from api
@hamedbahram
@hamedbahram 18 күн бұрын
You mean changing the css variable values in response to an API call?
@dolapoajayi2156
@dolapoajayi2156 7 ай бұрын
Nice video man❤..but what if I wanna use a custom orange shade and not Shadcn orange shade?any idea??
@hamedbahram
@hamedbahram 7 ай бұрын
Thank you! you can change the css variable values to whatever color you wish.
@dolapoajayi2156
@dolapoajayi2156 7 ай бұрын
@@hamedbahram yeah I know I can change it but I don’t wanna mess things up that’s why I needed to be sure how to do it..any tips please🙏..I wished you covered that in your video or just guide me🙏🙏
@hamedbahram
@hamedbahram 7 ай бұрын
@@dolapoajayi2156 go to the `globals.css` where we have the css variables and change the value to your colors. shadcn uses hsl colors, so you can just replace the values: ``` --foreground: 50 80% 40%; ```
@Anshumantiwarianstiwar
@Anshumantiwarianstiwar 7 ай бұрын
amazing high-quality content, thanks !!!!
@hamedbahram
@hamedbahram 7 ай бұрын
My pleasure! I appreciate that.
Shadcn Crash course with Next JS
47:35
Chai aur Code
Рет қаралды 64 М.
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 9 МЛН
Стойкость Фёдора поразила всех!
00:58
МИНУС БАЛЛ
Рет қаралды 3 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 89 МЛН
Why I Pick ShadCN and Tailwind for all my projects
18:53
developedbyed
Рет қаралды 68 М.
ShadCN’s Revolutionary New CLI
12:11
Jack Herrington
Рет қаралды 48 М.
Global State Management in NextJs 14 Using Zustand
51:17
Hamed Bahram
Рет қаралды 29 М.
Modern Data Fetching in React (Complete Guide)
16:41
Cosden Solutions
Рет қаралды 49 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 678 М.
I HACKED ShadCN to Create Insane React Templates and Installers
14:59
Jack Herrington
Рет қаралды 17 М.
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 141 М.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Two Minute Papers
Рет қаралды 195 М.
iPhone 16 Vs S25 ultra💀
1:01
Skinnycomics
Рет қаралды 4,9 МЛН
What’s the best iPhone or Android?
0:48
Batyr White
Рет қаралды 7 МЛН
Google Pixel 8 Pro на 128 gb! Илии.... #shorts #shortvideo
0:20
UNIT | ЮНИТ | IPHONE 15
Рет қаралды 1,6 МЛН
bulletproof❌ Nokia✅
0:17
AGENT43
Рет қаралды 29 МЛН