|
10 | 10 | <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
11 | 11 | <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet"> |
12 | 12 |
|
13 | | - <script src="https://cdn.tailwindcss.com"></script> |
14 | | - <script> |
15 | | - tailwind.config = { |
16 | | - theme: { |
17 | | - extend: { |
18 | | - fontFamily: { |
19 | | - sans: ['Inter', 'system-ui', '-apple-system', 'Segoe UI', 'Roboto', 'sans-serif'], |
20 | | - }, |
21 | | - }, |
22 | | - }, |
23 | | - }; |
24 | | - </script> |
25 | | - <style type="text/tailwindcss"> |
26 | | - @layer base { |
27 | | - body { |
28 | | - background: |
29 | | - radial-gradient(900px 600px at 100% -10%, rgba(99,102,241,0.07), transparent 60%), |
30 | | - radial-gradient(800px 500px at -10% 110%, rgba(16,185,129,0.06), transparent 60%), |
31 | | - theme(colors.slate.50); |
32 | | - } |
33 | | - } |
34 | | - @layer components { |
35 | | - .nav-link { |
36 | | - @apply px-3 py-2 rounded-lg text-sm font-medium text-slate-600 hover:bg-slate-100 hover:text-slate-900 whitespace-nowrap transition; |
37 | | - } |
38 | | - .nav-link.is-active { @apply bg-indigo-50 text-indigo-700; } |
39 | | - |
40 | | - .kpi-card { |
41 | | - @apply bg-white border border-slate-200 rounded-xl px-5 py-4 transition hover:shadow-md hover:-translate-y-px; |
42 | | - } |
43 | | - .kpi-label { @apply text-xs font-semibold uppercase tracking-wider text-slate-500; } |
44 | | - .kpi-value { @apply text-2xl font-bold tracking-tight tabular-nums mt-1 text-slate-900; } |
45 | | - .kpi-sub { @apply text-xs text-slate-400 mt-1; } |
46 | | - |
47 | | - .panel { @apply bg-white border border-slate-200 rounded-xl p-6 transition hover:shadow-md; } |
48 | | - .panel h2 { @apply text-base font-semibold tracking-tight mb-4 text-slate-900; } |
49 | | - |
50 | | - .chart-wrap { @apply relative; height: 320px; } |
51 | | - .chart-wrap.tall { height: 440px; } |
52 | | - |
53 | | - .table-data { @apply w-full border-collapse text-sm; } |
54 | | - .table-data th { |
55 | | - @apply text-left py-2 px-3 border-b border-slate-200 text-[0.7rem] font-semibold uppercase tracking-wider text-slate-500; |
56 | | - } |
57 | | - .table-data td { |
58 | | - @apply py-3 px-3 border-b border-slate-100 align-top text-slate-900; |
59 | | - } |
60 | | - .table-data tbody tr:last-child td { @apply border-b-0; } |
61 | | - .table-data tbody tr:hover td { @apply bg-slate-50; } |
62 | | - .table-data .num { @apply text-right tabular-nums; } |
63 | | - |
64 | | - .tag { @apply inline-block px-2.5 py-0.5 rounded-full text-xs font-semibold; } |
65 | | - .tag.income { @apply bg-emerald-50 text-emerald-700; } |
66 | | - .tag.expense { @apply bg-rose-50 text-rose-700; } |
67 | | - .tag.transfer { @apply bg-slate-200 text-slate-600; } |
68 | | - .tag.investment { @apply bg-violet-50 text-violet-700; } |
69 | | - .tag.tax { @apply bg-amber-50 text-amber-700; } |
70 | | - .tag.other { @apply bg-indigo-50 text-indigo-700; } |
71 | | - .tag.personal { @apply bg-sky-50 text-sky-700; } |
72 | | - .tag.business { @apply bg-fuchsia-50 text-fuchsia-700; } |
73 | | - |
74 | | - .filter-field { @apply text-xs font-medium text-slate-500 flex flex-col gap-1; } |
75 | | - .filter-input, |
76 | | - .filter-field input, |
77 | | - .filter-field select { |
78 | | - @apply px-3 py-1.5 border border-slate-200 rounded-md bg-white text-sm text-slate-900 transition focus:outline-none focus:ring-2 focus:ring-indigo-100 focus:border-indigo-500; |
79 | | - } |
80 | | - |
81 | | - .btn-primary { |
82 | | - @apply px-4 py-2 bg-indigo-600 text-white rounded-md text-sm font-semibold transition hover:bg-indigo-500 active:scale-[0.98] shadow-md shadow-indigo-500/25; |
83 | | - } |
84 | | - .btn-ghost { |
85 | | - @apply px-3 py-1.5 bg-white text-slate-700 border border-slate-200 rounded-md text-sm font-medium transition hover:bg-slate-50 disabled:opacity-40 disabled:cursor-not-allowed; |
86 | | - } |
87 | | - |
88 | | - .empty { @apply text-center text-slate-400 py-10 text-sm; } |
89 | | - } |
90 | | - </style> |
| 13 | + <link rel="stylesheet" href="{% static 'finance/tailwind.css' %}"> |
91 | 14 |
|
92 | 15 | <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.7/dist/chart.umd.min.js" defer></script> |
93 | 16 | <script src="https://unpkg.com/htmx.org@2.0.4/dist/htmx.min.js" defer></script> |
|
0 commit comments