mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
256 lines
8.8 KiB
CSS
256 lines
8.8 KiB
CSS
/**
|
|
* ╔══════════════════════════════════════════════════════════════════════════════╗
|
|
* ║ index.css ║
|
|
* ╠══════════════════════════════════════════════════════════════════════════════╣
|
|
* ║ Author : rgrgogu ║
|
|
* ║ Date Created : Oct. 10, 2025 ║
|
|
* ║ Date Modified : May 31, 2026 (by Kenneth Obsequio) ║
|
|
* ╠══════════════════════════════════════════════════════════════════════════════╣
|
|
* ║ Changelog ║
|
|
* ║ - Added: 'system' theme support ║
|
|
* ║ - Added: @import "shadcn/tailwind.css" support from docs ║
|
|
* ╚══════════════════════════════════════════════════════════════════════════════╝
|
|
*/
|
|
|
|
@import "tailwindcss";
|
|
@import "tw-animate-css";
|
|
@import "shadcn/tailwind.css";
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme inline {
|
|
/* From myself */
|
|
--font-geist: "Instrument Sans", sans-serif;
|
|
--breakpoint-xs: 320px;
|
|
|
|
/* white fixed */
|
|
--motion-card-hover: oklch(0.985 0 0);
|
|
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--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-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);
|
|
--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);
|
|
--animate-rippling: rippling var(--duration) ease-out;
|
|
--animate-pulse: pulse var(--duration) ease-out infinite;
|
|
/** from https://github.com/shadcn-ui/ui/issues/2053 **/
|
|
--animate-collapsible-down: collapsible-down 0.2s ease-out;
|
|
--animate-collapsible-up: collapsible-up 0.2s ease-out;
|
|
|
|
@keyframes collapsible-down {
|
|
from {
|
|
height: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
height: var(--radix-collapsible-content-height);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@keyframes collapsible-up {
|
|
from {
|
|
height: var(--radix-collapsible-content-height);
|
|
opacity: 1;
|
|
}
|
|
|
|
to {
|
|
height: 0;
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes rippling {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
100% {
|
|
transform: scale(2);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
boxShadow: 0 0 0 0 var(--pulse-color);
|
|
}
|
|
|
|
50% {
|
|
boxShadow: 0 0 0 8px var(--pulse-color);
|
|
}
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
boxShadow: 0 0 0 0 var(--pulse-color);
|
|
}
|
|
|
|
50% {
|
|
boxShadow: 0 0 0 8px var(--pulse-color);
|
|
}
|
|
}
|
|
|
|
--animate-aurora: aurora 60s linear infinite;
|
|
--color-warning-foreground: var(--warning-foreground);
|
|
--color-warning: var(--warning);
|
|
--color-success-foreground: var(--success-foreground);
|
|
--color-success: var(--success);
|
|
--color-info-foreground: var(--info-foreground);
|
|
--color-info: var(--info);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
|
|
@keyframes aurora {
|
|
from {
|
|
backgroundPosition: 50% 50%, 50% 50%;
|
|
}
|
|
|
|
to {
|
|
backgroundPosition: 350% 50%, 350% 50%;
|
|
}
|
|
}
|
|
}
|
|
|
|
:root {
|
|
--radius: 0.65rem;
|
|
--background: oklch(1 0 0);
|
|
--foreground: oklch(0.141 0.005 285.823);
|
|
--card: oklch(1 0 0);
|
|
--card-foreground: oklch(0.141 0.005 285.823);
|
|
--popover: oklch(1 0 0);
|
|
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
--primary: oklch(0.2617 0.0575 259.89);
|
|
--primary-foreground: oklch(0.97 0.014 254.604);
|
|
--secondary: oklch(0.967 0.001 286.375);
|
|
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
--muted: oklch(0.967 0.001 286.375);
|
|
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
--accent: oklch(0.967 0.001 286.375);
|
|
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
--destructive: oklch(0.577 0.245 27.325);
|
|
--border: oklch(0.92 0.004 286.32);
|
|
--input: oklch(0.92 0.004 286.32);
|
|
--ring: oklch(0.623 0.214 259.815);
|
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
--sidebar: oklch(0.985 0 0);
|
|
--sidebar-foreground: oklch(0.141 0.005 285.823);
|
|
--sidebar-primary: oklch(0.623 0.214 259.815);
|
|
--sidebar-primary-foreground: oklch(0.97 0.014 254.604);
|
|
--sidebar-accent: oklch(0.967 0.001 286.375);
|
|
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
|
|
--sidebar-border: oklch(0.92 0.004 286.32);
|
|
--sidebar-ring: oklch(0.623 0.214 259.815);
|
|
--destructive-foreground: var(--color-red-700);
|
|
--info: var(--color-blue-500);
|
|
--info-foreground: var(--color-blue-700);
|
|
--success: var(--color-emerald-500);
|
|
--success-foreground: var(--color-emerald-700);
|
|
--warning: var(--color-amber-500);
|
|
--warning-foreground: var(--color-amber-700);
|
|
}
|
|
|
|
.dark {
|
|
--background: oklch(0.17 0.035 278);
|
|
--foreground: oklch(0.97 0.01 280);
|
|
--card: oklch(0.2 0.045 280);
|
|
--card-foreground: oklch(0.97 0.01 280);
|
|
--popover: oklch(0.2 0.045 280);
|
|
--popover-foreground: oklch(0.97 0.01 280);
|
|
--primary: oklch(0.63 0.25 302);
|
|
--primary-green: oklch(79.2% 0.209 151.711);
|
|
--primary-foreground: oklch(0.98 0.012 302);
|
|
--secondary: oklch(0.25 0.04 280);
|
|
--secondary-foreground: oklch(0.97 0.01 280);
|
|
--muted: oklch(0.22 0.035 280);
|
|
--muted-foreground: oklch(0.68 0.03 280);
|
|
--accent: oklch(0.28 0.06 285);
|
|
--accent-foreground: oklch(0.97 0.01 280);
|
|
--destructive: oklch(0.704 0.191 22.216);
|
|
--border: oklch(0.55 0.08 280 / 15%);
|
|
--input: oklch(0.55 0.08 280 / 20%);
|
|
--ring: oklch(0.63 0.25 302);
|
|
--chart-1: oklch(0.63 0.25 302);
|
|
--chart-2: oklch(0.68 0.28 330);
|
|
--chart-3: oklch(0.62 0.21 260);
|
|
--chart-4: oklch(0.7 0.18 200);
|
|
--chart-5: oklch(0.75 0.19 70);
|
|
--sidebar: oklch(0.13 0.03 280);
|
|
--sidebar-foreground: oklch(0.97 0.01 280);
|
|
--sidebar-primary: oklch(0.63 0.25 302);
|
|
--sidebar-primary-foreground: oklch(0.98 0.012 302);
|
|
--sidebar-accent: oklch(0.22 0.05 280);
|
|
--sidebar-accent-foreground: oklch(0.97 0.01 280);
|
|
--sidebar-border: oklch(0.55 0.08 280 / 12%);
|
|
--sidebar-ring: oklch(0.63 0.25 302);
|
|
--destructive-foreground: var(--color-red-400);
|
|
--info: var(--color-blue-500);
|
|
--info-foreground: var(--color-blue-400);
|
|
--success: var(--color-emerald-500);
|
|
--success-foreground: var(--color-emerald-400);
|
|
--warning: var(--color-amber-500);
|
|
--warning-foreground: var(--color-amber-400);
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
font-family: var(--font-geist);
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
|
|
/* Suppress Edge/IE's native password reveal & clear icons so they don't overlap our custom eye toggle */
|
|
input[type="password"]::-ms-reveal,
|
|
input[type="password"]::-ms-clear {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Admin route: hardcoded violet accent for dark mode (temporary, reuses existing .dark violet tokens) */
|
|
.dark #philproperties-admin {
|
|
--primary: oklch(0.63 0.25 302);
|
|
--primary-foreground: oklch(0.98 0.012 302);
|
|
--ring: oklch(0.63 0.25 302);
|
|
--sidebar-ring: oklch(0.63 0.25 302);
|
|
} |