Color Palette Settings
Release 2.13.0 and above.
Configure the color palette of the color picker.
| Default | Configuration 1 | |
|---|---|---|
| desktop | ||
| mobile | ||
| Default | Configuration 1 |
How to Configure
editor.colorSet.desktop allows up to 7 colors, and editor.colorSet.mobile allows up to 4 colors.
If fewer colors than the maximum are set, the remaining slots are displayed as blank.
Colors can be specified as rgb ("rgb(255, 0, 0)"), hex ("#FF0000"), or preset color names ("red").
// synapeditor.config.js
{
'editor.colorSet.desktop': ['#FF0000', '#FFA500', '#FFFF00', '#008000', '#0000FF', '#4B0082', '#800080'],
'editor.colorSet.mobile': ['#FF0000', '#FFFF00', '#008000', '#0000FF']
}