globals.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @import "tailwindcss";
  2. @import "tw-animate-css";
  3. @source "../../../node_modules/streamdown/dist/*.js";
  4. @custom-variant dark (&:is(.dark *));
  5. @theme inline {
  6. --radius-sm: calc(var(--radius) - 4px);
  7. --radius-md: calc(var(--radius) - 2px);
  8. --radius-lg: var(--radius);
  9. --radius-xl: calc(var(--radius) + 4px);
  10. --radius-2xl: calc(var(--radius) + 8px);
  11. --radius-3xl: calc(var(--radius) + 12px);
  12. --radius-4xl: calc(var(--radius) + 16px);
  13. --color-background: var(--background);
  14. --color-foreground: var(--foreground);
  15. --color-card: var(--card);
  16. --color-card-foreground: var(--card-foreground);
  17. --color-popover: var(--popover);
  18. --color-popover-foreground: var(--popover-foreground);
  19. --color-primary: var(--primary);
  20. --color-primary-foreground: var(--primary-foreground);
  21. --color-secondary: var(--secondary);
  22. --color-secondary-foreground: var(--secondary-foreground);
  23. --color-muted: var(--muted);
  24. --color-muted-foreground: var(--muted-foreground);
  25. --color-accent: var(--accent);
  26. --color-accent-foreground: var(--accent-foreground);
  27. --color-destructive: var(--destructive);
  28. --color-border: var(--border);
  29. --color-input: var(--input);
  30. --color-ring: var(--ring);
  31. --color-chart-1: var(--chart-1);
  32. --color-chart-2: var(--chart-2);
  33. --color-chart-3: var(--chart-3);
  34. --color-chart-4: var(--chart-4);
  35. --color-chart-5: var(--chart-5);
  36. }
  37. :root {
  38. --radius: 0.625rem;
  39. --background: oklch(1 0 0);
  40. --foreground: oklch(0.145 0 0);
  41. --card: oklch(1 0 0);
  42. --card-foreground: oklch(0.145 0 0);
  43. --popover: oklch(1 0 0);
  44. --popover-foreground: oklch(0.145 0 0);
  45. --primary: oklch(0.205 0 0);
  46. --primary-foreground: oklch(0.985 0 0);
  47. --secondary: oklch(0.97 0 0);
  48. --secondary-foreground: oklch(0.205 0 0);
  49. --muted: oklch(0.97 0 0);
  50. --muted-foreground: oklch(0.556 0 0);
  51. --accent: oklch(0.97 0 0);
  52. --accent-foreground: oklch(0.205 0 0);
  53. --destructive: oklch(0.577 0.245 27.325);
  54. --border: oklch(0.922 0 0);
  55. --input: oklch(0.922 0 0);
  56. --ring: oklch(0.708 0 0);
  57. --chart-1: oklch(0.646 0.222 41.116);
  58. --chart-2: oklch(0.6 0.118 184.704);
  59. --chart-3: oklch(0.398 0.07 227.392);
  60. --chart-4: oklch(0.828 0.189 84.429);
  61. --chart-5: oklch(0.769 0.188 70.08);
  62. }
  63. .dark {
  64. --background: oklch(0.145 0 0);
  65. --foreground: oklch(0.985 0 0);
  66. --card: oklch(0.205 0 0);
  67. --card-foreground: oklch(0.985 0 0);
  68. --popover: oklch(0.205 0 0);
  69. --popover-foreground: oklch(0.985 0 0);
  70. --primary: oklch(0.922 0 0);
  71. --primary-foreground: oklch(0.205 0 0);
  72. --secondary: oklch(0.269 0 0);
  73. --secondary-foreground: oklch(0.985 0 0);
  74. --muted: oklch(0.269 0 0);
  75. --muted-foreground: oklch(0.708 0 0);
  76. --accent: oklch(0.269 0 0);
  77. --accent-foreground: oklch(0.985 0 0);
  78. --destructive: oklch(0.704 0.191 22.216);
  79. --border: oklch(1 0 0 / 10%);
  80. --input: oklch(1 0 0 / 15%);
  81. --ring: oklch(0.556 0 0);
  82. --chart-1: oklch(0.488 0.243 264.376);
  83. --chart-2: oklch(0.696 0.17 162.48);
  84. --chart-3: oklch(0.769 0.188 70.08);
  85. --chart-4: oklch(0.627 0.265 303.9);
  86. --chart-5: oklch(0.645 0.246 16.439);
  87. }
  88. @layer base {
  89. * {
  90. @apply border-border outline-ring/50;
  91. }
  92. body {
  93. @apply bg-background text-foreground;
  94. }
  95. }
  96. button {
  97. cursor: pointer;
  98. }
  99. @keyframes shimmer {
  100. 0% {
  101. background-position: -200% 0;
  102. }
  103. 100% {
  104. background-position: 200% 0;
  105. }
  106. }
  107. .animate-shimmer {
  108. background: linear-gradient(
  109. 90deg,
  110. currentColor 25%,
  111. hsl(0 0% 64%) 50%,
  112. currentColor 75%
  113. );
  114. background-size: 200% 100%;
  115. -webkit-background-clip: text;
  116. background-clip: text;
  117. -webkit-text-fill-color: transparent;
  118. animation: shimmer 2s ease-in-out infinite;
  119. }