Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Allow custom theme colors #767

Open
theopfr opened this issue Jan 12, 2025 · 1 comment
Open

[Feat]: Allow custom theme colors #767

theopfr opened this issue Jan 12, 2025 · 1 comment

Comments

@theopfr
Copy link

theopfr commented Jan 12, 2025

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

@theopfr theopfr added enhancement New feature or request triage yet to be reviewed labels Jan 12, 2025
@orestbida orestbida removed the triage yet to be reviewed label Jan 14, 2025
@orestbida
Copy link
Owner

This is already possible, but via css-variables.

@orestbida orestbida removed the enhancement New feature or request label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants