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

Is there a way to change inline code color? #161

Open
ChiareDaze opened this issue May 9, 2024 · 1 comment
Open

Is there a way to change inline code color? #161

ChiareDaze opened this issue May 9, 2024 · 1 comment

Comments

@ChiareDaze
Copy link

I would like to change inline code color but i can't find the setting.

Example: `inline code`, in my theme this line is pink and i would like to change it to blue. How can i change it?
Thank you

@LudoLogical
Copy link

A workaround for you in the meantime is to add the code below to a .css file in your .obsidian/snippets folder after replacing R, G, B, and A with the values representing your desired color, where $R, G, B \in [0, 255]$ and $A \in [0, 1]$. You can learn more about this notation here.

:not(pre) > code,
.cm-inline-code {
  background-color: rgba(R, G, B, A) !important;
}

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

No branches or pull requests

2 participants