@import "tippy.js/dist/tippy"; @import "tippy.js/dist/border"; .tippy-box[data-theme~="tooltip"] { @apply text-xs opacity-90; background-color: var(--lookbook-tooltip); color: var(--lookbook-tooltip-text); &[data-placement^="top"] > .tippy-arrow::before { border-top-color: var(--lookbook-tooltip); } &[data-placement^="bottom"] > .tippy-arrow::before { border-bottom-color: var(--lookbook-tooltip); } &[data-placement^="left"] > .tippy-arrow::before { border-left-color: var(--lookbook-tooltip); } &[data-placement^="right"] > .tippy-arrow::before { border-right-color: var(--lookbook-tooltip); } } .tippy-box[data-theme~="menu"] { border: 1px solid theme("colors.gray.300"); @apply bg-white text-gray-600 shadow-lg; & > .tippy-content { @apply rounded p-0 overflow-hidden; } &[data-placement^="top"] > .tippy-arrow::before { border-top-color: white; } &[data-placement^="bottom"] > .tippy-arrow::before { border-bottom-color: white; } &[data-placement^="left"] > .tippy-arrow::before { border-left-color: white; } &[data-placement^="right"] > .tippy-arrow::before { border-right-color: white; } }