Commit eecec44
Update dark mode section (#108)
<!-- If this pull request closes an issue, please mention the issue
number below -->
Closes # <!-- Issue # here -->
## 💸 TL;DR
<!-- What's the three sentence summary of purpose of the PR -->
The UI Simulator color scheme toggle temporarily forces the color scheme
of the webview dialog, overriding the user's reddit theme to enable the
dev to view their app in light and dark mode. This only works if the app
has colors set for dark mode. Previous docs version only provided an
example of doing this via CSS media query; this PR just adds an example
of using Tailwind's `dark` class, which is essentially the same thing,
but aligns more with our app templates.
(All our app templates should already have this dark class built in to
the basic UI, and devs will need to add it to all additional UI)
Also added a note that the color scheme toggle does not currently work
in Safari.
## 📜 Details
[Design Doc](<!-- insert Google Doc link here if applicable -->)
[Jira](<!-- insert Jira link if applicable -->)
<!-- Add additional details required for the PR: breaking changes,
screenshots, external dependency changes -->
## 🧪 Testing Steps / Validation
<!-- add details on how this PR has been tested, include reproductions
and screenshots where applicable -->
## ✅ Checks
<!-- Make sure your pr passes the CI checks and do check the following
fields as needed - -->
- [ ] CI tests (if present) are passing
- [ ] Adheres to code style for repo
- [ ] Contributor License Agreement (CLA) completed if not a Reddit
employee
<img width="488" height="718" alt="Screenshot 2026-05-13 at 11 16 29 AM"
src="https://github.com/user-attachments/assets/937b6ddd-7c10-4f1e-bd52-1ccb64c8660a"
/>
---------
Co-authored-by: Stacy <143668017+stacy-qqq@users.noreply.github.com>1 parent 968cf86 commit eecec44
3 files changed
Lines changed: 91 additions & 1 deletion
File tree
- docs/guides/tools
- versioned_docs
- version-0.11
- version-0.12/guides/tools
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
69 | 78 | | |
70 | 79 | | |
71 | 80 | | |
| |||
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
0 commit comments