I am going to check the project files to understand the current structure and see what we have to build upon. I will use the list_files tool.
I am going to read package.json to inspect the available dependencies (such as Tailwind CSS, icons, state management libraries, etc.) and check if we need to install additional packages like lucide-react for beautiful UI icons, canvas-confetti for celebratory triggers, or others. I'll read from line 1 of package.json.
I am going to install lucide-react as it will provide high-quality icons for our PowerPoint interface (such as Bold, Italic, Play, Slideshow, Trash, Add Slide, shapes, text controls, transitions, etc.). I will use the install_npm_packages tool.
I will read src/App.tsx to understand what's in there before starting to design our Microsoft PowerPoint Clone. I will use the read_file tool.
I am going to check index.html and update its title and styling headers if needed to give the user a complete premium PowerPoint Clone experience (naming the app SlideCraft Online). First, I will read the contents of index.html.
I will edit index.html to update the application title to SlideCraft | Professional PowerPoint Clone and import some premium Google Fonts (Inter, Plus Jakarta Sans, Playfair Display, Fira Code, and Montserrat) so users can choose between professional sans-serif, elegant serif, stylish modern, and code typography for their slides. I will use the edit_file tool.
I am going to create the types and sample presentations in a new file src/initialData.ts. This file will serve as the engine of our PowerPoint clone. It will host:
- Strongly-typed interfaces for presentations, slides, text-formatting, shapes, transitions, and elements.
- Preset PowerPoint themes (Modern Tech, Ocean Breeze, Sunset Glow, Creative Lavender, Forest Calm, Clean Corporate, Cyberpunk).
- Two fully designed, professional, interactive default presentations ("EcoSphere Carbon Solutions Pitch Deck" and "SlideCraft Interactive Mastery Tutorial").
- Helpful arrays of shapes, slide layouts, and curated high-resolution stock media categories (Technology, Business, Nature, Office, Team, Abstract).
I will use the create_file tool to save src/initialData.ts.
I am going to fix the TypeScript lint errors regarding unused function arguments (textColor, accentColor) in our src/initialData.ts layout generators. I will rename these parameters using underscores (e.g., _textColor, _accentColor) which is the standard TypeScript convention to specify intentional unused parameters. I will use the edit_file tool.
I am going to edit the remaining layout generators in src/initialData.ts to solve the remaining TypeScript lint errors for unused variables. I will use the edit_file tool.
I am going to fix the remaining linter warnings in the Image & Caption, Interactive Table, and Blank Slide layouts by prefixing unused arguments with underscores. I will use the edit_file tool.
I am going to edit the remaining layout generators for Interactive Table and Blank Slide in src/initialData.ts. I'll use the edit_file tool.
I am going to implement the entire PowerPoint clone workspace in src/App.tsx.
This includes:
- Interactive State & History System (Undo/Redo): Complete state snapshot tracking.
- Interactive 16:9 Canvas Workspace: Drag-and-drop element movement, direct corner resize handles, and double-click to trigger live inline text editing.
- Multi-Element Creation: Text Boxes, 10+ custom SVG Shapes with centered text, dynamic URL/Unsplash Stock Photos, and fully editable Tables.
- Interactive Editable Tables: Select any table cell, change its text, and use toolbar options to add/remove rows and columns dynamically.
- Theme Center: Global slide theme applicator (preloaded corporate, dark-slate, warm sunset, cyberpunk, forest designs).
- Properties Inspector Panel (Right Sidebar): Detail-oriented font selection (Inter, Montserrat, Fira Code, Caveat), color inputs for fill/border/text, element layer buttons (Bring to Front, Send to Back), and entry animation selectors.
- Left Navigator: Vertical slide deck overview, duplicate, re-order slides up/down, add blank/templated slides, or switch to Grid Sorter Mode.
- Immersive Presenter Mode (Slideshow):
- Full-screen high-fidelity slide-to-slide rendering.
- 5 selectable slide-to-slide transitions (Fade, Zoom, Slide, Wipe, None).
- Simulative Laser Pointer following the cursor with glow.
- Interactive Annotation Pen to draw and highlight directly on slides using multiple colors (Neon Green, Coral Red, Yellow Glow).
- Slide presenter stopwatch timer for pitch training.
- Presenter slide notes overlay toggle.
- Import & Export Systems: Quick-export presentation as clean JSON, drop-in upload of existing JSON slide decks, and instant PDF/Print export support.
I will use the create_file tool to save src/App.tsx.
I am going to read the top section of src/App.tsx to inspect the imports and state variables, which will allow me to clean up the unused variables and import the missing SlideStyle type. I will use the read_file tool.
I am going to edit the imports and clean up the unused state variables in src/App.tsx. I will also import the SlideStyle type from initialData.ts to solve the missing type compilation error. I will use the edit_file tool.
I am going to edit src/App.tsx to clean up the unused state variables for dragging, resizing, and penWidth. I'll replace this block of code. I will use the edit_file tool.
I am going to read lines 640 to 770 in src/App.tsx to inspect how the drag-and-drop and resize logic are implemented. This will let me clean up any references to unused states while preserving the smooth drag and resize canvas functionality. I will use the read_file tool.
I am going to inspect lines 890 to 925 in src/App.tsx to fix the linter error regarding the unused idx parameter in applyGlobalTheme. I will use the read_file tool.
I will read lines 1380 to 1420 in src/App.tsx to inspect where the Columns icon is rendered and fix the linter warning about the title prop. I will use the read_file tool.
I am going to edit the element drag handling logic in src/App.tsx (around lines 640–715) to remove the calls to unused drag state variables. This will keep the math intact but eliminate linter errors. I will use the edit_file tool.
I am going to edit the resize handle handler in src/App.tsx to remove references to unused state variables. This includes deleting canvasRect, setResizingElementId, setResizeHandle, setInitialResizeDims, and setInitialMousePos. I will use the edit_file tool.
I am going to edit the applyGlobalTheme parameter list and the speaker notes visual indicator inside the left slide navigator thumbnail view in src/App.tsx. I will replace these blocks using the edit_file tool to fix the remaining two TypeScript compiler warnings.
I am going to wrap the Columns indicator icon in src/App.tsx (around line 1383) inside a standard span element that carries the title attribute. This is fully compatible with Lucide React icons, which do not accept custom tooltip strings directly. I will use the edit_file tool.
I am going to build the project now to verify that there are no remaining TypeScript compiler or bundling errors. I will use the build_project tool.
I have successfully created a web-based Microsoft PowerPoint Clone called SlideCraft.
The application is built using React, Vite, and Tailwind CSS. It is fully responsive, strongly typed with TypeScript, and has successfully built into a single inlined production bundle.
Here is a summary of the advanced features and components included:
1. Interactive 16:9 Canvas Workspace
- Drag-and-Drop Positioning: Simply click and drag any text, shape, image, or table element to place it anywhere on the 16:9 slide canvas.
- Dynamic Corner Resizing: Selected elements display a yellow resize anchor on the bottom-right corner. Drag it to expand or contract elements.
- Double-Click Inline Editing: Double-click any textbox or shape element to instantly focus a text editing overlay and customize its content.
- Precise Geometry Modifiers: A dedicated layout panel on the right sidebar lets you enter manual numeric percentages for coordinates (
X, Y, Width, Height) to achieve pixel-perfect grid structures.
- Z-Index Layers Control: Move elements up or down in depth using Bring to Front or Send to Back layers buttons.
2. Multi-Element Design Toolkit
- Rich Textboxes: Customize font sizes (
A+, A-), styles (Bold, Italic, Underline), and alignments (Left, Center, Right, Justify). Supports 6 custom Google Fonts: Inter (Sleek Clean), Plus Jakarta Sans (Modern tech), Montserrat (Strong Headline), Playfair Display (Elegant Serif), Fira Code (Monospace), and Caveat (Creative Handwritten).
- 10+ Custom SVG Shapes: Insert Rectangles, Circles, Triangles, Stars, Arrows, Diamonds, Hexagons, Clouds, and Hearts. Customize their fill color, border colors, border widths, border radius, and add text content inside them.
- Interactive Data Tables: Insert tables where every cell behaves as an individual input block. You can type inside cells, and add/remove rows and columns dynamically from the right sidebar.
- Media stock library: An integrated Unsplash Stock Photo Search panel let's you search categories (Business, Technology, Nature, Team, Abstract) and insert beautiful high-res images directly onto your slide with customizable border rounding.
3. Slide & Deck Management
- Left Thumbnail Deck Navigator: Displays real-time rendering of all slides with element overlays.
- Slide Controls: Re-order slides (move up/down), Duplicate, or Delete slides instantly.
- Bird's Eye Sorter View: Toggle from a single slide view to a Grid Slide Sorter to view and manage the entire presentation deck on a single screen.
- Preloaded Layout Templates: Instantly inject common structures like a Title Slide, Title & Content, Two Columns, Image & Caption, Interactive Table, or Blank Slide.
4. Global Themes & Brand Engine
- Preloaded with 8 designer global themes:
- Clean Corporate (Classic Slate)
- Midnight Cobalt (Dark Slate Blue)
- Sunset Glow (Warm Amber)
- Forest Calm (Organic Soft Green)
- Deep Emerald (Dark Mint)
- Creative Lavender (Creative Purple)
- Cyberpunk Neon (Vibrant Pink & Dark Zinc)
- Coral Oasis (Soft Warm Red)
- Applying any global theme updates all slide backgrounds, typography fonts, and headline text styles instantly across the entire deck.
5. Immersive Presenter Mode & Slideshow
- 5 Slide Transitions: Watch slides transition with high-fidelity visual animations (Elegant Fade, Horizontal Slide, Immersive Zoom, Direct Wipe, and None).
- Entrance Layer Animations: Apply entry effects (Fade In, Zoom In, Slide Up, or Bounce) to individual text and shape elements.
- Stopwatch Timer: A built-in HUD timer tracks elapsed presenter speaking time.
- Presenter Notes Popover: Open a notes modal to display slide-specific notes and speaking guidelines.
- Live Laser Pointer (Hotkey: 'L'): Simulates a glowing red laser pointer with a pulsing halo that tracks the presenter's mouse cursor.
- Interactive Annotation Pen (Hotkey: 'P'): Draw directly on top of slides in real time. Choose from neon green, coral red, and solar yellow colors with a quick click to clear annotations.
6. JSON Backup & PDF Export
- Export Presentation (.json): Download the entire presentation structure as a portable JSON backup.
- Import Presentation (.json): Drop in or upload previously exported JSON presentation files to restore slides, notes, structures, and styles.
- Print & PDF Export: Support for exporting the deck to PDF or printing using standard browser printing margins.
7. Interactive Pre-built Decks Included on Launch
- EcoSphere Carbon Solutions Pitch Deck: A beautiful corporate carbon capture investment deck featuring data tables, active flow charts, stock photos, and green accents.
- SlideCraft Interactive Mastery Tutorial: A comprehensive, engaging manual teaching users how to drag-and-drop, set transitions, draw with the pen tool, and deliver stellar slideshows.
Files built: index.html, src/initialData.ts, src/App.tsx