Color Palette Settings

Release 2.13.0 and above.

Configure the color palette of the color picker.

<table> <tbody> <tr> <th>desktop</th> <td>

Default desktop palette

</td> <td>

Custom desktop palette

</td> </tr> <tr> <th></th> <th>Default</th> <th>Configuration 1</th> </tr> <tr> <th>mobile</th> <td>

Default mobile palette

</td> <td>

Custom mobile palette

</td> </tr> <tr> <th></th> <th>Default</th> <th>Configuration 1</th> </tr> </tbody> </table>

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']
}