This commit is contained in:
David Arranz 2025-07-08 19:23:29 +02:00
parent 4a47e6f249
commit 3b16556f84
9 changed files with 189 additions and 123 deletions

View File

@ -6,10 +6,16 @@
<meta name="robots" content="noindex, nofollow" /> <meta name="robots" content="noindex, nofollow" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.upset.dev/css2?family=Poppins&display=swap" rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Geist+Mono:wght@100..900&family=Geist:wght@100..900&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap"
rel="stylesheet">
<title>FactuGES 2025</title> <title>FactuGES 2025</title>
<link rel="icon" type="image/png" href="/favicon.png" /> <link rel="icon" type="image/png" href="/favicon.png" />
<link href="/src/global.css" rel="stylesheet">
</head> </head>
<body> <body>

View File

@ -1,2 +0,0 @@
@import "tailwindcss";
@import "tw-animate-css";

View File

@ -1,16 +1,8 @@
@import "tailwindcss";
@import "tw-animate-css";
@import "@repo/shadcn-ui/globals.css"; @import "@repo/shadcn-ui/globals.css";
@import "@repo/rdx-ui/globals.css"; @import "@repo/rdx-ui/globals.css";
@import "@erp/customers/globals.css"; @import "@erp/customers/globals.css";
@import "@erp/customer-invoices/globals.css"; @import "@erp/customer-invoices/globals.css";
@theme {
--font-sans: "Calibri", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
/** /**
* Tailwind CSS official document: * Tailwind CSS official document:
* https://tailwindcss.com/docs/detecting-classes-in-source-files * https://tailwindcss.com/docs/detecting-classes-in-source-files
@ -19,5 +11,6 @@
* you can always add it with the @source directive. * you can always add it with the @source directive.
*/ */
@source '../node_modules/@repo/shadcn-ui'; /*@source '../node_modules/@repo/shadcn-ui';
@source '../node_modules/@repo/rdx-ui'; @source '../node_modules/@repo/rdx-ui';
*/

View File

@ -1,4 +0,0 @@
@import "tailwindcss";
@import "tw-animate-css";
@source "./components";
@source "./pages";

View File

@ -55,10 +55,8 @@ export const CustomerInvoiceCreate = () => {
<AppContent> <AppContent>
<div className='flex items-center justify-between space-y-2'> <div className='flex items-center justify-between space-y-2'>
<div> <div>
<h2 className='text-2xl font-bold tracking-tight'> <h2 className='text-2xl font-bold tracking-tight'>{t("pages.create.title")}</h2>
{t("customerInvoices.create.title")} <p className='text-muted-foreground'>{t("pages.create.description")}</p>
</h2>
<p className='text-muted-foreground'>{t("customerInvoices.create.description")}</p>
</div> </div>
<div className='flex items-center justify-end mb-4'> <div className='flex items-center justify-end mb-4'>
<Button className='cursor-pointer' onClick={() => navigate("/customer-invoices/list")}> <Button className='cursor-pointer' onClick={() => navigate("/customer-invoices/list")}>

View File

@ -1,4 +0,0 @@
@import "tailwindcss";
@import "tw-animate-css";
@source "./components";
@source "./pages";

View File

@ -1,3 +0,0 @@
@import "tailwindcss";
@import "tw-animate-css";
@source "../components";

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://ui.shadcn.com/schema.json", "$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york", "style": "new-york",
"rsc": true, "rsc": false,
"tsx": true, "tsx": true,
"tailwind": { "tailwind": {
"config": "", "config": "",

View File

@ -1,116 +1,196 @@
@import "tailwindcss"; @import "tailwindcss";
@import "tw-animate-css"; @import "tw-animate-css";
@source "../components";
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
/**
*
https://themecn.dev/api/registry/eyJsIjp7ImJnIjoiMCwwLDEwMCIsImZnIjoiMjE5LDEwLDQiLCJwIjoiMjE5LDgzLDU4IiwicyI6IjIxOSwyMyw5NiIsImEiOiIyMDUsMTAwLDY3IiwiZCI6IjM1Ny4xOCwxMDAsNDUifSwiciI6MC41fQ==
**/
@theme {
--sapphire-50: #f2f5ff;
--sapphire-100: #e3eaff;
--sapphire-200: #c6d4ff;
--sapphire-300: #a1b8ff;
--sapphire-400: #7696ff;
--sapphire-500: #4b74ff;
--sapphire-600: #2152ff;
--sapphire-700: #0033e6;
--sapphire-800: #0029cc;
--sapphire-900: #001f99;
--sapphire-950: #001466;
--graphite-50: #f8f9fc;
--graphite-100: #f1f2f9;
--graphite-200: #e2e4f0;
--graphite-300: #cbd0e1;
--graphite-400: #949db8;
--graphite-500: #646e8b;
--graphite-600: #475269;
--graphite-700: #333b55;
--graphite-800: #1e233b;
--graphite-900: #0f121a;
--graphite-950: #020307;
--magenta-50: #fff0f7;
--magenta-100: #ffdcec;
--magenta-200: #ffbfdd;
--magenta-300: #ff9aca;
--magenta-400: #ff70b4;
--magenta-500: #ff479e;
--magenta-600: #ff1a88;
--magenta-700: #e60070;
--magenta-800: #cc0063;
--magenta-900: #99004a;
--magenta-950: #660031;
}
:root { :root {
--radius: 0.3rem; --background: oklch(0.9911 0 0);
--background: oklch(1 0 0); --foreground: oklch(0.2046 0 0);
--foreground: oklch(0.141 0.005 285.823); --card: oklch(0.9911 0 0);
--card: oklch(1 0 0); --card-foreground: oklch(0.2046 0 0);
--card-foreground: oklch(0.141 0.005 285.823); --popover: oklch(0.9911 0 0);
--popover: oklch(1 0 0); --popover-foreground: oklch(0.4386 0 0);
--popover-foreground: oklch(0.141 0.005 285.823); --primary: var(--sapphire-600);
--primary: oklch(0.623 0.214 259.815); --primary-foreground: var(--sapphire-50);
--primary-foreground: oklch(0.97 0.014 254.604); --secondary: var(--graphite-600);
--secondary: oklch(0.967 0.001 286.375); --secondary-foreground: var(--graphite-50);
--secondary-foreground: oklch(0.21 0.006 285.885); --muted: oklch(0.9461 0 0);
--muted: oklch(0.967 0.001 286.375); --muted-foreground: oklch(0.2435 0 0);
--muted-foreground: oklch(0.552 0.016 285.938); --accent: var(--magenta-60);
--accent: oklch(0.967 0.001 286.375); --accent-foreground: var(--magenta-50);
--accent-foreground: oklch(0.21 0.006 285.885); --destructive: oklch(0.5795 0.2369 28.4251);
--destructive: oklch(0.577 0.245 27.325); --destructive-foreground: oklch(0.9934 0.0032 17.2118);
--border: oklch(0.92 0.004 286.32); --border: var(--graphite-300);
--input: oklch(0.92 0.004 286.32); --input: var(--graphite-300);
--ring: oklch(0.623 0.214 259.815); --ring: var(--sapphire-500);
--chart-1: oklch(0.646 0.222 41.116); --chart-1: oklch(0.6202 0.1561 261.2713);
--chart-2: oklch(0.6 0.118 184.704); --chart-2: oklch(0.6611 0.1491 261.8026);
--chart-3: oklch(0.398 0.07 227.392); --chart-3: oklch(0.7537 0.1098 262.1599);
--chart-4: oklch(0.828 0.189 84.429); --chart-4: oklch(0.4174 0.1322 261.2301);
--chart-5: oklch(0.769 0.188 70.08); --chart-5: oklch(0.3372 0.0777 261.8039);
--sidebar: oklch(0.985 0 0); --sidebar: var(--graphite-800);
--sidebar-foreground: oklch(0.141 0.005 285.823); --sidebar-foreground: var(--graphite-50);
--sidebar-primary: oklch(0.623 0.214 259.815); --sidebar-primary: var(--sapphire-500);
--sidebar-primary-foreground: oklch(0.97 0.014 254.604); --sidebar-primary-foreground: var(--graphite-900);
--sidebar-accent: oklch(0.967 0.001 286.375); --sidebar-accent: var(--graphite-200);
--sidebar-accent-foreground: oklch(0.21 0.006 285.885); --sidebar-accent-foreground: var(--graphite-700);
--sidebar-border: oklch(0.92 0.004 286.32); --sidebar-border: var(--graphite-200);
--sidebar-ring: oklch(0.623 0.214 259.815); --sidebar-ring: var(--sapphire-500);
--font-sans: Geist, sans-serif;
--font-serif: Merriweather, serif;
--font-mono: Geist Mono, monospace;
--radius: 0.5rem;
--shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
--shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
--shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
--shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
--shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 2px 4px -1px hsl(0 0% 0% / 0.17);
--shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 4px 6px -1px hsl(0 0% 0% / 0.17);
--shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 8px 10px -1px hsl(0 0% 0% / 0.17);
--shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.43);
--tracking-normal: 0em;
--spacing: 0.25rem;
} }
.dark { .dark {
--background: oklch(0.141 0.005 285.823); --background: oklch(0.1822 0 0);
--foreground: oklch(0.985 0 0); --foreground: oklch(0.9288 0.0126 255.5078);
--card: oklch(0.21 0.006 285.885); --card: oklch(0.2046 0 0);
--card-foreground: oklch(0.985 0 0); --card-foreground: oklch(0.9288 0.0126 255.5078);
--popover: oklch(0.21 0.006 285.885); --popover: oklch(0.2603 0 0);
--popover-foreground: oklch(0.985 0 0); --popover-foreground: oklch(0.7348 0 0);
--primary: oklch(0.546 0.245 262.881); --primary: oklch(0.4365 0.1044 156.7556);
--primary-foreground: oklch(0.379 0.146 265.522); --primary-foreground: oklch(0.9213 0.0135 167.1556);
--secondary: oklch(0.274 0.006 286.033); --secondary: oklch(0.2603 0 0);
--secondary-foreground: oklch(0.985 0 0); --secondary-foreground: oklch(0.9851 0 0);
--muted: oklch(0.274 0.006 286.033); --muted: oklch(0.2393 0 0);
--muted-foreground: oklch(0.705 0.015 286.067); --muted-foreground: oklch(0.7122 0 0);
--accent: oklch(0.274 0.006 286.033); --accent: oklch(0.3132 0 0);
--accent-foreground: oklch(0.985 0 0); --accent-foreground: oklch(0.9851 0 0);
--destructive: oklch(0.704 0.191 22.216); --destructive: oklch(0.3123 0.0852 29.7877);
--border: oklch(1 0 0 / 10%); --destructive-foreground: oklch(0.9368 0.0045 34.3092);
--input: oklch(1 0 0 / 15%); --border: oklch(0.2809 0 0);
--ring: oklch(0.488 0.243 264.376); --input: oklch(0.2603 0 0);
--chart-1: oklch(0.488 0.243 264.376); --ring: oklch(0.8003 0.1821 151.711);
--chart-2: oklch(0.696 0.17 162.48); --chart-1: oklch(0.8003 0.1821 151.711);
--chart-3: oklch(0.769 0.188 70.08); --chart-2: oklch(0.7137 0.1434 254.624);
--chart-4: oklch(0.627 0.265 303.9); --chart-3: oklch(0.709 0.1592 293.5412);
--chart-5: oklch(0.645 0.246 16.439); --chart-4: oklch(0.8369 0.1644 84.4286);
--sidebar: oklch(0.21 0.006 285.885); --chart-5: oklch(0.7845 0.1325 181.912);
--sidebar-foreground: oklch(0.985 0 0); --sidebar: oklch(0.1822 0 0);
--sidebar-primary: oklch(0.546 0.245 262.881); --sidebar-foreground: oklch(0.6301 0 0);
--sidebar-primary-foreground: oklch(0.379 0.146 265.522); --sidebar-primary: oklch(0.4365 0.1044 156.7556);
--sidebar-accent: oklch(0.274 0.006 286.033); --sidebar-primary-foreground: oklch(0.9213 0.0135 167.1556);
--sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.3132 0 0);
--sidebar-border: oklch(1 0 0 / 10%); --sidebar-accent-foreground: oklch(0.9851 0 0);
--sidebar-ring: oklch(0.488 0.243 264.376); --sidebar-border: oklch(0.2809 0 0);
--sidebar-ring: oklch(0.8003 0.1821 151.711);
--font-sans: Geist, sans-serif;
--font-serif: Merriweather, serif;
--font-mono: "Geist Mono", monospace;
--radius: 0.5rem;
--shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
--shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09);
--shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
--shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17);
--shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 2px 4px -1px hsl(0 0% 0% / 0.17);
--shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 4px 6px -1px hsl(0 0% 0% / 0.17);
--shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 8px 10px -1px hsl(0 0% 0% / 0.17);
--shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.43);
} }
@theme inline { @theme inline {
--color-background: var(--background); --color-background: var(--background);
--color-foreground: var(--foreground); --color-foreground: var(--foreground);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar: var(--sidebar);
--color-chart-5: var(--chart-5);
--color-chart-4: var(--chart-4);
--color-chart-3: var(--chart-3);
--color-chart-2: var(--chart-2);
--color-chart-1: var(--chart-1);
--color-ring: var(--ring);
--color-input: var(--input);
--color-border: var(--border);
--color-destructive: var(--destructive);
--color-accent-foreground: var(--accent-foreground);
--color-accent: var(--accent);
--color-muted-foreground: var(--muted-foreground);
--color-muted: var(--muted);
--color-secondary-foreground: var(--secondary-foreground);
--color-secondary: var(--secondary);
--color-primary-foreground: var(--primary-foreground);
--color-primary: var(--primary);
--color-popover-foreground: var(--popover-foreground);
--color-popover: var(--popover);
--color-card-foreground: var(--card-foreground);
--color-card: var(--card); --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);
--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);
--radius-sm: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px); --radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius); --radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px); --radius-xl: calc(var(--radius) + 4px);
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono); --shadow-2xs: var(--shadow-2xs);
--shadow-xs: var(--shadow-xs);
--shadow-sm: var(--shadow-sm);
--shadow: var(--shadow);
--shadow-md: var(--shadow-md);
--shadow-lg: var(--shadow-lg);
--shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
} }
@layer base { @layer base {
@ -122,3 +202,5 @@
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }
@source "../components";