Skip to content

feat: add Catppuccin Mocha and One Dark themes - #7845

Merged
JhaSourav07 merged 8 commits into
JhaSourav07:mainfrom
AnkitaKumariii:feat-7832-add-themes
Jul 28, 2026
Merged

feat: add Catppuccin Mocha and One Dark themes#7845
JhaSourav07 merged 8 commits into
JhaSourav07:mainfrom
AnkitaKumariii:feat-7832-add-themes

Conversation

@AnkitaKumariii

Copy link
Copy Markdown
Contributor

Description

Fixes #7832

Added two highly requested developer themes to the gallery:

  • Catppuccin Mocha: A warm, elegant dark theme with pastel accents.
  • One Dark: The classic, iconic Atom-inspired dark theme.

Both themes pass WCAG AA contrast standards and provide excellent aesthetics.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

Catppuccin Mocha

catppuccin_mocha

One Dark

one_dark

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter. (Note: The README delegates to THEMES.md, which has been fully updated!)
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

@AnkitaKumariii is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jul 9, 2026
@AnkitaKumariii
AnkitaKumariii force-pushed the feat-7832-add-themes branch 2 times, most recently from 4854c47 to 15bd973 Compare July 9, 2026 03:26
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/3952-[hash].js 7.47 KB 7.42 KB +0.06 KB (+0.75%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 4052.60 KB 4052.50 KB +0.10 KB (+0.00%)
Total CSS 338.94 KB 338.94 KB 0 B

@AnkitaKumariii

AnkitaKumariii commented Jul 10, 2026

Copy link
Copy Markdown
Contributor Author

Ready for review! Could a maintainer please authorize the Vercel deployment? @Aamod007

@Aamod007

Copy link
Copy Markdown
Collaborator

Ready for review! Could a maintainer please authorize the Vercel deployment? @Aamod007

you dont need to worry about vercel authorization

@Aamod007 Aamod007 added mentor:Aamod007 level:beginner Small changes Usually isolated fixes or simple UI/text updates. quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements labels Jul 10, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work adding the Catppuccin Mocha and One Dark themes! Giving users more rich customization options significantly enhances the customization studio experience. The color variables you chose are perfectly aligned with the themes. Note that I am leaving a neutral review because there is currently a repository-level Vercel deployment block preventing full pipeline success, but your feature implementation looks fantastic!

Labels assigned:

  • \level:beginner: Adding predefined theme constants.
  • \quality:clean: Very clean additions to the theme array.
  • \ ype:feature: Adds new customization themes.

@AnkitaKumariii

Copy link
Copy Markdown
Contributor Author

@Aamod007 change of merge?

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic additions! Both Catppuccin Mocha and One Dark are extremely popular, elegant themes that look great and meet our WCAG AA contrast standards. Thanks for ensuring the gallery stays updated. Approved!

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding Catppuccin Mocha and One Dark themes. Defining these in themes.ts expands the customization options well.

Copilot AI review requested due to automatic review settings July 19, 2026 11:06
@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jul 19, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds two new preset themes (Catppuccin Mocha and One Dark) to CommitPulse’s SVG theme registry and updates the theme documentation and tests to reflect the new options.

Changes:

  • Added catppuccin_mocha and one_dark to the exported themes map (including negative colors).
  • Updated THEMES.md gallery and preview sections to include the two new themes.
  • Updated theme tests to include the new keys and adjust the expected theme count.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
THEMES.md Documents the two new theme slugs and adds preview gallery entries.
lib/svg/themes.ts Registers the new theme palettes in the server-side theme registry.
lib/svg/themes.test.ts Updates theme-count expectations and expected theme keys list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread THEMES.md Outdated
Comment thread lib/svg/themes.test.ts Outdated
Comment thread lib/svg/themes.test.ts
Comment thread lib/svg/themes.ts Outdated
AnkitaKumariii and others added 2 commits July 19, 2026 16:39
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding these beautiful themes! Both Catppuccin Mocha and One Dark are fantastic additions to the gallery.

However, there are a couple of issues preventing this from being merged:

  1. Your branch currently has merge conflicts with the \main\ branch (indicated by the
    eeds-rebase\ label). Please rebase your branch on the latest \main\ to resolve these conflicts.
  2. The CI checks are failing on the \Format · Lint · Typecheck · Test\ step because the new code in \lib/svg/themes.ts\ and \lib/svg/themes.test.ts\ is missing indentation. Please run
    pm run format\ locally on your machine to fix the formatting before pushing.

Once you've resolved the conflicts and the CI passes, we can get this merged!

Label Justification:

  • \level:beginner: Adding new themes to the constants and tests is a great beginner issue.
  • \quality:clean: Applied as default pending full review.
  • \ ype:feature: Adds new theme presets.
  • \mentor:Aamod007: Assigned as required.

AnkitaKumariii added a commit to AnkitaKumariii/commitpulse that referenced this pull request Jul 23, 2026
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jul 23, 2026
@AnkitaKumariii

AnkitaKumariii commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

@JhaSourav07 @Aamod007, All the conflict resolved now you can merge this.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Hey @AnkitaKumariii, this pull request has been inactive for 3 days. It will be automatically closed in 2 days if no further activity occurs.

If you are still working on this, please push your latest changes or leave a comment to keep it active.

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New commits add the theme definitions, update THEMES.md, and fix mock fetch in EditorPanel tests. The Catppuccin Mocha and One Dark themes look great — the color values are faithful to both original palettes.

CI is failing — please check the logs and push fixes.

Label update: level:intermediate — 8 files with theme definitions, documentation, and test adjustments.

@Aamod007 Aamod007 added level:intermediate Moderate complexity tasks and removed level:beginner Small changes Usually isolated fixes or simple UI/text updates. labels Jul 27, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewing: the only CI failure was Vercel authorization (not code-related). All code checks pass. The Vercel deploy auth is a repo-level config issue. Approving.

@AnkitaKumariii

Copy link
Copy Markdown
Contributor Author

@JhaSourav07 All code checks pass ✅. The only CI failure is the Vercel deployment authorization, which requires the maintainer to configure the VERCEL_TOKEN, VERCEL_ORG_ID, and VERCEL_PROJECT_ID secrets in the repo settings.

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 28, 2026
@JhaSourav07
JhaSourav07 merged commit c1e42ec into JhaSourav07:main Jul 28, 2026
6 of 7 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @AnkitaKumariii! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points gssoc:needs-rebase level:intermediate Moderate complexity tasks mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add popular developer themes (Catppuccin Mocha & One Dark)

4 participants