Skip to content

Build your personal knowledge base with Trilium Notes

feat(icon-pack-builder): build the AI provider and import source marks into a font

Elian Doranb5dc54670669
diff --git a/apps/client/src/fonts/brand-icons.woff2 b/apps/client/src/fonts/brand-icons.woff2
new file mode 100644
index 0000000000..4294d45b09
Binary files /dev/null and b/apps/client/src/fonts/brand-icons.woff2 differ
diff --git a/apps/icon-pack-builder/brand-icons/anthropic.svg b/apps/icon-pack-builder/brand-icons/anthropic.svg
new file mode 100644
index 0000000000..5b81844cbd
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/anthropic.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Anthropic</title><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/antigravity.svg b/apps/icon-pack-builder/brand-icons/antigravity.svg
new file mode 100644
index 0000000000..784fc63dbe
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/antigravity.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Antigravity</title><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/anytype.svg b/apps/icon-pack-builder/brand-icons/anytype.svg
new file mode 100644
index 0000000000..7fa6e11cac
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/anytype.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.4 -2.4 28.8 28.8"><title>Anytype SVG Icon</title><path fill="currentColor" d="M5.333 0h13.334A5.32 5.32 0 0 1 24 5.333v13.334A5.32 5.32 0 0 1 18.667 24H5.333A5.32 5.32 0 0 1 0 18.667V5.333A5.32 5.32 0 0 1 5.333 0m10.334 7.667v-3H6.344v3zm0 0v11.666h3V7.667ZM9.5 19.333a4.833 4.833 0 1 0 0-9.666a4.833 4.833 0 0 0 0 9.666"/></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/brave.svg b/apps/icon-pack-builder/brand-icons/brave.svg
new file mode 100644
index 0000000000..639299e78c
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/brave.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Brave</title><path d="M17.544 2.375c.017-.005 1.844-.5 2.712.361.872.872 1.588 1.642 1.588 1.642l-.565 1.38v-.003.006-.003L22 7.8c-.014.05-2.112 7.983-2.357 8.954-.488 1.924-.819 2.663-2.202 3.638a212.634 212.634 0 01-4.305 2.917c-.41.252-.92.691-1.383.691-.463 0-.974-.439-1.383-.691a213.099 213.099 0 01-4.306-2.917c-1.383-.975-1.72-1.714-2.2-3.632-.246-.977-2.35-8.904-2.364-8.96l.722-2.045-.566-1.383s.722-.764 1.594-1.63c.866-.872 2.712-.36 2.712-.36L8.066 0h7.373l2.105 2.375zm-5.797 12.557c-.138 0-1.04.318-1.762.691l-.457.234c-.487.253-.823.428-.956.506-.168.108-.066.306.09.414.15.103 2.195 1.684 2.394 1.865l.09.078c.186.168.432.391.607.391.174 0 .415-.223.607-.391l.084-.078c.2-.169 2.244-1.756 2.394-1.865.15-.108.258-.3.09-.408-.133-.084-.475-.253-.956-.506h-.006l-.457-.24c-.722-.373-1.623-.691-1.762-.691zm.006-11.276c-.35.02-.694.092-1.023.211l-.378.126c-.493.169-.969.331-1.21.331-.312 0-2.554-.428-2.584-.433 0 0-2.706 3.26-2.706 3.957 0 .577.228.805.504 1.07l.174.175 2.033 2.152.06.067c.204.204.5.498.29.998l-.043.102c-.228.535-.511 1.203-.15 1.876.384.716 1.046 1.19 1.467 1.118.42-.084 1.419-.601 1.78-.841.367-.229 1.52-1.19 1.521-1.551 0-.307-.829-.812-1.238-1.053l-.18-.12-.199-.12c-.367-.229-1.035-.644-1.047-.825-.018-.228-.017-.294.283-.853l.21-.379c.289-.487.602-1.029.536-1.426-.085-.433-.777-.685-1.36-.901l-.21-.078-.613-.229c-.583-.222-1.232-.463-1.34-.511-.145-.073-.11-.132.335-.174l.223-.025c.553-.06 1.582-.168 2.08-.03l.32.09c.564.145 1.25.337 1.316.445l.03.048c.067.09.109.145.037.53l-.121.607c-.15.806-.391 2.069-.421 2.351l-.012.115c-.042.312-.066.529.301.613.438.119.884.206 1.335.259.216 0 .824-.144 1.24-.24l.095-.025c.367-.078.343-.289.3-.602l-.011-.12c-.03-.282-.27-1.54-.42-2.345l-.122-.614c-.072-.384-.024-.439.036-.529l.03-.048c.067-.108.753-.294 1.318-.444l.318-.091c.5-.138 1.528-.03 2.081.03l.216.018c.451.048.493.108.343.18-.11.049-.758.29-1.341.512-.273.108-.547.21-.823.307-.583.216-1.275.468-1.36.907-.066.391.247.939.535 1.42l.21.379c.301.56.308.625.284.854-.012.18-.68.595-1.053.824l-.192.126-.181.108c-.41.247-1.238.758-1.238 1.059 0 .367 1.16 1.316 1.521 1.55.367.235 1.36.758 1.78.836.421.078 1.082-.396 1.467-1.112.36-.673.078-1.335-.15-1.876l-.042-.102c-.21-.5.084-.794.289-1.004l.065-.06 2.02-2.147.181-.181c.271-.265.505-.493.505-1.07 0-.698-2.706-3.957-2.706-3.957-.03.006-2.275.44-2.586.44l.007-.007c-.252 0-.722-.156-1.215-.337l-.379-.12c-.612-.21-1.02-.21-1.022-.21z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/claude.svg b/apps/icon-pack-builder/brand-icons/claude.svg
new file mode 100644
index 0000000000..aeb2a3ec37
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/claude.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Claude Code</title><path clip-rule="evenodd" d="M20.998 10.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6 10.949h1.488V8.102H6v2.847zm10.51 0H18V8.102h-1.49v2.847z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/codex.svg b/apps/icon-pack-builder/brand-icons/codex.svg
new file mode 100644
index 0000000000..4c648aff4a
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/codex.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path clip-rule="evenodd" d="M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/deepseek.svg b/apps/icon-pack-builder/brand-icons/deepseek.svg
new file mode 100644
index 0000000000..dc224e43a4
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/deepseek.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>DeepSeek</title><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/evernote.svg b/apps/icon-pack-builder/brand-icons/evernote.svg
new file mode 100644
index 0000000000..d95923c98c
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/evernote.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.09,11.63C15.09,11.63 15.28,10.35 16,10.35C16.76,10.35 17.78,12.06 17.78,12.06C17.78,12.06 15.46,11.63 15.09,11.63M19,4.69C18.64,4.09 16.83,3.41 15.89,3.41C14.96,3.41 13.5,3.41 13.5,3.41C13.5,3.41 12.7,2 10.88,2C9.05,2 9.17,2.81 9.17,3.5V6.32L8.34,7.19H4.5C4.5,7.19 3.44,7.91 3.44,9.44C3.44,11 3.92,16.35 7.13,16.85C10.93,17.43 11.58,15.67 11.58,15.46C11.58,14.56 11.6,13.21 11.6,13.21C11.6,13.21 12.71,15.33 14.39,15.33C16.07,15.33 17.04,16.3 17.04,17.29C17.04,18.28 17.04,19.13 17.04,19.13C17.04,19.13 17,20.28 16,20.28C15,20.28 13.89,20.28 13.89,20.28C13.89,20.28 13.2,19.74 13.2,19C13.2,18.25 13.53,18.05 13.93,18.05C14.32,18.05 14.65,18.09 14.65,18.09V16.53C14.65,16.53 11.47,16.5 11.47,18.94C11.47,21.37 13.13,22 14.46,22C15.8,22 16.63,22 16.63,22C16.63,22 20.56,21.5 20.56,13.75C20.56,6 19.33,5.28 19,4.69M7.5,6.31H4.26L8.32,2.22V5.5L7.5,6.31Z" /></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/exa.svg b/apps/icon-pack-builder/brand-icons/exa.svg
new file mode 100644
index 0000000000..85ddb9be1c
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/exa.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Exa</title><path clip-rule="evenodd" d="M3 0h19v1.791L13.892 12 22 22.209V24H3V0zm9.62 10.348l6.589-8.557H6.03l6.59 8.557zM5.138 3.935v7.17h5.52l-5.52-7.17zm5.52 8.96h-5.52v7.17l5.52-7.17zM6.03 22.21l6.59-8.557 6.589 8.557H6.03z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/gemini.svg b/apps/icon-pack-builder/brand-icons/gemini.svg
new file mode 100644
index 0000000000..87736bbe09
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/gemini.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Gemini</title><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/github-copilot.svg b/apps/icon-pack-builder/brand-icons/github-copilot.svg
new file mode 100644
index 0000000000..3cbf22a599
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/github-copilot.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>GithubCopilot</title><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/google-keep.svg b/apps/icon-pack-builder/brand-icons/google-keep.svg
new file mode 100644
index 0000000000..539280a618
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/google-keep.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 2H20C21.11 2 22 2.9 22 4V17.33L17.33 22H4C2.9 22 2 21.11 2 20V4C2 2.9 2.9 2 4 2M17 17V20.25L20.25 17H17M10 19H14V18H15V13C16.21 12.09 17 10.64 17 9C17 6.24 14.76 4 12 4S7 6.24 7 9C7 10.64 7.79 12.09 9 13V18H10V19M14 17H10V15H14V17M12 5C14.21 5 16 6.79 16 9C16 10.5 15.2 11.77 14 12.46V14H10V12.46C8.8 11.77 8 10.5 8 9C8 6.79 9.79 5 12 5Z" /></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/lmstudio.svg b/apps/icon-pack-builder/brand-icons/lmstudio.svg
new file mode 100644
index 0000000000..ea0816b63f
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/lmstudio.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>LM Studio</title><path d="M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z" fill-opacity=".3"></path><path d="M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/notion.svg b/apps/icon-pack-builder/brand-icons/notion.svg
new file mode 100644
index 0000000000..857d0875cf
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/notion.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M158.9 164.2C173.8 176.3 179.4 175.4 207.5 173.5L471.8 157.6C477.4 157.6 472.7 152 470.9 151.1L426.9 119.4C418.5 112.9 407.3 105.4 385.8 107.3L129.9 125.9C120.6 126.8 118.7 131.5 122.4 135.2L158.8 164.1zM174.8 225.8L174.8 503.9C174.8 518.8 182.3 524.4 199.1 523.5L489.6 506.7C506.4 505.8 508.3 495.5 508.3 483.4L508.3 207.2C508.3 195.1 503.6 188.5 493.3 189.5L189.7 207.1C178.5 208 174.8 213.6 174.8 225.8zM461.5 240.7C463.4 249.1 461.5 257.5 453.1 258.5L439.1 261.3L439.1 466.6C426.9 473.1 415.7 476.9 406.4 476.9C391.4 476.9 387.7 472.2 376.5 458.2L285 314.5L285 453.5L314 460C314 460 314 476.8 290.6 476.8L226.2 480.5C224.3 476.8 226.2 467.4 232.7 465.6L249.5 460.9L249.5 277.1L226.2 275.2C224.3 266.8 229 254.7 242.1 253.7L311.2 249L406.5 394.6L406.5 265.8L382.2 263C380.3 252.7 387.8 245.3 397.1 244.3L461.6 240.5zM108.4 100.7L374.6 81.1C407.3 78.3 415.7 80.2 436.2 95.1L521.2 154.8C535.2 165.1 539.9 167.9 539.9 179.1L539.9 506.7C539.9 527.2 532.4 539.4 506.3 541.2L197.2 559.8C177.6 560.7 168.2 557.9 158 544.9L95.4 463.7C84.2 448.8 79.5 437.6 79.5 424.5L79.5 133.3C79.5 116.5 87 102.5 108.4 100.6z"/></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/obsidian.svg b/apps/icon-pack-builder/brand-icons/obsidian.svg
new file mode 100644
index 0000000000..75cd259741
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/obsidian.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640"><!--!Font Awesome Free 7.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--><path d="M270.3 384.3C306.4 376.1 340.6 373.3 371.6 385C403.4 396.9 433.3 424.6 458.3 481C450.2 498.7 445.9 517.9 443.6 534.8C440.5 557.7 418.2 575.5 395.9 569.4C364.2 560.7 327.6 547.1 294.6 544.5C290.2 544.2 244 540.7 244 540.7C242.3 540.6 240.6 540.3 238.9 539.9C270.4 475.7 277.1 424.8 270.2 384.5zM183 283.5C205.3 298.3 232.5 321.3 247.1 357.1C263.2 396.5 264.9 452.8 225.5 533.2C224.5 532.4 223.4 531.5 222.5 530.5L135.4 440.8C125.9 431 123.3 416.4 128.9 403.9C129.5 402.6 173.5 305.6 183 283.5zM447.3 192.2C452.2 198.4 454.7 206.2 454.7 214.1C454.8 234.9 456.5 277.7 468 305.3C479.2 332.1 499.8 361.1 510.5 375.3C514.6 380.8 515.3 388.2 511.8 394C504.2 406.8 489.2 431.5 468 463.2C467.7 463.6 467.4 464.1 467.2 464.5C442 412.3 411.3 383.8 376.8 370.9C367.2 367.3 357.3 364.9 347.4 363.6C329.6 317.8 324.2 283.9 325.4 257.2C326.6 229.8 334.6 209.4 343.6 190.9C352.5 172.8 363.4 155 368.5 135.2C371.7 122.7 372.7 109.4 370.2 94.3L447.3 192.3zM312.2 78.1C322.5 68.9 336.8 67.3 348.5 72.6C358.1 97.2 358.2 115.4 354.1 131.4C349.5 149.2 340 164.4 330.2 184.2C320.6 203.7 311.8 226.2 310.5 256.5C309.3 284.4 314.6 318.4 330.9 362.3C309.9 361.7 288.4 364.9 267.2 369.7C265.5 363.3 263.4 357.3 261.1 351.5C243.8 309.3 211.2 283.6 187 268.2C190.1 249.5 195.2 212.8 198.6 190.7C199.8 183.1 203.5 176.1 209.3 170.9L312.2 78.1z"/></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/ollama.svg b/apps/icon-pack-builder/brand-icons/ollama.svg
new file mode 100644
index 0000000000..cc887e3dcf
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/ollama.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Ollama</title><path d="M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/onenote.svg b/apps/icon-pack-builder/brand-icons/onenote.svg
new file mode 100644
index 0000000000..8f010e884c
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/onenote.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M21.17 3.25Q21.5 3.25 21.76 3.5 22 3.74 22 4.08V19.92Q22 20.26 21.76 20.5 21.5 20.75 21.17 20.75H7.83Q7.5 20.75 7.24 20.5 7 20.26 7 19.92V17H2.83Q2.5 17 2.24 16.76 2 16.5 2 16.17V7.83Q2 7.5 2.24 7.24 2.5 7 2.83 7H7V4.08Q7 3.74 7.24 3.5 7.5 3.25 7.83 3.25M5.8 11.17L8.16 15.27H9.65V8.73H8.2V12.92L5.93 8.73H4.35V15.27H5.8M20.75 19.5V17H18.25V19.5M20.75 15.75V13.25H18.25V15.75M20.75 12V9.5H18.25V12M20.75 8.25V4.5H8.25V7H11.17Q11.5 7 11.76 7.24 12 7.5 12 7.83V16.17Q12 16.5 11.76 16.76 11.5 17 11.17 17H8.25V19.5H17V8.25Z" /></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/openai.svg b/apps/icon-pack-builder/brand-icons/openai.svg
new file mode 100644
index 0000000000..78caf4fa20
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/openai.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>OpenAI</title><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/perplexity.svg b/apps/icon-pack-builder/brand-icons/perplexity.svg
new file mode 100644
index 0000000000..f7c917ca5c
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/perplexity.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Perplexity</title><path d="M19.785 0v7.272H22.5V17.62h-2.935V24l-7.037-6.194v6.145h-1.091v-6.152L4.392 24v-6.465H1.5V7.188h2.884V0l7.053 6.494V.19h1.09v6.49L19.786 0zm-7.257 9.044v7.319l5.946 5.234V14.44l-5.946-5.397zm-1.099-.08l-5.946 5.398v7.235l5.946-5.234V8.965zm8.136 7.58h1.844V8.349H13.46l6.105 5.54v2.655zm-8.982-8.28H2.59v8.195h1.8v-2.576l6.192-5.62zM5.475 2.476v4.71h5.115l-5.115-4.71zm13.219 0l-5.115 4.71h5.115v-4.71z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/searxng.svg b/apps/icon-pack-builder/brand-icons/searxng.svg
new file mode 100644
index 0000000000..7873fdee61
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/searxng.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>SearXNG</title><path d="M6.638 4.38a5.35 5.35 0 017.747 3.963 5.35 5.35 0 01-.56 3.284l-1.154-.61A4.044 4.044 0 007.237 5.54l-.6-1.158z"></path><path clip-rule="evenodd" d="M9.13 0a9.13 9.13 0 017.992 13.546l6.803 6.515-3.4 3.551-6.853-6.562A9.13 9.13 0 119.13 0zm0 2.61a6.521 6.521 0 100 13.042 6.521 6.521 0 000-13.043z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/brand-icons/serper.svg b/apps/icon-pack-builder/brand-icons/serper.svg
new file mode 100644
index 0000000000..94c12831b7
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/serper.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Serper</title><g transform="matrix(0.0034285714 0 0 -0.0034285714 0 24)"><path d="M3278 6996 c-1 -2 -39 -6 -83 -10 -798 -62 -1601 -438 -2176 -1019 -293 -296 -553 -671 -704 -1017 -25 -58 -50 -114 -55 -125 -45 -93 -150 -427 -176 -560 -2 -11 -10 -54 -19 -95 -22 -115 -30 -160 -41 -255 -26 -230 -26 -666 1 -826 2 -13 6 -46 9 -74 9 -78 22 -152 51 -285 21 -96 91 -339 114 -395 5 -11 25 -65 46 -120 63 -166 249 -531 312 -610 4 -6 34 -49 65 -95 261 -390 673 -772 1113 -1032 373 -221 845 -385 1274 -444 25 -3 57 -8 71 -10 163 -25 682 -25 842 1 13 2 46 7 73 10 71 10 87 13 115 18 14 3 43 8 65 12 325 59 741 212 1039 384 49 28 91 51 93 51 10 0 268 180 353 247 152 119 324 280 450 422 36 41 70 79 76 85 65 68 263 353 352 508 46 79 172 331 172 342 0 3 11 29 24 58 57 127 151 421 182 573 16 77 54 301 60 350 4 33 9 76 11 95 8 69 10 517 3 595 -14 151 -21 210 -25 225 -2 8 -7 35 -10 60 -17 129 -80 384 -136 552 -349 1039 -1171 1861 -2209 2207 -174 58 -415 118 -550 136 -19 3 -46 7 -60 10 -13 2 -54 7 -90 11 -36 3 -76 8 -90 11 -27 5 -536 14 -542 9z m522 -609 c14 -3 77 -13 140 -22 965 -137 1833 -807 2224 -1718 67 -156 141 -383 162 -497 3 -14 7 -33 10 -42 6 -20 9 -34 24 -128 6 -41 13 -86 16 -100 25 -157 26 -619 0 -755 -2 -11 -6 -41 -10 -66 -59 -406 -227 -834 -463 -1182 -142 -208 -336 -426 -513 -576 -30 -25 -60 -51 -67 -57 -37 -35 -228 -168 -326 -227 -291 -176 -694 -329 -982 -371 -22 -3 -51 -8 -65 -11 -35 -7 -93 -14 -180 -23 -91 -9 -473 -8 -550 1 -124 14 -161 20 -280 43 -69 14 -132 27 -141 29 -56 12 -260 76 -304 95 -11 4 -51 20 -88 34 -145 56 -361 169 -489 257 -31 22 -61 39 -66 39 -6 0 -12 3 -14 8 -1 4 -47 40 -100 80 -208 156 -414 368 -587 601 -112 152 -217 336 -315 554 -71 158 -170 486 -191 632 -1 11 -5 36 -9 55 -7 39 -11 70 -23 180 -15 146 -8 545 11 660 3 14 7 43 10 65 4 22 8 51 11 65 2 14 6 36 9 50 40 242 165 584 309 845 42 76 162 266 189 300 5 6 47 58 94 117 107 134 297 325 430 431 356 286 731 468 1184 575 81 20 105 24 195 37 22 3 49 7 60 10 11 2 56 7 100 11 44 4 82 8 84 10 5 5 474 -4 501 -9z"></path><path d="M3437 5244 c-1 -1 -29 -5 -62 -9 -215 -24 -402 -80 -591 -175 -351 -178 -559 -442 -591 -750 -30 -294 40 -488 249 -685 96 -91 185 -151 306 -207 81 -37 234 -92 285 -102 12 -2 42 -9 67 -15 59 -13 80 -17 240 -41 74 -11 146 -22 160 -24 14 -3 61 -10 105 -16 44 -7 87 -13 95 -15 8 -2 36 -6 62 -9 26 -4 91 -18 145 -32 54 -14 105 -27 113 -29 38 -8 205 -77 246 -101 71 -42 159 -129 184 -181 55 -117 24 -294 -74 -417 -101 -127 -363 -252 -591 -282 -27 -3 -59 -8 -70 -10 -28 -6 -265 -6 -295 0 -14 3 -44 7 -67 10 -105 12 -268 66 -369 122 -79 44 -127 79 -191 141 -78 76 -114 124 -163 219 -49 94 -75 123 -138 155 -90 45 -198 28 -271 -43 -84 -82 -97 -184 -40 -303 32 -65 83 -156 101 -180 4 -5 29 -37 55 -70 229 -288 583 -478 993 -533 73 -9 400 -9 470 2 541 78 978 372 1117 751 73 197 65 468 -18 642 -160 338 -532 541 -1129 617 -19 3 -78 11 -130 20 -52 8 -113 17 -135 21 -23 3 -50 7 -62 9 -11 3 -38 7 -59 11 -78 12 -100 16 -159 31 -202 52 -354 125 -445 215 -78 76 -104 136 -102 234 4 243 263 448 657 521 163 31 455 21 526 -16 10 -6 26 -10 36 -10 56 0 296 -149 358 -222 46 -54 82 -107 110 -162 40 -78 93 -130 158 -154 156 -59 319 55 321 223 0 52 -6 73 -47 155 -175 353 -547 607 -997 681 -62 10 -354 21 -363 13z"></path></g></svg>
diff --git a/apps/icon-pack-builder/brand-icons/tavily.svg b/apps/icon-pack-builder/brand-icons/tavily.svg
new file mode 100644
index 0000000000..458b2143a5
--- /dev/null
+++ b/apps/icon-pack-builder/brand-icons/tavily.svg
@@ -0,0 +1 @@
+<svg fill="currentColor" fill-rule="evenodd" height="1em" style="flex:none;line-height:1" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg"><title>Tavily</title><path d="M8.033 14.273a1.612 1.612 0 011.139.47l.04.042.044.043a1.61 1.61 0 010 2.277l-3.073 3.073.816.816c.6.6.303 1.627-.525 1.814l-5.159 1.165a1.07 1.07 0 01-.897-.2l-.102-.09a1.07 1.07 0 01-.289-1l1.164-5.158A1.079 1.079 0 013.006 17l.816.817 3.074-3.074a1.612 1.612 0 011.137-.47zM17.042 13.246c0-.85.935-1.366 1.653-.912l4.47 2.824c.336.212.503.562.503.911 0 .35-.167.7-.501.913l-4.472 2.824a1.079 1.079 0 01-1.654-.912v-1.155h-7.027c.37-.4.605-.902.677-1.438l.022-.232a2.65 2.65 0 00-.492-1.669h6.821v-1.154zM8.188 0c.35 0 .7.168.913.503l2.823 4.47a1.079 1.079 0 01-.911 1.655H9.857v6.692h-1.67a2.633 2.633 0 00-1.668.48V6.629H5.365c-.849 0-1.366-.936-.912-1.654L7.276.503A1.072 1.072 0 018.188 0z"></path></svg>
\ No newline at end of file
diff --git a/apps/icon-pack-builder/src/index.ts b/apps/icon-pack-builder/src/index.ts
index 54e8ba201c..4670269531 100644
--- a/apps/icon-pack-builder/src/index.ts
+++ b/apps/icon-pack-builder/src/index.ts
@@ -5,6 +5,7 @@ import { BackupService, getContext, type ImageProvider, initializeCore } from "@
import type { IconPackData } from "./provider";
import boxicons3 from "./providers/boxicons3";
+import brands from "./providers/brands";
import ckeditor from "./providers/ckeditor";
import mdi from "./providers/mdi";
import phosphor from "./providers/phosphor";
@@ -75,7 +76,8 @@ async function main() {
"ph-fill": () => phosphor("fill")
};
const builtinIconPacks: Record<string, BuiltinIconPack> = {
- cke: { build: ckeditor, manifestFileName: "icon_pack_text_editor.json" }
+ "cke": { build: ckeditor, manifestFileName: "icon_pack_text_editor.json" },
+ "tn-brand": { build: brands, manifestFileName: "icon_pack_brands.json" }
};
// Prefixes given on the command line (`pnpm start cke`) build only those packs.
diff --git a/apps/icon-pack-builder/src/providers/brands.ts b/apps/icon-pack-builder/src/providers/brands.ts
new file mode 100644
index 0000000000..cdff960dcc
--- /dev/null
+++ b/apps/icon-pack-builder/src/providers/brands.ts
@@ -0,0 +1,43 @@
+import { readdirSync, readFileSync } from "node:fs";
+import { basename, join } from "node:path";
+
+import type { IconPackData } from "../provider";
+import { buildSvgFont } from "../svg_font";
+
+const PREFIX = "tn-brand";
+
+/** One SVG per mark, named after the class it becomes: `openai.svg` → `tn-brand-openai`. */
+const SOURCE_DIR = join(__dirname, "../../brand-icons");
+
+/**
+ * Builds a font out of the marks of the services Trilium works with: the AI providers and the
+ * applications it imports from. The client shows them in monochrome, and the User Guide uses them
+ * to name a provider in running text.
+ */
+export default function buildBrands(): IconPackData {
+ const sources = readdirSync(SOURCE_DIR)
+ .filter((file) => file.endsWith(".svg"))
+ .sort()
+ .map((file) => ({
+ id: `${PREFIX}-${basename(file, ".svg")}`,
+ svg: readFileSync(join(SOURCE_DIR, file), "utf-8")
+ }));
+ const { manifest, woff2 } = buildSvgFont("Trilium Brand Icons", PREFIX, sources);
+
+ return {
+ name: "Brand Icons",
+ prefix: PREFIX,
+ icon: `${PREFIX} ${PREFIX}-openai`,
+ manifest,
+ fontFile: {
+ name: "brand-icons.woff2",
+ mime: "font/woff2",
+ content: woff2
+ },
+ meta: {
+ version: "1.0.0",
+ website: "https://github.com/TriliumNext/Trilium",
+ description: "The marks of the AI providers and import sources Trilium works with."
+ }
+ };
+}
diff --git a/apps/icon-pack-builder/src/providers/ckeditor.ts b/apps/icon-pack-builder/src/providers/ckeditor.ts
index 8d2c1f5ad2..63b5e5bd0f 100644
--- a/apps/icon-pack-builder/src/providers/ckeditor.ts
+++ b/apps/icon-pack-builder/src/providers/ckeditor.ts
@@ -2,19 +2,12 @@ import { readdirSync, readFileSync } from "node:fs";
import { basename, join } from "node:path";
import * as ckeditorIcons from "@ckeditor/ckeditor5-icons";
-import opentype from "opentype.js";
-import ttf2woff2 from "ttf2woff2";
-import { paper, PaperOffset } from "../headless_paper";
import type { IconPackData } from "../provider";
-import { getModulePath, measureFont } from "../utils";
+import { buildSvgFont, type IconSource } from "../svg_font";
+import { getModulePath } from "../utils";
const PREFIX = "cke";
-const UNITS_PER_EM = 1000;
-const ASCENDER = 850;
-const DESCENDER = -150;
-/** The first code point of the Private Use Area, where the glyphs are numbered from. */
-const FIRST_CODE_POINT = 0xe000;
/** Trilium's own editor icons, next to the plugins that use them. */
const TRILIUM_ICON_DIRS = [
@@ -33,62 +26,12 @@ const STYLESHEET_PRESENTATION: Record<string, string> = {
+ `stroke-linecap="round" stroke-linejoin="round"`
};
-interface IconSource {
- id: string;
- svg: string;
-}
-
/**
* Builds a font out of the SVG icons of the text editor: those CKEditor 5 ships and those Trilium's
* own plugins add. The User Guide uses them to name a toolbar button in running text.
- *
- * Every shape is drawn in one color, including the parts an icon draws at reduced opacity.
*/
export default function buildIcons(): IconPackData {
- paper.setup(new paper.Size(1, 1));
- const textFont = loadTextFont();
-
- const glyphs = [
- new opentype.Glyph({
- name: ".notdef",
- unicode: 0,
- advanceWidth: UNITS_PER_EM,
- path: new opentype.Path()
- })
- ];
- const icons: IconPackData["manifest"]["icons"] = {};
-
- for (const { id, svg } of collectSources()) {
- let path: opentype.Path;
- try {
- path = svgToGlyphPath(svg, textFont);
- } catch (e) {
- console.warn(`Skipping icon ${id}: ${e instanceof Error ? e.message : e}`);
- continue;
- }
-
- const codePoint = FIRST_CODE_POINT + glyphs.length - 1;
- glyphs.push(new opentype.Glyph({
- name: id,
- unicode: codePoint,
- advanceWidth: UNITS_PER_EM,
- path
- }));
- icons[id] = {
- glyph: String.fromCodePoint(codePoint),
- terms: [ id.slice(PREFIX.length + 1) ]
- };
- }
-
- const font = new opentype.Font({
- familyName: "Trilium Text Editor Icons",
- styleName: "Regular",
- unitsPerEm: UNITS_PER_EM,
- ascender: ASCENDER,
- descender: DESCENDER,
- glyphs
- });
- const otf = Buffer.from(font.toArrayBuffer());
+ const { manifest, woff2 } = buildSvgFont("Trilium Text Editor Icons", PREFIX, collectSources());
const packageJsonPath = join(getModulePath("@ckeditor/ckeditor5-icons"), "package.json");
const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf-8"));
@@ -96,14 +39,11 @@ export default function buildIcons(): IconPackData {
name: "Text Editor Icons",
prefix: PREFIX,
icon: `${PREFIX} ${PREFIX}-pilcrow`,
- manifest: {
- icons,
- metrics: measureFont(parseFont(otf))
- },
+ manifest,
fontFile: {
name: "text-editor-icons.woff2",
mime: "font/woff2",
- content: ttf2woff2(otf)
+ content: woff2
},
meta: {
version: packageJson.version,
@@ -139,183 +79,9 @@ function collectSources(): IconSource[] {
}
}
- const seen = new Set<string>();
- for (const { id } of sources) {
- if (seen.has(id)) {
- throw new Error(`Two editor icons map to the same class name: ${id}.`);
- }
- seen.add(id);
- }
-
return sources;
}
-/**
- * Traces an SVG icon into the outline of one glyph, centered in the em square.
- *
- * Fonts fill by the nonzero rule, so each filled shape is reoriented from the rule it declares,
- * each stroke is expanded into the outline it paints, and each `<text>` is laid out in Arimo, the
- * metric-compatible stand-in for the Arial the icons ask for.
- */
-function svgToGlyphPath(svg: string, textFont: opentype.Font): opentype.Path {
- paper.project.clear();
- const viewBox = readViewBox(svg);
- // Without `width`/`height`, the import keeps the viewBox's own coordinates.
- const unsized = svg.replace(/<svg\b[^>]*>/, (tag) => (
- tag.replace(/\s(width|height)="[^"]*"/g, "")
- ));
- const root = paper.project.importSVG(unsized, {
- expandShapes: true,
- insert: true,
- onImport: (node: Element, item: paper.Item) => {
- item.data = { filled: paints(node, "fill"), stroked: paints(node, "stroke") };
- }
- });
-
- const shapes: paper.PathItem[] = [];
- for (const item of root.getItems({ recursive: true })) {
- if (item instanceof paper.PointText) {
- shapes.push(textToPath(item, textFont));
- } else if ((item instanceof paper.Path || item instanceof paper.CompoundPath)
- && !(item.parent instanceof paper.CompoundPath) && !item.clipMask) {
- shapes.push(...pathToShapes(item));
- }
- }
- if (!shapes.length) {
- throw new Error("nothing is drawn");
- }
-
- let outline = shapes[0];
- for (const shape of shapes.slice(1)) {
- outline = outline.unite(shape, { insert: false });
- }
-
- const scale = UNITS_PER_EM / Math.max(viewBox.width, viewBox.height);
- const middleX = viewBox.x + viewBox.width / 2;
- const middleY = viewBox.y + viewBox.height / 2;
- const glyphMiddleY = (ASCENDER + DESCENDER) / 2;
- const toFont = (point: paper.Point) => ({
- x: round(UNITS_PER_EM / 2 + (point.x - middleX) * scale),
- y: round(glyphMiddleY - (point.y - middleY) * scale)
- });
-
- const path = new opentype.Path();
- for (const contour of contoursOf(outline)) {
- const segments = contour.segments;
- if (segments.length < 2) continue;
-
- const start = toFont(segments[0].point);
- path.moveTo(start.x, start.y);
- for (const curve of contour.curves) {
- const end = toFont(curve.point2);
- if (curve.isStraight()) {
- path.lineTo(end.x, end.y);
- } else {
- const control1 = toFont(curve.point1.add(curve.handle1));
- const control2 = toFont(curve.point2.add(curve.handle2));
- path.curveTo(control1.x, control1.y, control2.x, control2.y, end.x, end.y);
- }
- }
- path.close();
- }
-
- return path;
-}
-
-/** The filled and stroked areas of one path, in the SVG's own coordinates. */
-function pathToShapes(item: paper.Path | paper.CompoundPath): paper.PathItem[] {
- const shapes: paper.PathItem[] = [];
- const globalMatrix = item.parent.globalMatrix;
-
- if (item.data.filled) {
- const fill = item.clone({ insert: false }) as paper.PathItem;
- fill.transform(globalMatrix);
- // SVG fills a sub-path without `z` as if it were closed; paper.js would cut its last curve.
- for (const contour of contoursOf(fill)) {
- contour.closePath();
- }
- fill.reorient(item.fillRule !== "evenodd", true);
- shapes.push(fill);
- }
-
- if (item.data.stroked && item.strokeWidth > 0) {
- const line = item.clone({ insert: false }) as paper.Path | paper.CompoundPath;
- line.transform(globalMatrix);
- const { a, b, c, d } = globalMatrix;
- const width = item.strokeWidth * Math.sqrt(Math.abs(a * d - b * c));
- shapes.push(PaperOffset.offsetStroke(line, width / 2, {
- cap: item.strokeCap as "butt" | "round",
- join: item.strokeJoin as "miter" | "round" | "bevel",
- limit: item.miterLimit,
- insert: false
- }) as paper.PathItem);
- }
-
- return shapes;
-}
-
-/**
- * Whether an element paints its fill or its stroke, read off the SVG rather than paper.js, whose
- * import strokes every path black when it runs on jsdom. SVG fills by default and strokes only
- * when asked to.
- */
-function paints(node: Element, property: "fill" | "stroke") {
- // The import also reports the document itself, which is no element.
- const styleDeclaration = new RegExp(`(?:^|;)\\s*${property}\\s*:\\s*([^;]+)`);
- let element: Element | null = node;
- for (; element?.nodeType === 1; element = element.parentElement) {
- const value = element.getAttribute(property)
- ?? styleDeclaration.exec(element.getAttribute("style") ?? "")?.[1];
- if (value) {
- return value.trim() !== "none";
- }
- }
- return property === "fill";
-}
-
-function textToPath(item: paper.PointText, textFont: opentype.Font): paper.PathItem {
- const content = item.content;
- for (const char of content) {
- if (textFont.charToGlyph(char).index === 0) {
- throw new Error(`the text font has no glyph for "${char}"`);
- }
- }
-
- const outline = new paper.CompoundPath({
- pathData: textFont.getPath(content, 0, 0, item.fontSize as number).toPathData(3),
- insert: false
- });
- outline.transform(item.globalMatrix);
- return outline;
-}
-
-/** The sub-paths of a path, each drawn as one contour of the glyph. */
-function contoursOf(item: paper.PathItem) {
- return item instanceof paper.CompoundPath
- ? item.children as paper.Path[]
- : [ item as paper.Path ];
-}
-
-function readViewBox(svg: string) {
- const match = /viewBox="([^"]+)"/.exec(svg);
- if (!match) {
- throw new Error("the SVG has no viewBox");
- }
-
- const [ x, y, width, height ] = match[1].trim().split(/[\s,]+/).map(Number);
- return { x, y, width, height };
-}
-
-function loadTextFont() {
- return parseFont(readFileSync(
- join(getModulePath("@fontsource/arimo"), "files", "arimo-latin-400-normal.woff")
- ));
-}
-
-function parseFont(bytes: Buffer) {
- return opentype.parse(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.length));
-}
-
/** `AIAdjustLength` → `ai-adjust-length`, `Heading1` → `heading-1`. */
function toKebabCase(name: string) {
return name
@@ -324,7 +90,3 @@ function toKebabCase(name: string) {
.replace(/([a-zA-Z])([0-9])/g, "$1-$2")
.toLowerCase();
}
-
-function round(value: number) {
- return Math.round(value * 100) / 100;
-}
diff --git a/apps/icon-pack-builder/src/svg_font.ts b/apps/icon-pack-builder/src/svg_font.ts
new file mode 100644
index 0000000000..22633c2efe
--- /dev/null
+++ b/apps/icon-pack-builder/src/svg_font.ts
@@ -0,0 +1,314 @@
+import { readFileSync } from "node:fs";
+import { join } from "node:path";
+
+import opentype from "opentype.js";
+import ttf2woff2 from "ttf2woff2";
+
+import { paper, PaperOffset } from "./headless_paper";
+import type { IconPackData } from "./provider";
+import { getModulePath, measureFont } from "./utils";
+
+const UNITS_PER_EM = 1000;
+const ASCENDER = 850;
+const DESCENDER = -150;
+/** The first code point of the Private Use Area, where the glyphs are numbered from. */
+const FIRST_CODE_POINT = 0xe000;
+/** One number in SVG path data. */
+const PATH_NUMBER = /^[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/;
+
+export interface IconSource {
+ /** The icon's class name, including the pack's prefix, such as `cke-bold`. */
+ id: string;
+ svg: string;
+}
+
+/**
+ * Builds a font out of SVG icons, one glyph per icon, numbered from the Private Use Area in the
+ * order given.
+ *
+ * Every shape is drawn in one color, including the parts an icon draws at reduced opacity. An icon
+ * that cannot be traced is skipped with a warning.
+ *
+ * @param familyName the font's family name.
+ * @param prefix the pack's prefix, which each icon's search term leaves out.
+ * @param sources the icons, each with a unique `id`.
+ * @returns the manifest and the WOFF2 font of the pack.
+ */
+export function buildSvgFont(familyName: string, prefix: string, sources: IconSource[]) {
+ paper.setup(new paper.Size(1, 1));
+ const textFont = loadTextFont();
+
+ const glyphs = [
+ new opentype.Glyph({
+ name: ".notdef",
+ unicode: 0,
+ advanceWidth: UNITS_PER_EM,
+ path: new opentype.Path()
+ })
+ ];
+ const icons: IconPackData["manifest"]["icons"] = {};
+
+ const ids = new Set<string>();
+ for (const { id } of sources) {
+ if (ids.has(id)) {
+ throw new Error(`Two icons map to the same class name: ${id}.`);
+ }
+ ids.add(id);
+ }
+
+ for (const { id, svg } of sources) {
+ let path: opentype.Path;
+ try {
+ path = svgToGlyphPath(svg, textFont);
+ } catch (e) {
+ console.warn(`Skipping icon ${id}: ${e instanceof Error ? e.message : e}`);
+ continue;
+ }
+
+ const codePoint = FIRST_CODE_POINT + glyphs.length - 1;
+ glyphs.push(new opentype.Glyph({
+ name: id,
+ unicode: codePoint,
+ advanceWidth: UNITS_PER_EM,
+ path
+ }));
+ icons[id] = {
+ glyph: String.fromCodePoint(codePoint),
+ terms: [ id.slice(prefix.length + 1) ]
+ };
+ }
+
+ const font = new opentype.Font({
+ familyName,
+ styleName: "Regular",
+ unitsPerEm: UNITS_PER_EM,
+ ascender: ASCENDER,
+ descender: DESCENDER,
+ glyphs
+ });
+ const otf = Buffer.from(font.toArrayBuffer());
+
+ return {
+ manifest: {
+ icons,
+ metrics: measureFont(parseFont(otf))
+ },
+ woff2: ttf2woff2(otf)
+ };
+}
+
+/**
+ * Traces an SVG icon into the outline of one glyph, centered in the em square.
+ *
+ * Fonts fill by the nonzero rule, so each filled shape is reoriented from the rule it declares,
+ * each stroke is expanded into the outline it paints, and each `<text>` is laid out in Arimo, the
+ * metric-compatible stand-in for the Arial the icons ask for.
+ */
+function svgToGlyphPath(svg: string, textFont: opentype.Font): opentype.Path {
+ paper.project.clear();
+ const viewBox = readViewBox(svg);
+ // Without `width`/`height`, the import keeps the viewBox's own coordinates.
+ const unsized = separateArcFlags(svg.replace(/<svg\b[^>]*>/, (tag) => (
+ tag.replace(/\s(width|height)="[^"]*"/g, "")
+ )));
+ const root = paper.project.importSVG(unsized, {
+ expandShapes: true,
+ insert: true,
+ onImport: (node: Element, item: paper.Item) => {
+ item.data = { filled: paints(node, "fill"), stroked: paints(node, "stroke") };
+ }
+ });
+
+ const shapes: paper.PathItem[] = [];
+ for (const item of root.getItems({ recursive: true })) {
+ if (item instanceof paper.PointText) {
+ shapes.push(textToPath(item, textFont));
+ } else if ((item instanceof paper.Path || item instanceof paper.CompoundPath)
+ && !(item.parent instanceof paper.CompoundPath) && !item.clipMask) {
+ shapes.push(...pathToShapes(item));
+ }
+ }
+ if (!shapes.length) {
+ throw new Error("nothing is drawn");
+ }
+
+ let outline = shapes[0];
+ for (const shape of shapes.slice(1)) {
+ outline = outline.unite(shape, { insert: false });
+ }
+
+ const scale = UNITS_PER_EM / Math.max(viewBox.width, viewBox.height);
+ const middleX = viewBox.x + viewBox.width / 2;
+ const middleY = viewBox.y + viewBox.height / 2;
+ const glyphMiddleY = (ASCENDER + DESCENDER) / 2;
+ const toFont = (point: paper.Point) => ({
+ x: round(UNITS_PER_EM / 2 + (point.x - middleX) * scale),
+ y: round(glyphMiddleY - (point.y - middleY) * scale)
+ });
+
+ const path = new opentype.Path();
+ for (const contour of contoursOf(outline)) {
+ const segments = contour.segments;
+ if (segments.length < 2) continue;
+
+ const start = toFont(segments[0].point);
+ path.moveTo(start.x, start.y);
+ for (const curve of contour.curves) {
+ const end = toFont(curve.point2);
+ if (curve.isStraight()) {
+ path.lineTo(end.x, end.y);
+ } else {
+ const control1 = toFont(curve.point1.add(curve.handle1));
+ const control2 = toFont(curve.point2.add(curve.handle2));
+ path.curveTo(control1.x, control1.y, control2.x, control2.y, end.x, end.y);
+ }
+ }
+ path.close();
+ }
+
+ return path;
+}
+
+/**
+ * Puts a space between the flags of each arc command in the SVG's path data. SVG lets them run
+ * together with what follows (`a.8.8 0 00-.856 0`), which paper.js reads as one number.
+ */
+function separateArcFlags(svg: string) {
+ const pathDataAttribute = /(\sd=)(["'])(.*?)\2/gs;
+ return svg.replace(pathDataAttribute, (attribute, name: string, quote: string, d: string) => {
+ if (!/[aA]/.test(d)) return attribute;
+ return `${name}${quote}${tokenizePathData(d).join(" ")}${quote}`;
+ });
+}
+
+/** Splits path data into its commands and parameters, an arc's two flags as a digit each. */
+function tokenizePathData(data: string) {
+ const tokens: string[] = [];
+ let command = "";
+ let parameter = 0;
+ let index = 0;
+ const skipSeparators = () => {
+ while (index < data.length && /[\s,]/.test(data[index])) index++;
+ };
+
+ for (skipSeparators(); index < data.length; skipSeparators()) {
+ const char = data[index];
+ if (/[a-zA-Z]/.test(char)) {
+ tokens.push(char);
+ command = char;
+ parameter = 0;
+ index++;
+ continue;
+ }
+
+ const isArcFlag = (command === "a" || command === "A")
+ && (parameter % 7 === 3 || parameter % 7 === 4);
+ const token = isArcFlag ? char : PATH_NUMBER.exec(data.slice(index))?.[0];
+ if (!token) {
+ throw new Error(`unreadable path data at "${data.slice(index, index + 10)}"`);
+ }
+ tokens.push(token);
+ parameter++;
+ index += token.length;
+ }
+
+ return tokens;
+}
+
+/** The filled and stroked areas of one path, in the SVG's own coordinates. */
+function pathToShapes(item: paper.Path | paper.CompoundPath): paper.PathItem[] {
+ const shapes: paper.PathItem[] = [];
+ const globalMatrix = item.parent.globalMatrix;
+
+ if (item.data.filled) {
+ const fill = item.clone({ insert: false }) as paper.PathItem;
+ fill.transform(globalMatrix);
+ // SVG fills a sub-path without `z` as if it were closed; paper.js would cut its last curve.
+ for (const contour of contoursOf(fill)) {
+ contour.closePath();
+ }
+ fill.reorient(item.fillRule !== "evenodd", true);
+ shapes.push(fill);
+ }
+
+ if (item.data.stroked && item.strokeWidth > 0) {
+ const line = item.clone({ insert: false }) as paper.Path | paper.CompoundPath;
+ line.transform(globalMatrix);
+ const { a, b, c, d } = globalMatrix;
+ const width = item.strokeWidth * Math.sqrt(Math.abs(a * d - b * c));
+ shapes.push(PaperOffset.offsetStroke(line, width / 2, {
+ cap: item.strokeCap as "butt" | "round",
+ join: item.strokeJoin as "miter" | "round" | "bevel",
+ limit: item.miterLimit,
+ insert: false
+ }) as paper.PathItem);
+ }
+
+ return shapes;
+}
+
+/**
+ * Whether an element paints its fill or its stroke, read off the SVG rather than paper.js, whose
+ * import strokes every path black when it runs on jsdom. SVG fills by default and strokes only
+ * when asked to.
+ */
+function paints(node: Element, property: "fill" | "stroke") {
+ // The import also reports the document itself, which is no element.
+ const styleDeclaration = new RegExp(`(?:^|;)\\s*${property}\\s*:\\s*([^;]+)`);
+ let element: Element | null = node;
+ for (; element?.nodeType === 1; element = element.parentElement) {
+ const value = element.getAttribute(property)
+ ?? styleDeclaration.exec(element.getAttribute("style") ?? "")?.[1];
+ if (value) {
+ return value.trim() !== "none";
+ }
+ }
+ return property === "fill";
+}
+
+function textToPath(item: paper.PointText, textFont: opentype.Font): paper.PathItem {
+ const content = item.content;
+ for (const char of content) {
+ if (textFont.charToGlyph(char).index === 0) {
+ throw new Error(`the text font has no glyph for "${char}"`);
+ }
+ }
+
+ const outline = new paper.CompoundPath({
+ pathData: textFont.getPath(content, 0, 0, item.fontSize as number).toPathData(3),
+ insert: false
+ });
+ outline.transform(item.globalMatrix);
+ return outline;
+}
+
+/** The sub-paths of a path, each drawn as one contour of the glyph. */
+function contoursOf(item: paper.PathItem) {
+ return item instanceof paper.CompoundPath
+ ? item.children as paper.Path[]
+ : [ item as paper.Path ];
+}
+
+function readViewBox(svg: string) {
+ const match = /viewBox="([^"]+)"/.exec(svg);
+ if (!match) {
+ throw new Error("the SVG has no viewBox");
+ }
+
+ const [ x, y, width, height ] = match[1].trim().split(/[\s,]+/).map(Number);
+ return { x, y, width, height };
+}
+
+function loadTextFont() {
+ return parseFont(readFileSync(
+ join(getModulePath("@fontsource/arimo"), "files", "arimo-latin-400-normal.woff")
+ ));
+}
+
+function parseFont(bytes: Buffer) {
+ return opentype.parse(bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.length));
+}
+
+function round(value: number) {
+ return Math.round(value * 100) / 100;
+}
diff --git a/packages/trilium-core/src/services/icon_pack_brands.json b/packages/trilium-core/src/services/icon_pack_brands.json
new file mode 100644
index 0000000000..6a37f00a8b
--- /dev/null
+++ b/packages/trilium-core/src/services/icon_pack_brands.json
@@ -0,0 +1,140 @@
+{
+ "icons": {
+ "tn-brand-anthropic": {
+ "glyph": "",
+ "terms": [
+ "anthropic"
+ ]
+ },
+ "tn-brand-antigravity": {
+ "glyph": "",
+ "terms": [
+ "antigravity"
+ ]
+ },
+ "tn-brand-anytype": {
+ "glyph": "",
+ "terms": [
+ "anytype"
+ ]
+ },
+ "tn-brand-brave": {
+ "glyph": "",
+ "terms": [
+ "brave"
+ ]
+ },
+ "tn-brand-claude": {
+ "glyph": "",
+ "terms": [
+ "claude"
+ ]
+ },
+ "tn-brand-codex": {
+ "glyph": "",
+ "terms": [
+ "codex"
+ ]
+ },
+ "tn-brand-deepseek": {
+ "glyph": "",
+ "terms": [
+ "deepseek"
+ ]
+ },
+ "tn-brand-evernote": {
+ "glyph": "",
+ "terms": [
+ "evernote"
+ ]
+ },
+ "tn-brand-exa": {
+ "glyph": "",
+ "terms": [
+ "exa"
+ ]
+ },
+ "tn-brand-gemini": {
+ "glyph": "",
+ "terms": [
+ "gemini"
+ ]
+ },
+ "tn-brand-github-copilot": {
+ "glyph": "",
+ "terms": [
+ "github-copilot"
+ ]
+ },
+ "tn-brand-google-keep": {
+ "glyph": "",
+ "terms": [
+ "google-keep"
+ ]
+ },
+ "tn-brand-lmstudio": {
+ "glyph": "",
+ "terms": [
+ "lmstudio"
+ ]
+ },
+ "tn-brand-notion": {
+ "glyph": "",
+ "terms": [
+ "notion"
+ ]
+ },
+ "tn-brand-obsidian": {
+ "glyph": "",
+ "terms": [
+ "obsidian"
+ ]
+ },
+ "tn-brand-ollama": {
+ "glyph": "",
+ "terms": [
+ "ollama"
+ ]
+ },
+ "tn-brand-onenote": {
+ "glyph": "",
+ "terms": [
+ "onenote"
+ ]
+ },
+ "tn-brand-openai": {
+ "glyph": "",
+ "terms": [
+ "openai"
+ ]
+ },
+ "tn-brand-perplexity": {
+ "glyph": "",
+ "terms": [
+ "perplexity"
+ ]
+ },
+ "tn-brand-searxng": {
+ "glyph": "",
+ "terms": [
+ "searxng"
+ ]
+ },
+ "tn-brand-serper": {
+ "glyph": "",
+ "terms": [
+ "serper"
+ ]
+ },
+ "tn-brand-tavily": {
+ "glyph": "",
+ "terms": [
+ "tavily"
+ ]
+ }
+ },
+ "metrics": {
+ "ascent": 0.85025,
+ "descent": 0.14975
+ }
+}