Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion src/styles/theme.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import './tippy-tailwind.css';
@import 'tippy.js/dist/tippy.css' layer(components);

/* load tailwind forms plugin, used in some components */
@plugin '@tailwindcss/forms';
Expand Down Expand Up @@ -68,3 +68,29 @@
cursor: pointer;
}
}

@layer components {
.tippy-box[data-theme~='tailwind'] {
@apply border border-gray-800 bg-gray-800 text-gray-50 shadow-2xl dark:border-gray-100 dark:bg-gray-100 dark:text-gray-900;
}

/* top placement */
.tippy-box[data-theme~='tailwind'][data-placement^='top'] > .tippy-arrow {
@apply before:border-t-gray-800 dark:before:border-t-gray-100;
}

/* bottom placement */
.tippy-box[data-theme~='tailwind'][data-placement^='bottom'] > .tippy-arrow {
@apply before:border-b-gray-800 dark:before:border-b-gray-100;
}

/* left placement */
.tippy-box[data-theme~='tailwind'][data-placement^='left'] > .tippy-arrow {
@apply before:border-l-gray-800 dark:before:border-l-gray-100;
}

/* right placement */
.tippy-box[data-theme~='tailwind'][data-placement^='right'] > .tippy-arrow {
@apply before:border-r-gray-800 dark:before:border-r-gray-100;
}
}
27 changes: 0 additions & 27 deletions src/styles/tippy-tailwind.css

This file was deleted.

Loading