261 lines
6.0 KiB
CSS
261 lines
6.0 KiB
CSS
/* src/app.css or put it where you have your main .css file */
|
|
@import 'tailwindcss';
|
|
|
|
@plugin 'tailwindcss-animate';
|
|
@plugin '@kobalte/tailwindcss';
|
|
|
|
@custom-variant dark (.dark &,[data-kb-theme="dark"] &);
|
|
|
|
@theme {
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
|
|
--color-info: var(--info);
|
|
--color-info-foreground: var(--info-foreground);
|
|
|
|
--color-success: var(--success);
|
|
--color-success-foreground: var(--success-foreground);
|
|
|
|
--color-warning: var(--warning);
|
|
--color-warning-foreground: var(--warning-foreground);
|
|
|
|
--color-error: var(--error);
|
|
--color-error-foreground: var(--error-foreground);
|
|
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
|
|
--radius: 0.5rem;
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--radius-lg: var(--radius);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
|
|
@keyframes accordion-down {
|
|
from {
|
|
height: 0;
|
|
}
|
|
to {
|
|
height: var(--kb-accordion-content-height);
|
|
}
|
|
}
|
|
|
|
@keyframes accordion-up {
|
|
from {
|
|
height: var(--kb-accordion-content-height);
|
|
}
|
|
to {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes content-show {
|
|
from {
|
|
opacity: 0;
|
|
transform: scale(0.96);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes content-hide {
|
|
from {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: scale(0.96);
|
|
}
|
|
}
|
|
|
|
@keyframes caret-blink {
|
|
0%,
|
|
70%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
20%,
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
--animate-content-show: content-show 0.2s ease-out;
|
|
--animate-content-hide: content-hide 0.2s ease-out;
|
|
--animate-caret-blink: caret-blink 1.25s ease-out infinite;
|
|
}
|
|
|
|
@utility container {
|
|
margin-inline: auto;
|
|
padding-inline: 2rem;
|
|
@media (width >= --theme(--breakpoint-sm)) {
|
|
max-width: none;
|
|
}
|
|
@media (width >= 1400px) {
|
|
max-width: 1400px;
|
|
}
|
|
}
|
|
|
|
@utility step {
|
|
counter-increment: step;
|
|
|
|
&:before {
|
|
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
|
|
@apply ml-[-50px] mt-[-4px];
|
|
content: counter(step);
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
:root {
|
|
--color-background: hsl(0 0% 100%);
|
|
--color-foreground: hsl(240 10% 3.9%);
|
|
|
|
--color-muted: hsl(240 4.8% 95.9%);
|
|
--color-muted-foreground: hsl(240 3.8% 46.1%);
|
|
|
|
--color-popover: hsl(0, 83%, 30%);
|
|
--color-popover-foreground: hsl(240 10% 3.9%);
|
|
|
|
--color-border: hsl(240 5.9% 90%);
|
|
--color-input: hsl(240 5.9% 90%);
|
|
|
|
--color-card: hsl(0 0% 100%);
|
|
--color-card-foreground: hsl(240 10% 3.9%);
|
|
|
|
--color-primary: hsl(240 5.9% 10%);
|
|
--color-primary-foreground: hsl(0 0% 98%);
|
|
|
|
--color-secondary: hsl(240 4.8% 95.9%);
|
|
--color-secondary-foreground: hsl(240 5.9% 10%);
|
|
|
|
--color-accent: hsl(240 4.8% 95.9%);
|
|
--color-accent-foreground: hsl(240 5.9% 10%);
|
|
|
|
--color-destructive: hsl(0 84.2% 60.2%);
|
|
--color-destructive-foreground: hsl(0 0% 98%);
|
|
|
|
--color-info: hsl(204 94% 94%);
|
|
--color-info-foreground: hsl(199 89% 48%);
|
|
|
|
--color-success: hsl(149 80% 90%);
|
|
--color-success-foreground: hsl(160 84% 39%);
|
|
|
|
--color-warning: hsl(48 96% 89%);
|
|
--color-warning-foreground: hsl(25 95% 53%);
|
|
|
|
--color-error: hsl(0 93% 94%);
|
|
--color-error-foreground: hsl(0 84% 60%);
|
|
|
|
--color-ring: hsl(240 5.9% 10%);
|
|
}
|
|
|
|
.dark,
|
|
[data-kb-theme="dark"] {
|
|
--color-background: hsl(240 10% 3.9%);
|
|
--color-foreground: hsl(0 0% 98%);
|
|
|
|
--color-muted: hsl(240 3.7% 15.9%);
|
|
--color-muted-foreground: hsl(240 5% 64.9%);
|
|
|
|
--color-accent: hsl(240 3.7% 15.9%);
|
|
--color-accent-foreground: hsl(0 0% 98%);
|
|
|
|
--color-popover: hsl(240 10% 3.9%);
|
|
--color-popover-foreground: hsl(0 0% 98%);
|
|
|
|
--color-border: hsl(240 3.7% 15.9%);
|
|
--color-input: hsl(240 3.7% 15.9%);
|
|
|
|
--color-card: hsl(240 10% 3.9%);
|
|
--color-card-foreground: hsl(0 0% 98%);
|
|
|
|
--color-primary: hsl(0 0% 98%);
|
|
--color-primary-foreground: hsl(240 5.9% 10%);
|
|
|
|
--color-secondary: hsl(240 3.7% 15.9%);
|
|
--color-secondary-foreground: hsl(0 0% 98%);
|
|
|
|
--color-destructive: hsl(0 62.8% 30.6%);
|
|
--color-destructive-foreground: hsl(0 0% 98%);
|
|
|
|
--color-info: hsl(226.2 57% 21%);
|
|
--color-info-foreground: hsl(199 89% 48%);
|
|
|
|
--color-success: hsl(165.7 91.3% 9%);
|
|
--color-success-foreground: hsl(160 84% 39%);
|
|
|
|
--color-warning: hsl(26 83.3% 14.1%);
|
|
--color-warning-foreground: hsl(25 95% 53%);
|
|
|
|
--color-error: hsl(0 74.7% 15.5%);
|
|
--color-error-foreground: hsl(0 84% 60%);
|
|
|
|
--color-ring: hsl(240 4.9% 83.9%);
|
|
}
|
|
|
|
* {
|
|
@apply border-border;
|
|
}
|
|
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
font-feature-settings: "rlig" 1, "calt" 1;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.container {
|
|
@apply px-4;
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 16px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 9999px;
|
|
border: 4px solid transparent;
|
|
background-clip: content-box;
|
|
@apply bg-accent;
|
|
}
|
|
|
|
::-webkit-scrollbar-corner {
|
|
display: none;
|
|
}
|
|
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-gray-200, currentColor);
|
|
}
|
|
}
|