使用openai进行了代码review
This commit is contained in:
+41
-45
@@ -5,62 +5,58 @@
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 240 10% 93%;
|
||||
/* Main content: 93% gray */
|
||||
--foreground: 240 5% 20%;
|
||||
--card: 0 0% 100%;
|
||||
--card-foreground: 240 5% 15%;
|
||||
--popover: 0 0% 100%;
|
||||
--popover-foreground: 240 5% 15%;
|
||||
--primary: 240 5.9% 10%;
|
||||
--background: 38 20% 95%;
|
||||
/* Softer warm gray background */
|
||||
--foreground: 225 11% 22%;
|
||||
--card: 40 17% 98%;
|
||||
--card-foreground: 225 11% 22%;
|
||||
--popover: 40 17% 98%;
|
||||
--popover-foreground: 225 11% 22%;
|
||||
--primary: 223 21% 20%;
|
||||
--primary-foreground: 0 0% 98%;
|
||||
--secondary: 240 10% 90%;
|
||||
/* Sidebar: 90% gray */
|
||||
--secondary-foreground: 240 5.9% 10%;
|
||||
--muted: 240 4.8% 96%;
|
||||
--muted-foreground: 240 3.8% 46%;
|
||||
--accent: 240 4.8% 96%;
|
||||
--accent-foreground: 240 5.9% 10%;
|
||||
--secondary: 36 18% 92%;
|
||||
--secondary-foreground: 223 18% 24%;
|
||||
--muted: 36 16% 93%;
|
||||
--muted-foreground: 223 9% 42%;
|
||||
--accent: 34 20% 91%;
|
||||
--accent-foreground: 223 18% 24%;
|
||||
--destructive: 0 84.2% 60.2%;
|
||||
--destructive-foreground: 0 0% 98%;
|
||||
--border: 240 5.9% 90%;
|
||||
--input: 240 5.9% 90%;
|
||||
--ring: 240 5.9% 10%;
|
||||
--border: 35 15% 85%;
|
||||
--input: 35 15% 85%;
|
||||
--ring: 223 21% 30%;
|
||||
--radius: 0.75rem;
|
||||
}
|
||||
|
||||
.dark {
|
||||
/* Notion-like Dark Mode (Inverted Hierarchy) - Deepened */
|
||||
--background: 0 0% 9%;
|
||||
/* Main Content: Deep Dark (#171717) */
|
||||
--foreground: 0 0% 92%;
|
||||
--card: 0 0% 9%;
|
||||
/* Match background */
|
||||
--card-foreground: 0 0% 92%;
|
||||
/* Softer dark mode: less pure black, gentler contrast */
|
||||
--background: 220 10% 13%;
|
||||
--foreground: 210 16% 90%;
|
||||
|
||||
--popover: 0 0% 9%;
|
||||
--popover-foreground: 0 0% 92%;
|
||||
--card: 220 10% 15%;
|
||||
--card-foreground: 210 16% 90%;
|
||||
|
||||
--primary: 0 0% 92%;
|
||||
--primary-foreground: 0 0% 10%;
|
||||
--popover: 220 10% 16%;
|
||||
--popover-foreground: 210 16% 90%;
|
||||
|
||||
--secondary: 0 0% 13%;
|
||||
/* Sidebar: Lighter than main (#212121), but deeper than before */
|
||||
--secondary-foreground: 0 0% 92%;
|
||||
--primary: 210 16% 90%;
|
||||
--primary-foreground: 220 12% 14%;
|
||||
|
||||
--muted: 0 0% 13%;
|
||||
--muted-foreground: 0 0% 65%;
|
||||
--secondary: 220 10% 18%;
|
||||
--secondary-foreground: 210 16% 90%;
|
||||
|
||||
--accent: 0 0% 13%;
|
||||
--accent-foreground: 0 0% 92%;
|
||||
--muted: 220 10% 20%;
|
||||
--muted-foreground: 210 10% 72%;
|
||||
|
||||
--destructive: 0 62.8% 30.6%;
|
||||
--destructive-foreground: 0 0% 92%;
|
||||
--accent: 220 10% 22%;
|
||||
--accent-foreground: 210 16% 92%;
|
||||
|
||||
--border: 0 0% 18%;
|
||||
/* Subtle borders */
|
||||
--input: 0 0% 18%;
|
||||
--ring: 0 0% 80%;
|
||||
--destructive: 0 62.8% 35%;
|
||||
--destructive-foreground: 0 0% 96%;
|
||||
|
||||
--border: 220 8% 28%;
|
||||
--input: 220 8% 28%;
|
||||
--ring: 210 16% 78%;
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -209,12 +205,12 @@ ul[data-type="taskList"],
|
||||
|
||||
/* Override Highlight.js background for a softer look */
|
||||
.ProseMirror pre {
|
||||
background: #252529 !important;
|
||||
/* Softer dark gray (hsl(240 5% 15%)), approx matching foreground */
|
||||
background: #2b313a !important;
|
||||
/* Slightly lifted code block background for comfortable reading */
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
background: transparent !important;
|
||||
/* Let pre handle the background */
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user