diff --git a/src/frontend/src/style/classes.css b/src/frontend/src/style/classes.css
index f617defb7..25500fbee 100644
--- a/src/frontend/src/style/classes.css
+++ b/src/frontend/src/style/classes.css
@@ -273,11 +273,21 @@ pre {
}
[type="search"]:not(:placeholder-shown)::-webkit-search-cancel-button {
- -webkit-appearance: none;
- background-color: hsl(var(--primary));
opacity: 1 !important;
- -webkit-mask-image: url("data:image/svg+xml;utf8,
");
- background-size: 20px 20px;
- height: 20px;
- width: 20px;
+}
+
+input[type="search"]::-webkit-search-cancel-button {
+ -webkit-appearance: none;
+ height: 16px;
+ width: 16px;
+ margin-left: 0.4em;
+ position: relative;
+ right: -4px;
+ mask-image: url("data:image/svg+xml;utf8,
");
+ background-color: hsl(var(--foreground)) !important;
+ background-image: none;
+ cursor: pointer;
+}
+.react-flow__background pattern circle {
+ fill: hsl(var(--canvas-dot)) !important;
}
diff --git a/src/frontend/src/style/index.css b/src/frontend/src/style/index.css
index 41312c506..4c6cb0924 100644
--- a/src/frontend/src/style/index.css
+++ b/src/frontend/src/style/index.css
@@ -32,18 +32,17 @@
--secondary-hover: 240 6% 90%; /* hsl(240, 6%, 90%) */
--placeholder-foreground: 240 5% 65%; /* hsl(240, 5%, 65%) */
--canvas: 240 5% 96%; /* hsl(240, 5%, 96%) */
+ --canvas-dot: 240 5% 65%; /* hsl(240, 5%, 65%) */
--accent-emerald: 149 80% 90%; /* hsl(149, 80%, 90%) */
--accent-emerald-foreground: 161 41% 30%; /* hsl(161, 41%, 30%) */
+ --accent-emerald-hover: 152.4 76% 80.4%; /* hsl(152.4, 76%, 80.4%) */
--accent-indigo: 226 100% 94%; /* hsl(226, 100%, 94%) */
--accent-indigo-foreground: 243 75% 59%; /* hsl(243, 75%, 59%) */
--accent-pink: 326 78% 95%; /* hsl(326, 78%, 95%) */
--accent-pink-foreground: 333 71% 51%; /* hsl(333, 71%, 51%) */
- --note-amber: 48 97% 77%; /* hsl(48, 97%, 77%) */
--tooltip: 0 0% 0%; /* hsl(0, 0%, 0%) */
--tooltip-foreground: 0 0% 100%; /* hsl(0, 0%, 100%) */
- --canvas-dark: 240 6% 10%; /* hsl(240, 6%, 10%) */
-
--node-selected: 243 75% 59%;
--round-btn-shadow: #00000063;
--ice: #31a3cc;
@@ -89,28 +88,22 @@
--status-blue: #2563eb;
--status-gray: #6b7280;
--connection: #555;
- --note-default: #f1f5f9;
- --note-indigo: #e0e7ff;
- --note-emerald: #d1fae5;
- --note-red: #fee2e2;
+
+ --note-amber: 48 96.6% 76.7%; /* hsl(48, 96.6%, 76.7%) */
+ --note-neutral: 240 5.9% 90%; /* hsl(240, 5.9%, 90%) */
+ --note-rose: 352.7 96.1% 90%; /* hsl(352.7, 96.1%, 90%) */
+ --note-blue: 213.3 96.9% 87.3%; /* hsl(213.3, 96.9%, 87.3%) */
+ --note-lime: 80.9 88.5% 79.6%; /* hsl(80.9, 88.5%, 79.6%) */
+
--error-red: 0, 86%, 97%; /*hsla(0, 86%, 97%)*/
--error-red-border: 0, 96%, 89%; /*hsla(0,96%,89%)*/
- --note-default-opacity: #f1f5f980;
- --note-indigo-opacity: #312e8180;
- --note-emerald-opacity: #064e3b80;
- --note-amber-opacity: #78350f80;
- --note-red-opacity: #7f1d1d80;
+
--code-background: var(--canvas);
- --emerald-success: 160.1 84.1% 39.4%;
- --accent-emerald-foreground: 161.4 93.5% 30.4%;
--placeholder: 240 5% 64.9%;
--hard-zinc: 240 5.2% 33.9%;
--smooth-red: 0 93.3% 94.1%;
--radius: 0.5rem;
- --accent-pink: 327.3 73.3% 97.1%;
- --accent-pink-foreground: 333.3 71.4% 50.6%;
-
--inner-yellow: 40.6 96.1% 40.4%;
--inner-yellow-foreground: 50.4 97.8% 63.5%;
--inner-yellow-muted-foreground: 35.5 91.7% 32.9%;
@@ -180,30 +173,25 @@
--secondary-hover: 240 4% 16%; /* hsl(240, 4%, 16%) */
--placeholder-foreground: 240 4% 46%; /* hsl(240, 4%, 46%) */
--canvas: 0 0% 0%; /* hsl(0, 0%, 0%) */
+ --canvas-dot: 240 5% 34%; /* hsl(240, 5%, 34%) */
--accent-emerald: 164 86% 16%; /* hsl(164, 86%, 16%) */
--accent-emerald-foreground: 158 64% 52%; /* hsl(158, 64%, 52%) */
+ --accent-emerald-hover: 163.1 88.1% 19.8%; /* hsl(163.1, 88.1%, 19.8%) */
--accent-indigo: 242 25% 34%; /* hsl(242, 25%, 34%) */
--accent-indigo-foreground: 234 89% 74%; /* hsl(234, 89%, 74%) */
- --accent-pink: 336 30% 30%; /* hsl(336, 30%, 30%) */
+ --accent-pink: 336 69% 30%; /* hsl(336, 69%, 30%) */
--accent-pink-foreground: 329 86% 70%; /* hsl(329, 86%, 70%) */
- --note-amber: 46 97% 65%; /* hsl(46, 97%, 65%) */
--tooltip: 0 0% 100%; /* hsl(0, 0%, 100%) */
--tooltip-foreground: 0 0% 0%; /* hsl(0, 0%, 0%) */
--error-red: 0, 75%, 15%; /*hsla(0, 75%, 15%)*/
--error-red-border: 0, 70%, 35%; /*hsla(0,70%,35%)*/
- --note-default: #0f172a;
- --note-indigo: #312e81;
- --note-emerald: #064e3b;
- --note-red: #7f1d1d;
- --note-placeholder: 216 12% 84%; /* hsl(216 12% 84%) */
-
- --note-default-opacity: #0f172a80;
- --note-indigo-opacity: #312e8180;
- --note-emerald-opacity: #064e3b80;
- --note-amber-opacity: #78350f80;
- --note-red-opacity: #7f1d1d80;
+ --note-amber: 45.9 96.7% 64.5%; /* hsl(45.9, 96.7%, 64.5%) */
+ --note-neutral: 240 4.9% 83.9%; /* hsl(240, 4.9%, 83.9%) */
+ --note-rose: 352.6 95.7% 81.8%; /* hsl(352.6, 95.7%, 81.8%) */
+ --note-blue: 211.7 96.4% 78.4%; /* hsl(211.7, 96.4%, 78.4%) */
+ --note-lime: 82 84.5% 67.1%; /* hsl(82, 84.5%, 67.1%) */
--node-selected: 234 89% 74%;
@@ -234,8 +222,6 @@
--component-icon: #c35f85;
--flow-icon: #2467e4;
- /* Colors that are shared in dark and light mode */
- --blur-shared: #151923d2;
--build-trigger: #dc735b;
--chat-trigger: #5c8be1;
--chat-trigger-disabled: #2d3b54;
@@ -262,14 +248,10 @@
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 217.2 91.2% 59.8%;
- --emerald-success: 160.1 84.1% 39.4%;
--placeholder: 240 5% 64.9%;
--hard-zinc: 240 5.2% 33.9%;
--smooth-red: 0 93.3% 94.1%;
- --accent-pink: 335.9 69% 30.4%;
- --accent-pink-foreground: 330.4 81.2% 60.4%;
-
--inner-yellow: 47.9 95.8% 53.1%;
--inner-yellow-foreground: 35.5 91.7% 32.9%;
--inner-yellow-muted-foreground: 50.4 97.8% 63.5%;
diff --git a/src/frontend/tailwind.config.mjs b/src/frontend/tailwind.config.mjs
index de91d7425..c33fd29ef 100644
--- a/src/frontend/tailwind.config.mjs
+++ b/src/frontend/tailwind.config.mjs
@@ -69,11 +69,9 @@ const config = {
"build-trigger": "var(--build-trigger)",
"chat-trigger": "var(--chat-trigger)",
"chat-trigger-disabled": "var(--chat-trigger-disabled)",
- "blur-shared": "var(--blur-shared)",
"dark-blue": "var(--dark-blue)",
"dark-gray": "var(--dark-gray)",
"dark-red": "var(--dark-red)",
- "note-placeholder": "var(--note-placeholder)",
error: {
DEFAULT: "var(--error)",
background: "var(--error-background)",
@@ -97,7 +95,11 @@ const config = {
"medium-high-indigo": "var(--medium-high-indigo)",
"medium-indigo": "var(--medium-indigo)",
"medium-low-gray": "var(--medium-low-gray)",
- "note-amber": "var(--note-amber)",
+ "note-amber": "hsl(var(--note-amber))",
+ "note-neutral": "hsl(var(--note-neutral))",
+ "note-rose": "hsl(var(--note-rose))",
+ "note-blue": "hsl(var(--note-blue))",
+ "note-lime": "hsl(var(--note-lime))",
"status-green": "var(--status-green)",
"status-red": "var(--status-red)",
"status-yellow": "var(--status-yellow)",
@@ -120,7 +122,7 @@ const config = {
"code-background": "hsl(var(--code-background))",
canvas: {
DEFAULT: "hsl(var(--canvas))",
- dark: "hsl(var(--canvas-dark))",
+ dot: "hsl(var(--canvas-dot))",
},
ice: "var(--ice)",
selected: "var(--selected)",
@@ -128,13 +130,15 @@ const config = {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
- "error-red":"hsl(var(--error-red))",
- "error-red-border":"hsl(var(--error-red-border))",
+ "error-red": "hsl(var(--error-red))",
+ "error-red-border": "hsl(var(--error-red-border))",
"node-selected": "hsl(var(--node-selected))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
- "emerald-success": "hsl(var(--emerald-success))",
- "accent-emerald-foreground": "hsl(var(--accent-emerald-foreground))",
+ "accent-emerald": {
+ DEFAULT: "hsl(var(--accent-emerald))",
+ foreground: "hsl(var(--accent-emerald-foreground))",
+ },
"emerald-smooth": "hsl(var(--emaral-smooth))",
"emerald-hard": "hsl(var(--emeral-hard))",
placeholder: "hsl(var(--placeholder))",
@@ -166,6 +170,7 @@ const config = {
"accent-emerald": {
DEFAULT: "hsl(var(--accent-emerald))",
foreground: "hsl(var(--accent-emerald-foreground))",
+ hover: "hsl(var(--accent-emerald-hover))",
},
"accent-indigo": {
DEFAULT: "hsl(var(--accent-indigo))",
@@ -377,34 +382,34 @@ const config = {
tailwindcssTypography,
tailwindcssDottedBackground,
plugin(function ({ addUtilities, theme, e }) {
- const colors = theme('colors');
+ const colors = theme("colors");
- const generateUtilities = (colors, prefix = '') => {
+ const generateUtilities = (colors, prefix = "") => {
return Object.keys(colors).reduce((acc, colorName) => {
const colorValue = colors[colorName];
const className = prefix ? `${prefix}-${e(colorName)}` : e(colorName);
- if (typeof colorValue === 'string') {
+ if (typeof colorValue === "string") {
acc[`.truncate-${className}`] = {
- position: 'relative',
- overflow: 'hidden',
- '&::after': {
+ position: "relative",
+ overflow: "hidden",
+ "&::after": {
content: '""',
- position: 'absolute',
- inset: '0 0 0 0',
+ position: "absolute",
+ inset: "0 0 0 0",
background: `linear-gradient(to right, transparent, 75%, ${colorValue})`,
},
};
- } else if (typeof colorValue === 'object') {
+ } else if (typeof colorValue === "object") {
// Use the DEFAULT value for the base class if it exists
if (colorValue.DEFAULT) {
acc[`.truncate-${className}`] = {
- position: 'relative',
- overflow: 'hidden',
- '&::after': {
+ position: "relative",
+ overflow: "hidden",
+ "&::after": {
content: '""',
- position: 'absolute',
- inset: '0 0 0 0',
+ position: "absolute",
+ inset: "0 0 0 0",
background: `linear-gradient(to right, transparent, ${colorValue.DEFAULT})`,
},
};
@@ -419,7 +424,7 @@ const config = {
const newUtilities = generateUtilities(colors);
- addUtilities(newUtilities, ['responsive', 'hover']);
+ addUtilities(newUtilities, ["responsive", "hover"]);
}),
plugin(({ addVariant }) => {
addVariant("group-increment-hover", ":merge(.group-increment):hover &");
diff --git a/src/frontend/tests/core/features/group.spec.ts b/src/frontend/tests/core/features/group.spec.ts
index 5cfdb4ec7..04217fee4 100644
--- a/src/frontend/tests/core/features/group.spec.ts
+++ b/src/frontend/tests/core/features/group.spec.ts
@@ -35,10 +35,7 @@ test.describe("group node test", () => {
await page.getByRole("button", { name: "Group" }).click();
await page.getByTestId("title-Group").dblclick();
- await page
- .getByTestId("popover-anchor-input-title-Group")
- .first()
- .fill("test");
+ await page.getByTestId("input-title-Group").first().fill("test");
await page.getByTestId("icon-Ungroup").first().click();
await page.keyboard.press("Control+g");
await page.getByTestId("title-OpenAI").isVisible();
diff --git a/src/frontend/tests/extended/features/sticky-notes.spec.ts b/src/frontend/tests/extended/features/sticky-notes.spec.ts
index e4b3c8430..9baa9de31 100644
--- a/src/frontend/tests/extended/features/sticky-notes.spec.ts
+++ b/src/frontend/tests/extended/features/sticky-notes.spec.ts
@@ -105,7 +105,10 @@ The future of AI is both exciting and uncertain. As the technology continues to
let hasStyles = await element?.evaluate((el) => {
const style = window.getComputedStyle(el);
- return style.backgroundColor === "rgb(241, 245, 249)";
+ return (
+ style.backgroundColor === "rgb(252, 211, 77)" ||
+ style.backgroundColor === "rgb(253, 230, 138)"
+ );
});
expect(hasStyles).toBe(true);
@@ -113,7 +116,7 @@ The future of AI is both exciting and uncertain. As the technology continues to
await page.getByTestId("color_picker").click();
- await page.getByTestId("color_picker_button_red").click();
+ await page.getByTestId("color_picker_button_rose").click();
await page.waitForTimeout(1000);
await page.getByTestId("note_node").click();
@@ -122,7 +125,11 @@ The future of AI is both exciting and uncertain. As the technology continues to
hasStyles = await element?.evaluate((el) => {
const style = window.getComputedStyle(el);
- return style.backgroundColor === "rgb(254, 226, 226)";
+
+ return (
+ style.backgroundColor === "rgb(253, 164, 175)" ||
+ style.backgroundColor === "rgb(254, 205, 211)"
+ );
});
expect(hasStyles).toBe(true);