Skip to content

Commit

Permalink
Merge pull request #2150 from n8n-io/NODE-1390-icons-dark-mode
Browse files Browse the repository at this point in the history
update icon property description in node base file reference
  • Loading branch information
Deborah authored Jun 11, 2024
2 parents 6aae690 + 3f561d8 commit 6f1506d
Showing 1 changed file with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,23 @@ The internal name of the object. Used to reference it from other places in the n

### `icon`

_String_ | _Required_
_String_ or _Object_ | _Required_

Specifies an icon for a particular node. n8n recommends uploading your own image file.

Starts with `file`. For example, `icon: 'file:exampleNodeIcon.svg'`.
You can provide the icon file name as a string, or as an object to handle different icons for light and dark modes.
If the icon works in both light and dark modes, use a string that starts with `file:`, indicating the path to the icon file. For example:

```
icon: 'file:exampleNodeIcon.svg'
```
To provide different icons for light and dark modes, use an object with `light` and `dark` properties. For example:
```
icon: {
light: 'file:exampleNodeIcon.svg',
dark: 'file:exampleNodeIcon.dark.svg'
}
```

--8<-- "_snippets/integrations/creating-nodes/node-icons.md"

Expand Down

0 comments on commit 6f1506d

Please sign in to comment.