Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,680 --> 00:00:01,100
All right.
2
00:00:01,100 --> 00:00:06,080
Back at the documentation page still under the customization tab.
3
00:00:06,110 --> 00:00:14,720
But now all the way down here under default theme it brings up the object that is the default theme
4
00:00:14,780 --> 00:00:18,520
provided to us by material UI.
5
00:00:18,570 --> 00:00:25,170
We're going to end up going over almost everything in this object but right now we're really just interested
6
00:00:25,200 --> 00:00:27,910
in this pallet option.
7
00:00:28,020 --> 00:00:37,740
The first property under the pallet object is common which is an object itself and that holds common
8
00:00:37,740 --> 00:00:41,160
colors that you might use throughout your application.
9
00:00:41,160 --> 00:00:46,690
So the main brand colors for whatever site you are working on.
10
00:00:46,770 --> 00:00:52,970
You can put those here so that it's easy to reference in your code all from one central location.
11
00:00:53,010 --> 00:00:59,700
That way if you need to try out say a different colored gray or green you can go ahead and just tweak
12
00:00:59,700 --> 00:01:05,670
that one value right here and then that will be reflected everywhere across the application that you've
13
00:01:05,670 --> 00:01:14,210
referenced that value this is much easier than having everything isolated and having to go in and scour
14
00:01:14,210 --> 00:01:22,610
for obscure files and then go line surfing to try and figure out where it's actually being used so this
15
00:01:22,610 --> 00:01:30,250
already provides a really convenient place to start managing your colors underneath the common object.
16
00:01:30,250 --> 00:01:40,210
We have the type and it defaults to light so you can set a light or a dark property for your palette
17
00:01:40,360 --> 00:01:49,140
which makes it really easy to change a bunch of options just from the one single value the default theme
18
00:01:49,200 --> 00:01:53,340
comes with variance for the light and dark types.
19
00:01:53,340 --> 00:02:00,000
So you can imagine being able to programmatically implement a way to change between this light and dark
20
00:02:00,000 --> 00:02:08,870
setting underneath the type we have the primary object and this is going to be the primary colors of
21
00:02:08,870 --> 00:02:10,930
your application.
22
00:02:10,950 --> 00:02:18,210
This is where I think the material UI team did a really great job and created a really interesting set
23
00:02:18,210 --> 00:02:27,090
of features where if you actually just provide this main color for your primary or your secondary material
24
00:02:27,090 --> 00:02:34,710
UI actually then goes and generates a light and a dark version that you can call on without having to
25
00:02:34,710 --> 00:02:37,280
explicitly set them.
26
00:02:37,320 --> 00:02:44,070
This is really helpful if you just have a main color that you know you want to be using and then you
27
00:02:44,070 --> 00:02:51,980
can just use this to automatically create accents that you know are going to match I think that that's
28
00:02:52,010 --> 00:02:58,550
a really interesting design feature that they included with this and definitely one that shows a lot
29
00:02:58,550 --> 00:03:08,660
of consideration for the developers many material UI components actually get their default colors from
30
00:03:08,930 --> 00:03:11,390
this primary and secondary setting.
31
00:03:11,510 --> 00:03:18,260
And so just by changing this you'll automatically start seeing these colors show up when you use your
32
00:03:18,260 --> 00:03:23,240
components underneath the primary and secondary objects.
33
00:03:23,240 --> 00:03:31,880
We have the error object and that is just the same type of palette system and main light and dark colouring
34
00:03:31,880 --> 00:03:37,630
that they have although this is of course going to be for when you're displaying an error.
35
00:03:37,720 --> 00:03:39,620
Below are error colors.
36
00:03:39,670 --> 00:03:45,270
We have the gray object and this just has a bunch of different grays.
37
00:03:45,310 --> 00:03:52,820
So depending on the value that you provide it will be a darker and darker shade of gray.
38
00:03:53,290 --> 00:04:00,580
So this is really useful if you just really quick need a gray or you really just want to make sure that
39
00:04:00,580 --> 00:04:06,550
you're using consistently lighter or darker colors throughout your application.
40
00:04:06,570 --> 00:04:09,320
Now there are a couple options down here.
41
00:04:09,330 --> 00:04:17,190
This contrast threshold the get contrast text augment color and tonal offset.
42
00:04:17,190 --> 00:04:21,210
These are all options used for material UI.
43
00:04:21,240 --> 00:04:29,460
Figuring out how to balance the color of the text with the colors of the background for the components
44
00:04:29,550 --> 00:04:36,330
and making sure that it maintains the correct level of readability no matter what options you have set
45
00:04:36,330 --> 00:04:42,980
in your theme you probably won't have to mess with these much unless you start getting into some really
46
00:04:42,980 --> 00:04:47,190
specific color cases beneath those options.
47
00:04:47,200 --> 00:04:55,330
You have the text object and this provides different capacities for your text depending on its importance
48
00:04:55,330 --> 00:04:58,760
on the screen underneath the text.
49
00:04:58,760 --> 00:05:07,040
Here we have the divider which uses this lower opacity and then under the divider we have the background
50
00:05:07,100 --> 00:05:16,280
object and this object has the default background color for the entire page as well as the paper component
51
00:05:16,340 --> 00:05:20,050
which is used commonly throughout material UI.
52
00:05:20,330 --> 00:05:25,730
Which brings us to the last option here which is this action object.
53
00:05:25,760 --> 00:05:32,810
And here again we just have a number of different capacities depending on the action that you are trying
54
00:05:32,810 --> 00:05:35,080
to display.
55
00:05:35,140 --> 00:05:44,020
So this is the entire palette object inside of the theme object and all of the functionality that it
56
00:05:44,020 --> 00:05:51,370
provides to us and with generating these other presets and now that we know what it's providing for
57
00:05:51,370 --> 00:05:56,470
us I think that we can go over and start writing some of these options for ourself.
6699
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.