CSC-105

LibraryStyles Lab

Styles Lab

A style guide is a spec your agent can compile.

Bring your project's design so far, and Claude builds a live style guide page from it: color and type tokens, buttons, fields, cards, a modal, an empty state, and your main screen redesigned. Refine it here, then take the style kit back to your project.

Bring your project → Generate → Look → Change one rule → Download → Apply

Step 1: Bring your project

You have already written most of what Claude needs. Ask your coding agent (Codex or Antigravity) to collect it:

Collect my project's design context for the CSC-105 Styles Lab. Show me two
plain-text blocks I can copy, without changing any files:
1. PROJECT: a summary of project-brief.md, plus my app's screens, main user
   flow, and components as the app works today.
2. STYLE GUIDE: design/style-guide.md exactly as it is. If it does not exist
   yet, write "No style guide yet" instead of drafting one.

In the lab below:

  1. Paste the PROJECT block into Your project.
  2. Paste the STYLE GUIDE block into Style guide. No guide yet? Select Draft my style guide. Claude writes a precise first draft from your project and images, and marks each choice it invented with (guess). Those are your decisions to make.
  3. Add up to four images: references from design/references/, and screenshots of your current app. Click an image's label to switch it between Reference and My app.

Step 2: Generate, look, refine

  1. Choose a model: Sonnet 5.5 is faster; Opus 5.5 is the most capable and takes about twice as long. Select Generate page (or press ⌘↵ / Ctrl+Enter). Claude shares its thinking and plan first, then builds the page in front of you.
  2. Look at your main screen, redesigned, the way a user would.
  3. Read the UX critique of your current screen and the Decisions the guide left open. Each open decision is a place your words were vague.
  4. Change one rule in the guide, select Update page, and compare.
  5. When it looks right, select Download style kit.

No project yet? Start with the Reel Night example that is already loaded. Your guide, project, images, and latest page are saved only in this browser. Do not add private or sensitive information or images.

Things to try

  • Change only the feel words, like warm, cinematic to clean, clinical, and keep every hex value. What changes anyway?
  • Delete the Type section. What did the model decide for you?
  • Pick a primary color with poor contrast on the background. What does the model do about Rule 3?
  • Add one reference image that clashes with the guide. Who wins?
  • Open the tokens.css tab and find --color-primary. Every primary button on the page gets its color from that one line. Change the primary color in your guide and update: which parts of the page change?

Step 3: Take it back to your project

You do not need to know HTML or CSS. Your coding agent does the file and code work. Your job is the designer's job: look, compare, and decide.

The style kit ZIP has everything your agent needs:

FileWhat it is
design/style-guide.mdYour style guide, in words
design/style-guide.htmlThe page you saw here, including your redesigned screen
design/references/, design/screenshots/Your images
src/system/The design system: your colors, fonts, and components as code

Add the kit

Move style-kit.zip into your midterm-project folder, then ask your agent:

I downloaded style-kit.zip from the CSC-105 Styles Lab and put it in this
folder. Unzip it and add its design/ and src/system/ files to this project.
If I already have any of these files, do not replace them yet. Explain in
plain words what is different, and let me choose. Do not change the app yet.
Open design/style-guide.html for me, then delete the ZIP and the unzipped
folder. I am not a programmer, so explain without jargon.

Apply it to one screen

Take a before screenshot of your main screen. Then ask:

Make my [screen name] screen look like the redesigned screen in
design/style-guide.html, using the design system in src/system/. Keep
everything working exactly as it does now. When you are done, tell me in
plain words what changed and exactly what to click to test it.

Now compare the two yourself. Open design/style-guide.html and your app side by side. If something looks different, take a screenshot and say what is wrong in product words:

Here is a screenshot of my [screen name] screen. It does not match the
redesign yet: the Reserve button should be the only gold button, and the
cards need more space between them. Fix only those two things.
  • Something broke? Tell the agent what you clicked and what you see, and ask it to undo its last change.
  • Want to change a color or font later? Change it in the Styles Lab and download a new kit, or ask your agent to change it in the design system so every screen updates at once.
  • One screen at a time. Test after each change, then move to the next screen.

This is Task 5: Restyle your main screen. Take your after screenshot when you are happy with it.

Example project: Reel Night

To try the whole loop before using your own project, paste this into Your project and add the Reel Night "before" screen as a My app image:

Reel Night is a neighborhood movie store app for people who still like to
rent a movie for the night.

Screens: New arrivals, Movie details, My watchlist, Reserve (modal)
Main user flow: 1. Browse new arrivals 2. Save a movie to the watchlist
3. Reserve a copy and choose a pickup day 4. See a confirmation
Components: movie card, genre filter, watchlist, reserve modal, empty state