Skip to content

fix(ecosia): update css vars and fix missing styling on main search pages#2253

Draft
codyo-o wants to merge 7 commits into
catppuccin:mainfrom
codyo-o:ecosia-update
Draft

fix(ecosia): update css vars and fix missing styling on main search pages#2253
codyo-o wants to merge 7 commits into
catppuccin:mainfrom
codyo-o:ecosia-update

Conversation

@codyo-o

@codyo-o codyo-o commented Jun 5, 2026

Copy link
Copy Markdown

🗒 Checklist 🗒

  • I used AI (or AI-assistance) for this change.

🔧 What does this fix? 🔧

This pull request updates the variables to conform to the one used on ecosia's search pages.

Update css vars on www.ecosia.org pages and therefor fixes missing styling for:

  • searchbar
  • "featured"-button
  • some "glass" elements
  • alerts
  • (theoretical) toasts (I have never seen a toast on ecosia but the vars exist inside their style sheet)
  • probably some more elements
Before After
image image
Screenshot 2026-06-02 at 17 12 49 image
image image

Fix missing styling for other elements on www.ecosia.org pages

  • Add styling for seed icon in top right of search page
  • Add dynamic color filters for leaf background images on homepage and search pages
Before After
image image
Screenshot 2026-06-02 at 17 13 28Screenshot 2026-06-02 at 17 13 47 imageimage

Implement a few changes to align further to the catppuccin style guide

  • Change colors of links and visited links to blue and mauve instead of sapphire
  • Change --color-button-content-secondary is now text instead of accent to make it less prominent
    • Might be better to make it a bit darker to improve legibility
Before After
image image

🔍 Reproduction Steps 🔍

  • css variable changes affect elements on https://www.ecosia.org/

  • seed icon is located on the search pages in the top right corner

  • leaf backgrounds are on the homepage as well as at the bottom of the search pages

  • --color-button-content-secondary affects e.g. the text next to the seed icon and on the sign in button on the news pages

🎯 TODOs – Upcoming changes 🎯

  • Add styling for cookie banner and selection
    • The cookie banner does not use css vars for its styling
  • Fix legibility on Sign in button (esp. dark mode) e.g. on the news page

For separate PRs?

  • Add styling for blog.ecosia.org
    • blog.ecosia.org as well as some other subdomain-pages do not use the (or any) previously implemented css variables
  • Add styling for login.ecosia.org

codyo-o added 3 commits June 4, 2026 13:50
Update userstyle to use new ecosia.org css variables
Remove unused variables (vars not found on ecosia stylesheets)
Update styling to conform more to catppuccin styleguide (esp. links)
Add styling for seed icon svg in top right of ecosia search view.
- Add custom css variables (`--color-seed-icon-color-top`,`—color-seed-icon-color-bottom`) for easy (conformed) adjustment.
Add CSS filters to dynamically adapt leaf background
picture colors based on the current Catppuccin flavor and
accent color.
- Adjusts color via hue rotation to match the selected accent color and keep picture values intact.
- Adjusts saturation and brightness depending on flavor
@github-actions github-actions Bot added the ecosia Ecosia label Jun 5, 2026
codyo-o added 4 commits June 6, 2026 13:11
Reorganize theme structure into modular mixins. 
- `.search()` implements all changes needed for ecosia’s search pages (typically everything under www.ecosia.org)
  - based on `.base()`
- `.base()` is a collection of all simple variable changes including common icons 
  - uses `._common-vars()`, `._static()`, `._alerts()`, `._toasts()`, `._icons()`
- `._` mixins are ecosia’s variables grouped as they were within their own code as well. (The grouping may be unnecessary.)
  - `._static()` needs to be implemented separately as it always initialises using `latte` instead of the dynamic `@flavor`
  - `_icons()` re-assignes colors for common icons to use the adjusted css variables from `._common-vars()`.
Refactor image recoloring from filter-based hue rotation to blend-mode overlay

Fix recolored img hiding bottom page ends
Fix color overlay not showing on homepage background (::before vs ::after)
Fix img overlay spilling beyond border-radius on homepage background
Fix overlay could be completely desaturated on dark mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecosia Ecosia

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant