I am integrating a date picker component in my tailwindcss app, and to do that I have to add the css and javascript CDN links. The problem now is the css gotten from the CDN is overriding my own css thereby messing up my app. Is there a way to make the css gotten from the CDN to just apply to the datepicker component?
Can't see your code but you should be able to revert the non-datepicker styles like this:
*:not(.date-picker, .date-picker *) {
all: revert;
}
Set all properties to browser default for that element, on all elements that are not .date-picker or any descendant of .date-picker