Skip to content

feat: add ThemeSwitch component for dark/light mode toggle#5999

Open
aiheroshare-vibe-coder wants to merge 2 commits intoColorlibHQ:masterfrom
aiheroshare-vibe-coder:claude/upload-files-d1FqA
Open

feat: add ThemeSwitch component for dark/light mode toggle#5999
aiheroshare-vibe-coder wants to merge 2 commits intoColorlibHQ:masterfrom
aiheroshare-vibe-coder:claude/upload-files-d1FqA

Conversation

@aiheroshare-vibe-coder
Copy link

Summary

  • Новый компонент ThemeSwitch (src/ts/theme-switch.ts) —
    переключение тёмной/светлой темы через data-lte-toggle="theme"
  • Сохранение выбора в localStorage
  • Поддержка системной настройки prefers-color-scheme
  • Экспорт из главного adminlte.ts

Использование

Toggle Dark Mode

Adds a new TypeScript component that enables toggling between dark and
light themes via data-lte-toggle="theme" buttons. Features include
localStorage persistence, OS prefers-color-scheme detection, and
accessible aria-pressed state on toggle elements.

https://claude.ai/code/session_014Tg73zCUBvUi3Q5nJMhJrf
@netlify
Copy link

netlify bot commented Mar 12, 2026

Deploy Preview for adminlte-v4 ready!

Name Link
🔨 Latest commit 24dd457
🔍 Latest deploy log https://app.netlify.com/projects/adminlte-v4/deploys/69b2b63b93c76d00087bffc1
😎 Deploy Preview https://deploy-preview-5999--adminlte-v4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dfsmania
Copy link
Contributor

Just a warning, this PR introduces unintended changes!

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.

3 participants