Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/@n8n/stylelint-config/src/rules/css-var-naming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const PROPERTY_VOCABULARY = new Set([
'color--background',
'color--foreground',
'border-color',
'border-width',
'border-top-color',
'border-bottom-color',
'border-right-color',
Expand All @@ -29,13 +30,20 @@ const PROPERTY_VOCABULARY = new Set([
'height',
'icon-color',
'radius',
'size',
'stroke-width',
'shadow',
'spacing',
'padding',
'font-size',
'font-weight',
'font-family',
'line-height',
'margin',
'margin-right',
'margin-left',
'margin-top',
'margin-bottom',
'z',
'duration',
'easing',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ withDefaults(defineProps<{ size?: 'small' | 'mini' }>(), {

<style lang="scss" module>
.container {
background: var(--color-assistant-highlight-gradient);
background: var(--assistant--color--highlight-gradient);
border-radius: 50%;
display: inline-flex;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ exports[`AskAssistantAvatar > renders mini avatar correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -69,15 +69,15 @@ exports[`AskAssistantAvatar > renders small avatar correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function onMouseLeave() {
&:hover {
border: 0;
cursor: pointer;
background: var(--color-assistant-highlight-reverse);
background: var(--assistant--color--highlight-gradient--reverse);

> div {
background: transparent;
Expand All @@ -75,8 +75,8 @@ function onMouseLeave() {
}

.num {
color: var(--prim-color-white);
background: var(--color-assistant-highlight-reverse);
color: var(--p--color--white);
background: var(--assistant--color--highlight-gradient--reverse);
border-radius: 50%;
width: var(--spacing--sm);
height: var(--spacing--sm);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ exports[`AskAssistantButton > renders default button correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const { t } = useI18n();
.errorText {
color: var(--color--danger);
font-weight: var(--font-weight--regular);
line-height: var(--font-line-height-tight);
line-height: var(--line-height--xs);
word-break: break-word;
flex-grow: 1;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ function onCancelFeedback() {
}

.ratingButton {
--button-hover-background-color: var(--color--foreground--tint-1);
--button-hover-font-color: var(--color--text);
--button-font-color: var(--color--text);
--button--color--background--hover: var(--color--foreground--tint-1);
--button--color--text--hover: var(--color--text);
--button--color--text: var(--color--text);
}

.feedbackContainer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const statusColor = computed(() => {
font-size: var(--font-size--2xs);

&.status-running {
color: var(--execution-card-text-waiting);
color: var(--execution-card--color--text--waiting);
}

&.status-completed {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ const svgFill = computed(() => {
y2="9.82667"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="var(--color-assistant-highlight-1)" />
<stop offset="0.495" stop-color="var(--color-assistant-highlight-2)" />
<stop offset="1" stop-color="var(--color-assistant-highlight-3)" />
<stop stop-color="var(--assistant--color--highlight-1)" />
<stop offset="0.495" stop-color="var(--assistant--color--highlight-2)" />
<stop offset="1" stop-color="var(--assistant--color--highlight-3)" />
</linearGradient>
</defs>
</svg>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ exports[`AssistantIcon > renders blank icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -62,15 +62,15 @@ exports[`AssistantIcon > renders default icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -101,15 +101,15 @@ exports[`AssistantIcon > renders large icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -140,15 +140,15 @@ exports[`AssistantIcon > renders medium icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -179,15 +179,15 @@ exports[`AssistantIcon > renders mini icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down Expand Up @@ -218,15 +218,15 @@ exports[`AssistantIcon > renders small icon correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ withDefaults(defineProps<{ text: string; size?: 'small' | 'medium' | 'large' | '

<style lang="scss" module>
.text {
background: var(--color-assistant-highlight-gradient);
background: var(--assistant--color--highlight-gradient);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const $style = useCssModule();
align-items: center;
gap: var(--spacing--2xs);
border-radius: 22px;
border: 1px solid var(--prim-gray-740);
border: 1px solid var(--p--color--gray-740);
background: rgba(65, 66, 68, 0.92);
cursor: default;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ exports[`N8nCanvasThinkingPill > renders canvas thinking pill correctly 1`] = `
y2="9.82667"
>
<stop
stop-color="var(--color-assistant-highlight-1)"
stop-color="var(--assistant--color--highlight-1)"
/>
<stop
offset="0.495"
stop-color="var(--color-assistant-highlight-2)"
stop-color="var(--assistant--color--highlight-2)"
/>
<stop
offset="1"
stop-color="var(--color-assistant-highlight-3)"
stop-color="var(--assistant--color--highlight-3)"
/>
</lineargradient>
</defs>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ const onClick = () => {
overflow: hidden;

background:
var(--color-askAssistant-button-background-gradient) padding-box,
var(--color-assistant-highlight-gradient) border-box;
var(--assistant--button--color--background--gradient) padding-box,
var(--assistant--color--highlight-gradient) border-box;

> div {
height: 100%;
Expand All @@ -86,21 +86,21 @@ const onClick = () => {
&:hover {
cursor: pointer;
background:
var(--color-askAssistant-button-background-gradient-hover) padding-box,
var(--color-assistant-highlight-reverse) border-box;
var(--assistant--button--color--background--gradient--hover) padding-box,
var(--assistant--color--highlight-gradient--reverse) border-box;

> div {
background: var(--color-assistant-inner-highlight-hover);
background: var(--assistant--button--color--background--hover);
}
}

&:active {
background:
var(--color-askAssistant-button-background-gradient-active) padding-box,
var(--color-assistant-highlight-reverse) border-box;
var(--assistant--button--color--background--gradient--active) padding-box,
var(--assistant--color--highlight-gradient--reverse) border-box;

> div {
background: var(--color-assistant-inner-highlight-active);
background: var(--assistant--button--color--background--active);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,29 +123,29 @@ const alertBoxClassNames = computed(() => {

&.info {
&.light {
color: var(--color-info);
color: var(--color--info);

&.background {
background-color: var.$alert-info-color;
border-color: var(--color-info);
border-color: var(--color--info);
}
}

&.dark {
color: var.$color-white;

&:not(.background) {
color: var(--color-info);
color: var(--color--info);
}

&.background {
background-color: var(--color-info);
background-color: var(--color--info);
border-color: var.$color-white;
}
}

.el-alert__description {
color: var(--color-info);
color: var(--color--info);
}
}

Expand Down
Loading
Loading