-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MDX file icons for VSCode #330
Conversation
The icons are based on the icon in the header on https://mdxjs.com for both dark and light mode. The monochrome color scheme matches the default VSCode icon theme.
🦋 Changeset detectedLatest commit: 257510f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
I think the logo (color scheme) from https://github.com/mdx-js/.github/blob/main/image/cover.svg should be used if possible. That SVG is dark/light mode aware, so should do the trick in one go? |
Preferably, the background has one color (white in dark mode, black in light mode), the M and the “D” (arrow down) would be cut out of that shape, so transparent (a mask), and the X should be yellow. |
I like that icon, but I think it’s good to match the monochrome theme of the default VSCode icons. Personally I use Personally I like that icon, but it feels a bit out of touch with the original VSCode icon set. |
Yeah, just the letters in yellow might be good. It’s tiny tho, not sure if it’s visible enough Is it a VS Code thing that all their own icons use blue? Do we have to do that to? |
Yellow BG and black or white forefront is also similar enough to how VS code themselves display the |
Maybe “MX”, but it feels weird to drop something from our 3 letters. How do the 2 current logos you have look for you in light mode? Coming back to that in your first screenshot, the yellow pill form with black foreground actually looks okay #330 (comment) |
Can you swap the yellow back / black fore? Or what do you think about it? Also: let me know if you need help with SVG |
Yeah, the idea was to match markdown indeed. Custom icons somehow scale / pad different from the builtin icons though, so I had to make some tweaks for that. Didn’t use math, just some guesstimating.
I agree, but it comes from https://mdxjs.com.
I agree. Also a light / dark theme doesn’t determine the exact background color. There are both dark and light variations. We could make it darker for light themes.
I’m not loving these actually. I really think we should stick with one color to match the builtin icons.
I’m no hero at SVG or graphics tooling, but so far I’m managing. :) |
Thanks for looking into adding an icon @remcohaszing! re: #330 (comment)
As far as I'm aware MDX design have an official color palette or design system yet. and as @remcohaszing mentions:
It is already used in a number of spots. |
Against blue: only because it’s on the homepage, it is visible on the home page because it is the active page. And blue is the active color. Because our orange is not accessible in light mode at smaller sizes. The MDX wordmark on the website uses the foreground color of the website: black or white. And the background color (black or white) for the letters. The foreground color changes based on whether a link is currently active, to orange or blue. I don’t think in any other cases (GitHub) blue should be used relating to MDX: that was never my intention in abstracting the logo to one color and as a marker for a page.
I agree that the black background doesn’t work great. This icon will be shown on all kinds of themes, hard blank looks bad on a bunch of them probably.
How does the
The color is now live on GH, see for example the “Languages” item in the bottom right sidebar https://github.com/code-hike/codehike. |
I dicided to pick the yellow letters variant. I think this fits best with the rest of the default VSCode icons. This doesn’t have to be definitive. I just want MDX to have an icon by default that’s not the fallback icon. I also don’t really like the blue icon. |
The icons are based on the icon in the header on https://mdxjs.com for both dark and light mode. The monochrome color scheme matches the default VSCode icon theme.
I followed the
vscode-icons
contributing guidelines for processing the icons.