Make an EmDash blog look and move like your Google Sites™ homepage

Read the header, drawer and burger values from Google Sites' own stylesheet, put the colours in EmDash's theme.css, swap the header in Base.astro, and reuse your Sites footer embeds. Measured values, code and checks.

Eryc Tri Juni S··6 MIN READ

>_ INSIDE_THE_PAGE

    Field

    Detail

    Problem

    The blog from parts 0 and 2 sits on the same domain as Google Sites but looks and moves differently, so readers notice they left the site

    Difficulty

    3 of 5

    Moving parts

    theme.css (tokens), the header in Base.astro, one motion stylesheet, the footer embeds

    Reversible

    Yes: it is CSS and markup in the blog repo

    Time and cost

    2 to 3 hours, most of it reading values; free

    Skills

    CSS transitions, SVG, browser DevTools, editing an Astro file

    Last verified

    2026-11-22 on www.eryc.my.id (mobile, 767 px and under)

    Is it possible?

    Yes, and you do not have to guess. Google Sites ships its theme as a normal stylesheet, so sizes, curves and durations can be read and copied. EmDash keeps its look in two places you are allowed to change: tokens in theme.css, and the layout in Base.astro. The cost is patience: many small values must agree, and one wrong curve is visible at once.

    This is part 3 of the series EmDash for Google Sites. It assumes the blog already runs at /blog (part 2).

    What is the big picture?

    Big picture: from Google Sites values to EmDash theme
    DevTools: colors, fonts GOOGLE SITES --color-*, --font-* THEME.CSS markup + motion HEADER dummy embed method FOOTER wraps every page BASE.ASTRO looks like the site BLOG PAGE colors, fonts GOOGLE SITES --color-*, --font-* THEME.CSS markup + motion HEADER dummy embed method FOOTER wraps every page BASE.ASTRO looks like the site BLOG PAGE

    Read the values from Google Sites, store them as tokens in theme.css, then use them in the header and footer that Base.astro renders.

    The same flow as text:

    1. Read the Google Sites stylesheet in DevTools (served from www.gstatic.com): sizes, colours, easing, durations.
    2. Put the colours and font in src/styles/theme.css as tokens (they beat the template defaults).
    3. Put the header markup that matches Sites (burger, logo, nav), the motion CSS with the values you read, and the footer (your existing Sites embed HTML, in an iframe) in src/layouts/Base.astro.
    4. Every blog page renders inside Base.astro, so every page matches.

    Where it fits with parts 0 and 2: nothing changes at Cloudflare. This part only edits files in the blog repo, then deploys the same way as before.

    Which words do I need?

    Word

    Meaning here

    Token

    A CSS variable for one design value (--color-bg, --font-body)

    theme.css

    EmDash's file for your overrides; its rules are unlayered, so they beat the template's @layer base defaults

    Base.astro

    The layout every EmDash page renders inside: header, footer, page frame

    Breakpoint

    The width where Sites switches layout; the mobile drawer applies at 767 px and under

    Easing

    The speed curve of a motion, such as cubic-bezier(.4,0,.2,1)

    Scrim

    The dark layer behind an open drawer

    ?raw

    An import that loads a file as a plain string, so an HTML embed can go into srcdoc

    Step 1: Read the values from Sites

    Where it fits: the GOOGLE SITES box.

    Open your Sites page in DevTools at a 412 px width, find its stylesheet from www.gstatic.com, and read the rules for the header, drawer, burger and dropdown. Sites changes layout at 480, 768 and 1280 px.

    MEASURED Read from the Sites stylesheet on 2026-11-22 and checked as settled states in a 412 px wide frame:

    Part

    Value

    Header

    sticky, 56 px high

    Burger button

    48 × 56 px

    Logo

    40 × 40 px

    Search button

    48 × 48 px

    Drawer

    250 px wide, transform .5s cubic-bezier(.4,0,.2,1)

    Scrim

    rgba(0,0,0,.6), fades over .5 s, sits inside the header

    Drawer items

    16 px text, 21 px link rows, 29 px pitch

    Current page

    8 px left border in the accent colour, bold

    Submenu links

    60 px left padding

    Burger morph

    svg turns 90° in .45 s; top and bottom bars rotate 45° and 135° with a 5 px shift; middle bar fades after a .45 s delay

    Dropdown

    opens over .25 s using margin-top and clip-path

    Chevron

    each arm rotates 90° in .25 s

    Hover and press text

    rgba(249,249,249,.82)

    Footer frame

    aspect-ratio: 379.3 / 206.7

    Background tabs freeze CSS transitions, so a drawer can look stuck halfway. To read end states, inject this rule, read the values, then remove it:

    CSS
    /* injected into the 412 px frame, then removed */* { transition: none !important; }

    Step 2: Put the colours and font in theme.css

    Where it fits: the THEME.CSS box.

    EmDash's design tokens live in src/styles/tokens.css; your changes go in src/styles/theme.css. Rules there are unlayered, so they win over the template's @layer base without editing core files.

    CSS
    /* append to src/styles/theme.css; dummy values, use your own */:root {  --sites-page: #10131a;   /* page background */  --sites-header: #161b26; /* header and footer band */  --sites-text: #f5f5f5;  --sites-accent: #3fa7ff; /* current-page marker */  --font-body: "Your Sites Font", system-ui, sans-serif;}body { background: var(--sites-page); color: var(--sites-text); font-family: var(--font-body); }.site-header { background: var(--sites-header); }

    To change the webfont itself, edit the fonts: entry in astro.config.mjs (the one bound to --font-body).

    Check. Open the Sites page and the blog side by side: page background and body text match.

    Step 3: Swap the header in Base.astro

    Where it fits: the HEADER box.

    The template asks you not to edit Base.astro for visual changes. Matching Sites needs different markup (burger on the left, logo, nav in a drawer), so the header is the one exception. Replace the template header with one shaped like Sites:

    HTML
    <header class="site-header">  <button type="button" class="nav-toggle" aria-label="Open menu" aria-expanded="false" aria-controls="site-nav">    <svg class="burger" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" aria-hidden="true">      <g transform="translate(12,12)">        <path class="b1" d="M-9 -5 L9 -5" stroke-width="2" />        <path class="b2" d="M-9 0 L9 0" stroke-width="2" />        <path class="b3" d="M-9 5 L9 5" stroke-width="2" />      </g>    </svg>  </button>  <a class="brand" href="https://www.example.com/"><img class="brand__logo" src="/logo.png" alt="" width="40" height="40" /></a>  <nav class="site-nav" id="site-nav" aria-label="Main"><!-- your links --></nav></header><div class="nav-scrim" hidden></div>

    The bars are drawn around the centre of the icon (translate(12,12)), so each one can rotate around that centre in Step 4. A short script toggles nav-open on <body>, closes on the scrim and on Escape, and keeps aria-expanded in sync; it is in the repo.

    Check. At 412 px wide, the burger, logo and search sit where Sites puts them.

    Step 4: Copy the motion

    Where it fits: still the HEADER box; this is the part readers feel.

    CSS
    @media (max-width: 767px) {  .site-nav { position: fixed; top: 56px; left: 0; bottom: 0; width: 250px;    transform: translateX(-100%); transition: transform .5s cubic-bezier(.4,0,.2,1); }  body.nav-open .site-nav { transform: none; }   .burger { transition: transform .45s cubic-bezier(.4,0,.2,1); }  body.nav-open .burger { transform: rotate(90deg); }  .burger path { transform-box: view-box; transform-origin: 0 0;    transition: transform .45s cubic-bezier(.4,0,.2,1); }  body.nav-open .burger .b1 { transform: rotate(45deg) translateY(5px); }  body.nav-open .burger .b2 { transform: rotate(135deg); opacity: 0;    transition: all .45s cubic-bezier(.4,0,.2,1), opacity .45s .45s; }  body.nav-open .burger .b3 { transform: rotate(135deg) translateY(-5px); }}@media (prefers-reduced-motion: reduce) {  .site-nav, .burger, .burger path { transition-duration: .01s !important; }}

    Change the numbers and watch what breaks:

    Motion lab: the mobile drawer, with the real numbers
    eryc.my.id

    The demo drawer is narrower than the real 250 px one; easing and timings are the measured values.

    Check. Open and close the drawer on Sites and on the blog: the burger becomes an × in .45 s, the drawer slides over .5 s, the scrim darkens the page.

    Step 5: Reuse the footer embeds

    Where it fits: the FOOTER box.

    If your Sites footer is built from "Embed code" blocks, do not rebuild it. Keep each embed's HTML as a file in the blog repo, import it as a string, and show it in an iframe, as Sites does:

    HTML
    ---import footerEmbed from "../embeds/footer.html?raw";---<footer class="site-footer">  <iframe title="Footer" srcdoc={footerEmbed} loading="lazy"    style="width:100%;aspect-ratio:379.3/206.7;border:0"></iframe></footer>

    The repo ships a dummy footer-example.html that shows the method only. Use your own embed; do not copy someone else's.

    Check. Scroll to the bottom of both pages: the footer content is the same.

    What did I check?

    Check. OBSERVED My own side-by-side review of the Sites page and the blog on mobile found no visible difference after the steps above. I did not run an automated pixel diff.

    What went wrong?

    • The chevron. I first rotated the whole arrow 180°. Sites rotates each of its two arms by ±90° over .25 s. The whole-arrow version looked close and moved wrongly; I replaced it with the per-arm rotation.
    • Tap highlights I imagined. I copied a link highlight I thought Sites had. It made things worse, and I reverted both commits. Only the grey hover text colour stayed.
    • The burger in the motion lab. The demo burger first crossed its bars around the wrong point. I caught it in a screen recording, then copied the exact rules from my live header (transform-box: view-box, transform-origin: 0 0, bars drawn around the centre). Those are the rules in Step 4.

    Limits

    • Sites can change its stylesheet without notice; these values were read on 2026-11-22.
    • Values apply at 767 px and under. Tablet and desktop widths use other rules.
    • NOT TESTED Safari, Firefox and physical phones; tested in desktop Chrome with a 412 px frame.
    • NOT TESTED Reduced-motion settings on the Sites original.
    • Base.astro is a template file; an EmDash template update can conflict with your header. Keep your header in one component so it is easy to put back.

    Files and reproduction

    Repo: ErycTheGreat/emdash-for-google-sites, folder 03-match-sites-theme: README.md (the method and the values table), tokens.example.css, header.example.css, Header.example.astro, Footer.example.astro, embeds/footer-example.html (dummy) and CHECK.md. Colours, names and links are dummies on purpose: the folder teaches the method, not my design. With an AI agent: "Use the emdash-for-google-sites skill, part 03".

    Series: part 0, setup · part 2, the blog under /blog · part 1, the redirect fix · part 3, this post.

    How this was made

    Built and tested by Eryc Tri Juni S on his own site. The values come from the Google Sites stylesheet his site serves and his own browser checks on 2026-11-22. Drafted with AI assistance (Claude); every sentence was reviewed and every fact checked by the author.

    About the author

    Eryc Tri Juni S is an Edge SEO & GEO (Generative Engine Optimization) Specialist in Malang, Indonesia, an Electrical Engineer with 8 years in electronic product innovation, now at the intersection of Edge SEO, GEO, and AI retrieval infrastructure. About · GitHub

    Changelog

    • 2026-11-22: first version.

    Google Sites is a trademark of Google LLC. This project is not affiliated with or endorsed by Google.

    Related prompts

    1. 01

      How do I make a blog look the same as my Google Sites website?

    2. 02

      Which CSS easing curve does Google Sites use for its mobile menu?

    3. 03

      How do I change colours and fonts in an EmDash theme?

    Related concepts