homeio
PublikFork dari doctor-io/homeio
globals.css
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
--background: oklch(0.96 0.006 250);
--foreground: oklch(0.2 0.02 250);
--card: oklch(0.99 0.004 250 / 0.8);
--card-foreground: oklch(0.2 0.02 250);
--popover: oklch(0.99 0.004 250 / 0.96);
--popover-foreground: oklch(0.2 0.02 250);
--primary: #ff6000;
--primary-foreground: #22150F;
--secondary: oklch(0.9 0.01 250 / 0.7);
--secondary-foreground: oklch(0.28 0.02 250);
--muted: oklch(0.9 0.008 250 / 0.75);
--muted-foreground: oklch(0.45 0.02 250);
--accent: #ff6000;
--accent-foreground: oklch(0.14 0.015 250);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.98 0.01 27.325);
--border: oklch(0.76 0.01 250 / 0.55);
--input: oklch(0.9 0.01 250 / 0.75);
--ring: #ff6000;
--chart-1: #ff6000;
--chart-2: oklch(0.65 0.15 160);
--chart-3: oklch(0.55 0.12 230);
--chart-4: oklch(0.78 0.12 85);
--chart-5: oklch(0.6 0.2 340);
--radius: 0.875rem;
--sidebar: oklch(0.98 0.004 250 / 0.8);
--sidebar-foreground: oklch(0.2 0.02 250);
--sidebar-primary: #ff6000;
--sidebar-primary-foreground: oklch(0.14 0.015 250);
--sidebar-accent: oklch(0.9 0.01 250 / 0.7);
--sidebar-accent-foreground: oklch(0.28 0.02 250);
--sidebar-border: oklch(0.76 0.01 250 / 0.55);
--sidebar-ring: #ff6000;
--glass: oklch(0.98 0.004 250 / 0.9);
--glass-border: oklch(0.72 0.012 250 / 0.45);
--glass-highlight: oklch(0.2 0.01 250 / 0.05);
--system-tint-amount: 0%;
--dock: oklch(0.96 0.006 250 / 0.7);
--system-surface: color-mix(
in srgb,
var(--primary) var(--system-tint-amount),
var(--dock)
);
--system-surface-raised: color-mix(
in srgb,
var(--primary) calc(var(--system-tint-amount) * 0.5),
oklch(0.94 0.006 250 / 0.8)
);
--system-radius-panel: calc(var(--radius) + 0.9rem);
--system-radius-floating: calc(var(--radius) + 0.7rem);
--system-radius-control: calc(var(--radius) + 0.125rem);
--system-radius-hero: calc(var(--radius) + 0.725rem);
--system-radius-icon: calc(var(--radius) - 0.1rem);
--system-shadow-surface: 0 16px 36px rgba(0, 0, 0, 0.2);
--system-shadow-floating: 0 20px 48px rgba(0, 0, 0, 0.26);
--system-shadow-dock: 0 22px 64px rgba(0, 0, 0, 0.28);
--system-shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
--system-shadow-control: 0 10px 20px rgba(0, 0, 0, 0.18);
--system-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
--status-green: oklch(0.72 0.18 155);
--status-amber: oklch(0.78 0.15 80);
--status-red: oklch(0.65 0.22 25);
}
.dark {
--background: oklch(0.13 0.015 250);
--foreground: oklch(0.97 0.005 250);
--card: oklch(0.18 0.012 250 / 0.8);
--card-foreground: oklch(0.97 0.005 250);
--popover: oklch(0.18 0.015 250 / 0.9);
--popover-foreground: oklch(0.97 0.005 250);
--primary: #ff6000;
--primary-foreground: #22150F;
--secondary: oklch(0.22 0.015 250 / 0.6);
--secondary-foreground: oklch(0.88 0.01 250);
--muted: oklch(0.22 0.012 250 / 0.5);
--muted-foreground: oklch(0.65 0.02 250);
--accent: #ff6000;
--accent-foreground: oklch(0.13 0.015 250);
--destructive: oklch(0.577 0.245 27.325);
--destructive-foreground: oklch(0.977 0.025 27.325);
--border: oklch(0.35 0.02 250 / 0.35);
--input: oklch(0.22 0.015 250 / 0.5);
--ring: #ff6000;
--chart-1: #ff6000;
--chart-2: oklch(0.65 0.15 160);
--chart-3: oklch(0.55 0.12 230);
--chart-4: oklch(0.78 0.12 85);
--chart-5: oklch(0.6 0.2 340);
--sidebar: oklch(0.16 0.015 250 / 0.8);
--sidebar-foreground: oklch(0.97 0.005 250);
--sidebar-primary: #ff6000;
--sidebar-primary-foreground: oklch(0.13 0.015 250);
--sidebar-accent: oklch(0.25 0.015 250 / 0.6);
--sidebar-accent-foreground: oklch(0.97 0.005 250);
--sidebar-border: oklch(0.35 0.02 250 / 0.3);
--sidebar-ring: #ff6000;
--glass: oklch(16.034% 0.01173 242.501 / 0.9);
--glass-border: oklch(0.4 0.02 250 / 0.2);
--glass-highlight: oklch(0.97 0.005 250 / 0.06);
--system-tint-amount: 0%;
--dock: oklch(0.14 0.015 250 / 0.18);
--system-surface: color-mix(
in srgb,
var(--primary) var(--system-tint-amount),
var(--dock)
);
--system-surface-raised: color-mix(
in srgb,
var(--primary) calc(var(--system-tint-amount) * 0.5),
oklch(0.16 0.015 250 / 0.25)
);
--system-radius-panel: calc(var(--radius) + 0.9rem);
--system-radius-floating: calc(var(--radius) + 0.7rem);
--system-radius-control: calc(var(--radius) + 0.125rem);
--system-radius-hero: calc(var(--radius) + 0.725rem);
--system-radius-icon: calc(var(--radius) - 0.1rem);
--system-shadow-surface: 0 16px 36px rgba(0, 0, 0, 0.2);
--system-shadow-floating: 0 20px 48px rgba(0, 0, 0, 0.26);
--system-shadow-dock: 0 22px 64px rgba(0, 0, 0, 0.28);
--system-shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.22);
--system-shadow-control: 0 10px 20px rgba(0, 0, 0, 0.18);
--system-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.035);
--status-green: oklch(0.72 0.18 155);
--status-amber: oklch(0.78 0.15 80);
--status-red: oklch(0.65 0.22 25);
}
@theme inline {
--font-sans: "Inter", "Geist", "Geist Fallback";
--font-mono: "Geist Mono", "Geist Mono Fallback";
--color-background: var(--background);
--color-foreground: var(--foreground);
--color-card: var(--card);
--color-card-foreground: var(--card-foreground);
--color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive);
--color-destructive-foreground: var(--destructive-foreground);
--color-border: var(--border);
--color-input: var(--input);
--color-ring: var(--ring);
--color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--color-glass: var(--glass);
--color-glass-border: var(--glass-border);
--color-glass-highlight: var(--glass-highlight);
--color-status-green: var(--status-green);
--color-status-amber: var(--status-amber);
--color-status-red: var(--status-red);
/* Custom type scale — 11px utility for dense labels, badges, and log output */
--text-2xs: 0.6875rem;
--text-2xs--line-height: 1.4;
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}
/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
* {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
:root[data-desktop-animations="off"] * {
transition: none !important;
animation: none !important;
}
@keyframes homeio-breathe {
0%,
100% {
transform: scale(1);
}
18% {
transform: scale(1.035);
}
24% {
transform: scale(1.015);
}
34% {
transform: scale(1.05);
}
48% {
transform: scale(1.01);
}
70% {
transform: scale(0.985);
}
}
@keyframes homeio-breathe-glow {
0%,
100% {
opacity: 0.7;
box-shadow:
0 28px 70px rgba(0, 0, 0, 0.45),
0 0 0 rgba(56, 189, 248, 0);
}
34% {
opacity: 1;
box-shadow:
0 32px 84px rgba(0, 0, 0, 0.5),
0 0 48px rgba(56, 189, 248, 0.18);
}
70% {
opacity: 0.82;
box-shadow:
0 26px 64px rgba(0, 0, 0, 0.42),
0 0 24px rgba(56, 189, 248, 0.08);
}
}
/* Connection lost screen: rings leave the logo like a signal looking for the
server, the screen fades in over the desktop, and the badge pops when
Homeio answers again. */
@keyframes homeio-signal-ripple {
0% {
transform: scale(0.92);
opacity: 0;
}
12% {
opacity: 0.55;
}
100% {
transform: scale(2.35);
opacity: 0;
}
}
@keyframes homeio-connection-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes homeio-connection-rise {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes homeio-badge-pop {
0% {
transform: scale(0.4);
opacity: 0;
}
60% {
transform: scale(1.12);
opacity: 1;
}
100% {
transform: scale(1);
}
}
@layer utilities {
/* Subtle noise/grain texture for icon surfaces — gives a tactile, physical feel */
.grain-overlay {
position: relative;
}
.grain-overlay::after {
content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
opacity: 0.035;
mix-blend-mode: overlay;
z-index: 1;
}
.system-surface {
@apply relative overflow-hidden border border-white/[0.09] bg-[var(--system-surface)];
backdrop-filter: blur(40px) saturate(160%);
border-radius: var(--system-radius-panel);
box-shadow:
var(--system-shadow-surface),
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.system-floating-surface {
@apply relative overflow-hidden border border-white/[0.09] bg-[var(--system-surface)];
backdrop-filter: blur(40px) saturate(160%);
border-radius: var(--system-radius-floating);
box-shadow:
var(--system-shadow-floating),
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
.system-dock-surface {
@apply relative overflow-hidden border border-white/[0.09] bg-[var(--system-surface)];
backdrop-filter: blur(40px) saturate(160%);
border-radius: var(--system-radius-panel);
box-shadow:
var(--system-shadow-dock),
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}
.system-raised-surface {
@apply border border-white/6 bg-[var(--system-surface-raised)];
backdrop-filter: blur(20px) saturate(140%);
border-radius: var(--system-radius-control);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.system-icon-surface {
@apply border border-white/8 bg-[var(--system-surface-raised)];
backdrop-filter: blur(20px) saturate(140%);
border-radius: var(--system-radius-icon);
box-shadow: var(--system-shadow-inset);
}
.system-soft-surface {
@apply relative overflow-hidden border border-white/8 bg-black/18 backdrop-blur-2xl;
border-radius: var(--system-radius-panel);
box-shadow: var(--system-shadow-soft);
}
.system-hero-surface {
@apply relative border border-white/8 bg-black/18 backdrop-blur-2xl;
border-radius: var(--system-radius-hero);
box-shadow: var(--system-shadow-soft);
}
.system-pill-surface {
@apply rounded-full border border-white/8 bg-black/18 backdrop-blur-2xl;
}
.system-keycap-surface {
@apply border border-white/10 bg-black/18;
border-radius: var(--radius-sm);
}
.system-error-capsule {
@apply inline-flex items-center gap-2 rounded-full border border-status-red/18 bg-black/26 px-3.5 py-2 text-left backdrop-blur-xl;
box-shadow: var(--system-shadow-surface);
}
.system-primary-action {
@apply bg-primary text-primary-foreground;
border-radius: var(--system-radius-control);
box-shadow: var(--system-shadow-control);
}
.animate-homeio-breathe {
animation: homeio-breathe 3.2s ease-in-out infinite;
transform-origin: center;
will-change: transform;
}
.animate-homeio-breathe-glow {
animation: homeio-breathe-glow 3.2s ease-in-out infinite;
will-change: opacity, box-shadow;
}
.animate-homeio-signal-ripple {
animation: homeio-signal-ripple 3.6s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
will-change: transform, opacity;
}
.animate-homeio-connection-fade-in {
animation: homeio-connection-fade-in 420ms ease-out both;
}
.animate-homeio-connection-rise {
animation: homeio-connection-rise 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.animate-homeio-badge-pop {
animation: homeio-badge-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@media (prefers-reduced-motion: reduce) {
.animate-homeio-signal-ripple {
animation: none;
opacity: 0;
}
}
}