Тёмный

Customizing the new Material UI 

codingNerd
Подписаться 912
Просмотров 36 тыс.
50% 1

Material UI recently updated to MUI5 and it is full of great stuff. But themeing has changed. If you want to know how to customize your React and Material UI app and customize all of its components correctly, this is how you do it!

Опубликовано:

 

3 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 130   
@lemonyth
@lemonyth 2 года назад
MUI is just so overwhelming, especially if you're also somewhat new to ReactJS. This tutorial might just be what I needed to clear some doubts I had. Thank you so much.
@codingNerd
@codingNerd 2 года назад
Glad it helped! And I agree
@jennyohanlon5380
@jennyohanlon5380 2 года назад
@@codingNerd YES!!!!! THE DOCUMENTATION ON MUI SUCKS!
@hamidr8391
@hamidr8391 2 года назад
I thought I am the only one.
@rickhoro
@rickhoro 2 года назад
For me, the best part of this video started around the 50 minute mark, showing how to narrow down the exact set of components for which to customize theme properties. First time I understood some of that material. Thank you very much!
@codingNerd
@codingNerd 2 года назад
Cool, thanks!
@mrspock7277
@mrspock7277 Год назад
Best explanation available on how to use Material UI
@fiorini_mochachino
@fiorini_mochachino 2 года назад
Excellent! If you're already familiar with React, the styling bit actually starts at about min 21:00
@stanislaslaurent970
@stanislaslaurent970 2 года назад
30:23
@TonyMLatham
@TonyMLatham 2 года назад
I like to watch different videos when learning something new. Your video provided a different perspective and keep my attention the whole time. Thanx for a great video!!
@codingNerd
@codingNerd 2 года назад
Thank you very much. I'm glad you enjoyed it
@davidnetk
@davidnetk 2 года назад
Solid tutorial. Watched at 2x speed and understood every single point explained. Thank you!
@codingNerd
@codingNerd 2 года назад
haha SOrry I dont mean to ramble. I have the tendency to think that everything I think of is important to mention. Glad you got through it!
@ramiz1050
@ramiz1050 2 года назад
What a good explanation, man! Keep discover more complicated thing about MUI v5. It's lovely to watch videos like this. Looking forward to more videos!!!
@codingNerd
@codingNerd 2 года назад
More to come!
@cuy4z
@cuy4z 2 года назад
Love your energy man. You made everything so accessible! With it I'm officially starting my react journey. Valeu mestre
@codingNerd
@codingNerd 2 года назад
Valeu! é um prazer
@humanetiger
@humanetiger 2 года назад
Starting from 55:00 your tutorial, all your examples and explanations, are pure gold. I tried so many things before, all failed in doing theming right. Now, with your bright torch of knowledge and understanding in my hands, I realize how blindly I was walking in the dark ;-) All my former problems with theming literally disappeared - and things are working just fine. Thanks man!
@davisvilums
@davisvilums 2 года назад
Thank you so much I learned a lot! I love the new mui way of styling and sx attributes.
@paalaleksander
@paalaleksander 2 года назад
Great tutorial! Helped me a lot, first year front-end developer student here..
@codingNerd
@codingNerd 2 года назад
Hang in there. It gets easier over time. Good luck
@paalaleksander
@paalaleksander 2 года назад
@@codingNerd Thanks! Javascript is not the easiest to learn, but with a few months training it's improving. Perfect video you made here, I use it as a reference for the UI parts of my projects. (Hopefully I'll remember most of it soon.)
@mahmudulhasan6355
@mahmudulhasan6355 2 года назад
Really nice video. His every word is valuable. He explained how and why!!!! If someone wants to learn Material UI, this video is highly recommended. Thanks!!!!!! :)
@codingNerd
@codingNerd 2 года назад
Thank you so much. I was really shooting for those goals!
@gaborvaszi3234
@gaborvaszi3234 2 года назад
Just what I needed + looking into MUI docs. Great tutorial thank you very much.
@codingNerd
@codingNerd 2 года назад
Great to hear!
@slay9614
@slay9614 2 года назад
Your way of explaining is amazing....
@codingNerd
@codingNerd 2 года назад
Aw shucks! come on! I'm blushing now! haha
@100timezcooler
@100timezcooler 2 года назад
bro ur channel is gold. these vids are severely undervalued interms of view count. This video seems to being doing well and i hope it brings more people to your other content
@codingNerd
@codingNerd 2 года назад
Thanks man! I really appreciate it
@all12jus
@all12jus 2 года назад
Thanks for a good video. Helped me verify that the style system was indeed implemented correctly in my latest work project. Someone had done something weird and mixed bootstrap into MUI button style.
@luisbrazilva
@luisbrazilva 2 года назад
Can’t say it’s necessarily wrong. But definitely unnecessary. Material should be enough. Specially since material 5 is huge. But I could see them both in one ecosystem if the dev is doing a retrofit for example.
@thewpwing
@thewpwing 2 года назад
Amezing explanation. Thanks buddy :)
@codingNerd
@codingNerd 2 года назад
I'm glad you liked it!
@mrspock7277
@mrspock7277 Год назад
Nice collection of guitars!!
@jonathanhick5824
@jonathanhick5824 2 года назад
Thanks mate, this was very helpful.
@judewestburner
@judewestburner 2 года назад
Super tutorial. It's videos like this that make me love the internet. At one time this info would've been locked in crazy big books and over priced training sessions
@codingNerd
@codingNerd 2 года назад
That's awesome to hear!
@ExplorationAT
@ExplorationAT 2 года назад
Solid tutorial Much appreciated!
@Abregujoaquin
@Abregujoaquin 2 года назад
Customization starts at 36:10 Nice video!
@lvrsvid
@lvrsvid 2 года назад
Luis, this is fantastic. I really appreciate your slow, concise, sequential, instruction. You are a great teacher and I think this channel will have great long term success if you keep up these instructional videos coming. I am a self taught dev and am trying to learn as much as I can this year before getting my resume/applications out next year. I spent a good amount of time trying to figure out how to customize the navbar/appbar but only ran into frustration until I found this. I had no idea you had to create a theme component. Great video, you earned a sub a like. I will be recommending your channel to anyone who asks for help from here on out. Best of luck to you and thanks again!
@codingNerd
@codingNerd 2 года назад
Thank you so much! I enjoy teaching so it was a lot of fun for me as well!
@lvrsvid
@lvrsvid 2 года назад
@@codingNerd Is there a place to DM you? Reddit/Twitter/IG? I have a question regarding your teaching style that I would like to ask.
@quofintech9200
@quofintech9200 2 года назад
Great video, thanks, you've got another subscriber!
@LithikaDamnodofficial
@LithikaDamnodofficial 2 года назад
superb.. was better than other mui courses.. 🤟
@michaelsaucedo3952
@michaelsaucedo3952 2 года назад
Just what I was looking for. My lesson of the day today was colors and themes for MUI5. 😉
@codingNerd
@codingNerd 2 года назад
Glad I could help!
@lordhumongous644
@lordhumongous644 2 года назад
A comment for the algorithm, this was really helpful mate cheers.
@codingNerd
@codingNerd 2 года назад
Awesome! Thank you!
@letscodetogether9289
@letscodetogether9289 2 года назад
It was very Helpful..thanks from India
@codingNerd
@codingNerd 2 года назад
Glad it was helpful! And our logos are almost identical!
@meyyappanmuthuraman4763
@meyyappanmuthuraman4763 2 года назад
Thanks for making this amazing video. It helped me a lot.
@codingNerd
@codingNerd 2 года назад
Glad to hear that!
@jimmyli2853
@jimmyli2853 2 года назад
Great stuff. Thank you so much
@codingNerd
@codingNerd 2 года назад
Glad you enjoyed it!
@nebevets
@nebevets 2 года назад
I found this very useful. thanks.
@codingNerd
@codingNerd 2 года назад
You're welcome!
@hardiksolanki4415
@hardiksolanki4415 2 года назад
Love you man..!! your video really help me...!! Thank you
@codingNerd
@codingNerd 2 года назад
My pleasure!
@md.sohelrana121
@md.sohelrana121 2 года назад
Very helpful video thank you ❤️
@MiguelangelFernandez82
@MiguelangelFernandez82 2 года назад
Thanks, man. This really clarified a lot.
@jacksamara2527
@jacksamara2527 2 года назад
this was an awesome video, thank you sooo much for such a tutorial
@codingNerd
@codingNerd 2 года назад
Glad it was helpful!
@captainalpha4853
@captainalpha4853 2 года назад
Great explanation! Thank You!
@codingNerd
@codingNerd 2 года назад
Glad you enjoyed it!
@mcrmehmet
@mcrmehmet 2 года назад
I assume the "weird" "&" is "the parent selector" from Sass 1:08:13. Luis this is the first video I watched on your channel: totally loved your humble style without any cuts or arrangement. In different parts of the video, we can see you struggle to find some pages in documentation or do some typos or mistakes and just solve them on stage which makes the whole video more educational. Great content keep going I will be following you with great pleasure! Cheers! (P.S. I know you are humble but better add tags to your videos, like its hard to get this video discovered while searching with "MUI" involved keyword etc., you deserve much more views)
@codingNerd
@codingNerd 2 года назад
Thank you so much for your kind words. I'm not very good at this RU-vid thing.I just enjoy making them and teaching. I do love doing my own debugging on stage as you mentioned. It shows the reality of this job. Many other educators flow through code way too easily. Or so it seems. I understand it cuts time from the video but I want my viewers to know that if they get stuck or lost or made a typo or something like that, that it is completely normal. Thanks again for the tip. I will be integrating tags right away. Thanks
@Luis001155
@Luis001155 2 года назад
That was a great video. Thank you!
@opinalu
@opinalu 2 года назад
Great tutorial! Thanks for that!
@codingNerd
@codingNerd 2 года назад
You're welcome!
@abhikbanerjee3719
@abhikbanerjee3719 2 года назад
At 25:40 you mention "4 measures of whatever that is". It's a theme property specified in "spacing" property as "8px" by default. This can be changed by using the useTheme() or createTheme() hooks and injecting the theme with a ThemeProvider component.
@codingNerd
@codingNerd 2 года назад
Thank you! I knew it was 8px but I always did wonder why 8? I guess I never bothered into going that deep down that rabbit hole. Thank you!
@abhikbanerjee3719
@abhikbanerjee3719 2 года назад
@@codingNerd yours is one of the first channel to cover MUI v5. So I should thank you! Cheers.
@theatypicaldeveloper
@theatypicaldeveloper 2 года назад
this tutorial is cool, thanks for sharing
@dusanvulic7275
@dusanvulic7275 2 года назад
Thank you !
@jennyohanlon5380
@jennyohanlon5380 2 года назад
THANK YOU!
@aymanyahia677
@aymanyahia677 2 года назад
Very helpful video thank you
@codingNerd
@codingNerd 2 года назад
You're welcome
@enzobatista2904
@enzobatista2904 2 года назад
Does anyone know how to change styling engine to styled-components in a ReactJS project?
@mattmarkus4868
@mattmarkus4868 2 года назад
I believe each unit is 8 pixels, which explains why margin: 20 came out to 160px.
@codingNerd
@codingNerd 2 года назад
That's correct. I never really cared to investigate for that, but now I know!!! You can learn by teaching!
@hardiksolanki4415
@hardiksolanki4415 2 года назад
Can we use ThemeProvider at compnent level(like creating global)??
@codingNerd
@codingNerd 2 года назад
It can be. The concept of a component is that it can be self-sustained (unless you have dependency props). However it isn't recommended unless you are sure you will not add it anywhere else. It's better to have it at the highest level and be ready to be accessed whenever you need it
@ThunderboltPath
@ThunderboltPath 2 года назад
Nice authentic tutorial. But based on my experience with MUI 5, mixing legacy packages such as @mui/styles and @mui/icons-material with @emotion/styled could result in code conflicts. So beware of that. The recommended way to implement styles with MUI now is through the sx prop and styled-components.
@luisbrazilva
@luisbrazilva 2 года назад
That’s an excellent feedback. I started styling using the sx prop prinarily but ran into repetitive code within the same component. I felt that centralizing the styles in one shareable class through a mui/styles approach would help me distribute the props and reusing as needed. But I do agree that I ran into some styling conflicts. Overriding the component props was the most effective way to combat that problem.
@codingNerd
@codingNerd 2 года назад
Sorry I didn't realized I commented from my personal profile. That other comment is me
@msaimraz
@msaimraz 2 года назад
Thanks, man :)
@codingNerd
@codingNerd 2 года назад
You bet! Thanks for watching
@mohamedmubeid2496
@mohamedmubeid2496 2 года назад
ty
@codingNerd
@codingNerd 2 года назад
You're most welcomed
@anmolrajx
@anmolrajx 2 года назад
love the way you explained everything. could you please mention your vscode extensions?
@codingNerd
@codingNerd 2 года назад
Just made one specifically for you!!!! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-gmbx-dst790.html
@anmolrajx
@anmolrajx 2 года назад
@@codingNerd thanks, man...💛
@NeoCoding
@NeoCoding 2 года назад
I know life is not an easy thing, hold on, brother!
@codingNerd
@codingNerd 2 года назад
Thank you so much
@stanislaslaurent970
@stanislaslaurent970 2 года назад
25:45 has to do with the theme's spacing system
@bhaskaruprety230
@bhaskaruprety230 2 года назад
Skip to main content: 11:41
@codingNerd
@codingNerd 2 года назад
Thank you. Sorry about my rambles lol. Bad habit
@pushpindersingh2374
@pushpindersingh2374 2 года назад
Hi, I have been trying to solve this issue a lot but cannot find solution. I'm receiving this error after compiling the below code- TypeError: Cannot read properties of undefined (reading 'background') import { makeStyles } from '@mui/styles'; const useStyles = makeStyles((theme) => ({ paper: { position: 'absolute', width: 400, backgroundColor: theme.palette.background.paper, //... are showing under pall border: '2px solid #000', boxShadow: theme.shadows[5], //... are showing under shadows padding: theme.spacing(2, 4, 3), //... are showing under spacing }, })); I think this code used to work with import { makeStyles } from '@material-ui/core/styles'; but, after v5 update how to make it work. And these ... dots are coming under the 3 lines of code. I hope you would know how to resolve it.
@codingNerd
@codingNerd 2 года назад
One thing is makeStyles is in @mui/styles now and you'd still have to import theme as well. If this is the way all your MuiPapers will look, put it in a defaults theme.js and use your styleOverrides to redesign the paper. Or add a variant and name it MuiCustomPaper and style it there so you can use it anywhere you like. If not, use it the way you are doing it now but without passing theme into makeStyles and instead of theme.palette.etc just put the color you want as a string. Again, this is only IF it's a one-time style. I think I showed all of this in this video in one way or another. GL!
@prerakhere
@prerakhere 2 года назад
--save is not required anymore i think
@codingNerd
@codingNerd 2 года назад
You may be right. But I'm not 100% certain. I ran into issues deploying a site a couple of months ago and until I applied "save", it didn't include them when I ran npm run build. Either way, it's not too much trouble to type an extra 6 characters to be safe
@scarlettgriffith5095
@scarlettgriffith5095 2 года назад
Thanks for a good video. I'm new with material ui. I want to add breakpoints to the file you created to display or hide some components in specific breakpoints. how can I do that?
@codingNerd
@codingNerd 2 года назад
See the code below const styles = (theme) => ({ myDiv: { backgroundColor: 'blue', [theme.breakpoints.up('md')]: { backgroundColor: 'red', }, }, }); In this code, the background of an element with className={classes.myDiv} would change color on a md breakpoint that is already specified by MUI, ( you can change these breakpoint values globally as well). But if you just want to be able to use the breakpoints and not change where they break, then use this in your page. Of course, there is a bit more dependencies and stuff you gotta play with but this is actual acting agent. I made a sandbox test that will hopefully help codesandbox.io/s/v5-withstyles-forked-1wh8r?file=/src/index.js Good luck
@scarlettgriffith5095
@scarlettgriffith5095 2 года назад
@@codingNerd Thank you so much
@julienneperez290
@julienneperez290 2 года назад
great video, but it would be better if u tackled mui's styled().
@codingNerd
@codingNerd 2 года назад
Thanks for the tip! I should do another one dissecting all of it. Focused entirely on it. Good idea!
@MuhammadAlam-ne9cf
@MuhammadAlam-ne9cf 2 года назад
coding starts at 10:30
@codingNerd
@codingNerd 2 года назад
Thank you! I should add chapters to this video. hmm Good call
@simplyabdou8425
@simplyabdou8425 2 года назад
good video ! but i had to watch x2 speed ! u talk soo slow lol
@codingNerd
@codingNerd 2 года назад
Lol I do? lol sorry. I know I talk a lot but never heard I talk slow. Anyway, my bad. I suck at YouTubing. I would starve if I had to make a living from this. Lol.
@simplyabdou8425
@simplyabdou8425 2 года назад
@@codingNerd all good brother, great video still
@kim92se64
@kim92se64 2 года назад
54 watched
@klaudiuszflorek8915
@klaudiuszflorek8915 2 года назад
Bump
@AbdurRahman-hd5fn
@AbdurRahman-hd5fn 2 года назад
I think you are too much lazy man 😄 thanks btw
@jan-philippmarks5926
@jan-philippmarks5926 2 года назад
Useless video when not working in Typescript
@codingNerd
@codingNerd 2 года назад
Uninstall Typescript. lol Just kidding. Sorry it din't help you. I'm sure there are other instructors who have covered it.
@JacobSucksAtCode
@JacobSucksAtCode 2 года назад
Great video mate. Easy intro to everything you essentially need for react development.
@codingNerd
@codingNerd 2 года назад
Glad you think so!
@burned4laif69
@burned4laif69 2 года назад
You seem like a great guy and I wish you the best on your development and RU-vid journey. If I could make a suggestion; it would have been great to somehow indicate the level of this guide through the title or description. GL in future endeavors!
@codingNerd
@codingNerd 2 года назад
Great suggestion! I will keep that in mind
@argeliasaraiperez6416
@argeliasaraiperez6416 2 года назад
thank you!
@jacqueskorb879
@jacqueskorb879 2 года назад
Thank you!!
@codingNerd
@codingNerd 2 года назад
No worries!
Далее
Сколько стоит ПП?
00:57
Просмотров 319 тыс.
iPhone 16 & beats 📦
00:30
Просмотров 157 тыс.
React Material UI Tutorial - 46 - Customizing Theme
13:52
Remix Crash Course 2023 (React Framework)
2:07:00
Просмотров 107 тыс.
MUI5 (Material UI) Crash Course
1:28:35
Просмотров 227 тыс.
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн
Building the Ultimate Nike App in React Native & Redux
3:33:55
Сколько стоит ПП?
00:57
Просмотров 319 тыс.