@nitric/suga-icons 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +87 -3
- package/dist/icons/activity.d.ts +3 -0
- package/dist/icons/activity.js +7 -0
- package/dist/icons/archive.d.ts +3 -0
- package/dist/icons/archive.js +13 -0
- package/dist/icons/arrange.d.ts +3 -0
- package/dist/icons/arrange.js +36 -0
- package/dist/icons/arrow-down.d.ts +3 -0
- package/dist/icons/arrow-down.js +7 -0
- package/dist/icons/arrow-left.d.ts +3 -0
- package/dist/icons/arrow-left.js +7 -0
- package/dist/icons/arrow-right.d.ts +3 -0
- package/dist/icons/arrow-right.js +7 -0
- package/dist/icons/arrow-up-down.d.ts +3 -0
- package/dist/icons/arrow-up-down.js +7 -0
- package/dist/icons/arrow-up-right.d.ts +3 -0
- package/dist/icons/arrow-up-right.js +7 -0
- package/dist/icons/arrow-up.d.ts +3 -0
- package/dist/icons/arrow-up.js +7 -0
- package/dist/icons/at-sign.d.ts +3 -0
- package/dist/icons/at-sign.js +11 -0
- package/dist/icons/audio-lines.d.ts +3 -0
- package/dist/icons/audio-lines.js +7 -0
- package/dist/icons/bell-off.d.ts +3 -0
- package/dist/icons/bell-off.js +7 -0
- package/dist/icons/bell-ring.d.ts +3 -0
- package/dist/icons/bell-ring.js +7 -0
- package/dist/icons/bell.d.ts +3 -0
- package/dist/icons/bell.js +7 -0
- package/dist/icons/book-open.d.ts +3 -0
- package/dist/icons/book-open.js +7 -0
- package/dist/icons/bot.d.ts +3 -0
- package/dist/icons/bot.js +23 -0
- package/dist/icons/box.d.ts +3 -0
- package/dist/icons/box.js +17 -0
- package/dist/icons/braces.d.ts +3 -0
- package/dist/icons/braces.js +7 -0
- package/dist/icons/brain.d.ts +3 -0
- package/dist/icons/brain.js +7 -0
- package/dist/icons/bug.d.ts +3 -0
- package/dist/icons/bug.js +13 -0
- package/dist/icons/building.d.ts +3 -0
- package/dist/icons/building.js +44 -0
- package/dist/icons/calendar-clock.d.ts +3 -0
- package/dist/icons/calendar-clock.js +11 -0
- package/dist/icons/canvas.d.ts +3 -0
- package/dist/icons/canvas.js +23 -0
- package/dist/icons/chart-column.d.ts +3 -0
- package/dist/icons/chart-column.js +7 -0
- package/dist/icons/check-check.d.ts +3 -0
- package/dist/icons/check-check.js +7 -0
- package/dist/icons/check.d.ts +3 -0
- package/dist/icons/check.js +7 -0
- package/dist/icons/chevron-down.d.ts +3 -0
- package/dist/icons/chevron-down.js +7 -0
- package/dist/icons/chevron-left.d.ts +3 -0
- package/dist/icons/chevron-left.js +7 -0
- package/dist/icons/chevron-right.d.ts +3 -0
- package/dist/icons/chevron-right.js +7 -0
- package/dist/icons/chevron-up.d.ts +3 -0
- package/dist/icons/chevron-up.js +7 -0
- package/dist/icons/chevrons-up-down.d.ts +3 -0
- package/dist/icons/chevrons-up-down.js +7 -0
- package/dist/icons/circle-alert.d.ts +3 -0
- package/dist/icons/circle-alert.js +21 -0
- package/dist/icons/circle-check.d.ts +3 -0
- package/dist/icons/circle-check.js +11 -0
- package/dist/icons/circle-help.d.ts +3 -0
- package/dist/icons/circle-help.js +21 -0
- package/dist/icons/circle-stop.d.ts +3 -0
- package/dist/icons/circle-stop.js +17 -0
- package/dist/icons/circle-x.d.ts +3 -0
- package/dist/icons/circle-x.js +11 -0
- package/dist/icons/circle.d.ts +3 -0
- package/dist/icons/circle.js +11 -0
- package/dist/icons/clock.d.ts +3 -0
- package/dist/icons/clock.js +11 -0
- package/dist/icons/cloud.d.ts +3 -0
- package/dist/icons/cloud.js +7 -0
- package/dist/icons/code.d.ts +3 -0
- package/dist/icons/code.js +7 -0
- package/dist/icons/container.d.ts +3 -0
- package/dist/icons/container.js +13 -0
- package/dist/icons/copy.d.ts +3 -0
- package/dist/icons/copy.js +13 -0
- package/dist/icons/corner-down-left.d.ts +3 -0
- package/dist/icons/corner-down-left.js +7 -0
- package/dist/icons/corner-up-left.d.ts +3 -0
- package/dist/icons/corner-up-left.js +7 -0
- package/dist/icons/credit-card.d.ts +3 -0
- package/dist/icons/credit-card.js +13 -0
- package/dist/icons/database.d.ts +3 -0
- package/dist/icons/database.js +12 -0
- package/dist/icons/dot.d.ts +3 -0
- package/dist/icons/dot.js +13 -0
- package/dist/icons/download.d.ts +3 -0
- package/dist/icons/download.js +7 -0
- package/dist/icons/ellipsis.d.ts +3 -0
- package/dist/icons/ellipsis.js +29 -0
- package/dist/icons/expand.d.ts +3 -0
- package/dist/icons/expand.js +7 -0
- package/dist/icons/external-link.d.ts +3 -0
- package/dist/icons/external-link.js +7 -0
- package/dist/icons/eye-off.d.ts +3 -0
- package/dist/icons/eye-off.js +7 -0
- package/dist/icons/eye.d.ts +3 -0
- package/dist/icons/eye.js +11 -0
- package/dist/icons/file-pen.d.ts +3 -0
- package/dist/icons/file-pen.js +7 -0
- package/dist/icons/file-spreadsheet.d.ts +3 -0
- package/dist/icons/file-spreadsheet.js +7 -0
- package/dist/icons/file-text.d.ts +3 -0
- package/dist/icons/file-text.js +7 -0
- package/dist/icons/file-up.d.ts +3 -0
- package/dist/icons/file-up.js +7 -0
- package/dist/icons/file.d.ts +3 -0
- package/dist/icons/file.js +7 -0
- package/dist/icons/folder-open.d.ts +3 -0
- package/dist/icons/folder-open.js +7 -0
- package/dist/icons/folder.d.ts +3 -0
- package/dist/icons/folder.js +7 -0
- package/dist/icons/git-branch.d.ts +3 -0
- package/dist/icons/git-branch.js +19 -0
- package/dist/icons/globe.d.ts +3 -0
- package/dist/icons/globe.js +20 -0
- package/dist/icons/grid-2x2.d.ts +3 -0
- package/dist/icons/grid-2x2.js +13 -0
- package/dist/icons/hammer.d.ts +3 -0
- package/dist/icons/hammer.js +13 -0
- package/dist/icons/hash.d.ts +3 -0
- package/dist/icons/hash.js +7 -0
- package/dist/icons/history.d.ts +3 -0
- package/dist/icons/history.js +7 -0
- package/dist/icons/house.d.ts +3 -0
- package/dist/icons/house.js +7 -0
- package/dist/icons/image.d.ts +3 -0
- package/dist/icons/image.js +21 -0
- package/dist/icons/inbox.d.ts +3 -0
- package/dist/icons/inbox.js +13 -0
- package/dist/icons/info.d.ts +3 -0
- package/dist/icons/info.js +21 -0
- package/dist/icons/keyboard.d.ts +3 -0
- package/dist/icons/keyboard.js +48 -0
- package/dist/icons/library.d.ts +3 -0
- package/dist/icons/library.js +7 -0
- package/dist/icons/link-2.d.ts +3 -0
- package/dist/icons/link-2.js +7 -0
- package/dist/icons/link.d.ts +3 -0
- package/dist/icons/link.js +7 -0
- package/dist/icons/list-filter.d.ts +3 -0
- package/dist/icons/list-filter.js +7 -0
- package/dist/icons/loader.d.ts +3 -0
- package/dist/icons/loader.js +7 -0
- package/dist/icons/lock-open.d.ts +3 -0
- package/dist/icons/lock-open.js +13 -0
- package/dist/icons/lock.d.ts +3 -0
- package/dist/icons/lock.js +13 -0
- package/dist/icons/log-out.d.ts +3 -0
- package/dist/icons/log-out.js +7 -0
- package/dist/icons/logs.d.ts +3 -0
- package/dist/icons/logs.js +30 -0
- package/dist/icons/mail.d.ts +3 -0
- package/dist/icons/mail.js +13 -0
- package/dist/icons/maximize.d.ts +3 -0
- package/dist/icons/maximize.js +7 -0
- package/dist/icons/menu.d.ts +3 -0
- package/dist/icons/menu.js +7 -0
- package/dist/icons/message-circle.d.ts +3 -0
- package/dist/icons/message-circle.js +7 -0
- package/dist/icons/message-square-off.d.ts +3 -0
- package/dist/icons/message-square-off.js +7 -0
- package/dist/icons/message-square-plus.d.ts +3 -0
- package/dist/icons/message-square-plus.js +7 -0
- package/dist/icons/messages-square.d.ts +3 -0
- package/dist/icons/messages-square.js +7 -0
- package/dist/icons/mic.d.ts +3 -0
- package/dist/icons/mic.js +13 -0
- package/dist/icons/minus.d.ts +3 -0
- package/dist/icons/minus.js +7 -0
- package/dist/icons/monitor.d.ts +3 -0
- package/dist/icons/monitor.js +13 -0
- package/dist/icons/moon.d.ts +3 -0
- package/dist/icons/moon.js +7 -0
- package/dist/icons/network.d.ts +3 -0
- package/dist/icons/network.js +30 -0
- package/dist/icons/octagon-x.d.ts +3 -0
- package/dist/icons/octagon-x.js +7 -0
- package/dist/icons/panel-left-close.d.ts +3 -0
- package/dist/icons/panel-left-close.js +13 -0
- package/dist/icons/panel-left-open.d.ts +3 -0
- package/dist/icons/panel-left-open.js +13 -0
- package/dist/icons/panel-left.d.ts +3 -0
- package/dist/icons/panel-left.js +13 -0
- package/dist/icons/panel-right.d.ts +3 -0
- package/dist/icons/panel-right.js +13 -0
- package/dist/icons/panels-top-left.d.ts +3 -0
- package/dist/icons/panels-top-left.js +13 -0
- package/dist/icons/paperclip.d.ts +3 -0
- package/dist/icons/paperclip.js +7 -0
- package/dist/icons/pause.d.ts +3 -0
- package/dist/icons/pause.js +19 -0
- package/dist/icons/pencil-line.d.ts +3 -0
- package/dist/icons/pencil-line.js +7 -0
- package/dist/icons/pencil.d.ts +3 -0
- package/dist/icons/pencil.js +7 -0
- package/dist/icons/play.d.ts +3 -0
- package/dist/icons/play.js +7 -0
- package/dist/icons/plug.d.ts +3 -0
- package/dist/icons/plug.js +7 -0
- package/dist/icons/plus.d.ts +3 -0
- package/dist/icons/plus.js +7 -0
- package/dist/icons/projects.d.ts +3 -0
- package/dist/icons/projects.js +30 -0
- package/dist/icons/redo.d.ts +3 -0
- package/dist/icons/redo.js +7 -0
- package/dist/icons/refresh-ccw.d.ts +3 -0
- package/dist/icons/refresh-ccw.js +7 -0
- package/dist/icons/refresh.d.ts +3 -0
- package/dist/icons/refresh.js +7 -0
- package/dist/icons/repeat.d.ts +3 -0
- package/dist/icons/repeat.js +7 -0
- package/dist/icons/reply.d.ts +3 -0
- package/dist/icons/reply.js +7 -0
- package/dist/icons/rocket.d.ts +3 -0
- package/dist/icons/rocket.js +15 -0
- package/dist/icons/rotate-ccw-square.d.ts +3 -0
- package/dist/icons/rotate-ccw-square.js +13 -0
- package/dist/icons/rotate-ccw.d.ts +3 -0
- package/dist/icons/rotate-ccw.js +7 -0
- package/dist/icons/search.d.ts +3 -0
- package/dist/icons/search.js +11 -0
- package/dist/icons/send.d.ts +3 -0
- package/dist/icons/send.js +7 -0
- package/dist/icons/server.d.ts +3 -0
- package/dist/icons/server.js +40 -0
- package/dist/icons/settings.d.ts +3 -0
- package/dist/icons/settings.js +19 -0
- package/dist/icons/shield-alert.d.ts +3 -0
- package/dist/icons/shield-alert.js +13 -0
- package/dist/icons/shield-check.d.ts +3 -0
- package/dist/icons/shield-check.js +7 -0
- package/dist/icons/shrink.d.ts +3 -0
- package/dist/icons/shrink.js +7 -0
- package/dist/icons/smartphone.d.ts +3 -0
- package/dist/icons/smartphone.js +13 -0
- package/dist/icons/smile-plus.d.ts +3 -0
- package/dist/icons/smile-plus.js +7 -0
- package/dist/icons/smile.d.ts +3 -0
- package/dist/icons/smile.js +11 -0
- package/dist/icons/sparkles.d.ts +3 -0
- package/dist/icons/sparkles.js +7 -0
- package/dist/icons/star.d.ts +3 -0
- package/dist/icons/star.js +7 -0
- package/dist/icons/sticky-note.d.ts +3 -0
- package/dist/icons/sticky-note.js +7 -0
- package/dist/icons/sun.d.ts +3 -0
- package/dist/icons/sun.js +11 -0
- package/dist/icons/trash.d.ts +3 -0
- package/dist/icons/trash.js +7 -0
- package/dist/icons/triangle-alert.d.ts +3 -0
- package/dist/icons/triangle-alert.js +17 -0
- package/dist/icons/undo.d.ts +3 -0
- package/dist/icons/undo.js +7 -0
- package/dist/icons/unlink.d.ts +3 -0
- package/dist/icons/unlink.js +7 -0
- package/dist/icons/upload.d.ts +3 -0
- package/dist/icons/upload.js +7 -0
- package/dist/icons/user-plus.d.ts +3 -0
- package/dist/icons/user-plus.js +11 -0
- package/dist/icons/user.d.ts +3 -0
- package/dist/icons/user.js +11 -0
- package/dist/icons/users.d.ts +3 -0
- package/dist/icons/users.js +11 -0
- package/dist/icons/webhook.d.ts +3 -0
- package/dist/icons/webhook.js +7 -0
- package/dist/icons/wifi-off.d.ts +3 -0
- package/dist/icons/wifi-off.js +7 -0
- package/dist/icons/wrench.d.ts +3 -0
- package/dist/icons/wrench.js +7 -0
- package/dist/icons/x.d.ts +3 -0
- package/dist/icons/x.js +7 -0
- package/dist/icons/zap.d.ts +3 -0
- package/dist/icons/zap.js +7 -0
- package/dist/index.d.ts +143 -0
- package/dist/index.js +143 -0
- package/dist/render-icon.d.ts +10 -0
- package/dist/render-icon.js +23 -0
- package/icons/activity.svg +3 -0
- package/icons/archive.svg +4 -0
- package/icons/arrange.svg +6 -0
- package/icons/arrow-down.svg +3 -0
- package/icons/arrow-left.svg +3 -0
- package/icons/arrow-right.svg +3 -0
- package/icons/arrow-up-down.svg +3 -0
- package/icons/arrow-up-right.svg +3 -0
- package/icons/arrow-up.svg +3 -0
- package/icons/at-sign.svg +4 -0
- package/icons/audio-lines.svg +3 -0
- package/icons/bell-off.svg +3 -0
- package/icons/bell-ring.svg +3 -0
- package/icons/bell.svg +3 -0
- package/icons/book-open.svg +3 -0
- package/icons/bot.svg +5 -0
- package/icons/box.svg +5 -0
- package/icons/braces.svg +3 -0
- package/icons/brain.svg +3 -0
- package/icons/bug.svg +4 -0
- package/icons/building.svg +8 -0
- package/icons/calendar-clock.svg +4 -0
- package/icons/canvas.svg +5 -0
- package/icons/chart-column.svg +3 -0
- package/icons/check-check.svg +3 -0
- package/icons/check.svg +3 -0
- package/icons/chevron-down.svg +3 -0
- package/icons/chevron-left.svg +3 -0
- package/icons/chevron-right.svg +3 -0
- package/icons/chevron-up.svg +3 -0
- package/icons/chevrons-up-down.svg +3 -0
- package/icons/circle-alert.svg +5 -0
- package/icons/circle-check.svg +4 -0
- package/icons/circle-help.svg +5 -0
- package/icons/circle-stop.svg +4 -0
- package/icons/circle-x.svg +4 -0
- package/icons/circle.svg +3 -0
- package/icons/clock.svg +4 -0
- package/icons/cloud.svg +3 -0
- package/icons/code.svg +3 -0
- package/icons/container.svg +4 -0
- package/icons/copy.svg +4 -0
- package/icons/corner-down-left.svg +3 -0
- package/icons/corner-up-left.svg +3 -0
- package/icons/credit-card.svg +4 -0
- package/icons/database.svg +4 -0
- package/icons/dot.svg +3 -0
- package/icons/download.svg +3 -0
- package/icons/ellipsis.svg +5 -0
- package/icons/expand.svg +3 -0
- package/icons/external-link.svg +3 -0
- package/icons/eye-off.svg +3 -0
- package/icons/eye.svg +4 -0
- package/icons/file-pen.svg +3 -0
- package/icons/file-spreadsheet.svg +3 -0
- package/icons/file-text.svg +3 -0
- package/icons/file-up.svg +3 -0
- package/icons/file.svg +3 -0
- package/icons/folder-open.svg +3 -0
- package/icons/folder.svg +3 -0
- package/icons/git-branch.svg +5 -0
- package/icons/globe.svg +5 -0
- package/icons/grid-2x2.svg +4 -0
- package/icons/hammer.svg +4 -0
- package/icons/hash.svg +3 -0
- package/icons/history.svg +3 -0
- package/icons/house.svg +3 -0
- package/icons/image.svg +5 -0
- package/icons/inbox.svg +4 -0
- package/icons/info.svg +5 -0
- package/icons/keyboard.svg +8 -0
- package/icons/library.svg +3 -0
- package/icons/link-2.svg +3 -0
- package/icons/link.svg +3 -0
- package/icons/list-filter.svg +3 -0
- package/icons/loader.svg +3 -0
- package/icons/lock-open.svg +4 -0
- package/icons/lock.svg +4 -0
- package/icons/log-out.svg +3 -0
- package/icons/logs.svg +6 -0
- package/icons/mail.svg +4 -0
- package/icons/maximize.svg +3 -0
- package/icons/menu.svg +3 -0
- package/icons/message-circle.svg +3 -0
- package/icons/message-square-off.svg +3 -0
- package/icons/message-square-plus.svg +3 -0
- package/icons/messages-square.svg +3 -0
- package/icons/mic.svg +4 -0
- package/icons/minus.svg +3 -0
- package/icons/monitor.svg +4 -0
- package/icons/moon.svg +3 -0
- package/icons/network.svg +6 -0
- package/icons/octagon-x.svg +3 -0
- package/icons/panel-left-close.svg +4 -0
- package/icons/panel-left-open.svg +4 -0
- package/icons/panel-left.svg +4 -0
- package/icons/panel-right.svg +4 -0
- package/icons/panels-top-left.svg +4 -0
- package/icons/paperclip.svg +3 -0
- package/icons/pause.svg +4 -0
- package/icons/pencil-line.svg +3 -0
- package/icons/pencil.svg +3 -0
- package/icons/play.svg +3 -0
- package/icons/plug.svg +3 -0
- package/icons/plus.svg +3 -0
- package/icons/projects.svg +6 -0
- package/icons/redo.svg +3 -0
- package/icons/refresh-ccw.svg +3 -0
- package/icons/refresh.svg +3 -0
- package/icons/repeat.svg +3 -0
- package/icons/reply.svg +3 -0
- package/icons/rocket.svg +5 -0
- package/icons/rotate-ccw-square.svg +4 -0
- package/icons/rotate-ccw.svg +3 -0
- package/icons/search.svg +4 -0
- package/icons/send.svg +3 -0
- package/icons/server.svg +6 -0
- package/icons/settings.svg +5 -0
- package/icons/shield-alert.svg +4 -0
- package/icons/shield-check.svg +3 -0
- package/icons/shrink.svg +3 -0
- package/icons/smartphone.svg +4 -0
- package/icons/smile-plus.svg +3 -0
- package/icons/smile.svg +4 -0
- package/icons/sparkles.svg +3 -0
- package/icons/star.svg +3 -0
- package/icons/sticky-note.svg +3 -0
- package/icons/sun.svg +4 -0
- package/icons/trash.svg +3 -0
- package/icons/triangle-alert.svg +5 -0
- package/icons/undo.svg +3 -0
- package/icons/unlink.svg +3 -0
- package/icons/upload.svg +3 -0
- package/icons/user-plus.svg +4 -0
- package/icons/user.svg +4 -0
- package/icons/users.svg +4 -0
- package/icons/webhook.svg +3 -0
- package/icons/wifi-off.svg +3 -0
- package/icons/wrench.svg +3 -0
- package/icons/x.svg +3 -0
- package/icons/zap.svg +3 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nitric Group Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,4 +1,88 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Suga Icons
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Icons for React, drawn on a 16px pixel grid so they stay sharp at 16px on 1x
|
|
4
|
+
screens.
|
|
5
|
+
|
|
6
|
+
Most icon sets are drawn on a 24px grid with 2px strokes. Shown at 16px they
|
|
7
|
+
shrink to two-thirds: strokes come out about 1.33px wide and land between
|
|
8
|
+
pixels, so each line renders as two faint rows instead of one solid one, and
|
|
9
|
+
joins look brighter where those faint edges overlap. Every icon here is drawn
|
|
10
|
+
for 16px instead: straight strokes are 1px wide and centred on half pixels, so
|
|
11
|
+
they fill whole pixel rows.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npm install @nitric/suga-icons
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
React 19 or later is required.
|
|
20
|
+
|
|
21
|
+
## Use
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { Bot, Send } from "@nitric/suga-icons";
|
|
25
|
+
|
|
26
|
+
<Send /> // 16px, coloured by the surrounding text
|
|
27
|
+
<Bot aria-hidden={false} aria-label="Assistant" />
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Each icon renders an `<svg>` at 16 by 16 and takes its colour from
|
|
31
|
+
`currentColor`. Icons are `aria-hidden` by default; pass `aria-hidden={false}`
|
|
32
|
+
and an `aria-label` when an icon carries meaning on its own. Any other SVG prop
|
|
33
|
+
is passed through.
|
|
34
|
+
|
|
35
|
+
Keep icons at 16px and leave `strokeWidth` alone. Other sizes and stroke widths
|
|
36
|
+
work, but they move strokes off the pixel grid, which is the blur these icons
|
|
37
|
+
exist to avoid. At 32px (2x screens, or `className="size-8"`) every stroke
|
|
38
|
+
still lands on whole device pixels.
|
|
39
|
+
|
|
40
|
+
Each icon is its own module and the package has no side effects, so bundlers
|
|
41
|
+
include only the icons you import. To import a single icon directly:
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { Bot } from "@nitric/suga-icons/icons/bot";
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
The source SVGs ship too, at `@nitric/suga-icons/svg/<name>.svg`.
|
|
48
|
+
|
|
49
|
+
## Drawing an icon
|
|
50
|
+
|
|
51
|
+
Icons live in `icons/` as SVG files, one per icon. The file name is the icon's
|
|
52
|
+
name in kebab case (`message-circle.svg` becomes `MessageCircle`). Run
|
|
53
|
+
`bun run generate` to rebuild the React components from them.
|
|
54
|
+
|
|
55
|
+
- Draw in the 16 by 16 view box, inside 1.5 to 13.5, centred on 7.5.
|
|
56
|
+
- Put horizontal and vertical lines on `.5` coordinates. Give stroked
|
|
57
|
+
rectangles `.5` corners and whole-number sizes, and stroked circles a radius
|
|
58
|
+
that puts their edges on `.5`.
|
|
59
|
+
- Prefer horizontals, verticals and 1:1 or 2:1 diagonals; other angles blur.
|
|
60
|
+
- Round caps and joins, and a corner radius of 1.5 to 2.5 on containers.
|
|
61
|
+
- Each file starts with the standard `<svg>` line and has one self-closing
|
|
62
|
+
shape per line. The generator rejects anything else.
|
|
63
|
+
|
|
64
|
+
`bun run test` checks the grid rules in the source. `bun run sharpness`
|
|
65
|
+
renders every icon in Chromium at 1x and 2x and fails if any straight stroke
|
|
66
|
+
doesn't come out solid; CI runs both. `bun run audit -- --only bot,send`
|
|
67
|
+
writes `audit/sheet.png` for review, showing each icon at 1x, at 2x and with
|
|
68
|
+
its 1x pixels zoomed. `bun run preview` serves a searchable gallery of every
|
|
69
|
+
icon.
|
|
70
|
+
|
|
71
|
+
Icons are sharp at whole-number pixel ratios (1x, 2x, 3x). At fractional
|
|
72
|
+
ratios, such as 125% or 150% display scaling, and under a CSS transform that
|
|
73
|
+
moves them by part of a pixel, strokes stop landing on whole pixels.
|
|
74
|
+
|
|
75
|
+
## Releasing
|
|
76
|
+
|
|
77
|
+
Publishing a GitHub release named `vX.Y.Z` runs `.github/workflows/publish.yml`,
|
|
78
|
+
which stages that version on npm through trusted publishing; the repo holds no
|
|
79
|
+
npm token. A maintainer then approves it:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
npm stage list @nitric/suga-icons
|
|
83
|
+
npm stage approve <stage-id>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
MIT
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/archive.ts
|
|
3
|
+
const node = [["rect", {
|
|
4
|
+
"x": "1.5",
|
|
5
|
+
"y": "2.5",
|
|
6
|
+
"width": "12",
|
|
7
|
+
"height": "3",
|
|
8
|
+
"rx": "1"
|
|
9
|
+
}], ["path", { "d": "M2.5 5.5v6a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2v-6M6.5 8.5h2" }]];
|
|
10
|
+
function Archive(props) {
|
|
11
|
+
return renderIcon("Archive", node, props);
|
|
12
|
+
}
|
|
13
|
+
export { Archive };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/arrange.ts
|
|
3
|
+
const node = [
|
|
4
|
+
["rect", {
|
|
5
|
+
"x": "1.5",
|
|
6
|
+
"y": "1.5",
|
|
7
|
+
"width": "5",
|
|
8
|
+
"height": "5",
|
|
9
|
+
"rx": "1.5"
|
|
10
|
+
}],
|
|
11
|
+
["rect", {
|
|
12
|
+
"x": "8.5",
|
|
13
|
+
"y": "1.5",
|
|
14
|
+
"width": "5",
|
|
15
|
+
"height": "5",
|
|
16
|
+
"rx": "1.5"
|
|
17
|
+
}],
|
|
18
|
+
["rect", {
|
|
19
|
+
"x": "1.5",
|
|
20
|
+
"y": "8.5",
|
|
21
|
+
"width": "5",
|
|
22
|
+
"height": "5",
|
|
23
|
+
"rx": "1.5"
|
|
24
|
+
}],
|
|
25
|
+
["rect", {
|
|
26
|
+
"x": "8.5",
|
|
27
|
+
"y": "8.5",
|
|
28
|
+
"width": "5",
|
|
29
|
+
"height": "5",
|
|
30
|
+
"rx": "1.5"
|
|
31
|
+
}]
|
|
32
|
+
];
|
|
33
|
+
function Arrange(props) {
|
|
34
|
+
return renderIcon("Arrange", node, props);
|
|
35
|
+
}
|
|
36
|
+
export { Arrange };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/arrow-up-down.ts
|
|
3
|
+
const node = [["path", { "d": "M4.5 13.5v-11M1.5 5.5l3-3 3 3M10.5 1.5v11M7.5 9.5l3 3 3-3" }]];
|
|
4
|
+
function ArrowUpDown(props) {
|
|
5
|
+
return renderIcon("ArrowUpDown", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { ArrowUpDown };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/at-sign.ts
|
|
3
|
+
const node = [["circle", {
|
|
4
|
+
"cx": "7.5",
|
|
5
|
+
"cy": "7.5",
|
|
6
|
+
"r": "2"
|
|
7
|
+
}], ["path", { "d": "M9.5 5.5v3a2 2 0 0 0 4 0v-1a6 6 0 1 0-2.4 4.8" }]];
|
|
8
|
+
function AtSign(props) {
|
|
9
|
+
return renderIcon("AtSign", node, props);
|
|
10
|
+
}
|
|
11
|
+
export { AtSign };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/audio-lines.ts
|
|
3
|
+
const node = [["path", { "d": "M1.5 6.5v2M4.5 3.5v8M7.5 1.5v12M10.5 4.5v6M13.5 6.5v2" }]];
|
|
4
|
+
function AudioLines(props) {
|
|
5
|
+
return renderIcon("AudioLines", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { AudioLines };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/bell-off.ts
|
|
3
|
+
const node = [["path", { "d": "M7.5 1.5v1M2.5 11.5l1-1v-4a4 4 0 0 1 8 0v4l1 1zM6.5 13.5h2M1.5 1.5l12 12" }]];
|
|
4
|
+
function BellOff(props) {
|
|
5
|
+
return renderIcon("BellOff", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { BellOff };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/bell-ring.ts
|
|
3
|
+
const node = [["path", { "d": "M7.5 2.5v1M3.5 11.5l1-1v-4a3 3 0 0 1 6 0v4l1 1zM6.5 13.5h2M1.5 5.5c0-1.5.5-2.5 1.5-3.5M13.5 5.5c0-1.5-.5-2.5-1.5-3.5" }]];
|
|
4
|
+
function BellRing(props) {
|
|
5
|
+
return renderIcon("BellRing", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { BellRing };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/book-open.ts
|
|
3
|
+
const node = [["path", { "d": "M1.5 2.5c2.5 0 4.5.5 6 2 1.5-1.5 3.5-2 6-2v9c-2.5 0-4.5.5-6 2-1.5-1.5-3.5-2-6-2zM7.5 4.5v9" }]];
|
|
4
|
+
function BookOpen(props) {
|
|
5
|
+
return renderIcon("BookOpen", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { BookOpen };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/bot.ts
|
|
3
|
+
const node = [
|
|
4
|
+
["rect", {
|
|
5
|
+
"x": "2.5",
|
|
6
|
+
"y": "4.5",
|
|
7
|
+
"width": "10",
|
|
8
|
+
"height": "9",
|
|
9
|
+
"rx": "2"
|
|
10
|
+
}],
|
|
11
|
+
["path", { "d": "M7.5 4.5v-2M5.5 8.5v1M9.5 8.5v1M1.5 8.5h1M12.5 8.5h1" }],
|
|
12
|
+
["circle", {
|
|
13
|
+
"cx": "7.5",
|
|
14
|
+
"cy": "1.75",
|
|
15
|
+
"r": "0.75",
|
|
16
|
+
"fill": "currentColor",
|
|
17
|
+
"stroke": "none"
|
|
18
|
+
}]
|
|
19
|
+
];
|
|
20
|
+
function Bot(props) {
|
|
21
|
+
return renderIcon("Bot", node, props);
|
|
22
|
+
}
|
|
23
|
+
export { Bot };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/box.ts
|
|
3
|
+
const node = [
|
|
4
|
+
["path", { "d": "M1.5 5.5L3 2.5h9l1.5 3" }],
|
|
5
|
+
["rect", {
|
|
6
|
+
"x": "1.5",
|
|
7
|
+
"y": "5.5",
|
|
8
|
+
"width": "12",
|
|
9
|
+
"height": "8",
|
|
10
|
+
"rx": "1.5"
|
|
11
|
+
}],
|
|
12
|
+
["path", { "d": "M5.5 8.5h4" }]
|
|
13
|
+
];
|
|
14
|
+
function Box(props) {
|
|
15
|
+
return renderIcon("Box", node, props);
|
|
16
|
+
}
|
|
17
|
+
export { Box };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/braces.ts
|
|
3
|
+
const node = [["path", { "d": "M5.5 1.5H5c-1 0-1.5.5-1.5 1.5v2.5c0 1-.5 1.5-1.5 2 1 .5 1.5 1 1.5 2V12c0 1 .5 1.5 1.5 1.5h.5M9.5 1.5h.5c1 0 1.5.5 1.5 1.5v2.5c0 1 .5 1.5 1.5 2-1 .5-1.5 1-1.5 2V12c0 1-.5 1.5-1.5 1.5h-.5" }]];
|
|
4
|
+
function Braces(props) {
|
|
5
|
+
return renderIcon("Braces", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { Braces };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/brain.ts
|
|
3
|
+
const node = [["path", { "d": "M7.5 3.5a2 2 0 0 0-4 0 2.5 2.5 0 0 0-2 4 2.5 2.5 0 0 0 2 4 2 2 0 0 0 4 0M7.5 3.5a2 2 0 0 1 4 0 2.5 2.5 0 0 1 2 4 2.5 2.5 0 0 1-2 4 2 2 0 0 1-4 0M7.5 3.5v8M3.5 3.5a2 2 0 0 0 1.5 2M11.5 3.5a2 2 0 0 1-1.5 2M3.5 11.5a2 2 0 0 1 1.5-2M11.5 11.5a2 2 0 0 0-1.5-2" }]];
|
|
4
|
+
function Brain(props) {
|
|
5
|
+
return renderIcon("Brain", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { Brain };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/bug.ts
|
|
3
|
+
const node = [["rect", {
|
|
4
|
+
"x": "4.5",
|
|
5
|
+
"y": "4.5",
|
|
6
|
+
"width": "6",
|
|
7
|
+
"height": "9",
|
|
8
|
+
"rx": "3"
|
|
9
|
+
}], ["path", { "d": "M5.5 4.5a2 2 0 0 1 4 0M5.5 2.5l-1-1M9.5 2.5l1-1M1.5 9.5h3M10.5 9.5h3M2.5 6.5l2 1M12.5 6.5l-2 1M2.5 12.5l2-1M12.5 12.5l-2-1M7.5 8.5v5" }]];
|
|
10
|
+
function Bug(props) {
|
|
11
|
+
return renderIcon("Bug", node, props);
|
|
12
|
+
}
|
|
13
|
+
export { Bug };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/building.ts
|
|
3
|
+
const node = [
|
|
4
|
+
["rect", {
|
|
5
|
+
"x": "2.5",
|
|
6
|
+
"y": "1.5",
|
|
7
|
+
"width": "7",
|
|
8
|
+
"height": "12",
|
|
9
|
+
"rx": "1"
|
|
10
|
+
}],
|
|
11
|
+
["path", { "d": "M9.5 5.5h2a1 1 0 0 1 1 1v7M1.5 13.5h12M5.5 13.5v-2h1v2" }],
|
|
12
|
+
["circle", {
|
|
13
|
+
"cx": "4.75",
|
|
14
|
+
"cy": "4.5",
|
|
15
|
+
"r": "0.5",
|
|
16
|
+
"fill": "currentColor",
|
|
17
|
+
"stroke": "none"
|
|
18
|
+
}],
|
|
19
|
+
["circle", {
|
|
20
|
+
"cx": "7.25",
|
|
21
|
+
"cy": "4.5",
|
|
22
|
+
"r": "0.5",
|
|
23
|
+
"fill": "currentColor",
|
|
24
|
+
"stroke": "none"
|
|
25
|
+
}],
|
|
26
|
+
["circle", {
|
|
27
|
+
"cx": "4.75",
|
|
28
|
+
"cy": "7.5",
|
|
29
|
+
"r": "0.5",
|
|
30
|
+
"fill": "currentColor",
|
|
31
|
+
"stroke": "none"
|
|
32
|
+
}],
|
|
33
|
+
["circle", {
|
|
34
|
+
"cx": "7.25",
|
|
35
|
+
"cy": "7.5",
|
|
36
|
+
"r": "0.5",
|
|
37
|
+
"fill": "currentColor",
|
|
38
|
+
"stroke": "none"
|
|
39
|
+
}]
|
|
40
|
+
];
|
|
41
|
+
function Building(props) {
|
|
42
|
+
return renderIcon("Building", node, props);
|
|
43
|
+
}
|
|
44
|
+
export { Building };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/calendar-clock.ts
|
|
3
|
+
const node = [["path", { "d": "M13.5 6.5v-2a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h2M4.5 1.5v2M10.5 1.5v2M1.5 5.5h12M10.5 8.5v2h1" }], ["circle", {
|
|
4
|
+
"cx": "10.5",
|
|
5
|
+
"cy": "10.5",
|
|
6
|
+
"r": "3"
|
|
7
|
+
}]];
|
|
8
|
+
function CalendarClock(props) {
|
|
9
|
+
return renderIcon("CalendarClock", node, props);
|
|
10
|
+
}
|
|
11
|
+
export { CalendarClock };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/canvas.ts
|
|
3
|
+
const node = [
|
|
4
|
+
["rect", {
|
|
5
|
+
"x": "1.5",
|
|
6
|
+
"y": "1.5",
|
|
7
|
+
"width": "6",
|
|
8
|
+
"height": "4",
|
|
9
|
+
"rx": "1.5"
|
|
10
|
+
}],
|
|
11
|
+
["rect", {
|
|
12
|
+
"x": "7.5",
|
|
13
|
+
"y": "9.5",
|
|
14
|
+
"width": "6",
|
|
15
|
+
"height": "4",
|
|
16
|
+
"rx": "1.5"
|
|
17
|
+
}],
|
|
18
|
+
["path", { "d": "M4.5 5.5v4a2 2 0 0 0 2 2h1" }]
|
|
19
|
+
];
|
|
20
|
+
function Canvas(props) {
|
|
21
|
+
return renderIcon("Canvas", node, props);
|
|
22
|
+
}
|
|
23
|
+
export { Canvas };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { renderIcon } from "../render-icon.js";
|
|
2
|
+
// src/icons/chart-column.ts
|
|
3
|
+
const node = [["path", { "d": "M1.5 1.5v11a1 1 0 0 0 1 1h11M5.5 10.5v-3M8.5 10.5v-6M11.5 10.5v-4" }]];
|
|
4
|
+
function ChartColumn(props) {
|
|
5
|
+
return renderIcon("ChartColumn", node, props);
|
|
6
|
+
}
|
|
7
|
+
export { ChartColumn };
|