theming.md
October 1, 2024 ยท View on GitHub
Changing the Color Scheme, Font, and Other Styles
-
Modify Existing Theme:
- Update the color scheme in
src/interfaces/coral_web/src/themes/cohereTheme.js:primary: { ... 600: '#E25D41', 500: '#AE4359', // Changed from default color 400: '#FF967E', ... },
- Update the color scheme in
-
Add a New Theme:
- Create a new theme file in the
src/interfaces/coral_web/src/themesfolder. - Update
src/interfaces/coral_web/tailwind.config.js:module.exports = { presets: [require('./src/themes/yourTheme')], ... }
- Create a new theme file in the
-
Rebuild the Frontend:
- After making changes, rebuild the frontend to apply updates.
Changing the Logo
-
Set Environment Variable:
- In the
.envfile, setNEXT_PUBLIC_HAS_CUSTOM_LOGO=true.
- In the
-
Modify Logo Component:
- Update the logo display in
src/interfaces/coral_web/src/components/Shared/Logo.tsx.
- Update the logo display in
Changing the Favicon and Metadata
-
Update Favicon:
- Replace
public/favicon.icowith the new favicon file.
- Replace
-
Modify Metadata:
- Edit:
src/interfaces/coral_web/src/components/Shared/WebManifestHead.tsxsrc/interfaces/coral_web/src/components/Shared/GlobalHead/GlobalHead.tsxsrc/interfaces/coral_web/public/site.webmanifest
- Edit:
Changing the Page Title
- Update the
titleproperty insrc/interfaces/coral_web/src/components/Layout.tsx.
Customizing Language
- Translate UI labels in
src/interfaces/coral_web/src/constants/strings.tsx.