Add Danger theme for tippy

This commit is contained in:
philipp lang 2024-10-29 00:20:22 +01:00
parent d9263d7534
commit b69b85cc4f
1 changed files with 22 additions and 0 deletions

View File

@ -19,3 +19,25 @@
.tippy-box[data-theme~='primary'] > .tippy-svg-arrow {
fill: theme('colors.primary.800');
}
.tippy-box[data-theme~='danger'] {
@apply bg-red-800 text-red-100 shadow-lg;
}
.tippy-box[data-theme~='danger'][data-placement^='top'] > .tippy-arrow:before {
border-top-color: theme('colors.red.800');
}
.tippy-box[data-theme~='danger'][data-placement^='bottom'] > .tippy-arrow:before {
border-bottom-color: theme('colors.red.800');
}
.tippy-box[data-theme~='danger'][data-placement^='left'] > .tippy-arrow:before {
border-left-color: theme('colors.red.800');
}
.tippy-box[data-theme~='danger'][data-placement^='right'] > .tippy-arrow:before {
border-right-color: theme('colors.red.800');
}
.tippy-box[data-theme~='danger'] > .tippy-backdrop {
background-color: theme('colors.red.800');
}
.tippy-box[data-placement='top-end'] > .tippy-arrow {
@apply !transform-none !left-auto right-4;
}