Iconoir Icons

by @gapmiss
5
4
3
2
1
Score: 54/100

Description

Category: Customization & UI

The Iconoir Icons plugin allows users to easily integrate and display customized Iconoir SVG icons within their Obsidian notes. Users can search for icons, apply custom CSS styles, and insert icons using a straightforward syntax. This plugin supports various formatting options, including colors, dimensions, and additional CSS rules, making it highly flexible for styling and note customization. Features include integration with markdown for tasks, lists, headings, callouts, and tables, ensuring a seamless design experience. Advanced users can also leverage CSS classes and data attributes for further customization.

Reviews

No reviews yet.

Stats

19
stars
4,909
downloads
0
forks
1,041
days
1,053
days
1,053
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

3 years ago

Changelog

minor refactoring for publishing to Community Plugins

README file from

Github

iconoir-icons

A plugin for creating & displaying customized SVG Iconoir Icons in Obsidian.

⚠️ NOTICE

Copyright (c) 2023 Luca Burgio - https://iconoir.com; License - https://github.com/lucaburgio/iconoir/blob/main/LICENSE (Code: MIT License)

features

icon search suggestions

iconoir suggester

custom CSS styles

iconoir suggester

syntax

To trigger the icon name suggestion interface, type the ampersand key twice(&&) and start typing a query.

The syntax for the icon component is:

`~![ICON|COLOR|W|H|STYLE]`

The delimiter is the pipe symbol `|`.

ICON   = the name of the icon e.g. iconoir-peace-hand
COLOR  = the CSS color of the icon e.g. purple
W      = the CSS width of the icon e.g. 1em
H      = the CSS height of the icon e.g. 1em
STYLE  = the CSS rule(s) for the icon component e.g. float:right;

ONLY the ICON name is required. ALL others optional, but cannot be empty.

`~![iconoir-peace-hand|purple|1em|1em|float:right;]`

examples

See the examples directory for additional sample code.

basic block

Alpha Bravo `~![iconoir-antenna|green|22px|22px]` Charlie Delta `~![iconoir-wristwatch|red|22px|22px]` Echo Foxtrot Golf `~![iconoir-golf|green|22px|22px]` Hotel India Juliet Kilo `~![iconoir-airplane|red|22px|22px]` Lima Mike November `~![iconoir-calendar|magenta|22px|22px]` Oscar Papa Quebec Romeo Sierra `~![iconoir-compass|var(--color-orange)|22px|22px]` Tango Uniform Victor `~![iconoir-dashboard-dots|red|22px|22px]` Whiskey Xray Yankee Zulu
results

screenshot of basic block

`~![iconoir-leaf|green|48px|48px|float:right;]` lorem ipsum dolor sit amet, consectetur adipiscing elit. morbi bibendum commodo congue. vivamus efficitur aliquam felis, id viverra eros blandit sit amet. nam feugiat purus ac sem aliquam, sit amet dictum dui bibendum. sed tincidunt porttitor odio at feugiat. cras sed viverra libero. suspendisse potenti. nulla eu ullamcorper quam, in tempus nulla. quisque accumsan euismod finibus.
results

screenshot of block section

lists

- `~![iconoir-rocket|var(--color-purple)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
- `~![iconoir-rocket|var(--color-yellow)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
- `~![iconoir-rocket|var(--color-red)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
- `~![iconoir-rocket|var(--color-blue)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
- `~![iconoir-rocket|var(--color-green)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
- `~![iconoir-rocket|var(--color-orange)]` Alpha Bravo Charlie Delta Echo Foxtrot Golf
results

screenshot of list

- [ ] `~![iconoir-calendar-minus|currentColor]` task list a task list a task list
- [ ] `~![iconoir-calendar-plus|currentColor]` task list a task list a task list
- [ ] `~![iconoir-check-circle|currentColor]` task list a task list a task list
- [ ] `~![iconoir-clipboard-check|currentColor]` task list a task list a task list
- [ ] `~![iconoir-redo-circle|currentColor]` task list a task list a task list
- [ ] `~![iconoir-refresh-circular|currentColor]` task list a task list a task list
results

screenshot of tasks

headings

# `~![iconoir-code-brackets|currentColor]` A Heading w/ an Iconoir Icon
## A Heading w/ an Iconoir Icon `~![iconoir-code|currentColor]`
### A Heading `~![iconoir-code-brackets|currentColor]` w/ an Iconoir Icon
#### A Heading w/ an Iconoir Icon `~![iconoir-code-brackets|orange]`
##### `~![iconoir-code-brackets|red|1.5em|1.5em]` A Heading w/ an Iconoir Icon
###### A Heading w/ an Iconoir Icon `~![iconoir-code|green|1.5em|1.5em]`
results

screenshot of headings

callout styled block

`~![iconoir-brain|currentColor|48px|48px]` **Lorem Ipsum Dolor Sit Amet** consectetur adipiscing elit. morbi bibendum commodo congue. vivamus efficitur aliquam felis, id viverra eros blandit sit amet. nam feugiat purus ac sem aliquam, sit amet dictum dui bibendum. sed tincidunt porttitor odio at feugiat. cras sed viverra libero. suspendisse potenti. nulla eu ullamcorper quam, in tempus nulla. quisque accumsan euismod finibus.
p:has(iconoir-icon[name=iconoir-brain]) {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  color: var(--text-muted);
  border-radius: 6px;
  border: 2px dashed var(--color-purple);
  padding: 9px 18px;
  background-color: rgba(var(--color-purple-rgb), 0.15);
  text-align: justify;
}
iconoir-icon[name=iconoir-brain] {
  color:var(--color-purple);
  display:flex;
  margin-right: 7px;
}
strong {
  color:var(--color-purple);
  font-size: 1.88em;  
  text-align: center;
  flex-grow: 1;
}
results

screenshot of callout

tables

NOTE: When using icons in a table, the PIPE | symbol must be escaped w/ a BACKSLASH \ e.g. \|

|                  icon                  | name        |
|:--------------------------------------:| ----------- |
| `~![iconoir-bread-slice\|saddlebrown]` | bread-slice |
| `~![iconoir-peace-hand\|currentColor]` | peace-hand  |
|     `~![iconoir-pizza-slice\|red]`     | pizza-slice |
| `~![iconoir-wifi\|var(--color-cyan)]`  | wifi        |

results

screenshot of html table

additional CSS class support

  • When using icons inside a <th> or <td>, the CSS class special-iconoir-th-callout or special-iconoir-td-callout is added to the element.
  • When using icons inside a <li>, the CSS class special-iconoir-list-callout is added to the element.
  • In addition, a data-icon attribute, w/ the icon name, is added to the same element for added specificity.
<td class="special-iconoir-th-callout" data-icon="iconoir-heart">
 <icon-component>
</td>

<li class="special-iconoir-list-callout" data-icon="iconoir-peace-hand">
 <icon-component>
</li>

plugin installation

From Obsidian's settings or preferences:

  1. Community Plugins > Browse
  2. Search for "iconoir"

or:

  1. download the latest release archive
  2. uncompress the downloaded archive
  3. move the iconoir-icons folder to /path/to/vault/.obsidian/plugins/
  4. Settings > Community plugins > reload Installed plugins
  5. enable plugin

or:

  1. download dist/main.js, manifest.json & styles.css
  2. create a new folder /path/to/vault/.obsidian/plugins/iconoir-icons
  3. move all 3 files to /path/to/vault/.obsidian/plugins/iconoir-icons
  4. Settings > Community plugins > reload Installed plugins
  5. enable plugin

screenshots

iconoir-icons-light

iconoir-icons-dark

development

clone this repo

cd /path/to/vault/.obsidian/plugins
git clone https://github.com/gapmiss/iconoir-icons.git
cd iconoir-icons

install packages and run

npm i
npm run dev

enable plugin

  1. open SettingsCommunity plugins
  2. enable the Iconoir Icons plugin.

caveats

  • 2023-02-09 None known at this time.
  • 2023-05-27 None known at this time.

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Iconize
5 years ago by FlorianWoelki
Simply add icons to anything you want in Obsidian.
Iconic
2 years ago by Holo
Customize your icons and colors directly from the Obsidian UI, including tabs, files & folders, bookmarks, tags, properties, and ribbon commands.
Callout Manager
3 years ago by eth-p
An Obsidian.md plugin that makes creating and configuring callouts easy.
Icons
5 years ago by Camillo Visini
Add icons to your Obsidian notes – Experimental Obsidian Plugin
Icon Shortcodes
4 years ago by AidenLx
Obsidian Plugin: Insert emoji and custom icons with shortcodes
Custom Sidebar Icons
2 years ago by RavenHogWarts
Custom Icons
Icon Swapper
5 years ago by mgmeyers
Allows swapping out Obsidian's icons
Pathfinder 2E Action Icons
3 years ago by Thiago Coutinho
Obsidian plugin for easily insertind the Pathfinder 2E Action icons
SwiftLaTeX Render
2 years ago by gboyd068
Metadata Icon
2 years ago by Benature
change metadata entry icon
Material Symbols
3 years ago by Cristoph Berane
Additional Icons
2 years ago by Matthew Turk
Add additional iconsets to Obsidian
Inline Callouts
a year ago by @gapmiss
An Obsidian.md plugin for displaying inline "callouts" badges & icons.
Syncthing status icon
a year ago by Diego Viero
NerdFont Icon Picker
a year ago by Xaver Wenhart
a simple nerdfont icon picker for obsidian
Mermaid Icons
3 months ago by toshs
Obsidian plugin enabling the use of icons in Mermaid diagrams.
Textgrams
a year ago by Akop Kesheshyan
Create and store ASCII graphics in your Obsidian
SVG Style Editor
a year ago by ARGOSTA
An Obsisan.md plugin for styling embeded SVG files
Note Favicon
a year ago by mdklab
Obsidian plugin – Show Favicon from Metadata
CalloutX
a year ago by br4in
An Obsidian plugin that allows you to view, manage, and customise callout icons in your vault.
Image Preview on Icon Hover
a year ago by rama1997
Plugin for Obsidian that add image popups when hovering over various icons in the user interface
My SVGs
4 months ago by Omar Badawy
An Obsidian plugin that Registers your own SVGs into Obsidian's global icon library for use with other plugins or however you want.