Migración a shadcn-vue + Tailwind CSS v4
- Tailwind CSS v4 con @tailwindcss/vite - shadcn-vue: 19 componentes UI (button, card, dialog, table, select, tabs, sidebar, separator, breadcrumb, badge, avatar, dropdown-menu, tooltip, input, switch, sheet, skeleton) - Sidebar collapsible con íconos Lucide - Theme Teloprax en CSS variables (rojo #E63946, negro #1A1A2E) - LoginView, DashboardView, CalendarView, SchedulerView migrados - Eliminado AppShell.vue manual (reemplazado por SidebarProvider) - Layout con breadcrumb, sidebar trigger, header unificado
This commit is contained in:
+144
-50
@@ -1,60 +1,154 @@
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&display=swap');
|
||||
|
||||
@import "tailwindcss";
|
||||
|
||||
@import "tw-animate-css";
|
||||
|
||||
@import "shadcn-vue/tailwind.css";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@theme inline {
|
||||
--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
|
||||
--font-heading: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
|
||||
--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-foreground: var(--foreground);
|
||||
--color-background: var(--background);
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
}
|
||||
|
||||
:root {
|
||||
--bg-primary: #1A1A2E;
|
||||
--bg-secondary: #141428;
|
||||
--bg-tertiary: #1E1E36;
|
||||
--bg-input: #1A1A2E;
|
||||
--border: #2A2A45;
|
||||
--border-hover: #3A3A55;
|
||||
--text-primary: #E6EDF3;
|
||||
--text-secondary: #8888AA;
|
||||
--text-muted: #555577;
|
||||
--accent: #E63946;
|
||||
--accent-hover: #C62E3A;
|
||||
--success: #3FB950;
|
||||
--warning: #D29922;
|
||||
--error: #F85149;
|
||||
--radius: 8px;
|
||||
--radius: 0.5rem;
|
||||
|
||||
--background: oklch(0.15 0.025 280);
|
||||
--foreground: oklch(0.92 0.005 260);
|
||||
|
||||
--card: oklch(0.12 0.02 280);
|
||||
--card-foreground: oklch(0.92 0.005 260);
|
||||
|
||||
--popover: oklch(0.12 0.02 280);
|
||||
--popover-foreground: oklch(0.92 0.005 260);
|
||||
|
||||
--primary: oklch(0.55 0.22 20);
|
||||
--primary-foreground: oklch(1 0 0);
|
||||
|
||||
--secondary: oklch(0.17 0.02 280);
|
||||
--secondary-foreground: oklch(0.92 0.005 260);
|
||||
|
||||
--muted: oklch(0.12 0.02 280);
|
||||
--muted-foreground: oklch(0.6 0.03 280);
|
||||
|
||||
--accent: oklch(0.17 0.02 280);
|
||||
--accent-foreground: oklch(0.92 0.005 260);
|
||||
|
||||
--destructive: oklch(0.55 0.22 20);
|
||||
--destructive-foreground: oklch(1 0 0);
|
||||
|
||||
--border: oklch(0.22 0.03 280);
|
||||
--input: oklch(0.15 0.025 280);
|
||||
--ring: oklch(0.55 0.22 20);
|
||||
|
||||
--chart-1: oklch(0.55 0.22 20);
|
||||
--chart-2: oklch(0.6 0.15 180);
|
||||
--chart-3: oklch(0.65 0.2 80);
|
||||
--chart-4: oklch(0.5 0.2 300);
|
||||
--chart-5: oklch(0.55 0.1 40);
|
||||
|
||||
--sidebar: oklch(0.12 0.02 280);
|
||||
--sidebar-foreground: oklch(0.92 0.005 260);
|
||||
--sidebar-primary: oklch(0.55 0.22 20);
|
||||
--sidebar-primary-foreground: oklch(1 0 0);
|
||||
--sidebar-accent: oklch(0.17 0.02 280);
|
||||
--sidebar-accent-foreground: oklch(0.92 0.005 260);
|
||||
--sidebar-border: oklch(0.22 0.03 280);
|
||||
--sidebar-ring: oklch(0.55 0.22 20);
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
.dark {
|
||||
--background: oklch(0.15 0.025 280);
|
||||
--foreground: oklch(0.92 0.005 260);
|
||||
--card: oklch(0.12 0.02 280);
|
||||
--card-foreground: oklch(0.92 0.005 260);
|
||||
--popover: oklch(0.12 0.02 280);
|
||||
--popover-foreground: oklch(0.92 0.005 260);
|
||||
--primary: oklch(0.55 0.22 20);
|
||||
--primary-foreground: oklch(1 0 0);
|
||||
--secondary: oklch(0.17 0.02 280);
|
||||
--secondary-foreground: oklch(0.92 0.005 260);
|
||||
--muted: oklch(0.12 0.02 280);
|
||||
--muted-foreground: oklch(0.6 0.03 280);
|
||||
--accent: oklch(0.17 0.02 280);
|
||||
--accent-foreground: oklch(0.92 0.005 260);
|
||||
--destructive: oklch(0.55 0.22 20);
|
||||
--destructive-foreground: oklch(1 0 0);
|
||||
--border: oklch(0.22 0.03 280);
|
||||
--input: oklch(0.15 0.025 280);
|
||||
--ring: oklch(0.55 0.22 20);
|
||||
--chart-1: oklch(0.55 0.22 20);
|
||||
--chart-2: oklch(0.6 0.15 180);
|
||||
--chart-3: oklch(0.65 0.2 80);
|
||||
--chart-4: oklch(0.5 0.2 300);
|
||||
--chart-5: oklch(0.55 0.1 40);
|
||||
--sidebar: oklch(0.12 0.02 280);
|
||||
--sidebar-foreground: oklch(0.92 0.005 260);
|
||||
--sidebar-primary: oklch(0.55 0.22 20);
|
||||
--sidebar-primary-foreground: oklch(1 0 0);
|
||||
--sidebar-accent: oklch(0.17 0.02 280);
|
||||
--sidebar-accent-foreground: oklch(0.92 0.005 260);
|
||||
--sidebar-border: oklch(0.22 0.03 280);
|
||||
--sidebar-ring: oklch(0.55 0.22 20);
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-primary);
|
||||
* {
|
||||
border-color: var(--border);
|
||||
outline-color: color-mix(in oklch, var(--ring) 50%, transparent);
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: var(--font-sans);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
#app {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
input, select, button, textarea {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar { width: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
|
||||
|
||||
.sch-view,
|
||||
.cal-view {
|
||||
max-width: 960px;
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border outline-ring/50;
|
||||
}
|
||||
body {
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user