π Open source, privacy-first web analytics β a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
@import 'tailwindcss';
@plugin '@tailwindcss/forms';
@plugin '@tailwindcss/typography';
@theme {
/* Fonts */
--font-sans:
-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto,
'Helvetica Neue', ui-sans-serif, sans-serif, ui-sans-serif, system-ui,
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--font-mono:
ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono,
monospace;
/* Colors */
--color-gray-750: oklch(
23.11% 0.0357 262.54
); /* Converting #141d2e to OKLCH */
/* Heights */
--header-height: 60px;
--banner-height: 0px;
--header-total-height: calc(var(--header-height) + var(--banner-height));
--height-including-header: calc(100vh - var(--header-total-height));
--min-height-page: calc(100vh - 74px);
--min-height-min-footer: calc(100vh - 157px);
--min-height-including-header: calc(100vh - var(--header-total-height));
--default-transition-duration: 200ms;
/* Signature easing curve (easeOutQuint) β use for all UI animations */
--ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}
/* Custom Animations */
@keyframes ping-op {
0% {
opacity: 0.75;
}
75%,
100% {
transform: scale(2);
opacity: 0;
}
}
@keyframes slide-in-left {
from {
transform: translate3d(-100%, 0, 0);
}
to {
transform: translate3d(0, 0, 0);
}
}
@keyframes fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* Custom Animation Classes */
@layer utilities {
.animate-ping-slow {
animation: ping-op 3s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.animate-slide-in-left {
animation: slide-in-left 0.2s cubic-bezier(0.32, 0.72, 0, 1);
will-change: transform;
}
.animate-fade-in {
animation: fade-in 0.15s ease-out;
will-change: opacity;
}
.antialiased {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Animated underline on hover for nav links */
.underline-animate {
position: relative;
}
.underline-animate::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 1.5px;
transform: scaleX(0);
transform-origin: center;
transition: transform var(--default-transition-duration, 250ms) ease;
background: currentColor;
opacity: 1;
}
.underline-animate:hover::after,
.underline-animate:focus-visible::after {
transform: scaleX(1);
}
}
@custom-variant dark (&:where(.dark, .dark *));
@custom-variant light (&:where(.light, .light *));
@keyframes move-x {
0% {
transform: translateX(var(--move-x-from));
}
100% {
transform: translateX(var(--move-x-to));
}
}
/* Tooltip animations */
@keyframes tooltip-in {
from {
opacity: 0;
transform: scale(0.97);
}
}
@keyframes tooltip-out {
to {
opacity: 0;
}
}
@layer utilities {
.tooltip-content {
will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
/* Only animate delayed opens β when a sibling tooltip was recently open,
the next one opens instantly (data-state='instant-open') and must
appear with no delay and no animation. */
.tooltip-content[data-state='delayed-open'] {
animation: tooltip-in 125ms var(--ease-out-quint);
}
.tooltip-content[data-state='closed'] {
animation: tooltip-out 100ms ease-out;
}
}
/* Panel row background bars stay full-width and animate their scale so
loading a dashboard does not trigger layout on every animation frame. */
.panel-bar {
width: 100%;
transform: scaleX(var(--panel-bar-scale, 0));
transform-origin: left center;
@media (prefers-reduced-motion: no-preference) {
transition: transform 220ms var(--ease-out-quint);
@starting-style {
transform: scaleX(0);
}
}
}
/* Subscribe trial timeline: gentle, staggered fade-up on first paint.
Per-step delay is set inline via animation-delay. `both` fill keeps the
from-state during the delay so steps don't flash before animating. */
.trial-step {
@media (prefers-reduced-motion: no-preference) {
animation: trial-step-in 420ms var(--ease-out-quint) both;
}
}
}
@keyframes trial-step-in {
from {
opacity: 0;
transform: translateY(8px);
}
}
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
:root:has(.header-banner) {
--banner-height: 40px;
}
}
@layer base {
input::placeholder,
textarea::placeholder {
color: var(--color-gray-400);
}
}
/* Buttons should have a pointer cursor by default */
@layer base {
button,
[role='button'] {
cursor: pointer;
}
button:disabled,
[role='button']:disabled {
cursor: default;
}
}