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

Closed
theopfr opened this issue Jan 12, 2025 · 2 comments
Closed

[Feat]: Allow custom theme colors #767

theopfr opened this issue Jan 12, 2025 · 2 comments
Labels

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
Copy link

stale bot commented Feb 15, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 15, 2025
@stale stale bot closed this as completed Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants