Skip to content

feat(icon): add R language folder icon#3387

Merged
PKief merged 2 commits intomaterial-extensions:mainfrom
hugosantanna:feat/add-r-folder-icon
Mar 12, 2026
Merged

feat(icon): add R language folder icon#3387
PKief merged 2 commits intomaterial-extensions:mainfrom
hugosantanna:feat/add-r-folder-icon

Conversation

@hugosantanna
Copy link
Copy Markdown
Contributor

Description

Add a dedicated folder icon for the R programming language.

R already has a file icon in this theme, but there is no corresponding folder icon for directories named R/ or r/ — which is the standard convention in R packages and projects (the R/ directory holds all source files in every R package).

Changes

  • Added folder-r.svg (closed) and folder-r-open.svg (open)
  • Registered folderNames: ['r'] in folderIcons.ts

Icon Design

Uses the official R Foundation logo shape (gray ellipsoid + blue R letter) with flat Material Design colors:

  • Ellipsoid: Grey 600 (#757575)
  • R letter: Blue 800 (#1565c0)
  • Folder background: Light Blue 400 (#42a5f5) — matches existing folder icons

The R logo is positioned to leak out of the folder, consistent with other language folder icons (e.g., folder-python).

The data-mit-no-recolor attribute is set on the R logo group to preserve its colors when cloned.

References

Add folder icon for the R programming language, matching the official
R Foundation logo. Maps to folder name 'r'.

Closes material-extensions#3386
@github-actions github-actions bot added the icons PR with new icons label Mar 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2026

Preview

Thank you for creating a pull request. This preview shows you how your icons will look on the different themes:

Generated preview

Check how your icons fit in a 16x16 grid with our Pixel Perfect Checker by following this link.

You can find more information on how to contribute in the contribution guidelines.

@lucas-labs
Copy link
Copy Markdown
Member

lucas-labs commented Mar 7, 2026

I've been playing for a bit, trying to make this one align with our guidelines and theme style.

I used #1976d2 for the folder shape (same color the R file icon uses) and #90caf9 for the motive (see Guidelines)

This is what I got (two variations, one with the circle around the R, another without it):

image   image

Thoughts?

@hugosantanna
Copy link
Copy Markdown
Contributor Author

They are amazing! I would love to see those implemented.

@hugosantanna
Copy link
Copy Markdown
Contributor Author

I think the one with the circle-ish thing is cool. It should be default.

@SayanShankhari
Copy link
Copy Markdown
Contributor

SayanShankhari commented Mar 8, 2026

i would like erase some portions of the oval touching R and keep it close to official icon by keeping the oval.
In low res, the oval shaped ellipsoid will complement the almost invisible R's round shape.

Like the following,

@PKief
Copy link
Copy Markdown
Member

PKief commented Mar 8, 2026

Nice, it would also prefer this version with the ellipse :)

image

@hugosantanna
Copy link
Copy Markdown
Contributor Author

The ellipse not touching is super nice. I prefer that.

Co-authored-by: Lucas Colombo <lucasncolombo@gmail.com>
Signed-off-by: Lucas Colombo <lucasncolombo@gmail.com>
@lucas-labs
Copy link
Copy Markdown
Member

I updated the icons with the new versions.
What do you guys think?

@PKief
Copy link
Copy Markdown
Member

PKief commented Mar 12, 2026

I updated the icons with the new versions. What do you guys think?

I like it, thanks for improving it :)

@hugosantanna
Copy link
Copy Markdown
Contributor Author

I like it too! Thank you!

@PKief PKief merged commit 3911ea1 into material-extensions:main Mar 12, 2026
5 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

Merge Successful

Thanks for your contribution! 🎉

The changes will be part of the upcoming update on the Marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

icons PR with new icons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Icon Request]: Add folder icon for R language

4 participants