Site Identity & Logo
Files: src/config/config.toml, src/i18n/<lang>.json, src/assets/images/ · Skill level: Beginner
Looka makes it easy to customize your site’s branding, including the logo and favicon, through the config.toml file.
In the Tina edition, these are under Site settings at /admin/. In the Sanity edition, they are under Site settings > Site and SEO in the Studio, but favicons stay in config.toml.
Customize Your Logo
To set your logo that will be displayed on the header and footer, edit the [site] section in the config.toml file:
[site] title = "Looka" # Shared title for SEO and OpenGraph description = "" # Empty: each language's own, seo.siteDescription in src/i18n/<language>.json tagline = "" # Added to page titles. Empty: each language's own, seo.tagline in src/i18n/<language>.json taglineSeparator = "" # default is " - " baseUrl = "https://looka-astro.pages.dev" # Change this to your domain logo = "/images/logo.svg" # Path to the site's logo logoAlternate = "" # Optional alternate logo path logoText = "Looka" # Text displayed next to the logo logoWidth = "29px" # Width of the logo logoHeight = "29px" # Height of the logologo: Path to your main logo./images/logo.svgis the filesrc/assets/images/logo.svg.logoText: Text next to the logo (if applicable).logoWidth&logoHeight: Adjust the size of your logo.
Looka ships with
logo = "/images/logo.svg"andlogoText = "Looka". If you remove thelogovalue, the header falls back tologoText(or the sitetitlewhen both are empty).
Different Logo for Footer
Looka’s footer uses a separate white logo so it stays visible on the dark footer background. The <Logo /> component accepts an optional src prop that overrides the logo value from config.toml. You can see this in src/layouts/components/global/Footer.astro:
<div class="flex flex-col gap-y-5 lg:pe-10"> <Logo src="/images/logo-white.svg" /> { footerDescription && ( <p class="opacity-90" set:html={markdownify(footerDescription)} /> ) } <SocialComponent layout="dark" linkType="follow" class="mt-5 gap-1" list={social.main.filter((social) => social.enable)} /></div>To swap the footer logo, replace the file src/assets/images/logo-white.svg with your own white or light logo. This stays in code in every edition.
Note: Looka’s
<Logo />component readslogo,logoText,logoWidth, andlogoHeightfromconfig.toml. ThelogoAlternatefield is present in the config for forward compatibility but is not rendered by the current theme — use thesrcprop (as the footer does) when you need a second logo.
Set Up Your Favicon
Favicons appear in browser tabs and are essential for branding.
[site.favicon] path = "/images/favicons" # Favicon storage path image = "/images/logo.svg" # Use your logo hereGenerate Favicons
-
Place your logo image in
src/assets/images/, and set its path inimage. -
Run this command in your terminal:
Terminal window npm run generate-favicons -
The tool will create favicons for various platforms and save them to
public/images/favicons/.
Customize SEO Metadata
Optimize your site for search engines with these SEO settings in config.toml:
[seo] author = "Getastrothemes" # Author name for SEO keywords = ["business astro theme, consulting astro theme"] # SEO keywords robots = "index, follow" # Search engine crawl rules- author: Set the author or organization for SEO.
- keywords: Add keywords to improve search ranking.
- robots: Control search engine crawling (e.g., “index, follow” to allow indexing).
The tagline and the site description are in each language file, so they can change with the language:
"seo": { "siteDescription": "A highly customizable consulting & business astro theme built with Tailwind CSS and Astro Js", "tagline": "Corporate Business & Consulting Astro Js Theme"}Change them in every language. A value in description or tagline under [site] replaces them in every language. For robots.txt and the files for AI tools, see AI Links & llms.
🚀 You’ve customized the site’s identity and logo—now it’s time to update the fonts and colors!