Skip to content

feat(themes): add "radical" as an alias for "redical" - #246

Merged
Kshitij978 merged 2 commits into
Ashutosh00710:mainfrom
mado-m:add-radical-alias
May 17, 2026
Merged

feat(themes): add "radical" as an alias for "redical"#246
Kshitij978 merged 2 commits into
Ashutosh00710:mainfrom
mado-m:add-radical-alias

Conversation

@mado-m

@mado-m mado-m commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR adds radical as an alias for the existing redical theme. Both names map to the same colors, so no existing user is broken.

Background

The redical theme appears to have been introduced as a misspelling of radical (its color palette matches the radical theme of anuraghazra/github-readme-stats exactly: #141321 / #fe428e / #a9fef7 / #f8d847).

A previous attempt to rename it (#236) was closed because renaming would break users who already configured theme=redical. This PR takes a different approach: keep redical working forever, while letting new users discover and use the canonical name radical.

Changes

  • src/styles/themes.ts: add a case 'radical': fall-through next to redical, with a comment explaining the history
  • __test__/themes.test.ts: add an assertion that radical returns the same colors as redical
  • THEMES.md: list radical in the theme table (sharing the redical.svg preview since the colors are identical)
  • index.html / script.js: expose radical in the web preview UI

Test plan

  • npx jest __test__/themes.test.ts — passes (1 test, 23 assertions)
  • No behavioral change for existing theme=redical users
  • Reviewer to confirm the wording in themes.ts reflects the intended position

Thanks for maintaining this project — I use it on my own profile README (github.com/mado-m/mado-m) and it has been great. Hopefully this small alias makes it a bit easier for newcomers without disrupting anyone.

The "redical" theme appears to have been introduced as a misspelling of
"radical" (its color palette matches the radical theme of
anuraghazra/github-readme-stats exactly). A previous rename attempt
(Ashutosh00710#236) was closed to avoid breaking users who already configured
theme=redical.

This change keeps "redical" working as before and adds "radical" as a
fall-through alias with the same colors, so newcomers can discover the
canonical name without disrupting existing users.
@vercel

vercel Bot commented May 5, 2026

Copy link
Copy Markdown

@mado-m is attempting to deploy a commit to the ashutosh00710's projects Team on Vercel.

A member of the Team first needs to authorize it.

@mado-m

mado-m commented May 5, 2026

Copy link
Copy Markdown
Contributor Author

Also — I'm using this on my profile README (mado-m/mado-m) and it has been great. Thanks for the work you've put into this project!

@mado-m mado-m changed the title Add "radical" as an alias for "redical" theme feat(themes): add "radical" as an alias for "redical" May 5, 2026
@mado-m

mado-m commented May 14, 2026

Copy link
Copy Markdown
Contributor Author

@Ashutosh00710 Gentle ping on this — would you have a chance to take a look when you get a moment? Happy to adjust anything if needed. Thanks!

@Kshitij978
Kshitij978 self-requested a review May 15, 2026 11:05

@Kshitij978 Kshitij978 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.

@mado-m Thanks for adding backward compatibility support for redical.

I requested changes mainly around exposing both redical and radical as separate public themes. Since both map to the same theme, this creates a UX issue where users may assume they are different.

I think redical should remain only as an internal compatibility alias, while radical stays the single public theme name.

Comment thread index.html Outdated
@@ -118,6 +118,7 @@ <h1 class="heading">GitHub Readme Activity Graph</h1>
<option value="rogue">Rogue</option>
<option value="xcode">Xcode</option>
<option value="redical">Redical</option>

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.

Let's expose only the canonical radical theme publicly and keep redical only as a backward compatibility alias internally. Please remove this line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 8c4357f: radical is now the only public theme name, and redical remains accepted internally in selectColors for backward compatibility.

Comment thread script.js Outdated
@@ -29,6 +29,7 @@ const themes = {
rogue: { bgColor: '#172030', line: '#b18bb1', point: '#c6797e', color: '#a3b09a' },
xcode: { bgColor: '#202124', line: '#c4e3ff', point: '#ff8070', color: '#fcfcfa' },
redical: { bgColor: '#141321', line: '#fe428e', point: '#f8d847', color: '#a9fef7' },

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.

Same concern as @index.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 8c4357f: radical is now the only public theme name, and redical remains accepted internally in selectColors for backward compatibility.

Comment thread THEMES.md Outdated
| Name | Preview |
| :--------------------: | :----------------------------------------------------------------: |
| **radical** | <img src="./asset/redical.svg" height=250 alt="graph"/> |
| **redical** | <img src="./asset/redical.svg" height=250 alt="graph"/> |

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.

Same concern as @index.html

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 8c4357f: radical is now the only public theme name, and redical remains accepted internally in selectColors for backward compatibility.

@mado-m
mado-m force-pushed the add-radical-alias branch 2 times, most recently from 0ae4a77 to 8c4357f Compare May 15, 2026 17:38
@mado-m
mado-m requested a review from Kshitij978 May 15, 2026 17:40
@mado-m
mado-m force-pushed the add-radical-alias branch from 8c4357f to 808f636 Compare May 15, 2026 17:44
@Kshitij978
Kshitij978 merged commit 0962e94 into Ashutosh00710:main May 17, 2026
1 of 4 checks passed
AngryPacifist pushed a commit to AngryPacifist/github-readme-activity-graph that referenced this pull request Aug 6, 2026
AngryPacifist pushed a commit to AngryPacifist/github-readme-activity-graph that referenced this pull request Aug 6, 2026
AngryPacifist added a commit to AngryPacifist/github-readme-activity-graph that referenced this pull request Aug 6, 2026
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