📘 MaterialLab Playground Documentation

Version: v0.0.8-rc

This is a browser-based drag-and-drop widget playground with theme customization and persistent background support.

🎛 UI Elements

add_circle Add Widget: Prompts for a widget type (weather, clock, battery).
upload_file Upload Background: Opens file picker to set a custom background image.
delete Clear Background: Removes the current background and theme palette.

🧩 Widgets

Widgets are draggable elements with headers and content. Supported types:

🖼 Background Support

Users can upload an image as a full-screen background:

🎨 Dynamic Theme Palette

Based on the uploaded background image:

--primaryColor
--secondaryColor
--onPrimaryColor
--headerColor

Saved to localStorage for persistence.

🖱 Drag & Drop

Widgets can be freely moved around using the drag_indicator icon.

🗑 Remove Widget

Each widget has a delete icon to remove it from the DOM.

💾 Persistence

The following are saved and restored automatically:

📡 Weather API

Uses OpenWeatherMap to fetch real-time weather.

API Key Required: Replace API_KEY in JavaScript with your own.

🧭 Planned Features (Future)