Make it your brand
Where to change the site's name, the logo, the colour theme, the fonts, the favicon and the image shown when a page is shared.
Run the site with yarn dev while you edit: the page reloads each time you save.
| To change | Edit |
|---|---|
| The site's name, title and description | The Metadata block in messages/layout/en.json and messages/layout/ar.json |
| The logo | src/components/Logo.tsx |
| The colour theme | defaultTheme in src/app/[locale]/layout.tsx |
| A theme's colours | src/Demo/ThemeColorSwitcher/themes.ts |
| The fonts | src/app/[locale]/layout.tsx and src/styles/fonts.css |
| The favicon | src/app/favicon.ico |
| The image shown when a page is shared | public/meta_image.png |
| The copyright line and the credit link | Footer.copyright in the layout message files, and src/components/shared/layout/footer/components/BottomSection.tsx |
The site's name
The name is Logo out of the box. It appears in several texts, each in both message files:
Metadata.siteName,Metadata.titleandMetadata.descriptioninmessages/layout/<locale>.json: the name search engines and social cards show, and the home page's title and description.Footer.copyrightandFooter.descriptionin the same files: the footer's copyright line and the sentence under the logo.{year}in the copyright is filled in by the site; keep it.DashboardMockup.brandinmessages/home/<locale>.json: the name in the dashboard preview's sidebar.
Each other page has its own title and description in its meta block, such as PricingPage.meta in messages/pricing/<locale>.json.
The logo
The logo is text: the word LOGO followed by a ® in the theme colour, drawn by src/components/Logo.tsx. The header, the footer and the sign-in pages all use that one component, so you change it in one place.
Change the word in LogoContent, or replace its two <span> elements with your own image, for example a file you put in public/:
import Image from "next/image";
<Image src="/your-logo.svg" alt="Your brand" width={120} height={28} priority />Colours and themes
The site is dark and ships with four colour themes. The theme in use is the defaultTheme passed to <Providers> in src/app/[locale]/layout.tsx, blue out of the box:
<Providers defaultTheme="blue">| Theme | Main colour |
|---|---|
monochrome | #e4e4e7, light grey on near black |
blue | #3b82f6 |
purple | #a855f7 |
cyan | #06b6d4 |
To use your own brand colour, edit one theme in src/Demo/ThemeColorSwitcher/themes.ts, such as brandPrimary for the main colour and bgDark for the page background, and keep its name in defaultTheme.
With yarn dev, a floating panel lets you preview the themes. It is only there in development: yarn build, yarn start and the Docker image never include it. The browser remembers what you pick in it, and that choice wins over defaultTheme while you develop.
Fonts
| Font | Used for | Loaded in |
|---|---|---|
| DM Sans | English text | src/app/[locale]/layout.tsx, from Google Fonts through next/font |
| Clash Display | English headings | src/styles/fonts.css, from the files in public/font/clash-display/ |
| Noto Sans Arabic | Arabic text | src/app/[locale]/layout.tsx, through next/font |
| Almarai | Arabic headings | src/app/[locale]/layout.tsx, through next/font |
The Google fonts are downloaded when the site is built and then served by the site itself. src/styles/base.css picks the heading and text font for each direction.
To use another Google font, import it from next/font/google in layout.tsx in place of one of these and give it the same variable name, such as --font-dm-sans-next.
The favicon
Replace src/app/favicon.ico with your own icon under the same name. Next.js serves it at /favicon.ico and links it from every page.
The image shown when a page is shared
Social networks and chat apps show public/meta_image.png, 1200 by 630 pixels, when someone shares a page. Replace it with your own image of the same size. If you change the size, change width and height in ogImage in src/config/site.ts too.
Its description for screen readers is Metadata.imageAlt in the layout message files. A blog post shares its own cover image instead.
The footer's credit line
The bottom of the footer shows the copyright line and a "Made with ❤️ by aniq-ui" link. The words are Footer.copyright and Footer.madeWith in the layout message files; the link is in src/components/shared/layout/footer/components/BottomSection.tsx. Change or remove it as you like.
How the colour themes work
Included with your purchase. Sign in to read, or open it in your download.
How a theme is applied before the page paints, the colour tokens it sets, and how images follow the theme.