mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-05 06:13:15 +00:00
AgentSection computed its folder breadcrumb in a useMemo placed below two early returns for the empty states. A hook after an early return is skipped on the render that takes it, which React rejects outright with "rendered fewer hooks than expected" — the page showed only the error boundary. Reachable now that each filter is its own route: landing straight on an empty one renders once while the data loads and again once it arrives empty, taking the early return the second time. The memo moves above them. Two problems in the chat's entrance animations, found while looking for the reported flicker: - .fade-in-bubble carried `opacity: 0` on the element and reached full opacity only by running `fadeInUp` to completion with `forwards`. The answer text was therefore visible *because* an animation had finished, so anything that stopped one running left it blank — including the obvious reduced-motion reset, which is presumably why the rule covers only .shimmer-text today. The start state moves into the keyframes, the element rests visible, and both entrances now honour prefers-reduced-motion. - The timings were long for their jobs. An expanded tool call reaches its full height at once, so fading its content over half a second read as the content lagging the layout rather than as a reveal; it is now 0.16s. The answer entrance goes to 0.26s with a 6px rise instead of 0.5s and 10px.
934 lines
19 KiB
CSS
934 lines
19 KiB
CSS
@import 'tailwindcss';
|
|
|
|
@import 'tw-animate-css';
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
@theme {
|
|
--font-mono:
|
|
'IBMPlexMono-Medium', ui-monospace, SFMono-Regular, Menlo, Consolas,
|
|
monospace;
|
|
--shadow-modal: 0px 4px 40px -3px #0000001a;
|
|
--shadow-toast: 0px 24px 48px 0px #00000029;
|
|
}
|
|
|
|
/*
|
|
The default border color has changed to `currentcolor` in Tailwind CSS v4,
|
|
so we've added these compatibility styles to make sure everything still
|
|
looks the same as it did with Tailwind CSS v3.
|
|
|
|
If we ever want to remove these styles, we need to add an explicit border
|
|
color utility to any element that depends on these defaults.
|
|
*/
|
|
@layer base {
|
|
*,
|
|
::after,
|
|
::before,
|
|
::backdrop,
|
|
::file-selector-button {
|
|
border-color: var(--color-gray-200, currentcolor);
|
|
}
|
|
}
|
|
|
|
@utility no-scrollbar {
|
|
/* Chrome, Safari and Opera */
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
@utility scrollbar-thin {
|
|
&::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
/* Light theme scrollbar */
|
|
&::-webkit-scrollbar-thumb {
|
|
background: #e2e8f0;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb:hover {
|
|
background: #8c9198;
|
|
}
|
|
|
|
/* Dark theme scrollbar */
|
|
.dark &::-webkit-scrollbar-thumb {
|
|
background: #949494;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.dark &::-webkit-scrollbar-thumb:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #e2e8f0 transparent;
|
|
|
|
.dark & {
|
|
scrollbar-color: #949494 transparent;
|
|
}
|
|
}
|
|
|
|
@utility scrollbar-overlay {
|
|
&::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
&::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
&:hover::-webkit-scrollbar-thumb {
|
|
background: #e2e8f0;
|
|
}
|
|
|
|
&:hover::-webkit-scrollbar-thumb:hover {
|
|
background: #8c9198;
|
|
}
|
|
|
|
.dark &::-webkit-scrollbar-thumb {
|
|
background: transparent;
|
|
border-radius: 9999px;
|
|
}
|
|
|
|
.dark &:hover::-webkit-scrollbar-thumb {
|
|
background: #949494;
|
|
}
|
|
|
|
.dark &:hover::-webkit-scrollbar-thumb:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
/* Standard scrollbar properties (Chrome 121+, Firefox) */
|
|
scrollbar-width: thin;
|
|
scrollbar-color: transparent transparent;
|
|
|
|
&:hover {
|
|
scrollbar-color: #e2e8f0 transparent;
|
|
}
|
|
|
|
.dark & {
|
|
scrollbar-color: transparent transparent;
|
|
}
|
|
|
|
.dark &:hover {
|
|
scrollbar-color: #949494 transparent;
|
|
}
|
|
}
|
|
|
|
@utility table-default {
|
|
@apply border-border text-foreground block w-full table-auto justify-center overflow-auto rounded-xl border text-center;
|
|
|
|
& th {
|
|
@apply p-4 font-normal text-nowrap text-gray-400;
|
|
}
|
|
|
|
& th {
|
|
flex: 1;
|
|
}
|
|
|
|
& th:last-child {
|
|
flex: 0;
|
|
}
|
|
|
|
& td {
|
|
@apply border-border w-full border-t px-4 py-2;
|
|
}
|
|
|
|
& td:last-child {
|
|
@apply border-r-0;
|
|
}
|
|
|
|
& th {
|
|
min-width: 150px;
|
|
max-width: 320px;
|
|
overflow: auto;
|
|
}
|
|
|
|
& td {
|
|
min-width: 150px;
|
|
max-width: 320px;
|
|
overflow: auto;
|
|
}
|
|
|
|
@supports (-moz-appearance: none) {
|
|
& th,
|
|
& td {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #e2e8f0 transparent;
|
|
}
|
|
|
|
.dark & th,
|
|
.dark & td {
|
|
scrollbar-color: #949494 transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer utilities {
|
|
:root {
|
|
--viewport-height: 100vh;
|
|
font-synthesis: none !important;
|
|
}
|
|
|
|
@supports (height: 100dvh) {
|
|
:root {
|
|
--viewport-height: 100dvh; /* Use dvh where supported */
|
|
}
|
|
}
|
|
|
|
html {
|
|
background-color: var(--background);
|
|
}
|
|
body.dark {
|
|
background-color: var(--background);
|
|
}
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: #e2e8f0;
|
|
border-radius: 9999px;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #8c9198;
|
|
}
|
|
.dark ::-webkit-scrollbar-thumb {
|
|
background: #949494;
|
|
}
|
|
.dark ::-webkit-scrollbar-thumb:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
|
|
/* Firefox: base scrollbar styles (Firefox ignores ::-webkit-scrollbar) */
|
|
@supports (-moz-appearance: none) {
|
|
* {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: #e2e8f0 transparent;
|
|
}
|
|
.dark * {
|
|
scrollbar-color: #949494 transparent;
|
|
}
|
|
}
|
|
}
|
|
|
|
@layer base {
|
|
.prompt-variable-highlight {
|
|
background-color: rgba(106, 77, 244, 0.18);
|
|
border-radius: 0.375rem;
|
|
padding: 0 0.25rem;
|
|
}
|
|
|
|
.dark .prompt-variable-highlight {
|
|
background-color: rgba(106, 77, 244, 0.32);
|
|
}
|
|
|
|
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
|
|
|
/* Document
|
|
========================================================================== */
|
|
|
|
/**
|
|
* 1. Correct the line height in all browsers.
|
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
*/
|
|
|
|
html {
|
|
line-height: 1.15; /* 1 */
|
|
-webkit-text-size-adjust: 100%; /* 2 */
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
/* Sections
|
|
========================================================================== */
|
|
|
|
/**
|
|
* Remove the margin in all browsers.
|
|
*/
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: var(--viewport-height);
|
|
overflow-x: hidden;
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
/*
|
|
Avoid over-scrolling in mobile browsers
|
|
*/
|
|
@media only screen and (max-width: 500px) {
|
|
body,
|
|
html {
|
|
min-height: var(--viewport-height);
|
|
position: fixed;
|
|
width: 100%;
|
|
}
|
|
}
|
|
/**
|
|
* Render the `main` element consistently in IE.
|
|
*/
|
|
|
|
main {
|
|
display: block;
|
|
}
|
|
|
|
/**
|
|
* Correct the font size and margin on `h1` elements within `section` and
|
|
* `article` contexts in Chrome, Firefox, and Safari.
|
|
*/
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
/* Grouping content
|
|
========================================================================== */
|
|
|
|
/**
|
|
* 1. Add the correct box sizing in Firefox.
|
|
* 2. Show the overflow in Edge and IE.
|
|
*/
|
|
|
|
hr {
|
|
box-sizing: content-box; /* 1 */
|
|
height: 0; /* 1 */
|
|
overflow: visible; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
*/
|
|
|
|
pre {
|
|
font-family: monospace, monospace; /* 1 */
|
|
font-size: 1em; /* 2 */
|
|
}
|
|
|
|
/* Text-level semantics
|
|
========================================================================== */
|
|
|
|
/**
|
|
* Remove the gray background on active links in IE 10.
|
|
*/
|
|
|
|
a {
|
|
background-color: transparent;
|
|
}
|
|
|
|
/**
|
|
* 1. Remove the bottom border in Chrome 57-
|
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
*/
|
|
|
|
abbr[title] {
|
|
border-bottom: none; /* 1 */
|
|
text-decoration: underline; /* 2 */
|
|
text-decoration: underline dotted; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
*/
|
|
|
|
b,
|
|
strong {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
/**
|
|
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
* 2. Correct the odd `em` font sizing in all browsers.
|
|
*/
|
|
|
|
code,
|
|
kbd,
|
|
samp {
|
|
font-family: monospace, monospace; /* 1 */
|
|
font-size: 1em; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* Add the correct font size in all browsers.
|
|
*/
|
|
|
|
small {
|
|
font-size: 80%;
|
|
}
|
|
|
|
/**
|
|
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
* all browsers.
|
|
*/
|
|
|
|
sub,
|
|
sup {
|
|
font-size: 75%;
|
|
line-height: 0;
|
|
position: relative;
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
sub {
|
|
bottom: -0.25em;
|
|
}
|
|
|
|
sup {
|
|
top: -0.5em;
|
|
}
|
|
|
|
/* Embedded content
|
|
========================================================================== */
|
|
|
|
/**
|
|
* Remove the border on images inside links in IE 10.
|
|
*/
|
|
|
|
img {
|
|
border-style: none;
|
|
}
|
|
|
|
/* Forms
|
|
========================================================================== */
|
|
|
|
/**
|
|
* 1. Change the font styles in all browsers.
|
|
* 2. Remove the margin in Firefox and Safari.
|
|
*/
|
|
|
|
button,
|
|
input,
|
|
optgroup,
|
|
select,
|
|
textarea {
|
|
font-family: inherit; /* 1 */
|
|
font-size: 100%; /* 1 */
|
|
line-height: 1.15; /* 1 */
|
|
margin: 0; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* Show the overflow in IE.
|
|
* 1. Show the overflow in Edge.
|
|
*/
|
|
|
|
button,
|
|
input {
|
|
/* 1 */
|
|
overflow: visible;
|
|
}
|
|
|
|
/**
|
|
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
* 1. Remove the inheritance of text transform in Firefox.
|
|
*/
|
|
|
|
button,
|
|
select {
|
|
/* 1 */
|
|
text-transform: none;
|
|
}
|
|
|
|
/**
|
|
* Correct the inability to style clickable types in iOS and Safari.
|
|
*/
|
|
|
|
button,
|
|
[type='button'],
|
|
[type='reset'],
|
|
[type='submit'] {
|
|
-webkit-appearance: button;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/**
|
|
* Remove the inner border and padding in Firefox.
|
|
*/
|
|
|
|
button::-moz-focus-inner,
|
|
[type='button']::-moz-focus-inner,
|
|
[type='reset']::-moz-focus-inner,
|
|
[type='submit']::-moz-focus-inner {
|
|
border-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
/**
|
|
* Restore the focus styles unset by the previous rule.
|
|
*/
|
|
|
|
button:-moz-focusring,
|
|
[type='button']:-moz-focusring,
|
|
[type='reset']:-moz-focusring,
|
|
[type='submit']:-moz-focusring {
|
|
outline: 1px dotted ButtonText;
|
|
}
|
|
|
|
/**
|
|
* Correct the padding in Firefox.
|
|
*/
|
|
|
|
fieldset {
|
|
padding: 0.35em 0.75em 0.625em;
|
|
}
|
|
|
|
/**
|
|
* 1. Correct the text wrapping in Edge and IE.
|
|
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
* 3. Remove the padding so developers are not caught out when they zero out
|
|
* `fieldset` elements in all browsers.
|
|
*/
|
|
|
|
legend {
|
|
box-sizing: border-box; /* 1 */
|
|
color: inherit; /* 2 */
|
|
display: table; /* 1 */
|
|
max-width: 100%; /* 1 */
|
|
padding: 0; /* 3 */
|
|
white-space: normal; /* 1 */
|
|
}
|
|
|
|
/**
|
|
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
*/
|
|
|
|
progress {
|
|
vertical-align: baseline;
|
|
}
|
|
|
|
/**
|
|
* Remove the default vertical scrollbar in IE 10+.
|
|
*/
|
|
|
|
textarea {
|
|
overflow: auto;
|
|
}
|
|
|
|
/**
|
|
* 1. Add the correct box sizing in IE 10.
|
|
* 2. Remove the padding in IE 10.
|
|
*/
|
|
|
|
[type='checkbox'],
|
|
[type='radio'] {
|
|
box-sizing: border-box; /* 1 */
|
|
padding: 0; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
*/
|
|
|
|
[type='number']::-webkit-inner-spin-button,
|
|
[type='number']::-webkit-outer-spin-button {
|
|
height: auto;
|
|
}
|
|
|
|
/**
|
|
* 1. Correct the odd appearance in Chrome and Safari.
|
|
* 2. Correct the outline style in Safari.
|
|
*/
|
|
|
|
[type='search'] {
|
|
-webkit-appearance: textfield; /* 1 */
|
|
outline-offset: -2px; /* 2 */
|
|
}
|
|
|
|
/**
|
|
* Remove the inner padding in Chrome and Safari on macOS.
|
|
*/
|
|
|
|
[type='search']::-webkit-search-decoration {
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
/**
|
|
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
* 2. Change font properties to `inherit` in Safari.
|
|
*/
|
|
|
|
::-webkit-file-upload-button {
|
|
-webkit-appearance: button; /* 1 */
|
|
font: inherit; /* 2 */
|
|
}
|
|
|
|
/* Interactive
|
|
========================================================================== */
|
|
|
|
/*
|
|
* Add the correct display in Edge, IE 10+, and Firefox.
|
|
*/
|
|
|
|
details {
|
|
display: block;
|
|
}
|
|
|
|
/*
|
|
* Add the correct display in all browsers.
|
|
*/
|
|
|
|
summary {
|
|
display: list-item;
|
|
}
|
|
|
|
/* Misc
|
|
========================================================================== */
|
|
|
|
/**
|
|
* Add the correct display in IE 10+.
|
|
*/
|
|
|
|
template {
|
|
display: none;
|
|
}
|
|
|
|
/**
|
|
* Add the correct display in IE 10.
|
|
*/
|
|
|
|
[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
[contentEditable]:empty:before {
|
|
content: attr(placeholder);
|
|
color: #9ca3af;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* third container laylout for Firefox */
|
|
@-moz-document url-prefix() {
|
|
.firefox {
|
|
padding: 32px;
|
|
}
|
|
}
|
|
|
|
/* For screens with a maximum width of 768px (mobile) */
|
|
@media (max-width: 768px) {
|
|
.firefox {
|
|
padding: 16px;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Inter';
|
|
font-weight: 100 200 300 400 500 600 700 800 900;
|
|
src: url('/fonts/Inter-Variable.ttf');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'IBMPlexMono-Medium';
|
|
font-weight: 500;
|
|
src: url('/fonts/IBMPlexMono-Medium.ttf');
|
|
}
|
|
|
|
/* Light mode specific autofill styles */
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:focus,
|
|
input:-webkit-autofill:active {
|
|
-webkit-text-fill-color: #343541 !important;
|
|
-webkit-box-shadow: 0 0 0 30px transparent inset !important;
|
|
transition: background-color 5000s ease-in-out 0s;
|
|
caret-color: #343541;
|
|
}
|
|
|
|
/* Dark mode specific autofill styles */
|
|
.dark input:-webkit-autofill,
|
|
.dark input:-webkit-autofill:hover,
|
|
.dark input:-webkit-autofill:focus,
|
|
.dark input:-webkit-autofill:active {
|
|
-webkit-text-fill-color: #e5e7eb !important;
|
|
-webkit-box-shadow: 0 0 0 30px transparent inset !important;
|
|
background-color: transparent !important;
|
|
caret-color: #e5e7eb;
|
|
}
|
|
|
|
/* Additional autocomplete dropdown styles for dark mode */
|
|
.dark input:-webkit-autofill::first-line {
|
|
color: #e5e7eb;
|
|
}
|
|
|
|
.inputbox-style {
|
|
resize: none;
|
|
padding-left: 36px;
|
|
padding-right: 36px;
|
|
}
|
|
|
|
.bottom-safe {
|
|
bottom: env(safe-area-inset-bottom, 0);
|
|
}
|
|
|
|
.ellipsis-text {
|
|
overflow: hidden;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.logs-table {
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* Disclosure content, e.g. an expanded tool call. Short on purpose: the
|
|
panel's height appears at once, so a long fade reads as the content
|
|
lagging behind the layout rather than as a reveal. */
|
|
.fade-in {
|
|
animation: fadeIn 0.16s ease-out;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* The start state lives in the keyframes, not here: with `opacity: 0` on
|
|
the element itself the content was only ever visible *because* an
|
|
animation had run to completion, so anything that stopped it running —
|
|
a cancelled animation, a reduced-motion reset — left the answer blank.
|
|
The element now rests visible and the animation is purely additive. */
|
|
.fade-in-bubble {
|
|
animation: fadeInUp 0.26s ease-out;
|
|
}
|
|
|
|
.shimmer-text {
|
|
background: linear-gradient(
|
|
90deg,
|
|
#6b7280 0%,
|
|
#6b7280 40%,
|
|
#d1d5db 50%,
|
|
#6b7280 60%,
|
|
#6b7280 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
color: transparent;
|
|
animation: shimmer-sweep 2s linear infinite;
|
|
}
|
|
|
|
.dark .shimmer-text {
|
|
background-image: linear-gradient(
|
|
90deg,
|
|
#9ca3af 0%,
|
|
#9ca3af 40%,
|
|
#f9fafb 50%,
|
|
#9ca3af 60%,
|
|
#9ca3af 100%
|
|
);
|
|
}
|
|
|
|
@keyframes shimmer-sweep {
|
|
to {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.shimmer-text {
|
|
animation: none;
|
|
color: inherit;
|
|
background: none;
|
|
}
|
|
|
|
/* Same specificity as the dark gradient above, which would otherwise
|
|
outrank the reset and paint the sweep as a solid bar behind the text. */
|
|
.dark .shimmer-text {
|
|
background-image: none;
|
|
}
|
|
|
|
/* Safe to drop outright now that both rest in their final state. */
|
|
.fade-in,
|
|
.fade-in-bubble {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(6px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes spinner-rotate {
|
|
100% {
|
|
transform: rotate(1turn);
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
---break---
|
|
*/
|
|
|
|
@theme inline {
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--radius-2xl: calc(var(--radius) + 8px);
|
|
--radius-3xl: calc(var(--radius) + 12px);
|
|
--radius-4xl: calc(var(--radius) + 16px);
|
|
--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-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);
|
|
--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);
|
|
--color-answer-bubble: var(--answer-bubble);
|
|
}
|
|
|
|
/*
|
|
---break---
|
|
*/
|
|
|
|
:root {
|
|
--radius: 0.625rem;
|
|
--background: #ffffff;
|
|
--foreground: #171717;
|
|
--card: #ffffff;
|
|
--card-foreground: #171717;
|
|
--popover: #ffffff;
|
|
--popover-foreground: #171717;
|
|
--primary: #7d54d1;
|
|
--primary-foreground: #ffffff;
|
|
--secondary: #f4f4f4;
|
|
--secondary-foreground: #7d54d1;
|
|
--muted: #f6f6f6;
|
|
--muted-foreground: #737373;
|
|
--accent: #ececec;
|
|
--accent-foreground: #171717;
|
|
--destructive: #ef4444;
|
|
--border: #d9d9d9;
|
|
--input: #d9d9d9;
|
|
--ring: #7d54d1;
|
|
--chart-1: oklch(0.646 0.222 41.116);
|
|
--chart-2: oklch(0.6 0.118 184.704);
|
|
--chart-3: oklch(0.398 0.07 227.392);
|
|
--chart-4: oklch(0.828 0.189 84.429);
|
|
--chart-5: oklch(0.769 0.188 70.08);
|
|
--sidebar: #fbfbfb;
|
|
--sidebar-foreground: #171717;
|
|
--sidebar-primary: #7d54d1;
|
|
--sidebar-primary-foreground: #ffffff;
|
|
--sidebar-accent: #ececec;
|
|
--sidebar-accent-foreground: #171717;
|
|
--sidebar-border: #d9d9d9;
|
|
--sidebar-ring: #7d54d1;
|
|
--answer-bubble: #f6f6f6;
|
|
}
|
|
|
|
/*
|
|
---break---
|
|
*/
|
|
|
|
.dark {
|
|
--background: #222327;
|
|
--foreground: #fafafa;
|
|
--card: #2b2c31;
|
|
--card-foreground: #fafafa;
|
|
--popover: #2b2c31;
|
|
--popover-foreground: #fafafa;
|
|
--primary: #976af3;
|
|
--primary-foreground: #ffffff;
|
|
--secondary: #2b2c31;
|
|
--secondary-foreground: #e0e0e0;
|
|
--muted: #35363b;
|
|
--muted-foreground: #a1a1a1;
|
|
--accent: #3e3f45;
|
|
--accent-foreground: #fafafa;
|
|
--destructive: #dc2626;
|
|
--border: #44454c;
|
|
--input: #44454c;
|
|
--ring: #976af3;
|
|
--chart-1: oklch(0.488 0.243 264.376);
|
|
--chart-2: oklch(0.696 0.17 162.48);
|
|
--chart-3: oklch(0.769 0.188 70.08);
|
|
--chart-4: oklch(0.627 0.265 303.9);
|
|
--chart-5: oklch(0.645 0.246 16.439);
|
|
--sidebar: #161616;
|
|
--sidebar-foreground: #fafafa;
|
|
--sidebar-primary: #976af3;
|
|
--sidebar-primary-foreground: #ffffff;
|
|
--sidebar-accent: #222327;
|
|
--sidebar-accent-foreground: #fafafa;
|
|
--sidebar-border: #2b2c31;
|
|
--sidebar-ring: #976af3;
|
|
--answer-bubble: #2e303e;
|
|
}
|
|
|
|
/*
|
|
---break---
|
|
*/
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
}
|
|
|
|
/* Picker portals outside Radix's tree; force interactivity + raise z so
|
|
clicks land when a Modal/Sheet is also open. */
|
|
.picker-dialog,
|
|
.picker-dialog-bg {
|
|
pointer-events: auto !important;
|
|
z-index: 9999 !important;
|
|
}
|