mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 01:39:47 +00:00
refactor: use the gradient directly instead of with a custom utility. (#9327)
## Summary Little simpler. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9327-refactor-use-the-gradient-directly-instead-of-with-a-custom-utility-3166d73d36508179876af0ef8cea35b7) by [Unito](https://www.unito.io) --------- Co-authored-by: GitHub Action <action@github.com>
This commit is contained in:
@@ -199,7 +199,7 @@
|
|||||||
#3e1ffc 65.17%,
|
#3e1ffc 65.17%,
|
||||||
#009dff 103.86%
|
#009dff 103.86%
|
||||||
),
|
),
|
||||||
var(--color-button-surface, #2d2e32);
|
linear-gradient(var(--color-button-surface, #2d2e32));
|
||||||
|
|
||||||
/* Code styling colors for help menu*/
|
/* Code styling colors for help menu*/
|
||||||
--code-text-color: rgb(0 122 255 / 1);
|
--code-text-color: rgb(0 122 255 / 1);
|
||||||
@@ -358,26 +358,6 @@
|
|||||||
--button-active-surface: var(--color-charcoal-600);
|
--button-active-surface: var(--color-charcoal-600);
|
||||||
--button-icon: var(--color-smoke-800);
|
--button-icon: var(--color-smoke-800);
|
||||||
|
|
||||||
--subscription-button-gradient:
|
|
||||||
linear-gradient(
|
|
||||||
315deg,
|
|
||||||
rgb(105 230 255 / 0.15) 0%,
|
|
||||||
rgb(99 73 233 / 0.5) 100%
|
|
||||||
),
|
|
||||||
radial-gradient(
|
|
||||||
70.71% 70.71% at 50% 50%,
|
|
||||||
rgb(62 99 222 / 0.15) 0.01%,
|
|
||||||
rgb(66 0 123 / 0.5) 100%
|
|
||||||
),
|
|
||||||
linear-gradient(
|
|
||||||
92deg,
|
|
||||||
#d000ff 0.38%,
|
|
||||||
#b009fe 37.07%,
|
|
||||||
#3e1ffc 65.17%,
|
|
||||||
#009dff 103.86%
|
|
||||||
),
|
|
||||||
var(--color-button-surface, #2d2e32);
|
|
||||||
|
|
||||||
--dialog-surface: var(--color-neutral-700);
|
--dialog-surface: var(--color-neutral-700);
|
||||||
|
|
||||||
--interface-menu-component-surface-hovered: var(--color-charcoal-400);
|
--interface-menu-component-surface-hovered: var(--color-charcoal-400);
|
||||||
@@ -490,7 +470,6 @@
|
|||||||
--color-button-icon: var(--button-icon);
|
--color-button-icon: var(--button-icon);
|
||||||
--color-button-surface: var(--button-surface);
|
--color-button-surface: var(--button-surface);
|
||||||
--color-button-surface-contrast: var(--button-surface-contrast);
|
--color-button-surface-contrast: var(--button-surface-contrast);
|
||||||
--color-subscription-button-gradient: var(--subscription-button-gradient);
|
|
||||||
|
|
||||||
--color-modal-card-background: var(--modal-card-background);
|
--color-modal-card-background: var(--modal-card-background);
|
||||||
--color-modal-card-background-hovered: var(--modal-card-background-hovered);
|
--color-modal-card-background-hovered: var(--modal-card-background-hovered);
|
||||||
@@ -634,10 +613,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility bg-subscription-gradient {
|
|
||||||
background: var(--color-subscription-button-gradient);
|
|
||||||
}
|
|
||||||
|
|
||||||
@utility highlight {
|
@utility highlight {
|
||||||
background-color: color-mix(in srgb, currentColor 20%, transparent);
|
background-color: color-mix(in srgb, currentColor 20%, transparent);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export const buttonVariants = cva({
|
|||||||
'text-destructive-background bg-transparent hover:bg-destructive-background/10',
|
'text-destructive-background bg-transparent hover:bg-destructive-background/10',
|
||||||
'overlay-white': 'bg-white text-gray-600 hover:bg-white/90',
|
'overlay-white': 'bg-white text-gray-600 hover:bg-white/90',
|
||||||
gradient:
|
gradient:
|
||||||
'bg-subscription-gradient text-white border-transparent hover:opacity-90'
|
'bg-(image:--subscription-button-gradient) text-white border-transparent hover:opacity-90'
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
sm: 'h-6 rounded-sm px-2 py-1 text-xs',
|
sm: 'h-6 rounded-sm px-2 py-1 text-xs',
|
||||||
|
|||||||
Reference in New Issue
Block a user