how to change text color in obsidian

How to Change Text Color in Obsidian

By Sarah Harris
AD

Transforming the text color in Obsidian doesn't require complex coding or deep knowledge of the software. This primer explains how to change text color in Obsidian, a powerful note-taking and knowledge management application, in a simple and straightforward manner.

Obsidian uses markdown to style text. While it doesn't support changing text color directly, we can utilize an HTML-style inline CSS to achieve the desired effect. Let's explore how to do this.

Understanding Inline CSS in Obsidian

Obsidian supports inline CSS for a variety of styling options, including text color. Understanding how to apply inline CSS is the first step in changing text color in Obsidian.

AD
Three Obsidian links worth knowing
Three Obsidian links worth knowing
Customize ANY color on Notion
Customize ANY color on Notion
NEW Obsidian HTML - Creating Custom Text Styles
NEW Obsidian HTML - Creating Custom Text Styles

In markdown, to change the color of a text, you enclosure it in a span tag and apply a CSS style to it. Here's the basic syntax: `Text to color`

Selecting a Color for Your Text

You can choose from a wide range of colors or use the color's hex code. For instance, to color your text red, you would enter `Your text here` in your notes. To use a specific color, replace "color" with the desired color.

How to Add a Text Editing Menu to Obsidian With cMenu
How to Add a Text Editing Menu to Obsidian With cMenu
How to use Obsidian to write a fantasy novel
How to use Obsidian to write a fantasy novel
a purple and black poster with information on it
a purple and black poster with information on it

For even more color options, you can use the color's hexadecimal code. For example, to color your text black, you would enter `Your text here`. Replace the "#000000" with your chosen hex color code.

Applying the Styling to Your Text

Once you've decided on your color, simply replace "Your text here" with the text you want to change the color of. Here's how to do it in Obsidian:

AD

1. Click where you want to insert the styled text in your note.

an image of the words heading and heading on black background with colorful text that reads heading, heading 1 heading 2 heading 3 heading 4 heading 5 heading 6 heading
an image of the words heading and heading on black background with colorful text that reads heading, heading 1 heading 2 heading 3 heading 4 heading 5 heading 6 heading
How to Install Themes in Obsidian
How to Install Themes in Obsidian
How to Type Colored Text on Discord (Copy & Paste)
How to Type Colored Text on Discord (Copy & Paste)
The 10 Best Obsidian Themes
The 10 Best Obsidian Themes
How to Add a Text Editing Menu to Obsidian With cMenu
How to Add a Text Editing Menu to Obsidian With cMenu
Two Claude x Obsidian Tweaks That Are Actually Useful
Two Claude x Obsidian Tweaks That Are Actually Useful

2. Type `` and then insert your chosen color or hex code.

3. Type the text you want to style.

AD

4. Close the span tag by typing ``.

Button Plugin CSS question
Button Plugin CSS question
Obsidian | A Better Way to Analyze Text
Obsidian | A Better Way to Analyze Text
How to Install Themes in Obsidian
How to Install Themes in Obsidian

Applying Text Color to More than One Sentence

If you want to apply the same color to more than one sentence, you'll need to apply a class to the span tag and create a CSS rule in Obsidian's settings.

This method allows you to change the color of your text across multiple notes without retyping the same color styling. However, this requires a basic understanding of CSS and Obsidian's settings.

AD

But keep in mind, while text color modification adds visual hierarchy and emphasis, overuse can make your notes look disorganized. Use text color sparingly, only where it enhances the clarity and readability of your notes.

AD