Icons

Slant / Foundations

85 line icons leaning back 9° like the slanted pixel, or upright, each its own export, with SF Symbol twins in SwiftUI.

Demo

Usage

@tuttn/slant
import { Button, CheckIcon, CircleAlertIcon, SearchIcon, TrashIcon } from '@tuttn/slant'

// 16px and decorative by default: the text beside it carries the meaning.
<Button><CheckIcon />Approve</Button>

// An icon-only control names the control, not the icon.
<Button icon aria-label="Delete"><TrashIcon /></Button>

// An icon that means something on its own gets a label.
<CircleAlertIcon label="Failed" style={{ color: 'var(--sl-danger)' }} />

// size takes pixels or any CSS length; '1em' follows the text.
<SearchIcon size="1em" strokeWidth={1.5} />

// Icons lean back 9° like the slanted pixel; upright draws one straight.
<SearchIcon upright />

Props

PropTypeDefaultDescription
sizenumber | string16Width and height, in pixels or any CSS length ('1em' follows the font size).
labelstring—Announced to screen readers (role="img"); omitted, the icon is aria-hidden.
uprightbooleanfalseDraws the icon straight, without the 9° lean.
strokeWidthnumber2Line weight in grid units; 1.5 reads lighter at 20px and up.
…restSVGAttributes<SVGSVGElement>—className, style and other attributes go on the svg.

Every icon is a line drawing on the same 24-unit grid with a round 2-unit stroke, leaning back 9° about its centre like the slanted pixel (--sl-slant). Pass upright for the straight drawing, for example beside upright type in dense tables. The lean is part of the drawing, so a transform you put on an icon, such as a rotated chevron, still applies on top of it. Icons are coloured by currentColor, so each takes the colour of the text around it. Each one is its own export, so a bundle carries only the icons it imports, and each ends in Icon so MenuIcon never shadows the Menu component. The shapes are drawn after Lucide (ISC), and Slant's own components use the same set.

In SwiftUI, TUTTNKit's SlantIcon has a case for every icon under the same name. Each case is a view that draws the SF Symbol carrying its meaning, leaned back by the same 9°, so it follows Dynamic Type and font weight: SlantIcon.search.font(.body). SlantIcon.search.upright is the plain symbol as an Image, and .tuttnSlanted() leans any other view. A test keeps the two lists in step.

ReactSwiftUISF Symbol
ArrowDownIcon.arrowDownarrow.down
ArrowLeftIcon.arrowLeftarrow.left
ArrowRightIcon.arrowRightarrow.right
ArrowUpDownIcon.arrowUpDownarrow.up.arrow.down
ArrowUpIcon.arrowUparrow.up
ArrowUpRightIcon.arrowUpRightarrow.up.right
BellIcon.bellbell
BoldIcon.boldbold
CalendarIcon.calendarcalendar
CheckCheckIcon.checkCheckchecklist
CheckIcon.checkcheckmark
ChevronDownIcon.chevronDownchevron.down
ChevronLeftIcon.chevronLeftchevron.left
ChevronRightIcon.chevronRightchevron.right
ChevronUpIcon.chevronUpchevron.up
CircleAlertIcon.circleAlertexclamationmark.circle
CircleCheckIcon.circleCheckcheckmark.circle
CircleIcon.circlecircle
CircleXIcon.circleXxmark.circle
ClockIcon.clockclock
CodeIcon.codechevron.left.forwardslash.chevron.right
CommandIcon.commandcommand
CopyIcon.copydoc.on.doc
CornerDownLeftIcon.cornerDownLeftarrow.turn.down.left
DownloadIcon.downloadsquare.and.arrow.down
ExternalLinkIcon.externalLinkarrow.up.right.square
EyeIcon.eyeeye
EyeOffIcon.eyeOffeye.slash
FileIcon.filedoc
FileTextIcon.fileTextdoc.text
FilterIcon.filterline.3.horizontal.decrease
FolderIcon.folderfolder
GitBranchIcon.gitBrancharrow.triangle.branch
GitPullRequestIcon.gitPullRequestarrow.triangle.pull
GlobeIcon.globeglobe
GridIcon.gridsquare.grid.2x2
HashIcon.hashnumber
HeartIcon.heartheart
HomeIcon.homehouse
ImageIcon.imagephoto
InboxIcon.inboxtray
InfoIcon.infoinfo.circle
ItalicIcon.italicitalic
LayersIcon.layerssquare.stack.3d.up
LinkIcon.linklink
ListIcon.listlist.bullet
ListOrderedIcon.listOrderedlist.number
LockIcon.locklock
LogOutIcon.logOutrectangle.portrait.and.arrow.right
MailIcon.mailenvelope
MenuIcon.menuline.3.horizontal
MessageIcon.messagebubble.left
MinusIcon.minusminus
MonitorIcon.monitordisplay
MoonIcon.moonmoon
MoreIcon.moreellipsis
PaperclipIcon.paperclippaperclip
PauseIcon.pausepause
PencilIcon.pencilpencil
PlayIcon.playplay
PlusIcon.plusplus
QuoteIcon.quotequote.opening
RefreshIcon.refresharrow.triangle.2.circlepath
SearchIcon.searchmagnifyingglass
SendIcon.sendpaperplane
SettingsIcon.settingsslider.horizontal.3
SidebarIcon.sidebarsidebar.left
SortAZIcon.sortAZarrow.up.and.down.text.horizontal
SparklesIcon.sparklessparkles
StarIcon.starstar
StopIcon.stopstop.fill
SunIcon.sunsun.max
TagIcon.tagtag
TerminalIcon.terminalterminal
ThumbsDownIcon.thumbsDownhand.thumbsdown
ThumbsUpIcon.thumbsUphand.thumbsup
TrashIcon.trashtrash
TriangleAlertIcon.triangleAlertexclamationmark.triangle
UndoIcon.undoarrow.counterclockwise
UploadIcon.uploadsquare.and.arrow.up
UserIcon.userperson
UserPlusIcon.userPlusperson.badge.plus
UsersIcon.usersperson.2
WrapTextIcon.wrapTextreturn
XIcon.xxmark