@duckduckgo/content-scope-scripts
    Preparing search index...
    • To enable the drawer feature for customization, change the "Settings" that are part of the initialSetup message
    • It will default to the popover menu
    • Example:

    Example InitialSetup response

    {
    "...": "...",
    "widgets": [
    { "id": "rmf" },
    { "id": "nextSteps" },
    { "id": "favorites" },
    { "id": "privacyStats" }
    ],
    "widgetConfigs": [
    { "id": "favorites", "visibility": "visible" },
    { "id": "privacyStats", "visibility": "visible" }
    ],
    "settings": {
    "customizerDrawer": {
    "state": "enabled",
    "autoOpen": false
    }
    },
    "customizer": {
    "userImages": [],
    "userColor": null,
    "theme": "dark",
    "background": { "kind": "default" },
    "defaultStyles": {
    "lightBackgroundColor": "#E9EBEC",
    "darkBackgroundColor": "#27282A"
    }
    }
    }
    {
    "...": "...",
    "customizer": {
    "userImages": [],
    "userColor": null,
    "theme": "dark",
    "background": { "kind": "default" },
    "defaultStyles": {
    "lightBackgroundColor": "#E9EBEC",
    "darkBackgroundColor": "#27282A"
    }
    }
    }
    {
    "background": { "kind": "color", "value": "color01" }
    }
    {
    "background": { "kind": "gradient", "value": "gradient01" }
    }
    {
    "background": { "kind": "hex", "value": "#cacaca" }
    }
    {
    "background": { "kind": "default" }
    }
    {
    "background": {
    "kind": "userImage",
    "value": { "id": "abc", "src": "...", "thumb": "...", "colorScheme": "light" }
    }
    }
    {
    "userImages": [{"id": "abc", "src": "...", "thumb": "...", "colorScheme": "light" }]
    }
    {
    "userColor": { "kind": "hex", "value": "#cacaca" }
    }

    or:

    {
    "userColor": null
    }
    {
    "theme": "system"
    }
    • Or, with optional defaultStyles example:
    {
    "theme": "system",
    "defaultStyles": {
    "lightBackgroundColor": "#E9EBEC",
    "darkBackgroundColor": "#27282A"
    }
    }
    {
    "background": { "kind": "color", "value": "color01" }
    }
    {
    "theme": "light"
    }
    {
    "id": "abc"
    }
    {
    "target": "userImage",
    "id": "01"
    }