Designing Beautiful Canvas Pages Using Gemini

Why Use Gemini for Your Canvas Pages?

By default, Canvas pages are mostly plain text. To make your pages look more professional—like adding colored announcement boxes, neat dividers, or clickable drop-down menus—you would normally have to write website code. Using Gemini allows you to skip the learning curve.

  • No Tech Skills Needed: You simply describe how you want your page to look in plain English, and Gemini writes the background code for you.

  • Canvas-Safe Designs: Gemini will create designs that are tailor-made for Canvas, ensuring your pages look great and don't break.

  • Better for Learners: Visually organized pages make it much easier for learners.

 

Implementation

Step 1: Tell Gemini the "Canvas Rules"

Before asking Gemini to design anything, you need to tell it to follow the visual rules that Canvas requires. Think of this as giving Gemini its ground rules.

  • Action: Open Gemini and paste this exact sentence into the chat box before anything else:

    • "I want you to act as my Canvas design assistant. I am going to give you raw text, and you will give me the visual code for it. Your code must be safe for Canvas, use only built-in styling, and cannot use external links. Do you understand?"

 

Step 2: Ask for Colored Boxes and Separators

You can visually group information (like separating your "Weekly Overview" from "Homework Tasks") by putting text inside colored boxes.

  • Action: Copy and paste your lecture or syllabus text into Gemini along with a descriptive request.

  • Sample Prompt: "Take the text below and put it inside a clean, modern layout for Canvas. I want the text to sit inside a light gray box with rounded corners. I also want a dark blue banner at the very top with bold white text that reads 'Module 1 Overview'. Make sure the colors are easy to read for students with visual impairments. Here is my text: [Insert Your Text Here]"

 

Step 3: Ask for Clickable Dropdown Boxes (Accordions)

If you have a long list of text (like a list of Frequently Asked Questions or step-by-step instructions), you can hide them inside clickable drop-down rows so your page doesn't look cluttered.

  • Action: Tell Gemini to turn your text into a drop-down menu.

  • Sample Prompt: > "Turn the following list of assignment steps into clickable dropdown boxes for Canvas. When a student clicks the step title, it should expand to show the instructions underneath. Make the clickable title look like a light blue button. Here is the text: [Insert Your Steps Here]"

 

Uploaded image

 

Step 4: Move the Design into Canvas

Once Gemini replies, it will show you a box containing your design's hidden code. Moving this into Canvas takes just three quick clicks:

  1. Copy: Look at the top or bottom right corner of Gemini's code box and click the Copy button.

  2. Switch to the Code View in Canvas: Go to your Canvas page, click Edit, and look at the bottom right corner of the text box. Click the Switch to HTML Input icon (it looks like this: </>). 

    1. You can tell that you are in Code View when you see a gray box with a 1 at the top along the left-hand side of the text box.

  3. Paste and Save: Paste your copied text into that window. Click the </> icon again to return to your normal view. You will see your beautiful new design! Click Save.

 

Uploaded image

 

Best Practices

Once your styled boxes or dropdowns are in Canvas, you don't need to touch code again to change the words. Follow these safety tips:

  • Type Directly Over the Text: In the normal Canvas editing view, simply click carefully inside the colored boxes or dropdowns and type right over the placeholder words.

  • The "Undo" Safety Net: If you press delete or backspace too many times and a colored box suddenly disappears or spills across the whole page, don't panic. Immediately press Ctrl + Z (on Windows) or Cmd + Z (on a Mac) to undo the mistake and restore the design.

  • Let Gemini Do the Rewriting: If you want to change the colors or add a brand-new section later, it is always safest to ask Gemini to do it. Paste your current code back into Gemini and say: > "Change the background color of this box from light gray to light green, and change the title text to 'Module 2 Tasks'."

  • Don’t Forgo Accessibility: Ensure that your coded content still meets accessibility requirements by utilizing the Canvas Accessibility Checker.

 

Uploaded image