You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ To use, just put any [valid CSS color syntax](https://developer.mozilla.org/en-U
10
10
11
11
<imgsrc="example.jpg"alt="Example of the extension running for all CSS color formats"width="200">
12
12
13
+
## Features
14
+
13
15
### Color Picker
14
16
15
17
Enable the color picker setting to change a color using a color picker in live preview mode. Note that the color picker does not support opacity, and will only let you select from sRGB colors. It will attempt to preserve the existing format you have written, as well as any existing opacity.
@@ -24,6 +26,33 @@ Surround a color with square brackets (\`[\#663399]\`) to hide the color name an
24
26
25
27
There's also an option in the plugin settings to hide all color names globally.
26
28
29
+
### Custom Palettes
30
+
31
+
This plugin supports custom color palettes which you can use by enabling the setting and creating a [CSS snippet](https://help.obsidian.md/snippets) file that targets the palette names you want to support.
32
+
33
+
Enabling the setting exposes classes for every inline code block surrounded by parentheses, replacing all spaces with hyphens, and converting to lowercase. For example, \`(RAL 170 50 10)\` exposes the class `.ral-170-50-10`. If that class gets a `color` set, it will show a color inlay.
34
+
35
+
Note, the plugin detects classes that target `.css-color-inlay` only, see the example below.
0 commit comments