Skip to content

Commit 7d68e0f

Browse files
committed
add color style object to description colors
1 parent 6f8e361 commit 7d68e0f

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add color styles object in block colors settings. @danalvrz

packages/volto-highlight-block/src/index.js

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,46 @@ import './theme/highlight.scss';
66
import './theme/image-widget.scss';
77

88
const CONTENT_COLORS = [
9-
{ name: 'highlight-custom-color-1', label: 'Medium Blue' },
10-
{ name: 'highlight-custom-color-2', label: 'Light Orange' },
11-
{ name: 'highlight-custom-color-3', label: 'Light Green' },
12-
{ name: 'highlight-custom-color-4', label: 'Blue' },
13-
{ name: 'highlight-custom-color-5', label: 'Green' },
9+
{
10+
name: 'highlight-custom-color-1',
11+
label: 'Medium Blue',
12+
style: {
13+
'--theme-color': '#55b8da',
14+
'--theme-foreground-color': '#000',
15+
},
16+
},
17+
{
18+
name: 'highlight-custom-color-2',
19+
label: 'Blue',
20+
style: {
21+
'--theme-color': '#006489',
22+
'--theme-foreground-color': '#f00',
23+
},
24+
},
25+
{
26+
name: 'highlight-custom-color-3',
27+
label: 'Light Orange',
28+
style: {
29+
'--theme-color': '#fddf63',
30+
'--theme-foreground-color': '#000',
31+
},
32+
},
33+
{
34+
name: 'highlight-custom-color-4',
35+
label: 'Light Green',
36+
style: {
37+
'--theme-color': '#c9d465',
38+
'--theme-foreground-color': '#000',
39+
},
40+
},
41+
{
42+
name: 'highlight-custom-color-5',
43+
label: 'Green',
44+
style: {
45+
'--theme-color': '#7da048',
46+
'--theme-foreground-color': '#000',
47+
},
48+
},
1449
];
1550

1651
const applyConfig = (config) => {

0 commit comments

Comments
 (0)