chore: initial commit of HouseholdBudgetBook (backend, frontend, desktop)
This commit is contained in:
commit
4a5db3f1f9
167 files changed
+21732
No files matched your search
@@ -0,0 +1,325 @@
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-background text-foreground antialiased;
|
||||
background:
|
||||
radial-gradient(circle at 18% -12%, rgba(217, 184, 111, 0.12), transparent 32rem),
|
||||
radial-gradient(circle at 86% 8%, rgba(56, 211, 159, 0.08), transparent 26rem),
|
||||
linear-gradient(135deg, #090b0f 0%, #0d1117 46%, #080a0d 100%);
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
html {
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
::selection {
|
||||
@apply bg-primary/30 text-foreground;
|
||||
}
|
||||
}
|
||||
|
||||
@layer components {
|
||||
.premium-panel {
|
||||
@apply border border-border/80 bg-card/90 shadow-[0_18px_60px_rgba(0,0,0,0.28),inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur;
|
||||
}
|
||||
|
||||
.premium-field {
|
||||
@apply border-input bg-[#0c1016] text-foreground placeholder:text-muted focus:border-primary focus:ring-primary/40;
|
||||
}
|
||||
|
||||
.premium-segment {
|
||||
@apply border border-border/80 bg-[#0c1016] shadow-inner shadow-black/30;
|
||||
}
|
||||
|
||||
.app-page {
|
||||
@apply max-w-6xl space-y-6;
|
||||
}
|
||||
|
||||
.app-page-compact {
|
||||
@apply max-w-6xl space-y-4;
|
||||
}
|
||||
|
||||
.app-toolbar {
|
||||
@apply flex flex-wrap items-center gap-3 rounded-lg border border-border/80 bg-card/90 p-3 shadow-[0_18px_60px_rgba(0,0,0,0.28),inset_0_1px_0_rgba(255,255,255,0.04)] backdrop-blur;
|
||||
}
|
||||
|
||||
.app-stack {
|
||||
@apply space-y-4;
|
||||
}
|
||||
|
||||
.app-section-title {
|
||||
@apply flex items-center gap-2 text-sm font-medium;
|
||||
}
|
||||
|
||||
.app-section-icon {
|
||||
@apply h-4 w-4 text-primary;
|
||||
}
|
||||
|
||||
.app-form {
|
||||
@apply space-y-4;
|
||||
}
|
||||
|
||||
.app-form-label {
|
||||
@apply text-xs text-muted;
|
||||
}
|
||||
|
||||
.table-muted {
|
||||
@apply text-xs text-muted;
|
||||
}
|
||||
|
||||
.app-error {
|
||||
@apply mt-1 text-xs text-expense;
|
||||
}
|
||||
|
||||
.app-success {
|
||||
@apply rounded-md border border-income/30 bg-income/10 px-3 py-2 text-xs text-income;
|
||||
}
|
||||
|
||||
.app-select {
|
||||
@apply h-9 rounded-md border-input bg-[#0c1016] px-3 text-sm text-foreground placeholder:text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40;
|
||||
}
|
||||
|
||||
.app-select-muted {
|
||||
@apply h-9 rounded-md border-input bg-[#0c1016] px-3 text-sm text-muted placeholder:text-muted focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40;
|
||||
}
|
||||
|
||||
.app-date-input {
|
||||
@apply min-w-36 cursor-pointer border-border/80 bg-[#0c1016] text-foreground shadow-inner shadow-black/20;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
.app-date-input::-webkit-calendar-picker-indicator {
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
padding: 4px;
|
||||
filter: invert(82%) sepia(29%) saturate(740%) hue-rotate(358deg) brightness(94%) contrast(92%);
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.app-date-input::-webkit-calendar-picker-indicator:hover {
|
||||
background: rgba(217, 184, 111, 0.14);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.segment-control {
|
||||
@apply flex rounded-md border border-border/80 bg-[#0c1016] p-0.5 shadow-inner shadow-black/30;
|
||||
}
|
||||
|
||||
.segment-option {
|
||||
@apply flex items-center gap-1.5 rounded px-3 py-1.5 text-xs font-medium transition-colors duration-150;
|
||||
}
|
||||
|
||||
.segment-option-muted {
|
||||
@apply text-muted hover:text-foreground;
|
||||
}
|
||||
|
||||
.segment-option-primary {
|
||||
@apply bg-primary text-primary-foreground shadow;
|
||||
}
|
||||
|
||||
.segment-option-expense {
|
||||
@apply bg-expense text-white shadow;
|
||||
}
|
||||
|
||||
.segment-option-income {
|
||||
@apply bg-income text-[#06130f] shadow;
|
||||
}
|
||||
|
||||
.summary-grid {
|
||||
@apply grid grid-cols-1 gap-4 md:grid-cols-3;
|
||||
}
|
||||
|
||||
.summary-skeleton-grid {
|
||||
@apply grid grid-cols-1 gap-4 md:grid-cols-3;
|
||||
}
|
||||
|
||||
.summary-card-glow {
|
||||
@apply absolute right-0 top-0 h-24 w-24 translate-x-8 -translate-y-8 rounded-full bg-primary/10 blur-2xl;
|
||||
}
|
||||
|
||||
.metric-icon {
|
||||
@apply grid h-8 w-8 place-items-center rounded-md;
|
||||
}
|
||||
|
||||
.settings-grid {
|
||||
@apply grid grid-cols-1 gap-6 lg:grid-cols-2;
|
||||
}
|
||||
|
||||
.account-grid {
|
||||
@apply grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-4;
|
||||
}
|
||||
|
||||
.inline-actions {
|
||||
@apply flex gap-1;
|
||||
}
|
||||
|
||||
.fade-actions {
|
||||
@apply flex gap-1 opacity-0 transition-opacity duration-150 group-hover:opacity-100;
|
||||
}
|
||||
|
||||
/* Tree select */
|
||||
.tree-select-trigger {
|
||||
@apply flex h-9 w-full items-center justify-between rounded-md border border-input bg-[#0c1016] px-3 text-sm text-foreground transition-colors hover:border-primary/40 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40 disabled:cursor-not-allowed disabled:opacity-50;
|
||||
}
|
||||
|
||||
.tree-select-trigger-muted {
|
||||
@apply text-muted hover:text-foreground;
|
||||
}
|
||||
|
||||
.tree-select-trigger-open {
|
||||
@apply border-primary/60 ring-1 ring-primary/30;
|
||||
}
|
||||
|
||||
.tree-select-trigger-text {
|
||||
@apply truncate text-left;
|
||||
}
|
||||
|
||||
.tree-select-popup {
|
||||
@apply flex flex-col overflow-hidden rounded-lg border border-border/80 bg-[#0c1016]/95 shadow-[0_24px_60px_rgba(0,0,0,0.55)] backdrop-blur-xl;
|
||||
animation: treeSelectFadeIn 0.15s ease-out;
|
||||
}
|
||||
|
||||
.tree-select-search {
|
||||
@apply flex items-center gap-2 border-b border-border/60 px-3 py-2;
|
||||
}
|
||||
|
||||
.tree-select-search-input {
|
||||
@apply flex-1 border-0 bg-transparent text-sm text-foreground outline-none placeholder:text-muted;
|
||||
}
|
||||
|
||||
.tree-select-list {
|
||||
@apply flex-1 overflow-y-auto p-1;
|
||||
}
|
||||
|
||||
.tree-select-row {
|
||||
@apply flex w-full items-center gap-2 rounded-md py-1.5 pr-2 text-left text-sm text-foreground/90 transition-colors hover:bg-white/[0.04] focus:bg-white/[0.06] focus:outline-none;
|
||||
}
|
||||
|
||||
.tree-select-row-selected {
|
||||
@apply bg-primary/10 text-primary;
|
||||
}
|
||||
|
||||
.tree-select-row-parent {
|
||||
@apply text-xs font-medium uppercase tracking-wider text-muted hover:bg-white/[0.03];
|
||||
}
|
||||
|
||||
.tree-select-chevron {
|
||||
@apply flex h-4 w-4 shrink-0 items-center justify-center rounded-sm text-muted hover:text-foreground;
|
||||
}
|
||||
|
||||
.tree-select-label {
|
||||
@apply flex-1 truncate;
|
||||
}
|
||||
|
||||
.tree-select-meta {
|
||||
@apply text-xs tabular-nums text-muted;
|
||||
}
|
||||
|
||||
.tree-select-empty {
|
||||
@apply px-3 py-6 text-center text-xs text-muted;
|
||||
}
|
||||
|
||||
.tree-select-clear {
|
||||
@apply grid h-5 w-5 place-items-center rounded-full text-muted transition-colors hover:bg-white/10 hover:text-foreground;
|
||||
}
|
||||
|
||||
/* Date picker */
|
||||
.date-picker-trigger {
|
||||
@apply flex h-9 w-full items-center justify-between rounded-md border border-input bg-[#0c1016] px-3 text-sm text-foreground transition-colors hover:border-primary/40 focus:border-primary focus:outline-none focus:ring-1 focus:ring-primary/40 disabled:cursor-not-allowed disabled:opacity-50;
|
||||
}
|
||||
|
||||
.date-picker-trigger-open {
|
||||
@apply border-primary/60 ring-1 ring-primary/30;
|
||||
}
|
||||
|
||||
.date-picker-popup {
|
||||
@apply rounded-xl border border-border/80 bg-[#0c1016]/95 p-3 shadow-[0_24px_60px_rgba(0,0,0,0.55)] backdrop-blur-xl;
|
||||
animation: treeSelectFadeIn 0.15s ease-out;
|
||||
}
|
||||
|
||||
.date-picker-header {
|
||||
@apply mb-2 flex items-center justify-between gap-2;
|
||||
}
|
||||
|
||||
.date-picker-nav-btn {
|
||||
@apply grid h-7 w-7 place-items-center rounded-md text-muted transition-colors hover:bg-white/[0.06] hover:text-foreground focus:outline-none focus:ring-1 focus:ring-primary/40;
|
||||
}
|
||||
|
||||
.date-picker-title {
|
||||
@apply flex items-center gap-1 text-sm font-medium text-foreground;
|
||||
}
|
||||
|
||||
.date-picker-title-btn {
|
||||
@apply rounded px-2 py-1 transition-colors hover:bg-white/[0.06] focus:outline-none;
|
||||
}
|
||||
|
||||
.date-picker-grid {
|
||||
@apply grid grid-cols-7 gap-0.5;
|
||||
}
|
||||
|
||||
.date-picker-weekday {
|
||||
@apply grid h-8 place-items-center text-xs text-muted;
|
||||
}
|
||||
|
||||
.date-picker-day {
|
||||
@apply grid h-8 w-8 place-items-center rounded-md text-sm tabular-nums text-foreground/85 transition-colors hover:bg-white/[0.06] focus:outline-none;
|
||||
}
|
||||
|
||||
.date-picker-day-outside {
|
||||
@apply text-muted/40;
|
||||
}
|
||||
|
||||
.date-picker-day-today {
|
||||
@apply ring-1 ring-primary/40;
|
||||
}
|
||||
|
||||
.date-picker-day-selected {
|
||||
@apply bg-primary text-primary-foreground hover:bg-primary;
|
||||
}
|
||||
|
||||
.date-picker-month-grid {
|
||||
@apply grid grid-cols-3 gap-1.5;
|
||||
}
|
||||
|
||||
.date-picker-month-cell {
|
||||
@apply rounded-md px-2 py-2 text-sm text-foreground/85 transition-colors hover:bg-white/[0.06] focus:outline-none;
|
||||
}
|
||||
|
||||
.date-picker-year-grid {
|
||||
@apply grid grid-cols-4 gap-1.5;
|
||||
}
|
||||
|
||||
.date-picker-year-cell {
|
||||
@apply rounded-md px-2 py-2 text-sm text-foreground/85 transition-colors hover:bg-white/[0.06] focus:outline-none;
|
||||
}
|
||||
|
||||
.date-picker-cell-active {
|
||||
@apply bg-primary text-primary-foreground hover:bg-primary;
|
||||
}
|
||||
|
||||
.date-picker-footer {
|
||||
@apply mt-2 flex items-center justify-between border-t border-border/60 pt-2;
|
||||
}
|
||||
|
||||
.date-picker-footer-btn {
|
||||
@apply rounded-md px-2 py-1 text-xs text-muted transition-colors hover:bg-white/[0.06] hover:text-foreground focus:outline-none;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes treeSelectFadeIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(-4px);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user