Skip to content

Revert "Feat green day"#2846

Open
atharvadeosthale wants to merge 3 commits intomainfrom
revert-2843-feat-green-day
Open

Revert "Feat green day"#2846
atharvadeosthale wants to merge 3 commits intomainfrom
revert-2843-feat-green-day

Conversation

@atharvadeosthale
Copy link
Copy Markdown
Member

Reverts #2843

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps bot commented Apr 1, 2026

Greptile Summary

This PR reverts #2843 ("Feat green day"), which had introduced a temporary green brand theme to the Appwrite website (likely for a St. Patrick's Day or similar event). The revert cleanly undoes all green-themed changes across 43 files.

Key changes undone by this revert:

  • Brand switching logic removedBrandTheme type, getPreferredBrandTheme, isBrandTheme, applyBrandTheme, and MutationObserver-based sync helpers are removed from +layout.svelte, Main.svelte, Docs.svelte, FooterNav.svelte, and site-footer.svelte
  • CSS variable overrides removedbody.brand-green and body.brand-pink blocks are stripped from app.css and _colors.scss; brand-agnostic helper variables (--web-color-button-primary, --web-color-brand-rgb, image filter variables) are also removed
  • Hardcoded pink colors restored_button.scss, _badges.scss, _card.scss, _hero-banner-button.scss, and _side-nav.scss revert from dynamic CSS variable references back to hardcoded rgba/hsl pink values
  • Green SVG assets deletedappwrite-green.svg, appwrite-light-green.svg, and logo-green.svg are removed
  • HTML/body class cleaned up — the inline brand-green class and the localStorage-based brand-theme script in app.html are removed
  • Pricing page unwrapped — the pricing-brandable wrapper div is removed, restoring the original markup structure with hardcoded gradient colors

Confidence Score: 5/5

  • This is a clean, mechanical revert with no logical issues — safe to merge.
  • The PR is a straight revert of a feature branch with no partial or cherry-picked changes. All green-themed CSS, JS logic, Svelte state/observers, and static assets are cleanly removed and the original pink brand defaults are restored. No new logic is introduced, and no issues were found in the diff.
  • No files require special attention.

Important Files Changed

Filename Overview
src/routes/+layout.svelte Removes BrandTheme type, getPreferredBrandTheme, isBrandTheme, and applyBrandTheme functions, and all brand-green CSS filter/image-tinting rules (~140 lines removed)
src/app.html Removes brand-green class from body and the brand-theme localStorage script block
src/app.css Removes .brand-green and .brand-pink CSS variable overrides; removes --brand-accent-rgb variable from root
src/scss/1-css-variables/_colors.scss Removes brand helper variables (--web-color-brand-rgb, --web-color-button-primary, image filters) and the body.brand-pink / body.brand-green overrides
src/scss/6-elements/_button.scss Reverts --web-color-button-primary CSS variable references back to hardcoded pink rgba/hsl values throughout all button states
src/scss/abstract/mixins/_checked-badge.scss Restores the original 24px badge icon with embedded SVG, reverting the 20px circle-badge introduced in the green-day feature
src/lib/layouts/Main.svelte Removes brandTheme reactive state, syncBrandTheme, MutationObserver, products-brandable class, and isProductsPage derived variable; restores hardcoded logo paths
src/lib/layouts/Docs.svelte Removes brandTheme state, dynamic logo derived stores, syncBrandTheme, and MutationObserver; restores static logo src paths
src/lib/components/FooterNav.svelte Removes syncBrandLogo MutationObserver logic and restores the static appwrite.svg logo path

Reviews (3): Last reviewed commit: "add mongo sprite" | Re-trigger Greptile

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.

2 participants