Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Branding - Theme colors and logo config #4040

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

milospp
Copy link
Contributor

@milospp milospp commented Jan 20, 2025

VIVO GitHub issue
Linked Vitro PR

What does this pull request do?

This pull request allows administrators to customize institutional branding by defining institutional colors and updating the key color scheme of the current theme.

What's new?

  1. Theme Color Customization
    Administrators can now change the following theme colors:
    • Primary Color
    • Secondary Color
    • Accent Color
  2. Advanced Color Options
    Additional options for detailed customization:
    • Primary Lighter Color
    • Primary Darker Color
    • Link Color
    • Text Color
  3. Logo Management
    • Option to upload a custom logo (max aspect ration 1:7).
    • Option to upload a smaller logo that is visible when screen is smaller (max aspect ration 1:3).

Screenshoots

Regular Color Settings

image

Advanced Color Settings

image

Reset Color Option

image

How should this be tested?

General Testing

Ensure testing is conducted for every available theme.

Test 1: Theme Colors

  1. Select a theme
  2. Customize colors (Primary, Secondary, Accent)
  3. Verify that the updated colors are applied across the site

Test 2: Logo Upload

  1. Click Change LOGO
  2. Upload a logo image
  3. Crop and save the logo
    • Ensure cropping is restricted to a 1:1 or wider aspect ratio.
  4. Verify that the new logo is displayed correctly.

Test 3: Logo Small Upload

  1. Click Change Small LOGO
  2. Upload a logo image
  3. Crop and save the logo
    • Ensure cropping is restricted to a 1:1 or wider aspect ratio up to 1:3.
  4. Verify that the new logo is displayed correctly only when screen is smaller (unless Regular logo is not uplated).

Test 4: Only one logo uploaded

  1. If only a regular logo or only a smaller logo is uploaded, that logo will be applied to both wide and mobile views (test this by resizing the screen or zooming in).

Test 5: Logo Removal

  1. Click Change LOGO
  2. Click Remove Logo
  3. Confirm that the default logo reappears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant