Skip to content

Commit 98325cf

Browse files
committed
Add theme context and provider for dark/light mode support
- Introduced a new enum to manage UI themes (Light, Dark, System). - Implemented component to provide theme context to child components. - Added functionality to update CSS based on the selected theme and system preferences. - Integrated local storage to persist theme selection across sessions. - Updated to include the new context module. - Modified the page to include buttons for learning and joining the community. - Added new icon modules for Rust logos.
1 parent 9f72aab commit 98325cf

28 files changed

+671
-88
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LEPTOS_TAILWIND_VERSION=v4.1.14

.vscode/settings.json

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
2-
"emmet.includeLanguages": {
3-
"rust": "html",
4-
"*.rs": "html"
5-
},
6-
"tailwindCSS.includeLanguages": {
7-
"rust": "html",
8-
"*.rs": "html"
9-
},
10-
"files.associations": {
11-
"*.rs": "rust"
12-
},
13-
"editor.quickSuggestions": {
14-
"other": "on",
15-
"comments": "on",
16-
"strings": true
17-
},
18-
"css.validate": false,
2+
"emmet.includeLanguages": {
3+
"rust": "html",
4+
"*.rs": "html"
5+
},
6+
"tailwindCSS.includeLanguages": {
7+
"rust": "html",
8+
"*.rs": "html"
9+
},
10+
"files.associations": {
11+
"*.rs": "rust"
12+
},
13+
"editor.quickSuggestions": {
14+
"other": "on",
15+
"comments": "on",
16+
"strings": true
17+
},
18+
"css.validate": false,
19+
"rust-analyzer.cargo.features": ["ssr", "development", "hydrate"],
1920
}

Cargo.lock

Lines changed: 218 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)