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: code-notes.md
+14-6Lines changed: 14 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,6 +131,13 @@ Read precedence and writes:
131
131
- For per-site selector reset, popup uses saveCustomSelectors(site, null).
132
132
- For global selector reset (if any caller uses it): resetAdvancedSelectors is supported and will clear all or one site accordingly.
133
133
134
+
## UI Theming and Styles
135
+
136
+
- Shared vars: ['common-ui-elements/common-style.css'](common-ui-elements/common-style.css) defines root tokens (colors, hover, transitions, shadows, checkbox size). Used by popup and welcome.
137
+
- Dark theme: ['common-ui-elements/dark-theme.css'](common-ui-elements/dark-theme.css) applies on body.dark-theme; adjusts tokens and components (buttons, inputs, sections, links, toasts, dialogs).
138
+
- Dialogs: use .dialog with variants .dialog-confirmation and .dialog-error (see ['popup.html'](popup.html:284)).
139
+
- Toasts: base .toast plus type classes toast-success/error/info from ['popup-page-scripts/popup-page-visuals.js'](popup-page-scripts/popup-page-visuals.js:19). In dark mode, neutral fallback applies only without a type class.
140
+
134
141
## Future Adoption (Optional)
135
142
136
143
- ui.popup.firstOpen/collapsibles/lastOpenedSection are available for a future pass to persist popup section states.
@@ -140,13 +147,14 @@ Read precedence and writes:
140
147
## Testing Notes
141
148
142
149
Recommended checks:
143
-
- Theme toggle reads/writes both ui.theme and legacy darkTheme.
0 commit comments