You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ionic uses modes to customize the look of components to match the platform you are using. For example, when you are viewing the app on an Android device, the `<body>` will have `class="md"` added to it by default:
19
+
Ionic uses **modes** to customize the look of components. Each **platform** has a default **mode**, but this can be overridden. For example, an app being viewed on an Android platform will use the `md` (Material Design) mode. The `<body>` will have `class="md"` added to it by default and all of the components will use Material Design styles:
20
20
21
21
```html
22
22
<bodyclass="md">
23
23
```
24
24
25
-
Here is a chart of the default mode that gets added based on platform:
26
-
27
-
<tableclass="table">
28
-
<tr>
29
-
<th>Platform</th>
30
-
<th>Mode</th>
31
-
<th>Description</th>
32
-
</tr>
33
-
<tr>
34
-
<td>iOS</td>
35
-
<td>ios</td>
36
-
<td>Applies iOS styling to all components.</td>
37
-
</tr>
38
-
<tr>
39
-
<td>Android</td>
40
-
<td>md</td>
41
-
<td>Applies Material Design styling to all components.</td>
42
-
</tr>
43
-
<tr>
44
-
<td>Windows</td>
45
-
<td>wp</td>
46
-
<td>Applies Windows styling to all components.</td>
47
-
</tr>
48
-
<tr>
49
-
<td>All Other Platforms</td>
50
-
<td>md</td>
51
-
<td>If you are not on one of the above devices, the app will get Material Design styling by default.</td>
52
-
</tr>
53
-
</table>
54
-
55
-
You can change the mode that gets assigned in the configuration of your app. Therefore, if you wanted the Material Design `md` mode on iOS, you could do it.
25
+
The following chart displays the default **mode** that is added to each **platform**:
|`ios`|`ios`| Viewing on an `iphone`, `ipad`, or `ipod` will use the iOS styles. |
30
+
|`android`|`md`| Viewing on any android device will use the Material Design styles. |
31
+
|`windows`|`wp`| Viewing on any windows device inside cordova or electron uses the Windows styles. |
32
+
|`core`|`md`| Any platform that doesn't fit any of the above platforms will use the Material Design styles. |
33
+
34
+
35
+
It is important to note that the **platform** and the **mode** are not the same thing. The platform can be set to use any mode in the [config](../../api/config/Config) of an app. See the following section for the default config values for each mode.
36
+
37
+
## Default Mode Configuration
38
+
39
+
Each mode has a default configuration. The [configuration properties](../../api/config/Config) can be changed per platform or for all platforms. The following chart displays the default configuration value for each configuration property. See the [Config API Docs](../../api/config/Config) for a description of each property and more information on overriding these values.
40
+
41
+
| Config Property | Default `ios` Value | Default `md` Value | Default `wp` Value |
0 commit comments