ee24f04d76a3e9648554d4234c801de5267da0e8
Implemented MutationObserver to detect theme changes: - Added themeKey state that increments on theme change - MutationObserver watches document.documentElement for class changes - Detects when "dark" class is toggled - Added themeKey to waveform effect dependencies - Canvas automatically redraws with new theme colors How it works: 1. Observer listens for class attribute changes on <html> 2. When dark mode is toggled, themeKey increments 3. useEffect dependency triggers canvas redraw 4. getComputedStyle reads fresh --color-waveform-bg value 5. Waveform renders with correct theme background Benefits: - Seamless theme transitions - Waveform colors always match current theme - No manual refresh needed - Automatic cleanup on unmount Now switching between light/dark themes instantly updates all waveform backgrounds with the correct theme colors! 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Audio UI
A sophisticated browser-only audio editor built with Next.js 16, React 19, and Tailwind CSS 4.
Features (Planned)
- 100% Client-Side: All audio processing happens in your browser
- Multi-Track Editing: Professional multi-track audio editing
- Advanced Effects: EQ, compression, reverb, delay, and more
- Automation: Automate volume, pan, and effect parameters
- Recording: Record audio directly from your microphone
- Analysis Tools: Frequency analyzer, spectrogram, and loudness metering
- Export Formats: WAV, MP3, OGG, FLAC
- Project Management: Save and load complete projects
- Privacy-First: No uploads, all data stays local in your browser
Tech Stack
- Next.js 16 with React 19
- TypeScript 5
- Tailwind CSS 4 with OKLCH colors
- Web Audio API for audio processing
- Canvas API for waveform visualization
- IndexedDB for project storage
Getting Started
This project is currently in the planning phase. See PLAN.md for the complete implementation plan.
Development (Coming Soon)
# Install dependencies
pnpm install
# Run development server
pnpm dev
# Build for production
pnpm build
Inspiration
Inspired by AudioMass and professional DAWs like Ableton Live, Logic Pro, and FL Studio.
License
TBD
Contributing
This is a personal project, but suggestions and ideas are welcome!
Description
Languages
TypeScript
98.8%
CSS
1.1%
Dockerfile
0.1%