Description
Hello! Thanks for the lib, it works like a charm.
I'm trying to integrate the sketch-picker into a tailwind css project so the styling is so much different and it should support dark and light theme.
So what I did was fight against the styles that are already assigned styles like this:
@layer components {
sketch-picker {
@apply bg-neutral !important;
}
sketch-picker input {
@apply input input-xs text-neutral-content !important;
}
}
but that's obviously working against the library. so i am wondering if maybe one could somehow opt-out of the styling you provided? I am thinking perhaps a css class name that can be overwritten via an input, and the scss only applies to components of that class?
Something like:
// component.ts
SketchPickerComponent {
@Input('theme') theme = 'default'
}
// component.scss
sketch-picker-component.default {
...
}
And one could overwrite like this
<sketch-picker-component theme='myTheme'></sketch-picker-component>
and then have their custom sketch-picker-component.myTheme css rules
This should obviously not apply to the color-swatches and widgets, those should stay default. But rather the inputs and css-tables and such.
Then again, I am fairly new to angular and perhaps it is somehow possible to disable imported styles?
Let me know what you think!