Customizing Angular Material just got easier in v18!

  Рет қаралды 17,753

Zoaib Khan

Zoaib Khan

Күн бұрын

Пікірлер: 38
@raul834
@raul834 7 ай бұрын
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 7 ай бұрын
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 7 ай бұрын
@@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 7 ай бұрын
@@raul834 🙏
@stevewitman
@stevewitman 7 ай бұрын
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 7 ай бұрын
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
@CodeZakk
@CodeZakk 7 ай бұрын
hi instead of using host can you show us how to apply the styles in css directly thanks!
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
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
@javascript_developer
@javascript_developer Ай бұрын
Great. thank you for making this. It make angular material customized very easy. I recently upgraded my angular app from 16 to 18. And yes this technique helped me to understand better about material.
@ZoaibKhan
@ZoaibKhan Ай бұрын
Great to hear that! And you're welcome :)
@stevewitman
@stevewitman 7 ай бұрын
Awesome! This is great news!
@substance90
@substance90 11 күн бұрын
5:00 been there, done that. It was painful, believe me!
@yelose85
@yelose85 7 ай бұрын
Great video! I can't wait to try it!
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
Hope you like it! 😀
@HypemanWaz
@HypemanWaz 6 ай бұрын
Vid put toghether nicely. Would like to hear more about the host component prop.
@ZoaibKhan
@ZoaibKhan 6 ай бұрын
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.
@skitto6554
@skitto6554 7 ай бұрын
You are the man!!!
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
🙏
@kylerjohnson988
@kylerjohnson988 7 ай бұрын
Thanks for the great demo and explanation.
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
You're welcome, Kyler! Glad you found it useful :)
@fityfive
@fityfive 2 ай бұрын
this was very helpful , im stressing about upgrading angular as the material issues have been holding me back. this video gave me some hope although i still know it's going to be agonising.
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
I know how it feels, been through a painful migration myself. Good luck and hope it goes well! 🤞
@sachetacharya477
@sachetacharya477 5 ай бұрын
Angular material Custom theme not working in angular 18
@ZoaibKhan
@ZoaibKhan 5 ай бұрын
Are you using the material 3 guide? Because the syntax has changed a bit
@LarsRyeJeppesen
@LarsRyeJeppesen 7 ай бұрын
Great , thank you
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
Glad you liked it! 😊
@BJAnderson
@BJAnderson 6 ай бұрын
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 6 ай бұрын
Oh, nice way of finding out all design tokens! Thanks for the input 🙏
@aqibjabbar5914
@aqibjabbar5914 7 ай бұрын
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 7 ай бұрын
Ng deep is coming back soon :p
@radvilardian740
@radvilardian740 7 ай бұрын
the worst thing about angular is angular material, everytime u do upgrade version it breaks really hard, again and again.
@ZoaibKhan
@ZoaibKhan 7 ай бұрын
It should get better on this count with design tokens and easier customization! :)
@wilfredomartel7781
@wilfredomartel7781 6 ай бұрын
🎉
@ZoaibKhan
@ZoaibKhan 6 ай бұрын
👍👍
@upcom1ng116
@upcom1ng116 2 ай бұрын
Your title said 18 but the video clearly shows 17.3.6,
@ZoaibKhan
@ZoaibKhan 2 ай бұрын
Yes, the customization options were experimental in 17, but are stable in v18 onwards
@sow-jr4xr
@sow-jr4xr 6 ай бұрын
waste video :(
@ZoaibKhan
@ZoaibKhan 6 ай бұрын
Thanks for your comment...
New Angular Material Docs make styling components a LOT easier!
15:52
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Dynamic Component in Angular (2024)
17:48
Decoded Frontend
Рет қаралды 28 М.
Zoneless Angular Applications in V18
14:00
Deborah Kurata
Рет қаралды 21 М.
Angular 19 blew me away
36:15
Theo - t3․gg
Рет қаралды 81 М.
Angular 19 is a BEAST of a release!
19:39
Maximilian Schwarzmüller
Рет қаралды 53 М.
Angular Resource API - Everything You Have To Know (so far)
27:58
Decoded Frontend
Рет қаралды 18 М.
The New Super-Simple Way to Theme Angular Material (v19)
19:44
Zoaib Khan
Рет қаралды 1,6 М.
Angular Material 18 Dark Theming with System Color Variables!
24:54
Modern Angular Lazy Loading Guide!
22:47
Zoaib Khan
Рет қаралды 3,1 М.
Заставила парня продать зажигалки
0:52
Жизнь Барахольщика
Рет қаралды 3,3 МЛН
Таким раствором работать одно удовольствие
1:00
Профессия созидатели
Рет қаралды 954 М.
ЛИТВИН / ПРАНК С ГРИМОМ / Shorts #upx #shorts
0:59
Making of Marble in Factory #shorts #ashortaday #indianstreetfood
0:59
Indian Food Vlogs
Рет қаралды 6 МЛН