diff --git a/README.md b/README.md
index ced41f61..77e263d7 100644
--- a/README.md
+++ b/README.md
@@ -33,8 +33,9 @@ collapsed; click a section title to expand it.
- **Custom Grid**: Create a grid on the current slide with adjustable spacing, opacity, and color.
- **Guidelines**: Add horizontal or vertical guidelines at specific positions with customizable colors.
+- **Raster**: Add a wireframe cell grid (12 × 8, 24 × 16, or custom) to the current slide, this slide's layout, or the slide master for placing objects, then remove it.
-> Grids and guidelines are ordinary slide shapes. They are included in slideshow, print, and export output. Remove them before presenting.
+> Grids, guidelines, and raster cells are ordinary shapes. They are included in slideshow, print, and export output. Remove them before presenting.
### Settings
@@ -205,6 +206,20 @@ manifest.xml # Add-in manifest
2. Click **Add guide** to create a guideline.
3. Click **Remove guides** to delete all guidelines on the current slide.
+#### Raster
+
+1. Select the slide where objects should be placed.
+2. Choose **Place on**:
+ - **Current slide** - sits on top of the slide content.
+ - **This slide's layout (background)** - sits behind content on every slide using that layout.
+ - **Slide master (all slides)** - sits behind content on every slide in the presentation.
+3. Choose the **12 × 8** or **24 × 16** preset, or select **Custom** and enter columns, rows, gutter, and opacity.
+4. Pick a color. Gray at 100 % matches the template wireframes; lower opacity keeps existing content visible.
+5. Click **Add raster**. Any existing raster in the presentation is replaced, so only one raster is active at a time.
+6. Click **Remove raster** before presenting. This removes it from the current slide, all layouts, and the slide master.
+
+The hint below the controls shows the resulting cell size in millimetres and the number of cells (maximum 600). Layout/master rasters are background graphics and do not appear on slides that use **Hide Background Graphics**. Because a layout/master raster is inherited by every slide that uses it, prefer **12 × 8** on large presentations.
+
## Tips
- **Selection order**: For Match Properties and Match Sizes, the source is the first shape in PowerPoint's selection/z-order, which is not guaranteed to be the shape you clicked first. Verify the source shape before applying.
diff --git a/docs/DEVELOPERS.md b/docs/DEVELOPERS.md
index 3f509b92..1ca071fc 100644
--- a/docs/DEVELOPERS.md
+++ b/docs/DEVELOPERS.md
@@ -44,9 +44,11 @@ The diagrams under `docs/` predate the context/service refactoring and should be
│ │ ├── MatchProperties.tsx
│ │ ├── MatchSizes.tsx
│ │ ├── ProgressBarButtons.tsx
+│ │ ├── RasterManager.tsx
│ │ ├── RoundImage.tsx
│ │ ├── SwapPositions.tsx
-│ │ └── commonStyles.tsx
+│ │ ├── commonStyles.tsx
+│ │ └── ColorSwatches.tsx
│ ├── context/
│ │ ├── SettingsContext.tsx # Slide size preset (persisted)
│ │ └── StatusContext.tsx # Status, processing, progress
@@ -54,6 +56,7 @@ The diagrams under `docs/` predate the context/service refactoring and should be
│ │ ├── cancellation.ts # Cooperative cancellation flag
│ │ ├── markers.ts # Confidential/draft markers
│ │ ├── progressBar.ts # Progress bar add/remove
+│ │ ├── raster.ts # Raster geometry + slide/layout/master targets
│ │ └── titles.ts # Title collection + ranking
│ ├── types/
│ │ ├── office-types.ts # Office.js helpers
diff --git a/docs/USER_GUIDE.md b/docs/USER_GUIDE.md
index 8defd47a..3939d6bc 100644
--- a/docs/USER_GUIDE.md
+++ b/docs/USER_GUIDE.md
@@ -28,6 +28,7 @@ The sections are:
- **Draft Watermark** - Add/remove draft watermarks
- **Alignment** - Tools for aligning shapes and objects
- **Grid & Guidelines** - Grids and guidelines for the current slide
+- **Raster** - Wireframe cell grids for placing objects
- **Settings** - Slide size and version information
## Content Tools
@@ -181,6 +182,46 @@ Adds horizontal or vertical guidelines at specific positions.
**Tip:** Use different colors for different types of guidelines (for example blue for margins and red for key alignment points). Guidelines are also ordinary shapes and appear in output.
+## Raster
+
+Creates a wireframe cell grid on the current slide, its layout, or the slide
+master. Use it to place objects on a consistent column and row structure, then
+remove it before presenting.
+
+**Presets (16:9):**
+- **12 × 8** - Coarse wireframe; cells are 26.39 × 22.06 mm.
+- **24 × 16** - Fine wireframe; cells are about 12.20 × 10.03 mm.
+- **Custom** - Enter your own columns, rows, gutter, and opacity.
+
+**Place on:**
+- **Current slide** - Sits on top of the current slide's content.
+- **This slide's layout (background)** - Sits behind content on every slide using
+ the current slide's layout. This is usually the best choice for a content grid.
+- **Slide master (all slides)** - Sits behind content on every slide in the
+ presentation.
+
+**How to use:**
+1. Navigate to a slide that uses the layout or master you want to target.
+2. Choose **Place on**, then choose a preset or set **Columns**, **Rows**,
+ **Gutter (mm)**, and **Opacity (%)**.
+3. Pick a **Color**. Gray at 100 % matches the template wireframes.
+4. Click "Add raster". Any existing raster in the presentation is replaced, so
+ only one raster is active at a time.
+5. Click "Remove raster" when you are finished. This removes the raster from the
+ current slide, all layouts, and the slide master.
+
+The hint below the controls shows the resulting cell size in millimetres and the
+number of cells. A raster is limited to 600 cells.
+
+**Warning:** Raster shapes are **included in slideshow, print, and export
+output**. Remove the raster before presenting. Layout and master rasters are
+background graphics and are not shown on slides that use **Hide Background
+Graphics**; a full-slide picture on the slide can also cover them.
+
+**Performance:** a layout/master raster is inherited by every slide that uses
+it. On long presentations, prefer the **12 × 8** preset; a 24 × 16 raster adds
+384 shapes to every inherited slide.
+
## Settings
### Slide Size
diff --git a/src/taskpane/components/App.tsx b/src/taskpane/components/App.tsx
index b9d8897c..4f2bf97d 100644
--- a/src/taskpane/components/App.tsx
+++ b/src/taskpane/components/App.tsx
@@ -17,6 +17,7 @@ import DraftButtons from "./DraftButtons";
import ProgressBarButtons from "./ProgressBarButtons";
import AlignmentButtons from "./AlignmentButtons";
import GridGuidelineManager from "./GridGuidelineManager";
+import RasterManager from "./RasterManager";
import Section from "./Section";
import {
Accordion,
@@ -231,6 +232,10 @@ const App: React.FC = () => {
+
+
+
+
= {
+ blue: "#4472C4",
+ red: "#C00000",
+ yellow: "#FFC000",
+ green: "#70AD47",
+ gray: "#D9D9D9",
+};
+
+const SWATCH_LABELS: Record = {
+ blue: "Blue",
+ red: "Red",
+ yellow: "Yellow",
+ green: "Green",
+ gray: "Gray",
+};
+
+const SWATCH_ORDER: readonly SwatchColor[] = ["blue", "red", "yellow", "green", "gray"];
+
+/** Choose a check colour that stays readable on every swatch. */
+const getSwatchForeground = (color: SwatchColor): string =>
+ color === "yellow" || color === "green" || color === "gray" ? "#000000" : "#ffffff";
+
+const useStyles = makeStyles({
+ row: {
+ display: "flex",
+ alignItems: "center",
+ gap: tokens.spacingHorizontalS,
+ },
+ label: {
+ minWidth: "48px",
+ color: tokens.colorNeutralForeground2,
+ },
+ group: {
+ display: "flex",
+ gap: tokens.spacingHorizontalXS,
+ },
+ button: {
+ width: "32px",
+ height: "32px",
+ minWidth: "32px",
+ padding: 0,
+ border: `1px solid ${tokens.colorNeutralStroke1}`,
+ borderRadius: tokens.borderRadiusMedium,
+ },
+ selected: {
+ border: `2px solid ${tokens.colorBrandForeground1}`,
+ },
+});
+
+export interface ColorSwatchesProps {
+ /** Visible group label, e.g. "Color" */
+ label: string;
+ value: SwatchColor;
+ onChange: (color: SwatchColor) => void;
+}
+
+/**
+ * A labelled group of colour swatches with a check mark on the selected value.
+ */
+export const ColorSwatches: React.FC = ({ label, value, onChange }) => {
+ const styles = useStyles();
+ const labelId = React.useId();
+
+ return (
+