Skip to content

Some default css values setting body size. Initial values for dark/light theme and poc changing in app#7

Merged
TylerNagamine merged 4 commits intomasterfrom
feature/frontend-bootstrap-updates
Mar 22, 2026
Merged

Some default css values setting body size. Initial values for dark/light theme and poc changing in app#7
TylerNagamine merged 4 commits intomasterfrom
feature/frontend-bootstrap-updates

Conversation

@TylerNagamine
Copy link
Collaborator

No description provided.

EncryptedData
EncryptedData previously approved these changes Mar 22, 2026
const [theme, setTheme] = createSignal<"dark" | "light">("dark");

createEffect(() => {
document.documentElement.dataset.theme = theme();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bask in the glory of effects in non-react languages. The compiler sees I'm using theme, and just reruns this when it changes (without us having to specify in an array param like in React). MAGIC.GIF

@TylerNagamine TylerNagamine merged commit c4ceaa2 into master Mar 22, 2026
2 checks passed
@TylerNagamine TylerNagamine deleted the feature/frontend-bootstrap-updates branch March 22, 2026 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants