Skip to content

[MKT-1141]feat/change website to darkmode - components - #2266

Merged
internxt-yu merged 1 commit into
feat/darkmode-webfrom
feat/darkmode-web-components
Nov 2, 2026
Merged

internxt-yu merged 1 commit into
feat/darkmode-webfrom
feat/darkmode-web-components

Conversation

@internxt-yu

@internxt-yu internxt-yu commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The changes are:

  1. Theme.config.ts, where is defined the global darkmode state and the list of excluded path for pages to be in darkmode.
  2. Tailwind.config.ts, changed the darkmode to "selector" so Tailwind's dark variant follows the dark class in html, and it activates the darkmode in each pages. The withVar and fullVar build the value string like: withVar('bg-white') to rgb(var(--bg-white) / ) tat can be used directly as a Tailwind colour value and flipColor builds colors from theme("colors") replacing only the values that change in darkmode defined in global.css, the rest of the palette keeps its fixed values.
  3. globals.scss: defines colours of the themes.
  4. _document.tsx: created to make the darkmode is rendered in html so the user won't see the white backgroud before the useEffect printing the darkmode.
  5. Navbar and ItemsNavigation: added the black friday link.
  6. Layout, top banner, _app.tsx: added the top banner to layout and set it's openend value to true
  7. cookies banner: change it's colour in darkmode.
  8. index.tsx and herosection of home page: obtaine the active campaign and changes its title and tags.
  9. modifications in various components to make them adapt the darkmode change.

@internxt-yu internxt-yu self-assigned this Nov 2, 2026
@internxt-yu
internxt-yu added this pull request to stack #2267 November 2, 2026 11:34
@internxt-yu internxt-yu added the enhancement New feature or request label Nov 2, 2026
@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
website Ready Ready Preview Nov 2, 2026 11:34am UTC

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
website a089380 Commit Preview URL

Branch Preview URL
Nov 02 2026, 11:12 AM

@internxt-yu
internxt-yu requested a review from xabg2 November 2, 2026 11:38
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@internxt-yu
internxt-yu merged commit dcb085f into main Nov 2, 2026
10 of 13 checks passed
@internxt-yu
internxt-yu deleted the feat/darkmode-web-components branch November 2, 2026 13:04

This branch was successfully deployed

1 active deployment
Preview — a0893808 Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants