Skip to content

Commit 6cf75f5

Browse files
smnandreweaverryan
authored andcommitted
[Site] Dark mode theme
1 parent 264417e commit 6cf75f5

File tree

73 files changed

+1616
-1112
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1616
-1112
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { Controller } from '@hotwired/stimulus';
2+
3+
export default class extends Controller {
4+
switch() {
5+
const theme = localStorage.getItem('user-theme') === 'dark' ? 'light' : 'dark';
6+
localStorage.setItem('user-theme', theme);
7+
document.documentElement.setAttribute('data-bs-theme', theme);
8+
}
9+
}
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

ux.symfony.com/assets/images/sf-ux-logo-white.svg

Lines changed: 0 additions & 26 deletions
This file was deleted.

ux.symfony.com/assets/images/sf-ux-logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)