Skip to content

[Feat]: Allow custom theme colors #767

@theopfr

Description

@theopfr

Description

This probably already got brought up but I didn't find anything related. It would be nice if we could set some custom colors so that the cookie consent fits better into different websites designs.

Proposed solution

Something in the lines of:

guiOptions: {
    colorTheme: {
        primaryColor: '#XXXXXX',
        primaryColorHover: '#XXXXXX',
        secondaryColor: '#XXXXXX',
        secondaryColorHover: '#XXXXXX',
        surfaceColor: '#XXXXXX',
        surfaceColorHover: '#XXXXXX',
    },
    consentModal: {
        position: 'bottom left',
        equalWeightButtons: false,
        flipButtons: false
    },
    preferencesModal: {
        layout: 'box',
        equalWeightButtons: false,
        flipButtons: false
    }
},

Or maybe just primaryButton and secondaryButton would be enough.

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions