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: src/content/docs/reference/settings-page.mdx
+25-5Lines changed: 25 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,10 +132,30 @@ Note that client certificates are necessarily stored unencrypted in HTTP Toolkit
132
132
133
133

134
134
135
-
The theme settings card allows you to change the app theme.
136
-
137
-
Select one of the three themes on the left to immediately change the whole app's theme.
138
-
139
-
All colours used in the theme are shown on the right, along with an editor containing some example HTML (actually the contents of the default intercepted [amiusing.httptoolkit.tech](https://amiusing.httptoolkit.tech) page!), so you can see it all live.
135
+
The theme settings card allows you to change the app theme. By default the app switches between light & dark themes to match your system, but you can also switch them manually here, use the high contrast theme, or upload your own custom themes.
136
+
137
+
Select one of the themes on the left to immediately change the whole app's theme. All colours used in the theme are shown on the right, along with an editor containing some example HTML (actually the contents of the default intercepted [amiusing.httptoolkit.tech](https://amiusing.httptoolkit.tech) page!), so you can see it all live.
138
+
139
+
To use a custom theme, click the 'Custom' option and then select a theme file. Custom themes are JSON files with an `.htk-theme` extension, containing:
140
+
141
+
* A `name` string field
142
+
* An `extends` field, containing the name of an existing theme (`light`, `dark`, or `high-contrast`)
143
+
* Any subset of the theme fields to override (see the `lightTheme` etc constants in [styles.ts](https://github.com/httptoolkit/httptoolkit-ui/blob/main/src/styles.ts) to check out the default theme values)
144
+
145
+
As an example, here's an alternative dark blue custom theme:
0 commit comments