School Website Prompt: Build a Primary School Site with AI
Parents visiting a primary school site rarely browse for fun. They are usually standing in a hallway with a phone in one hand, looking for term dates, the weekly lunch menu, or the office phone number to report an absence. Most school sites bury those essentials under clunky menus, comic fonts, and low-contrast banners. Using a well-architected school website prompt solves that information architecture problem from the first generation. This prompt was originally published by Websiteprompts.ai, and it produces a calm, trustworthy single-page hub for Oakfield Primary School in Sheffield.
In this tutorial, I will walk you through how to run the full prompt on this page inside Lovable, Bolt, or v0, why its technical constraints prevent common AI layout bugs, and how to verify every component before publishing. You can inspect the finished live preview first, then follow the ten steps below to generate and customise your own build in roughly 30 minutes.
What you need
- An account on Lovable, Bolt, or v0 (any one of these React-capable AI builders works).
- The full prompt on this page, copied from the code block right above Step 1.
- A modern desktop browser with DevTools open to inspect contrast and mobile breakpoints.
- About 30 minutes to generate, review, and tailor the copy for your own school.
- Optional: approved school photographs with parental consent ready for when you replace the AI placeholders.
The full prompt
# Oakfield Primary School: School Website Prompt
## 1. Goal
Build a clear, friendly and trustworthy website for **Oakfield Primary School**, a state primary school for children aged 4 to 11 in Sheffield. White pages, a confident royal blue, a sunny yellow highlight and a rounded modern sans. Parents should find term dates, the lunch menu and how to apply in seconds. It should feel cheerful but organised, never childish.
## 2. Tech Stack
```
React + Vite + TypeScript + Tailwind CSS + Framer Motion (motion/react) + lucide-react
```
Single page. No component libraries, no calendar library, no parent portal.
## 3. Design system
```css
:root {
--paper: #FFFFFF;
--ink: #14213D; /* deep navy text */
--accent: #1D4ED8; /* royal blue */
--on-accent: #FFFFFF;
--highlight: #FFC83D; /* sunny yellow, background only, text on it is navy */
--surface: #F1F5FB;
--muted: #4B5568;
--line: #DCE3EE;
}
```
Every text colour must reach at least 4.5 to 1 against its background. Never put white text on the yellow. No text under 14px, body text 17px or larger because many parents read on phones.
## 4. Typography
```html
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700;800&display=swap" rel="stylesheet" />
```
One family.
- **Headings:** Plus Jakarta Sans 800, clamp(34px, 4.6vw, 64px), line-height 1.08, letter-spacing -0.02em
- **Subheads:** Plus Jakarta Sans 700, 22px
- **Body:** Plus Jakarta Sans 400, 17px, line-height 1.65
- **Labels:** Plus Jakarta Sans 700, 14px, navy text on a yellow rounded tag
## 5. Buttons
Clear and easy to tap:
- **Primary:** royal blue fill, white text, 12px radius, Plus Jakarta Sans 700 16px, padding 15px 24px, min height 48px. Hover: darker blue.
- **Secondary:** white fill, blue text, 1.5px blue border, same radius.
- **Quick link tiles** act as big buttons (see section 4).
## 6. Sections
1. **Utility bar:** a thin navy bar with the school phone number, the office email and a link `Report an absence` on the right, all in white text.
2. **Navbar:** white, 80px. A round school badge (blue circle with a white oak leaf drawn as a simple SVG) and the school name on the left, links in the middle, primary button `Apply for a place` right. Sticky with a soft line beneath.
3. **Hero:** a wide photograph with 24px radius, inset 24px from the page edges. A white card with 20px radius overlaps the bottom left of the photo by 60px, containing the yellow tag, the heading, one sentence and both buttons. *Photograph: primary school children in blue jumpers working together at a table in a bright classroom, smiling, natural light, colourful displays in the background.*
4. **Quick links:** four large tiles in a row on the surface colour, each 20px radius: a bold label, one line of help text and a small arrow from lucide. Hover: tile turns blue with white text.
5. **Welcome from the head:** two columns. A rounded portrait on the left (4:5), on the right a short letter, signed with the head teacher's name and role. *Portrait: a friendly head teacher in her fifties in a smart cardigan, standing in a school corridor with children's art on the walls.*
6. **School life:** surface background. A three column grid of photos with 16px radius and short captions underneath. *Photographs: children planting vegetables in a school garden; a choir performing in a school hall; a football match on a school field.*
7. **Latest news:** three cards with a small photo, date, headline and a two line summary, plus a link `All news`. Cards have a 1px line border, 16px radius, no shadow.
8. **Key dates:** a clean list of the next five dates, each with a yellow date badge (day number large, month small) and the event.
9. **What inspectors said:** a full width blue band with a large white quote from the last inspection report and the year.
10. **Visit us:** two columns. Left: heading, paragraph about open mornings and the primary button. Right: address, phone, office hours in a small table.
11. **Footer:** navy with white text. Badge and name, three columns of links (Parents, About, Policies) and a line with the trust name and company number.
## 7. Motion
Light and quick. Sections fade up 16px on scroll, 0.5s. Quick link tiles scale to 1.02 on hover. Nothing loops, nothing bounces. Respect `prefers-reduced-motion`.
## 8. Responsive
- **Mobile under 768px:** the utility bar shows only the phone number and `Report an absence`. Hero card sits under the photo instead of overlapping. Quick links become a 2 by 2 grid. All other grids become one column. Navbar collapses to the badge plus a `Menu` button with a full screen white menu and large tap targets.
- **Desktop:** max-width 1200px, section padding 96px.
## 9. Full copy
**Utility bar:** `0114 555 0136` · `[email protected]` · `Report an absence`
**Name:** Oakfield Primary School
**Nav:** About, Parents, Curriculum, News, Contact. Button: `Apply for a place`
**Hero**
- Tag: `Ages 4 to 11, Sheffield`
- Heading: `A kind, busy school where every child is known by name.`
- Text: `Two classes in every year group, a big field, a forest school and a team that has been here for years.`
- Buttons: `Apply for a place`, `Book a visit`
**Quick links**
- `Term dates` `Holidays and inset days for 2026 to 2027`
- `Lunch menu` `This week's meals and how to pay`
- `Uniform` `What to wear and where to buy it`
- `Clubs` `Before school, after school and holiday clubs`
**Welcome from the head**
- Heading: `Welcome to Oakfield`
- Letter: `Thank you for visiting our website. Oakfield is a school where children feel safe enough to try, get it wrong and try again. We keep our classes calm, our expectations high and our door open.`
- `If you are thinking of joining us, the best way to know is to come and see a normal school day. I would love to show you round.`
- Signature: `Mrs Helen Carter, Head Teacher`
**School life**
- `Growing our own lunch in the school garden`
- `The Year 6 choir at Sheffield City Hall`
- `Friday football on the top field`
**Latest news**
- `12 October 2026` `Year 4 bring the Romans to life` `A week of shields, mosaics and a very convincing march around the playground.`
- `5 October 2026` `Harvest collection for the food bank` `Thank you to every family who donated. We filled the minibus twice.`
- `28 September 2026` `New climbing frame is open` `Paid for by two years of cake sales from our Friends of Oakfield.`
**Key dates**
- `23 Oct` Half term starts after school
- `3 Nov` Children return to school
- `14 Nov` Parent consultations, 3:30 pm to 7:00 pm
- `4 Dec` Christmas fair, school hall
- `18 Dec` Last day of term, finish at 1:30 pm
**What inspectors said**
`Pupils are happy, polite and proud of their school. They know that adults care about them and will help them.` Ofsted, 2025
**Visit us**
- Heading: `Come and see a normal day`
- Text: `Open mornings run every Tuesday at 9:30 from October to January. No need to dress up, just book a place and come along.`
- Button: `Book a visit`
- Details: `Oakfield Primary School, Oak Lane, Sheffield S11 8YH` · `0114 555 0136` · `Office open 8:15 am to 4:00 pm, Monday to Friday`
**Footer**
`Oakfield Primary School` · Parents (Term dates, Lunch menu, Uniform, Clubs) · About (Our staff, Governors, Vacancies) · Policies (Safeguarding, SEND, Privacy) · `Part of the Peak Learning Trust. Company number 08765432.`
## 10. Never
Cartoon clip art, comic fonts, rainbow gradients, glow, emoji, autoplay video, carousels, white text on yellow, dashes of any kind in the copy, lorem ipsum, tiny body text.
## 11. Dependencies
```json
{ "motion": "^12.0.0", "lucide-react": "^0.460.0", "clsx": "^2.1.0" }
```1Run the school website prompt in Lovable, Bolt, or v0
Open a fresh project in Lovable, Bolt, or v0. Copy the full prompt on this page from the block titled The full prompt right above this step, paste the entire text into the builder's initial chat input, and start the generation. Do not split the specification into smaller chunks for your first run.
Architecturally, feeding the complete specification at once lets the model plan shared CSS tokens, responsive grids, and dependency imports in one coherent pass. Notice how Section 2 locks the stack tightly:
React + Vite + TypeScript + Tailwind CSS + Framer Motion (motion/react) + lucide-react
By explicitly banning UI component libraries, calendar packages, and parent portals, the prompt stops the AI from hallucinating broken third-party imports or over-engineered state machines. Wait for the initial build to compile and check the package manifest first. Confirm that motion, lucide-react, and clsx are installed cleanly without extra UI kits. If the builder installs an older framer-motion package instead of motion, ask it in a quick follow-up prompt to align imports with motion/react so scroll animations compile cleanly.
Pro tip: Always paste the full prompt above into a brand-new workspace so cached styles from previous chats never bleed into your CSS variables.
2Verify the CSS colour tokens and WCAG contrast rules
Once the preview renders, open your generated stylesheet (typically index.css or globals.css) and verify that all eight custom properties from Section 3 exist on :root. This palette works because every colour has a strict functional role rather than decorative variety:
:root {
--paper: #FFFFFF;
--ink: #14213D;
--accent: #1D4ED8;
--highlight: #FFC83D;
}
Deep navy (#14213D) on crisp white (#FFFFFF) gives high readability without the harshness of pure black, while --surface (#F1F5FB) separates alternating sections gently without heavy borders. The most common accessibility trap in yellow-and-blue branding is putting white text on a yellow badge, which drops contrast well below readable thresholds.
The prompt above explicitly forbids white text on --highlight (#FFC83D) and mandates --ink navy text instead, guaranteeing at least a 4.5:1 contrast ratio across the entire page. Use Chrome DevTools to inspect the hero tag and the yellow calendar badges. If the AI slipped white text onto any yellow element or used muted grey text smaller than 14px, send a targeted correction telling it to apply text-[#14213D] on every --highlight surface.
Pro tip: Use the Chrome DevTools CSS Overview panel to catch any text contrast ratio below 4.5:1 in five seconds.
3Configure Plus Jakarta Sans and mobile-first type scales
Next, inspect index.html and your Tailwind font configuration to confirm that Plus Jakarta Sans loads weights 400, 500, 700, and 800 from Google Fonts. Using one geometric humanist sans-serif family keeps network requests light while still offering strong visual hierarchy between 800 display headings and 400 body paragraphs. It feels warm and approachable for primary education without ever drifting into childish comic lettering.
Check the computed font sizes in your browser inspector against these exact rules from the prompt above:
- Headings:
Plus Jakarta Sansweight800, fluidly scaled withclamp(34px, 4.6vw, 64px),1.08line-height, and-0.02emletter-spacing. - Subheads: weight
700at22px. - Body copy: weight
400at17pxwith a generous1.65line-height. - Labels: weight
700at14px, rendered as navy text inside a rounded yellow tag.
Setting body text to 17px instead of the standard Tailwind 16px (text-base) makes a noticeable difference for parents reading outdoors on mobile screens. If your AI builder defaulted paragraphs to text-sm or text-base, update the base body utility class to text-[17px] leading-[1.65].
Pro tip: Add preconnect tags for fonts.googleapis.com and fonts.gstatic.com in index.html to avoid layout shift on slow mobile networks.
4Check the utility bar, sticky navbar, and overlapping hero
Scroll to the top of the page and review the first three structural bands together. At the very top, a slim --ink navy utility bar must display 0114 555 0136, [email protected], and a right-aligned Report an absence link in white text. Separating urgent daily actions from primary marketing navigation lets stressed parents phone the office in two seconds.
Directly underneath sits the 80px sticky white navbar with a subtle --line bottom border. Check that the AI drew a clean custom SVG oak leaf inside a round royal blue badge next to Oakfield Primary School, placed the five links (About, Parents, Curriculum, News, Contact) centrally, and anchored the Apply for a place primary button on the right.
In the hero section, verify the framing details:
- Inset photo:
24pxborder radius and24pxhorizontal inset from the viewport edges. - Overlapping card: white background,
20pxradius, overlapping the bottom-left corner of the classroom photograph by60pxon desktop. - Touch-ready buttons: both
Apply for a place(royal blue fill) andBook a visit(white fill with1.5pxblue border) must enforce at least48pxheight and12pxradius.

Pro tip: If the overlapping hero card gets clipped on desktop, remove overflow-hidden from the outer hero wrapper and keep it only on the image container.
5Validate the parent quick links and head teacher welcome
Below the hero, inspect the four Quick links tiles sitting on the --surface (#F1F5FB) background, followed by the two-column Welcome from the head letter. Those four tiles (Term dates, Lunch menu, Uniform, and Clubs) do the heavy lifting for returning families. Each card needs a 20px border radius, a bold title, a single line of plain-English helper copy, and a crisp arrow icon from lucide-react.
Hover over each quick link tile to verify two behaviours:
- Colour inversion: the card background transitions smoothly to
--accentroyal blue (#1D4ED8) while both the heading, helper text, and arrow switch to crisp white (#FFFFFF). - Micro-interaction: the tile scales subtly to
1.02without layout jitter.
Make sure the helper text color also flips on hover; AI builders occasionally leave muted grey text unchanged when the parent card turns blue, ruining readability. Use Tailwind's group and group-hover:text-white classes on child elements if needed. Then check Mrs Helen Carter's welcome section underneath: confirm the portrait uses a 4:5 vertical aspect ratio with rounded corners on the left, paired with her calm, plain-English invitation and signature on the right.
Pro tip: Wrap each quick link tile in a semantic anchor tag with group hover utilities so keyboard tabbing triggers the exact same visual state as mouse hover.
6Build the school life gallery, news cards, and key dates
Move down to the middle third of the page, which proves the school is active, current, and well organised. First, check the School life section on its --surface background: three equal columns featuring 16px rounded photographs and concise captions underneath (Growing our own lunch in the school garden, The Year 6 choir at Sheffield City Hall, and Friday football on the top field).
Next, examine Latest news. Notice how the prompt above specifies flat, architectural restraint:
- Border:
1pxsolid--line(#DCE3EE),16pxborder radius, andshadow-none. - Content: thumbnail image, publication date, bold headline, two-line summary, and a section-level
All newslink.
Eliminating drop shadows keeps the three-card grid crisp rather than cluttered. Below the news grid, inspect Key dates. Because the prompt banned external calendar libraries, the AI builds a clean vertical list of the next five school events (23 Oct through 18 Dec). Each row pairs a sunny yellow --highlight date badge (large day number stacked above a small month label in --ink navy text) with the event description. Parents scan five upcoming dates far faster in a stacked list than inside a tiny monthly calendar grid.

Pro tip: Keep fixed aspect-video or aspect-[4/3] ratios with object-cover on the School life and News thumbnails so uneven image heights never break grid alignment.
7Audit the Ofsted banner, visit section, and trust footer
Scroll to the bottom three sections, which convert prospective parents from curious readers into booked open-morning visitors. First is What inspectors said, a full-width --accent royal blue band featuring the 2025 Ofsted quote in large white typography. Breaking out of the 1200px container for one high-contrast band resets visual rhythm after several white and light-blue sections.
Directly beneath, check the two-column Visit us layout:
- Left column: the
Come and see a normal dayheading, open morning schedule (every Tuesday at 9:30 from October to January), and theBook a visitprimary button. - Right column: a clean, structured details table listing the Sheffield
S11 8YHaddress,0114 555 0136phone number, and8:15 am to 4:00 pmoffice hours.
Finally, inspect the --ink (#14213D) navy Footer. Verify the SVG oak leaf badge and school name alongside three organised link columns (Parents, About, Policies) and the statutory trust line at the bottom: Part of the Peak Learning Trust. Company number 08765432. UK state academies are legally required to display trust governance details, so keeping that footer line intact makes the template production-realistic.

Pro tip: Format the phone number in the Visit us table and Utility bar with tel:01145550136 links so mobile visitors can tap to call directly.
8Refine Framer Motion scroll reveals and reduced motion
Good school websites feel responsive and modern without distracting animations. Section 7 of the prompt above defines strict motion budgets using motion/react: sections fade upward by 16px over 0.5s as they enter the viewport, quick link tiles scale to 1.02 on hover, and nothing ever loops or bounces.
Open the generated section wrapper component and check how the AI configured whileInView and reduced-motion preferences. You want viewport={{ once: true, margin: "-60px" }} so sections do not repeatedly fade in and out every time a parent scrolls back up to check a date. More importantly, verify accessibility compliance with useReducedMotion() from motion/react or a CSS media query:
const shouldReduceMotion = useReducedMotion();
const initialY = shouldReduceMotion ? 0 : 16;
Users with vestibular sensitivities enable prefers-reduced-motion at the operating system level. If your AI builder ignored that constraint in the prompt above, ask it to wrap the reusable fade-up helper with useReducedMotion() and disable hover scaling when reduced motion is active. Also verify that transitions use a calm cubic-bezier or easeOut curve rather than spring physics, which prevents playful bounce effects.
Pro tip: Toggle Emulate CSS media feature prefers-reduced-motion in Chrome DevTools Rendering settings to confirm all scroll movement stops immediately.
9Test mobile responsiveness under 768px
Over half of school website traffic happens on smartphones at the school gate, which is why Section 8 of the prompt above dictates exact layout shifts below 768px. Switch your browser DevTools into responsive device mode at 375px width (iPhone SE / standard compact Android) and check five responsive rules one by one:
- Utility bar: hides the email address on mobile so only
0114 555 0136andReport an absenceshare the top bar cleanly without wrapping onto awkward lines. - Mobile navigation: collapses desktop links into the school badge plus a
Menubutton that opens a full-screen white overlay with large, thumb-friendly tap targets. - Hero card: unpins from its
-60pxoverlap and stacks neatly underneath the classroom photo so the photo is not covered on narrow viewports. - Quick links: reflows from four across into a balanced
2x2grid (grid-cols-2), keeping all four critical tools above the fold. - Content grids: stacks Welcome, School life, Latest news, and Visit us into clean single-column flows, while desktop expands back to
1200pxmax-width with96pxvertical section padding.
Pro tip: Test the mobile Menu overlay to ensure body scrolling locks when open and closes cleanly when a user taps any section link.
10Audit negative constraints and swap in real school content
Before publishing or handing the project over to a school office team, run a quality pass against Section 10 (Never) in the prompt above. AI models have strong muscle memory for generic primary school tropes, so check that zero prohibited items slipped through:
- Visual clutter: no cartoon clip art, comic fonts, rainbow gradients, neon glow, emoji icons, autoplay video, or image carousels.
- Copy hygiene: no lorem ipsum filler, no body text smaller than
17px, no white text on yellow badges, and no dashes in the visible copy.
Notice how the prompt describes every photograph in plain English (children in blue jumpers, a friendly head teacher in a corridor, a school vegetable garden, a hall choir, and Friday football) so the AI builder generates realistic placeholder imagery automatically. When adapting this build for a real school, replace those generated images only with authentic photographs backed by signed parental media consent forms. Finally, move the hardcoded arrays for Quick links, Latest news, and Key dates into a single src/data/schoolContent.ts file so office staff or developers can update term dates and newsletters in seconds.
Pro tip: Run a quick project-wide search for lorem and unicode emoji characters in your code editor before deploying to catch subtle AI hallucinations.
Adapt it to your own brand
- Nursery or Early Years Setting: Keep the sunny yellow highlight and Plus Jakarta Sans font, swap royal blue (
#1D4ED8) for a calm forest green (#15803D), and change Quick Links to Settling-in sessions, Funding hours, Daily routine, and Safeguarding. - Secondary School or Sixth Form: Shift
--highlightfrom bright yellow to a muted gold (#EAB308) with--inktext, tighten heading sizes slightly, and swap Quick Links to Exam timetables, Revision hub, Sixth form applications, and Term dates. - Multi-Academy Trust (MAT) Portal: Replace Welcome from the head with a CEO overview, repurpose the three-column School life grid into a directory of member schools, and highlight trust-wide governance documents in the footer.
- After-School Tutoring or Music Academy: Keep the parent-friendly trust signals (Ofsted or DBS safeguarding quote band), change Key dates into Upcoming cohort start dates, and wire the
Book a visitbutton to a free trial booking form. - Paediatric Dental or Family Clinic: Retain the cheerful-yet-organised navy, blue, and white palette, swap the utility bar link to
Emergency appointments, and use Quick links for New patient forms, NHS vs private fees, Parking, and Opening hours. - Connect a Headless CMS Later: Keep the single-page React frontend intact and connect the
Latest newsandKey datesarrays to Sanity, Contentful, or a read-only Google Sheet so school administrators can publish weekly updates without touching code.
Common mistakes and fixes
- White text rendered on yellow badges: Some AI passes apply white text globally to badge components. Fix this by explicitly enforcing
text-[#14213D]on every element using--highlight(#FFC83D) so contrast stays above 4.5:1. - Hero card covering the entire photo on mobile: If the AI applies negative top margin unconditionally instead of scoping it to
md:orlg:breakpoints, the white card swallows the classroom image under768px. Prefix overlap positioning classes withmd:so mobile stacks cleanly. - Installing heavy calendar libraries: Developers often ask follow-up prompts for an interactive month picker, bloating bundle size and ruining mobile scannability. Keep the five-item stacked list with yellow date badges as designed.
- Hover state hiding helper text on Quick Links: When a quick link card turns royal blue on hover, muted grey subtext becomes unreadable unless it also transitions to white. Add
groupto the card container andgroup-hover:text-white/90to the helper line. - Uploading unconsented student photos: When moving from AI-generated placeholders to live production, never publish real classroom photos without verifying the school's current parental photo consent register and stripping EXIF GPS metadata.
Frequently asked questions
What sections are included in this school website prompt?
The prompt builds eleven complete sections on a single page: Utility Bar, Sticky Navbar, Hero Banner with overlapping CTA card, Parent Quick Links, Welcome from the Head, School Life photo grid, Latest News, Key Dates diary list, Ofsted Inspection Quote banner, Visit Us open morning details, and a Trust Footer.
Does this prompt work in Lovable, Bolt, and v0?
Yes. The technical stack uses standard React, Vite, TypeScript, Tailwind CSS, lucide-react, and Framer Motion (motion/react). Because it intentionally avoids external UI component libraries, calendar plugins, and complex backend parent portals, all three AI builders compile it cleanly on the first run.
Do I need real photographs of our school before running the prompt?
No. Every photograph in the Hero, Head Teacher Welcome, School Life, and Latest News sections is written out as a plain-English scene description so the AI generates realistic placeholders automatically. You can swap in your own school photographs later once parental consent is confirmed.
How easy is it to update term dates, news, and school policies?
Very straightforward. All copy in Section 9 of the prompt is structured as clean, human-readable text rather than buried inside complex widgets. You can edit the school name, head teacher letter, weekly news items, key diary dates, and policy links directly in the React component or extract them into a single data file.
Final thoughts
A great primary school website respects a parent's time. By combining high-contrast navy, royal blue, and yellow tokens with 17px Plus Jakarta Sans typography and zero plugin bloat, this architecture puts term dates, lunch menus, absence reporting, and open mornings within effortless reach on any phone.
Scroll back up, copy the full prompt on this page, and paste it straight into Lovable, Bolt, or v0. Once the Oakfield baseline compiles, swap in your own school badge, diary dates, and approved photography to ship a fast, accessible site your school community will genuinely enjoy using.