UNPKG

geist-ui-svelte

Version:

<img src="./src/lib/assets/demo-page.png">

90 lines (71 loc) 2.13 kB
@tailwind base; @tailwind components; @tailwind utilities; /* Sets scroll bar to dark when in dark mode */ html.dark { color-scheme: dark; } /* For components that need horizontal scrolling */ .scrollbar-hide { -ms-overflow-style: none; /* Internet Explorer and Edge */ scrollbar-width: none; /* Firefox */ } .scrollbar-hide::-webkit-scrollbar { display: none; /* Chrome, Safari, and Opera */ } ::-webkit-scrollbar-corner { background: rgba(0, 0, 0, 0); } /* For Code component */ pre, code { @apply font-serif text-sm; } html.dark .shiki, html.dark .shiki span { color: var(--shiki-dark) !important; background-color: var(--shiki-dark-bg) !important; /* Optional, if you also want font styles */ font-style: var(--shiki-dark-font-style) !important; font-weight: var(--shiki-dark-font-weight) !important; text-decoration: var(--shiki-dark-text-decoration) !important; } .dark .tippy-box[data-theme~="dark"] { background-color: black; border: 1px solid rgb(38 38 38); border-radius: 4px; padding: 3px 5px; color: white; } .tippy-box[data-theme~="dark"] { background-color: white; border: 1px solid rgb(242 242 242); border-radius: 4px; padding: 3px 5px; color: black; } /* Tippy Styles */ .dark .tippy-box[data-theme~="dark"][data-placement^="top"] > .tippy-arrow::before { border-top-color: black; } .dark .tippy-box[data-theme~="dark"][data-placement^="bottom"] > .tippy-arrow::before { border-bottom-color: black; } .dark .tippy-box[data-theme~="dark"][data-placement^="left"] > .tippy-arrow::before { border-left-color: black; } .dark .tippy-box[data-theme~="dark"][data-placement^="right"] > .tippy-arrow::before { border-right-color: black; } .tippy-box[data-theme~="dark"][data-placement^="top"] > .tippy-arrow::before { border-top-color: white; } .tippy-box[data-theme~="dark"][data-placement^="bottom"] > .tippy-arrow::before { border-bottom-color: white; } .tippy-box[data-theme~="dark"][data-placement^="left"] > .tippy-arrow::before { border-left-color: white; } .tippy-box[data-theme~="dark"][data-placement^="right"] > .tippy-arrow::before { border-right-color: white; }