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
Copy file name to clipboardExpand all lines: topics/ui/principles/typography.md
+50-91Lines changed: 50 additions & 91 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,11 @@
10
10
11
11
</tldr>
12
12
13
-
## IDE font
13
+
## UI font
14
14
15
-
The system fonts are used for the IDE user interface by default. The default font sizes are below:
15
+
[Inter](https://github.com/rsms/inter) is used for the IDE user interface by default. The default font size is the same for all supported OS: 13.
16
16
17
-
<tablestyle="header-column">
17
+
<!--<table style="header-column">
18
18
<tr>
19
19
<td> macOS </td>
20
20
<td> SF Pro Text </td>
@@ -30,10 +30,9 @@ The system fonts are used for the IDE user interface by default. The default fon
30
30
<td> Ubuntu </td>
31
31
<td> 15 </td>
32
32
</tr>
33
-
</table>
34
-
33
+
</table>-->
35
34
36
-
Users can change the default font size in Settings. If the default font size is changed, other font sizes used in the UI are scaled respectively.
35
+
Users can change the default font in <control>Settings | Appearance</control>. If the default font size is changed, other font sizes used in the UI are scaled respectively.
37
36
38
37
Use the built-in text styles from the table below whenever possible.
39
38
@@ -49,71 +48,42 @@ Use the built-in text styles from the table below whenever possible.
<p>Header in dialogs with a large number of elements (Run configurations dialog), notification header, breadcrumbs in settings, header in navigation popup, accent elements in lists and trees.</p>
100
-
<p>Use <a href="group_header.md">Group header</a> to divide the page on groups, but not to draw too much attention to the headings.</p>
70
+
Main UI font. Examples: Labels, inputs, links, trees, tables, and other controls
Tool window header, navigation bar, editor breadcrumbs, editor tabs (small on macOS)
97
+
Help text
132
98
</td>
133
99
</tr>
134
100
135
101
<tr>
136
-
<td> Medium bold <p><code>JBFont.medium().asBold()</code></p> </td>
137
-
<td></td>
102
+
<td> Medium semibold <p><code>JBFont.medium().asBold()</code></p> </td>
103
+
<td>Default –1</td>
138
104
<td>
139
-
Module in the navigation bar
140
-
</td>
141
-
</tr>
142
-
143
-
<tr>
144
-
<td> Small <p><code>JBFont.small()</code></p> </td>
145
-
<td>
146
-
<p>macOS: Default - 2</p>
147
-
<p>Win: Default</p>
148
-
<p>Linux: Default - 2</p>
149
-
</td>
150
-
<td>
151
-
Status bar, tool window buttons, inline help, help text in tooltips, separators in lists
105
+
Group headers in popups
152
106
</td>
153
107
</tr>
154
108
</table>
155
109
156
110
If none of the built-in sizes work and a custom one is needed, define it as the default size +/- constant value. Do **not** hardcode font sizes.
157
111
158
-
Use the underlined text style for hovered links.
112
+
### Examples in UI
113
+
114
+
Run popup:
115
+
116
+
{width=706}
117
+
118
+
Plugin page:
119
+
120
+
{width=706}
159
121
160
122
## Editor font
161
123
162
-
JetBrains Mono font is used by default for the Editor.
124
+
[JetBrains Mono](https://fonts.google.com/specimen/JetBrains+Mono) font is used by default for the Editor.
163
125
164
126
<table>
165
-
<tr><td> Name </td>
166
-
<td> Font size </td>
127
+
<tr><tdwidth="20%"> Name </td>
128
+
<tdwidth="20%"> Font size </td>
167
129
<td> Usage </td> </tr>
168
130
<tr>
169
131
<td> Default </td>
170
132
<td> Default </td>
171
-
<td> Editor </td>
133
+
<td> Code in the editor, code snippets, completion popup, and documentation popup </td>
172
134
</tr>
173
135
<tr>
174
136
<td> Small </td>
175
-
<td> Default - 1 </td>
176
-
<td> Line number </td>
137
+
<td> Default –1 </td>
138
+
<td> Line number in the editor</td>
177
139
</tr>
178
140
</table>
179
141
180
-
## Colors
142
+
Users can change the editor font in <control>Editor | Color scheme | Color Scheme Font</control>. If the default font size is changed, other font sizes used in the editor are scaled respectively.
143
+
144
+
### Examples in editor
145
+
146
+
Line numbers in the gutter and code in the editor:
147
+
148
+
{width=706}
149
+
150
+
Editor font and paragraph UI font in the documentation popup:
151
+
152
+
{width=706}
153
+
154
+
<!--## Colors
181
155
182
156
The IDE text colors are in the table below. The editor text colors are managed by the editor color theme.
183
157
@@ -298,19 +272,4 @@ The IDE text colors are in the table below. The editor text colors are managed b
0 commit comments