Customizing Angular Material just got easier in v18!

  Рет қаралды 6,954

Zoaib Khan

Zoaib Khan

Күн бұрын

#angular #material #design
🧪 Try out a theme builder app I created using design tokens here:
material-theme-builder.zoaibk...
In this video, I discuss the new changes in Angular Material v18 - which will make customization of components so much more easier!
📽️ My courses:
zoaibkhan.com/courses
✍️My blog for more free Angular posts:
zoaibkhan.com/blog
Socials:
Twitter - / zoaibdev
Facebook - / thisiszoaib
LinkedIn - / zoaib-khan-b6456815
00:00 Introduction to Angular Material 3 Customization
00:09 Exploring Custom Button Styler with Angular Material
01:16 The Challenge of Customizing Angular Material Components
04:17 Transition to Material Design Components (MDC)
05:20 Leveraging CSS Variables for Customization
06:28 Implementing Custom Styles with CSS Variables
11:23 Future of Angular Material Customization
13:44 Conclusion and Next Steps
Cheers!

Пікірлер: 29
@stevewitman
@stevewitman 2 ай бұрын
Awesome! This is great news!
@yelose85
@yelose85 2 ай бұрын
Great video! I can't wait to try it!
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Hope you like it! 😀
@kylerjohnson988
@kylerjohnson988 2 ай бұрын
Thanks for the great demo and explanation.
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
You're welcome, Kyler! Glad you found it useful :)
@LarsRyeJeppesen
@LarsRyeJeppesen 2 ай бұрын
Great , thank you
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Glad you liked it! 😊
@skitto6554
@skitto6554 Ай бұрын
You are the man!!!
@ZoaibKhan
@ZoaibKhan Ай бұрын
🙏
@HypemanWaz
@HypemanWaz Ай бұрын
Vid put toghether nicely. Would like to hear more about the host component prop.
@ZoaibKhan
@ZoaibKhan Ай бұрын
Glad you liked it! The host component binding is the best way currently to bind attributes and css classes on the component with signals. That's why I've used it here in this way.
@stevewitman
@stevewitman 2 ай бұрын
In the new Angular Material v18, what is new/different with customizing the overall color theme? Also, will there be any additional options for global theme customization (things that apply to all or many of the Angular Material components) besides the color, typography and density that is available in v17? Maybe this could be another video.
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
The theming config is basically the same - color, typography and density. But the color theming API seems simpler requiring only two color palettes, primary and tertiary. Also there's a utility for generating a material theme based on a single primary color hue - which I think will be very useful! Will be discussing quicker ways of theming in next video
@raul834
@raul834 Ай бұрын
Great video! Thank you very much. Is there any statement from Angular Material about their commitment to the tokens? Will they stay stable?
@ZoaibKhan
@ZoaibKhan Ай бұрын
Yes, there is a mention of them being "stable" in the FAQs for v17 and a schematic to be provided in case they change before being stable. v17.material.angular.io/guide/material-3#can-i-depend-on-the-css-custom-property-names-being-stable
@raul834
@raul834 Ай бұрын
@@ZoaibKhan thank you again. You got my subscription. I have been looking at lots of Angular videos and your channel must be one of the best.
@ZoaibKhan
@ZoaibKhan Ай бұрын
@@raul834 🙏
@CodeZakk
@CodeZakk Ай бұрын
hi instead of using host can you show us how to apply the styles in css directly thanks!
@ZoaibKhan
@ZoaibKhan Ай бұрын
Hey Zakk, you can just set the relevant CSS variable/property directly in the styles under a class name and then apply that class to wherever you want to apply it
@wilfredomartel7781
@wilfredomartel7781 14 күн бұрын
🎉
@ZoaibKhan
@ZoaibKhan 13 күн бұрын
👍👍
@radvilardian740
@radvilardian740 Ай бұрын
the worst thing about angular is angular material, everytime u do upgrade version it breaks really hard, again and again.
@ZoaibKhan
@ZoaibKhan Ай бұрын
It should get better on this count with design tokens and easier customization! :)
@aqibjabbar5914
@aqibjabbar5914 2 ай бұрын
Overall, its good, but i am experiencing ng-deep is deprecated now, and its not a good approach , use Host something like that, I think so
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Ng deep is coming back soon :p
@sow-jr4xr
@sow-jr4xr 23 күн бұрын
waste video :(
@ZoaibKhan
@ZoaibKhan 23 күн бұрын
Thanks for your comment...
@BJAnderson
@BJAnderson Ай бұрын
Great video. Thanks for the effort! You can use sass to compile your styles.scss file into styles.css and it will have all the css variables defined in there. Add this to your package.json scripts: "sass": "sass --load-path ./node_modules --load-path ./ --no-source-map", "sass:styles": "npm run sass src/styles.scss ./tmp/styles.css", Then run npm run sass:styles The generated css file will be in the tmp folder under your project root. If you have your material config defined in a different file, you have to compile that file instead of styles.scss... There are about 850 --mat-* css variables defined in my styles.css in Ng18
@ZoaibKhan
@ZoaibKhan Ай бұрын
Oh, nice way of finding out all design tokens! Thanks for the input 🙏
Easy, Dynamic Angular Material Theming with just 6 colors!
20:26
Zoaib Khan
Рет қаралды 3,7 М.
Angular’s Third Era is…weird
21:41
Theo - t3․gg
Рет қаралды 89 М.
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 15 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 24 МЛН
Angular 18 is EXACTLY what we needed
9:15
Academind
Рет қаралды 63 М.
I tested Angular 18 Zoneless mode and this is what I found out!
16:24
What’s new in Angular v18
20:08
Angular
Рет қаралды 104 М.
💥 Angular Mistakes #2: DON'T Overuse RxJs For Doing Simple HTTP #angular
14:03
The latest on Zoneless in Angular v18
5:22
Angular
Рет қаралды 10 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 207 М.
Svelte UI Libraries Have Leveled Up
12:14
Huntabyte
Рет қаралды 55 М.
10 Tailwind Classes I Wish I Knew Earlier
13:31
Web Dev Simplified
Рет қаралды 169 М.
ngTemplateOutlet is WAY more useful than I realised
16:36
Joshua Morony
Рет қаралды 73 М.
Самый дорогой кабель Apple
0:37
Romancev768
Рет қаралды 335 М.
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,5 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 4,9 МЛН
WATERPROOF RATED IP-69🌧️#oppo #oppof27pro#oppoindia
0:10
Fivestar Mobile
Рет қаралды 17 МЛН
Мой инст: denkiselef. Как забрать телефон через экран.
0:54