Skip to content
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

Windows. CSS Font Family doesn't work #238

Closed
artemKerimoff opened this issue Oct 19, 2024 · 3 comments
Closed

Windows. CSS Font Family doesn't work #238

artemKerimoff opened this issue Oct 19, 2024 · 3 comments
Labels

Comments

@artemKerimoff
Copy link

Customising the Explorer panel in VS Code. I have set the following style for it:

/* File Explorer Item Label */
.monaco-tree .monaco-tree-row .label-name,
.monaco-list .monaco-list-row
.monaco-icon-label .label-name,
.monaco-highlighted-label {
    font-family: 'Geist Mono', monospace !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #FFF !important;
}

however, even when I run the ‘enable custom css and js’ command, it's as if the Geist Mono font is not visible and the default font with monospace is set.
this is how the explorer panel looks like after running the command:
image
and it should look like this (we are talking about the font):
image

@artemKerimoff
Copy link
Author

By the way, other CSS methods work fine, for example, changing the font colour for the mtk3 class worked fine for me. the problem with font setting applies not only to the explorer class, but also to other classes, such as the same mtk3 class.

@suxscribe
Copy link

May be something with the font name, or the selector.
It states .monaco-highlighted-label in your example. But the style probably should apply to every label, not just highlighted.

Have you tried to change the font using Dev Tools?

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants