Update styling colors to use variable names

This commit is contained in:
anovazzi1 2024-03-04 13:41:35 -03:00
commit a471cbfc42
4 changed files with 8 additions and 5 deletions

View file

@ -361,15 +361,15 @@ export default function ParameterComponent({
> >
{!left && data.node?.pinned && {!left && data.node?.pinned &&
<div> <div>
<IconComponent className="w-5 h-5 text-blue-400" name={"Snowflake"} /> <IconComponent className="w-5 h-5 text-ice" name={"Snowflake"} />
</div>} </div>}
{proxy ? ( {proxy ? (
<ShadTooltip content={<span>{proxy.id}</span>}> <ShadTooltip content={<span>{proxy.id}</span>}>
<span>{title}</span> <span className={!left && data.node?.pinned?" text-ice":""}>{title}</span>
</ShadTooltip> </ShadTooltip>
) : ( ) : (
title <span className={!left && data.node?.pinned?" text-ice":""}>{title}</span>
)} )}
<span className={(info === "" ? "" : "ml-1 ") + " text-status-red"}> <span className={(info === "" ? "" : "ml-1 ") + " text-status-red"}>
{required ? " *" : ""} {required ? " *" : ""}
</span> </span>

View file

@ -291,7 +291,7 @@ export default function NodeToolbarComponent({
className={cn( className={cn(
"h-4 w-4 transition-all", "h-4 w-4 transition-all",
// TODO UPDATE THIS COLOR TO BE A VARIABLE // TODO UPDATE THIS COLOR TO BE A VARIABLE
pinned ? "animate-wiggle text-blue-400" : "" pinned ? "animate-wiggle text-ice" : ""
)} )}
/> />
</button> </button>

View file

@ -27,6 +27,7 @@
--radius: 0.5rem; --radius: 0.5rem;
--ring: 215 20.2% 65.1%; /* hsl(215 20% 65%) */ --ring: 215 20.2% 65.1%; /* hsl(215 20% 65%) */
--round-btn-shadow: #00000063; --round-btn-shadow: #00000063;
--ice: #31a3cc;
--error-background: #fef2f2; --error-background: #fef2f2;
--error-foreground: #991b1b; --error-foreground: #991b1b;
@ -67,6 +68,7 @@
.dark { .dark {
--background: 224 35% 7.5%; /* hsl(224 40% 10%) */ --background: 224 35% 7.5%; /* hsl(224 40% 10%) */
--foreground: 213 31% 80%; /* hsl(213 31% 91%) */ --foreground: 213 31% 80%; /* hsl(213 31% 91%) */
--ice: #60A5FA;
--muted: 223 27% 11%; /* hsl(223 27% 11%) */ --muted: 223 27% 11%; /* hsl(223 27% 11%) */
--muted-foreground: 215.4 16.3% 56.9%; /* hsl(215 16% 56%) */ --muted-foreground: 215.4 16.3% 56.9%; /* hsl(215 16% 56%) */

View file

@ -87,6 +87,7 @@ module.exports = {
"beta-foreground": "var(--beta-foreground)", "beta-foreground": "var(--beta-foreground)",
"chat-bot-icon": "var(--chat-bot-icon)", "chat-bot-icon": "var(--chat-bot-icon)",
"chat-user-icon": "var(--chat-user-icon)", "chat-user-icon": "var(--chat-user-icon)",
"ice": "var(--ice)",
white: "var(--white)", white: "var(--white)",
border: "hsl(var(--border))", border: "hsl(var(--border))",