Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 60 additions & 23 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "tailwindcss";
@import 'tailwindcss';
@custom-variant dark (&:is(.dark *));
@plugin "@tailwindcss/typography";
@plugin "tailwindcss-animate";
Expand Down Expand Up @@ -37,6 +37,7 @@
--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 {
Expand Down Expand Up @@ -72,6 +73,7 @@
--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 {
Expand Down Expand Up @@ -108,47 +110,71 @@
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring);
--color-transparent: transparent;

--radius-xs: calc(var(--radius) - 4px);
--radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px);

--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
--animate-marquee: marquee var(--duration) linear infinite;
--animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
--animate-border-beam: border-beam calc(var(--duration)*1s) infinite linear;
--animate-ripple: ripple var(--duration,2s) ease calc(var(--i, 0)*.2s) infinite;

--animate-border-beam: border-beam calc(var(--duration) * 1s) infinite linear;
--animate-ripple: ripple var(--duration, 2s) ease calc(var(--i, 0) * 0.2s)
infinite;

@keyframes accordion-down {
from { height: 0; }
to { height: var(--radix-accordion-content-height); }
from {
height: 0;
}
to {
height: var(--radix-accordion-content-height);
}
}

@keyframes accordion-up {
from { height: var(--radix-accordion-content-height); }
to { height: 0; }
from {
height: var(--radix-accordion-content-height);
}
to {
height: 0;
}
}

@keyframes marquee {
from { transform: translateX(0); }
to { transform: translateX(calc(-100% - var(--gap))); }
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - var(--gap)));
}
}

@keyframes marquee-vertical {
from { transform: translateY(0); }
to { transform: translateY(calc(-100% - var(--gap))); }
from {
transform: translateY(0);
}
to {
transform: translateY(calc(-100% - var(--gap)));
}
}

@keyframes border-beam {
100% { offset-distance: 100%; }
100% {
offset-distance: 100%;
}
}

@keyframes ripple {
0%, 100% { transform: translate(-50%, -50%) scale(1); }
50% { transform: translate(-50%, -50%) scale(0.9); }
0%,
100% {
transform: translate(-50%, -50%) scale(1);
}
50% {
transform: translate(-50%, -50%) scale(0.9);
}
}
}

Expand All @@ -161,7 +187,7 @@
button {
cursor: pointer;
}
[class*="border"] {
[class*='border'] {
@apply border-border;
}
}
Expand All @@ -178,3 +204,14 @@
text-wrap: balance;
}
}

@theme inline {
--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);
}
Loading