Cambio de estilo al tema claro/oscuro

This commit is contained in:
2026-02-12 12:47:17 -04:00
parent a0c363dd1b
commit 510327de58
2 changed files with 316 additions and 77 deletions

View File

@@ -8,77 +8,111 @@
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
:root { :root {
--background: hsl(0 0% 100%); --background: oklch(0.9824 0.0013 286.3757);
--foreground: hsl(240 10% 3.9%); --foreground: oklch(0.3211 0 0);
--card: hsl(0 0% 100%); --card: oklch(1.0000 0 0);
--card-foreground: hsl(240 10% 3.9%); --card-foreground: oklch(0.3211 0 0);
--popover: hsl(0 0% 100%); --popover: oklch(1.0000 0 0);
--popover-foreground: hsl(240 10% 3.9%); --popover-foreground: oklch(0.3211 0 0);
--primary: hsl(3, 85%, 32%); --primary: oklch(0.6487 0.1538 150.3071);
--primary-foreground: hsl(355.7 100% 97.3%); --primary-foreground: oklch(1.0000 0 0);
--secondary: hsl(240 4.8% 95.9%); --secondary: oklch(0.6746 0.1414 261.3380);
--secondary-foreground: hsl(240 5.9% 10%); --secondary-foreground: oklch(1.0000 0 0);
--muted: hsl(240 4.8% 95.9%); --muted: oklch(0.8828 0.0285 98.1033);
--muted-foreground: hsl(240 3.8% 46.1%); --muted-foreground: oklch(0.5382 0 0);
--accent: hsl(240 4.8% 95.9%); --accent: oklch(0.8269 0.1080 211.9627);
--accent-foreground: hsl(240 5.9% 10%); --accent-foreground: oklch(0.3211 0 0);
--destructive: hsl(0 84.2% 60.2%); --destructive: oklch(0.6368 0.2078 25.3313);
--destructive-foreground: hsl(0 0% 98%); --destructive-foreground: oklch(1.0000 0 0);
--border: hsl(240 5.9% 90%); --border: oklch(0.8699 0 0);
--input: hsl(240 5.9% 90%); --input: oklch(0.8699 0 0);
--ring: hsl(3, 85%, 32%); --ring: oklch(0.6487 0.1538 150.3071);
--radius: 0.7rem; --chart-1: oklch(0.6487 0.1538 150.3071);
--chart-1: hsl(12 76% 61%); --chart-2: oklch(0.6746 0.1414 261.3380);
--chart-2: hsl(173 58% 39%); --chart-3: oklch(0.8269 0.1080 211.9627);
--chart-3: hsl(197 37% 24%); --chart-4: oklch(0.5880 0.0993 245.7394);
--chart-4: hsl(43 74% 66%); --chart-5: oklch(0.5905 0.1608 148.2409);
--chart-5: hsl(27 87% 67%); --sidebar: oklch(0.9824 0.0013 286.3757);
--sidebar-background: hsl(0 0% 98%); --sidebar-foreground: oklch(0.3211 0 0);
--sidebar-foreground: hsl(240 5.3% 26.1%); --sidebar-primary: oklch(0.6487 0.1538 150.3071);
--sidebar-primary: hsl(240 5.9% 10%); --sidebar-primary-foreground: oklch(1.0000 0 0);
--sidebar-primary-foreground: hsl(0 0% 98%); --sidebar-accent: oklch(0.8269 0.1080 211.9627);
--sidebar-accent: hsl(240 4.8% 95.9%); --sidebar-accent-foreground: oklch(0.3211 0 0);
--sidebar-accent-foreground: hsl(240 5.9% 10%); --sidebar-border: oklch(0.8699 0 0);
--sidebar-border: hsl(220 13% 91%); --sidebar-ring: oklch(0.6487 0.1538 150.3071);
--sidebar-ring: hsl(217.2 91.2% 59.8%); --font-sans: Plus Jakarta Sans, sans-serif;
--sidebar: hsl(0 0% 98%); --font-serif: Source Serif 4, serif;
--font-mono: JetBrains Mono, monospace;
--radius: 0.5rem;
--shadow-x: 0;
--shadow-y: 1px;
--shadow-blur: 3px;
--shadow-spread: 0px;
--shadow-opacity: 0.1;
--shadow-color: oklch(0 0 0);
--shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
--shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
--shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
--shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
--tracking-normal: 0em;
--spacing: 0.25rem;
} }
.dark { .dark {
--background: hsl(20 14.3% 4.1%); --background: oklch(0.2303 0.0125 264.2926);
--foreground: hsl(0 0% 95%); --foreground: oklch(0.9219 0 0);
--card: hsl(240 5.9% 10%); --card: oklch(0.3210 0.0078 223.6661);
--card-foreground: hsl(0 0% 95%); --card-foreground: oklch(0.9219 0 0);
--popover: hsl(0 0% 9%); --popover: oklch(0.3210 0.0078 223.6661);
--popover-foreground: hsl(0 0% 95%); --popover-foreground: oklch(0.9219 0 0);
--primary: hsl(3, 85%, 32%); --primary: oklch(0.6487 0.1538 150.3071);
--primary-foreground: hsl(180, 33%, 99%); --primary-foreground: oklch(1.0000 0 0);
--secondary: hsl(240 3.7% 15.9%); --secondary: oklch(0.5880 0.0993 245.7394);
--secondary-foreground: hsl(0 0% 98%); --secondary-foreground: oklch(0.9219 0 0);
--muted: hsl(0 0% 15%); --muted: oklch(0.3867 0 0);
--muted-foreground: hsl(240 5% 64.9%); --muted-foreground: oklch(0.7155 0 0);
--accent: hsl(12 6.5% 15.1%); --accent: oklch(0.6746 0.1414 261.3380);
--accent-foreground: hsl(0 0% 98%); --accent-foreground: oklch(0.9219 0 0);
--destructive: hsl(0 62.8% 30.6%); --destructive: oklch(0.6368 0.2078 25.3313);
--destructive-foreground: hsl(0 85.7% 97.3%); --destructive-foreground: oklch(1.0000 0 0);
--border: hsl(240 3.7% 15.9%); --border: oklch(0.3867 0 0);
--input: hsl(240 3.7% 15.9%); --input: oklch(0.3867 0 0);
--ring: hsl(3, 85%, 32%); --ring: oklch(0.6487 0.1538 150.3071);
/* --chart-1: hsl(220 70% 50%); */ --chart-1: oklch(0.6487 0.1538 150.3071);
--chart-1: hsl(22 70% 50%); --chart-2: oklch(0.5880 0.0993 245.7394);
--chart-2: hsl(160 60% 45%); --chart-3: oklch(0.6746 0.1414 261.3380);
--chart-3: hsl(30 80% 55%); --chart-4: oklch(0.8269 0.1080 211.9627);
--chart-4: hsl(280 65% 60%); --chart-5: oklch(0.5905 0.1608 148.2409);
--chart-5: hsl(340 75% 55%); --sidebar: oklch(0.2303 0.0125 264.2926);
--sidebar-background: hsl(240 5.9% 10%); --sidebar-foreground: oklch(0.9219 0 0);
--sidebar-foreground: hsl(240 4.8% 95.9%); --sidebar-primary: oklch(0.6487 0.1538 150.3071);
--sidebar-primary: hsl(224.3 76.3% 48%); --sidebar-primary-foreground: oklch(1.0000 0 0);
--sidebar-primary-foreground: hsl(0 0% 100%); --sidebar-accent: oklch(0.6746 0.1414 261.3380);
--sidebar-accent: hsl(240 3.7% 15.9%); --sidebar-accent-foreground: oklch(0.9219 0 0);
--sidebar-accent-foreground: hsl(240 4.8% 95.9%); --sidebar-border: oklch(0.3867 0 0);
--sidebar-border: hsl(240 3.7% 15.9%); --sidebar-ring: oklch(0.6487 0.1538 150.3071);
--sidebar-ring: hsl(217.2 91.2% 59.8%); --font-sans: Plus Jakarta Sans, sans-serif;
--sidebar: hsl(240 5.9% 10%); --font-serif: Source Serif 4, serif;
--font-mono: JetBrains Mono, monospace;
--radius: 0.5rem;
--shadow-x: 0;
--shadow-y: 1px;
--shadow-blur: 3px;
--shadow-spread: 0px;
--shadow-opacity: 0.1;
--shadow-color: oklch(0 0 0);
--shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
--shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
--shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
--shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
--shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
--shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
} }
@theme inline { @theme inline {
@@ -106,18 +140,32 @@
--color-chart-3: var(--chart-3); --color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4); --color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5); --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);
--font-sans: var(--font-sans);
--font-mono: var(--font-mono);
--font-serif: var(--font-serif);
--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);
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border); --shadow-2xs: var(--shadow-2xs);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --shadow-xs: var(--shadow-xs);
--color-sidebar-accent: var(--sidebar-accent); --shadow-sm: var(--shadow-sm);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --shadow: var(--shadow);
--color-sidebar-primary: var(--sidebar-primary); --shadow-md: var(--shadow-md);
--color-sidebar-foreground: var(--sidebar-foreground); --shadow-lg: var(--shadow-lg);
--color-sidebar: var(--sidebar-background); --shadow-xl: var(--shadow-xl);
--shadow-2xl: var(--shadow-2xl);
--animate-accordion-down: accordion-down 0.2s ease-out; --animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out; --animate-accordion-up: accordion-up 0.2s ease-out;
@@ -125,6 +173,7 @@
from { from {
height: 0; height: 0;
} }
to { to {
height: var(--radix-accordion-content-height); height: var(--radix-accordion-content-height);
} }
@@ -134,6 +183,7 @@
from { from {
height: var(--radix-accordion-content-height); height: var(--radix-accordion-content-height);
} }
to { to {
height: 0; height: 0;
} }
@@ -144,6 +194,7 @@
* { * {
@apply border-border outline-ring/50; @apply border-border outline-ring/50;
} }
body { body {
@apply bg-background text-foreground overscroll-none; @apply bg-background text-foreground overscroll-none;
/* font-feature-settings: "rlig" 1, "calt" 1; */ /* font-feature-settings: "rlig" 1, "calt" 1; */
@@ -161,13 +212,16 @@
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 5px; width: 5px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; background: transparent;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 5px; border-radius: 5px;
background: hsl(var(--border)); background: hsl(var(--border));
} }
* { * {
scrollbar-color: hsl(var(--border)) transparent; scrollbar-color: hsl(var(--border)) transparent;
scrollbar-width: thin; scrollbar-width: thin;
@@ -178,7 +232,8 @@
* { * {
@apply border-border outline-ring/50; @apply border-border outline-ring/50;
} }
body { body {
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }

View File

@@ -0,0 +1,184 @@
@import 'tailwindcss';
@source './components/ui';
@plugin "tailwindcss-animate";
@plugin "@tailwindcss/typography";
@custom-variant dark (&:is(.dark *));
:root {
--background: hsl(0 0% 100%);
--foreground: hsl(240 10% 3.9%);
--card: hsl(0 0% 100%);
--card-foreground: hsl(240 10% 3.9%);
--popover: hsl(0 0% 100%);
--popover-foreground: hsl(240 10% 3.9%);
--primary: hsl(3, 85%, 32%);
--primary-foreground: hsl(355.7 100% 97.3%);
--secondary: hsl(240 4.8% 95.9%);
--secondary-foreground: hsl(240 5.9% 10%);
--muted: hsl(240 4.8% 95.9%);
--muted-foreground: hsl(240 3.8% 46.1%);
--accent: hsl(240 4.8% 95.9%);
--accent-foreground: hsl(240 5.9% 10%);
--destructive: hsl(0 84.2% 60.2%);
--destructive-foreground: hsl(0 0% 98%);
--border: hsl(240 5.9% 90%);
--input: hsl(240 5.9% 90%);
--ring: hsl(3, 85%, 32%);
--radius: 0.7rem;
--chart-1: hsl(12 76% 61%);
--chart-2: hsl(173 58% 39%);
--chart-3: hsl(197 37% 24%);
--chart-4: hsl(43 74% 66%);
--chart-5: hsl(27 87% 67%);
--sidebar-background: hsl(0 0% 98%);
--sidebar-foreground: hsl(240 5.3% 26.1%);
--sidebar-primary: hsl(240 5.9% 10%);
--sidebar-primary-foreground: hsl(0 0% 98%);
--sidebar-accent: hsl(240 4.8% 95.9%);
--sidebar-accent-foreground: hsl(240 5.9% 10%);
--sidebar-border: hsl(220 13% 91%);
--sidebar-ring: hsl(217.2 91.2% 59.8%);
--sidebar: hsl(0 0% 98%);
}
.dark {
--background: hsl(20 14.3% 4.1%);
--foreground: hsl(0 0% 95%);
--card: hsl(240 5.9% 10%);
--card-foreground: hsl(0 0% 95%);
--popover: hsl(0 0% 9%);
--popover-foreground: hsl(0 0% 95%);
--primary: hsl(3, 85%, 32%);
--primary-foreground: hsl(180, 33%, 99%);
--secondary: hsl(240 3.7% 15.9%);
--secondary-foreground: hsl(0 0% 98%);
--muted: hsl(0 0% 15%);
--muted-foreground: hsl(240 5% 64.9%);
--accent: hsl(12 6.5% 15.1%);
--accent-foreground: hsl(0 0% 98%);
--destructive: hsl(0 62.8% 30.6%);
--destructive-foreground: hsl(0 85.7% 97.3%);
--border: hsl(240 3.7% 15.9%);
--input: hsl(240 3.7% 15.9%);
--ring: hsl(3, 85%, 32%);
/* --chart-1: hsl(220 70% 50%); */
--chart-1: hsl(22 70% 50%);
--chart-2: hsl(160 60% 45%);
--chart-3: hsl(30 80% 55%);
--chart-4: hsl(280 65% 60%);
--chart-5: hsl(340 75% 55%);
--sidebar-background: hsl(240 5.9% 10%);
--sidebar-foreground: hsl(240 4.8% 95.9%);
--sidebar-primary: hsl(224.3 76.3% 48%);
--sidebar-primary-foreground: hsl(0 0% 100%);
--sidebar-accent: hsl(240 3.7% 15.9%);
--sidebar-accent-foreground: hsl(240 4.8% 95.9%);
--sidebar-border: hsl(240 3.7% 15.9%);
--sidebar-ring: hsl(217.2 91.2% 59.8%);
--sidebar: hsl(240 5.9% 10%);
}
@theme inline {
--color-background: var(--background);
--color-foreground: var(--foreground);
--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);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);
--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-background);
--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
@keyframes accordion-down {
from {
height: 0;
}
to {
height: var(--radix-accordion-content-height);
}
}
@keyframes accordion-up {
from {
height: var(--radix-accordion-content-height);
}
to {
height: 0;
}
}
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground overscroll-none;
/* font-feature-settings: "rlig" 1, "calt" 1; */
font-synthesis-weight: none;
text-rendering: optimizeLegibility;
}
@supports (font: -apple-system-body) and (-webkit-appearance: none) {
[data-wrapper] {
@apply min-[1800px]:border-t;
}
}
/* Custom scrollbar styling. Thanks @pranathiperii. */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
background: hsl(var(--border));
}
* {
scrollbar-color: hsl(var(--border)) transparent;
scrollbar-width: thin;
}
}
@layer base {
* {
@apply border-border outline-ring/50;
}
body {
@apply bg-background text-foreground;
}
}