The vetted Figma design now lives as a compact React/Vite SPA inside src/, and the top-level index.html + shared styles/behavior are what ship to production. The UI mirrors the original hero/hardware/final CTA layout and the dedicated get-started guide so the experience plays out exactly as the design mandates.
- Vite + React (TypeScript) — entry point in
src/main.tsx, minimal render tree, two logical pages (HomePage,GetStartedPage) swapped through component state. - Tailwind CSS —
src/styles/globals.cssdefines the color palette, gradients, and shared utilities; the build runs throughtailwindcss+postcss. - Simple assets —
figma:asset/*imports are aliased tosrc/assets/figma/so the components keep their original references, and a handful of placeholder PNGs match the approved layout until the real Figma exports are swapped in.
src/– React source from the Figma export, organized by sections;styles/globals.cssholds the shared theming, andassets/figma/stores the image stand-ins.public/– Static files served directly (favicon, future downloads, etc.).index.html+getting-started.html– Vite entry shells for the home and onboarding screens. Each loads the same React bundle but the/getting-startedroute loads the vetted Flow page on load.package.json– Scripts fordev,build,preview, andcheck, plus the dependencies needed to run the React + Tailwind toolchain.vite.config.ts– React plugin plus an alias sofigma:assetresolves to the local placeholders.tsconfig.json/tsconfig.node.json– TypeScript settings;src/components/uiis excluded because those helpers are unused in the current build.tailwind.config.cjs+postcss.config.cjs– Tailwind/PostCSS pipeline configured for thesrc/**/*.{ts,tsx}files.
npm install # installs React/Vite/Tailwind with the versions listed in package.json
npm run dev # run the dev server (Vite) and open http://localhost:5173
npm run build # create the production bundle with Vite
npm run preview # preview the production build locally
npm run check # run tsc --noEmit against tsconfig.jsonTailwind/JIT will process the globals.css file and the component classes automatically, so there is no additional build step beyond npm run build.
- The
Appcomponent toggles betweenHomePageandGetStartedPageto keep the two vetted screens accessible without introducing routing. src/assets/figma/contains placeholder PNGs that are resolved via the alias defined invite.config.ts. Swap them for the true Figma exports (or a CDN link) and keep the file names intact to avoid touching the component imports.- Add new UI patterns directly in
HomePage,GetStartedPage, or their child sections; avoid rearranging the copy unless the strategy docs explicitly call for it. - The
public/favicon.svgis a simple KC-branded circle used for the site icon; replace it only if the new design requires a different asset.
The output from npm run build lives under dist/. Deploy those static files directly to the host of your choice. No additional server or bundler setup is required beyond the above dependencies.