Appearance
Logo & favicon
The brand name
The business name shown next to the logo, in the footer and in contact details comes from the brand object in src/data/content.js:
js
export const brand = {
name: 'Your Business',
}The logo
Logos are usually small inline SVGs drawn in code, so they stay sharp at any size. Find yours:
- a
Logo.jsxfile insrc/components/ui/, or - a
Logocomponent near the top ofsrc/components/layout/Navbar.jsx(andFooter.jsx).
Search the project for Logo to find every place it is used.
Option A: use your own image file
Save your logo as SVG (best) or PNG with a transparent background into
src/assets/, for examplesrc/assets/logo.svg.Replace the content of the logo component with an image:
jsximport logo from '../../assets/logo.svg' export default function Logo({ className = 'h-8 w-auto' }) { return <img src={logo} alt="Your Business" className={className} /> }Check the header and footer on desktop and mobile. Adjust the height class (
h-7,h-8,h-10) to fit.
Light logo on dark backgrounds
If your footer or hero is dark, export a second, light version (for example logo-light.svg) and use it there. Or, for a single-colour SVG, set fill="currentColor" inside the SVG and paste it inline, so it takes the text colour of its container.
Option B: paste your SVG inline
Open your .svg file in a text editor, copy the <svg>…</svg> element and paste it in place of the existing one in the logo component. In JSX, rename attributes: class → className, stroke-width → strokeWidth, fill-rule → fillRule, and so on.
The favicon
The browser tab icon is set in index.html. Many templates use a small inline SVG:
html
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=…" />Replace it with your own file:
Create a
public/folder in the project root if there isn't one.Put your icon there:
public/favicon.svg(orfavicon.png, 512 × 512), pluspublic/apple-touch-icon.png(180 × 180, no transparency) for iPhone home screens.Replace the icon line in
index.html:html<link rel="icon" type="image/svg+xml" href="./favicon.svg" /> <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
Files in public/ are copied as they are to the root of dist/ when you build. Use paths that start with ./ so they also work when the site is deployed in a sub-folder.
Favicons are cached hard
Browsers keep old favicons for a long time. If you still see the old icon, open the site in a private window or another browser.