changed color palettes

This commit is contained in:
Jelaletdin12
2026-05-04 21:50:03 +05:00
parent 648ce5a172
commit 580c592a4c
6 changed files with 53 additions and 98 deletions

View File

@@ -5,7 +5,7 @@ import { Slot } from "radix-ui"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
"group/button inline-flex cursor-pointer shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
{
variants: {
variant: {

View File

@@ -37,63 +37,34 @@
}
--background: oklch(1 0 0);
--foreground: oklch(0.145 0 0);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0 0);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0 0);
--primary: oklch(0.205 0 0);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.97 0 0);
--secondary-foreground: oklch(0.205 0 0);
--muted: oklch(0.97 0 0);
--muted-foreground: oklch(0.556 0 0);
--accent-foreground: oklch(0.205 0 0);
--destructive: oklch(0.577 0.245 27.325);
--input: oklch(0.922 0 0);
--ring: oklch(0.708 0 0);
--chart-1: oklch(0.87 0 0);
--chart-2: oklch(0.556 0 0);
--chart-3: oklch(0.439 0 0);
--chart-4: oklch(0.371 0 0);
--chart-5: oklch(0.269 0 0);
--radius: 0.625rem;
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.145 0 0);
--sidebar-primary: oklch(0.205 0 0);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.97 0 0);
--sidebar-accent-foreground: oklch(0.205 0 0);
--sidebar-border: oklch(0.922 0 0);
--sidebar-ring: oklch(0.708 0 0);
}
@@ -122,7 +93,7 @@
--foreground: oklch(0.15 0.02 250);
--card: oklch(1 0 0);
--card-foreground: oklch(0.15 0.02 250);
--primary: oklch(0.35 0.12 250); /* Koyu lacivert */
--primary: oklch(0.35 0.12 250);
--primary-foreground: oklch(0.98 0 0);
--secondary: oklch(0.93 0.02 240);
--secondary-foreground: oklch(0.25 0.08 250);
@@ -134,7 +105,7 @@
--border: oklch(0.88 0.02 240);
--input: oklch(0.88 0.02 240);
--ring: oklch(0.45 0.12 250);
--sidebar: oklch(0.2 0.06 255); /* Lacivert sidebar */
--sidebar: oklch(0.2 0.06 255);
--sidebar-foreground: oklch(0.9 0.02 240);
--sidebar-primary: oklch(0.65 0.15 200);
--sidebar-primary-foreground: oklch(0.1 0.02 250);
@@ -148,13 +119,6 @@ body {
margin: 0;
}
@theme inline {
--font-heading: var(--font-sans);
--font-sans: "Geist Variable", sans-serif;
@@ -199,39 +163,38 @@ body {
}
.dark {
--background: oklch(0.13 0.025 255); /* Koyu lacivert zemin */
--foreground: oklch(0.92 0.015 240);
--card: oklch(0.18 0.03 255);
--card-foreground: oklch(0.92 0.015 240);
--popover: oklch(0.18 0.03 255);
--popover-foreground: oklch(0.92 0.015 240);
--primary: oklch(0.65 0.18 230); /* Canlı mavi CTA */
--background: oklch(0.20 0.025 255);
--foreground: oklch(0.93 0.012 240);
--card: oklch(0.25 0.028 255);
--card-foreground: oklch(0.93 0.012 240);
--popover: oklch(0.25 0.028 255);
--popover-foreground: oklch(0.93 0.012 240);
--primary: oklch(0.68 0.18 230);
--primary-foreground: oklch(0.1 0.02 255);
--secondary: oklch(0.22 0.04 255);
--secondary-foreground: oklch(0.88 0.015 240);
--muted: oklch(0.22 0.04 255);
--muted-foreground: oklch(0.6 0.06 250);
--accent: oklch(0.25 0.05 255);
--accent-foreground: oklch(0.9 0.015 240);
--secondary: oklch(0.30 0.04 255);
--secondary-foreground: oklch(0.90 0.012 240);
--muted: oklch(0.30 0.04 255);
--muted-foreground: oklch(0.65 0.055 250);
--accent: oklch(0.33 0.05 255);
--accent-foreground: oklch(0.92 0.012 240);
--destructive: oklch(0.65 0.22 25);
--border: oklch(0.28 0.05 255);
--input: oklch(0.22 0.04 255);
--ring: oklch(0.55 0.16 230);
--sidebar: oklch(0.1 0.02 260); /* Daha koyu sidebar */
--sidebar-foreground: oklch(0.88 0.015 240);
--sidebar-primary: oklch(0.65 0.18 230);
--border: oklch(0.36 0.05 255);
--input: oklch(0.30 0.04 255);
--ring: oklch(0.60 0.16 230);
--sidebar: oklch(0.17 0.022 260);
--sidebar-foreground: oklch(0.90 0.012 240);
--sidebar-primary: oklch(0.68 0.18 230);
--sidebar-primary-foreground: oklch(0.98 0 0);
--sidebar-accent: oklch(0.18 0.03 258);
--sidebar-accent-foreground: oklch(0.88 0.015 240);
--sidebar-border: oklch(0.2 0.035 258);
--sidebar-ring: oklch(0.55 0.16 230);
--sidebar-accent: oklch(0.26 0.03 258);
--sidebar-accent-foreground: oklch(0.90 0.012 240);
--sidebar-border: oklch(0.30 0.035 258);
--sidebar-ring: oklch(0.60 0.16 230);
/* Chart renkleri - finansal veri için */
--chart-1: oklch(0.65 0.18 230); /* Mavi - gelir */
--chart-2: oklch(0.68 0.17 155); /* Yeşil - kar */
--chart-3: oklch(0.72 0.16 85); /* Sarı - bekleyen */
--chart-4: oklch(0.65 0.22 25); /* Kırmızı - zarar */
--chart-5: oklch(0.68 0.15 290); /* Mor - diğer */
--chart-1: oklch(0.68 0.18 230);
--chart-2: oklch(0.70 0.17 155);
--chart-3: oklch(0.74 0.16 85);
--chart-4: oklch(0.68 0.22 25);
--chart-5: oklch(0.70 0.15 290);
}
@layer base {
@@ -244,4 +207,4 @@ body {
html {
@apply font-sans;
}
}
}

View File

@@ -492,7 +492,7 @@ export function DashboardLayout() {
<main className="flex-1 p-6 overflow-auto">
<Outlet />
</main>
{/* Footer */}
{/* Footer */}
<div className="text-center text-xs text-muted-foreground/40 pt-2 pb-6">
© 2026 TBBANK.GOV.TM.
</div>

View File

@@ -66,10 +66,7 @@ export default function DashboardPage() {
</div>
</div>
<div className="text-center text-xs text-muted-foreground mt-8">
© 2026 TBBANK.GOV.TM.
</div>
</main>
</div>
)

View File

@@ -273,7 +273,7 @@ export default function LoanOrdersPage() {
perPageOptions={[10, 25, 50, 100]}
perPage={perPage}
onPerPageChange={(v) => { setPerPage(v); setPage(1) }}
actionLabel={t('loanOrders.createButton', 'Karz sargyt dörediñ')}
actionLabel={t('loanOrderMobiles.createButton', 'Karz sargyt dörediñ')}
onAction={() => {
navigate('/loan-orders/create')
}}