Skip to content

Commit 31c8538

Browse files
christian-byrnegithub-actions
andauthored
[style] match widget border/outline styles with designs (#6021)
## Summary Use semantic color variables from #6018 on widget borders to match [design](https://www.figma.com/design/vALUV83vIdBzEsTJAhQgXq/Comfy-Design-System?node-id=2-5739&m=dev) The layouting of the widgets doesn't align yet, but it's somewhat annoying to change the `WidgetSelect` height without using line height. But, the gap should be 4 (16px) instead of 2, the height of the rows should be 35px instead of 30px and the widgets should be 32px instead of 30px. ## Before <img width="2061" height="1386" alt="Screenshot from 2025-10-11 12-23-24" src="https://github.com/user-attachments/assets/5aa7ba1e-9309-4bd5-95b4-8d8e3d95b50b" /> <img width="2061" height="1386" alt="Screenshot from 2025-10-11 12-23-16" src="https://github.com/user-attachments/assets/9dbabd1b-2174-4dfd-83c2-fef8178c7206" /> ## After <img width="2061" height="1386" alt="Screenshot from 2025-10-11 12-23-06" src="https://github.com/user-attachments/assets/d0b0a611-e65b-462f-ad94-c42639502951" /> <img width="2061" height="1386" alt="Screenshot from 2025-10-11 12-22-57" src="https://github.com/user-attachments/assets/64fb42c8-3d9a-4a2b-956f-482fcd63b64c" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6021-style-match-widget-border-outline-styles-with-designs-2896d73d365081d18dd9cca41cc2b95e) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]>
1 parent 8108aaa commit 31c8538

File tree

4 files changed

+2
-2
lines changed

4 files changed

+2
-2
lines changed
766 Bytes
Loading
753 Bytes
Loading

src/renderer/extensions/vueNodes/widgets/components/WidgetInputNumberInput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const buttonTooltip = computed(() => {
113113
<style scoped>
114114
:deep(.p-inputnumber-input) {
115115
background-color: transparent;
116-
border: 1px solid color-mix(in oklab, #d4d4d8 10%, transparent);
116+
border: 1px solid var(--node-stroke);
117117
border-top: transparent;
118118
border-bottom: transparent;
119119
height: 1.625rem;

src/renderer/extensions/vueNodes/widgets/components/layout/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const WidgetInputBaseClass = cn([
66
'text-node-component-widget-input',
77
// Outline
88
'border-none',
9-
'outline outline-offset-[-1px] outline-zinc-300/10',
9+
'outline outline-offset-[-1px] outline-node-stroke',
1010
// Rounded
1111
'rounded-lg',
1212
// Hover

0 commit comments

Comments
 (0)