Skip to content

Latest commit

 

History

History
90 lines (68 loc) · 2.94 KB

File metadata and controls

90 lines (68 loc) · 2.94 KB

CONTEXT — hello-world-svelte-app

Orientation for contributors to this Svelte 5 + Vite Hello World example for Webflow Cloud. Keep this file current when structure or workflows change.

What this is

A minimal, branded Hello, world page built with Svelte 5 + Vite (using runes) and deployed on Cloudflare Workers via Webflow Cloud. This is the vanilla variant (no bindings — UI only).

The page shows a Webflow brand hero, gradient logo, and curated doc cards pointing at the Webflow Cloud documentation.

Stack

  • Framework: Svelte 5 on Vite 6 ($props, $state, $derived runes)
  • Styling: Tailwind v3 + wf-* brand tokens (see src/app.css)
  • Deploy target: Cloudflare Workers via Webflow Cloud (static assets)

Repo layout

index.html
src/
  App.svelte                 ← page content, hero, DOC_LINKS
  main.ts                    ← Svelte mount
  app.css                    ← Tailwind + .wf-* design tokens
  lib/
    WebflowLogo.svelte
    DocCard.svelte
vite.config.ts
svelte.config.js
tailwind.config.js
tsconfig.json
package.json

Running locally

npm install
npm run dev

Building

npm run build

Build output lands in dist/. Run npm run check for svelte-check.

Editing the UI

  • Page content (hero, CTAs, doc cards): src/App.svelte
  • Doc card list: search for DOC_LINKS in src/App.svelte
  • Brand tokens and .wf-* styles: src/app.css
  • <head> (title, favicon, theme-color): index.html

Deploying to Webflow Cloud

  1. Push this repo to GitHub.
  2. In your Webflow Cloud project, connect the repo and pick a mount path (e.g. /my-app). The app runs under any prefix.
  3. Webflow Cloud builds with npm run build on deploy.

See Deployments and Environments.

Contributing

  • Keep the Webflow brand tone: blue gradient (#4353FF#146EF5), dark background, minimal copy. Reuse the existing .wf-* CSS tokens.
  • This is a Hello World. Do not add extra pages, client-state libraries, or UI kits. Small and readable beats clever.
  • Run npm run build before opening a PR.
  • Keep cross-app parity: if you change shared copy or doc links, update the sibling hello-world-*-app[-bindings] apps too.

Related docs