Appearance
Icons
Every icon of the library, by set. Use a name in any icon prop, for example <SCASvgIcon icon="phosphor/x" />. Click a row to copy its name.
Sets
| Prefix | What it is | Colour |
|---|---|---|
phosphor/ | Resolved from the pinned @phosphor-icons/core package; only the names in phosphor.json are bundled. | Follows the icon colour. |
generic/ | Our own one-colour icons, cleaned from a designer's export. | Follows the icon colour. |
An unknown name fails vue-tsc. rushx icons:check also fails on an icon or generated file that is out of date, or an icon that no source uses.
Colour an icon
Every icon paints with currentColor, and SCASvgIcon sets that to --sca-icon-color, grey by default. Change the colour only through that variable, never with fill or stroke:
- on the icon or any container:
@include Globals.icon-color($color); the variable inherits, the closest one wins; - icons that follow a label (buttons, menu items, links):
@include Globals.icon-color(currentColor)on the container; - the pointer cursor and the blue hover:
@include Globals.icon-clickable; - a fixed colour that hover rules do not override: the
colorprop. File-type icons get theirs fromfileTypeIcon({ mimeType, extension, fileName }), which returns{ icon, color }.
Add an icon
Run in frontend/libs/components:
bash
# A Phosphor icon (names on phosphoricons.com; other weights end in -bold, -fill, -duotone, -light or -thin)
rushx icons:add phosphor/bell phosphor/bell-fill
# Our own icon, from a designer's SVG export
rushx icons:add-custom ~/Downloads/dossier.svg generic/dossiericons:addchecks the name in the pinned@phosphor-icons/corepackage and lists it, with a hash of its drawing, insrc/assets/icons/phosphor.json. No file is copied: the icon is imported from the package.icons:add-customcleans the export: no size attributes, ids prefixed with the icon name, and its one colour becomescurrentColor. An export with two colours is refused: fix it in the design file. Give the icon its colour where it is used (thecolorprop).- Both regenerate the typed icon names (and
icons:addthe Phosphor imports). Never copy SVG files by hand:rushx icons:checkreports them. - A new Phosphor release: change the
@phosphor-icons/coreversion inpackage.json, runrush update, thenrushx icons:sync. It updates the version and the hashes inphosphor.json; every changed hash is a drawing to look at in the gallery below.
All icons
phosphor/ · 214
| Name | 16 | 20 | 24 | Hover | color prop | Primary | Ghost |
|---|---|---|---|---|---|---|---|
phosphor/address-book | |||||||
phosphor/align-left | |||||||
phosphor/align-left-simple | |||||||
phosphor/arrow-bend-double-up-left | |||||||
phosphor/arrow-bend-left-down | |||||||
phosphor/arrow-bend-right-down | |||||||
phosphor/arrow-bend-up-left | |||||||
phosphor/arrow-bend-up-right | |||||||
phosphor/arrow-counter-clockwise | |||||||
phosphor/arrow-down | |||||||
phosphor/arrow-elbow-down-left | |||||||
phosphor/arrow-fat-up | |||||||
phosphor/arrow-left | |||||||
phosphor/arrow-line-down | |||||||
phosphor/arrow-line-left | |||||||
phosphor/arrow-line-right | |||||||
phosphor/arrow-line-up | |||||||
phosphor/arrow-square-out | |||||||
phosphor/arrow-u-up-left | |||||||
phosphor/arrow-up | |||||||
phosphor/arrows-counter-clockwise | |||||||
phosphor/arrows-down-up | |||||||
phosphor/arrows-horizontal | |||||||
phosphor/arrows-in-line-horizontal | |||||||
phosphor/arrows-in-line-vertical | |||||||
phosphor/arrows-left-right | |||||||
phosphor/arrows-out-line-horizontal | |||||||
phosphor/arrows-out-line-vertical | |||||||
phosphor/article-ny-times | |||||||
phosphor/at | |||||||
phosphor/bank | |||||||
phosphor/barcode | |||||||
phosphor/battery-charging | |||||||
phosphor/brackets-square | |||||||
phosphor/broom | |||||||
phosphor/browser | |||||||
phosphor/building | |||||||
phosphor/building-apartment | |||||||
phosphor/calculator | |||||||
phosphor/calendar-blank | |||||||
phosphor/cards-three | |||||||
phosphor/caret-double-down | |||||||
phosphor/caret-double-right | |||||||
phosphor/caret-double-up | |||||||
phosphor/caret-down | |||||||
phosphor/caret-down-fill | |||||||
phosphor/caret-left | |||||||
phosphor/caret-right | |||||||
phosphor/caret-right-bold | |||||||
phosphor/caret-right-fill | |||||||
phosphor/caret-up | |||||||
phosphor/chart-line | |||||||
phosphor/check | |||||||
phosphor/check-circle | |||||||
phosphor/check-circle-fill | |||||||
phosphor/circle | |||||||
phosphor/circle-dashed | |||||||
phosphor/city | |||||||
phosphor/clipboard-text | |||||||
phosphor/clock | |||||||
phosphor/code | |||||||
phosphor/code-simple | |||||||
phosphor/columns | |||||||
phosphor/columns-plus-left | |||||||
phosphor/columns-plus-right | |||||||
phosphor/copy | |||||||
phosphor/cursor-text | |||||||
phosphor/dots-six | |||||||
phosphor/dots-six-vertical | |||||||
phosphor/dots-three | |||||||
phosphor/dots-three-circle | |||||||
phosphor/dots-three-vertical | |||||||
phosphor/download-simple | |||||||
phosphor/drop | |||||||
phosphor/envelope | |||||||
phosphor/equals | |||||||
phosphor/eye | |||||||
phosphor/eye-slash | |||||||
phosphor/figma-logo | |||||||
phosphor/file | |||||||
phosphor/file-csv | |||||||
phosphor/file-lock | |||||||
phosphor/file-magnifying-glass | |||||||
phosphor/file-minus | |||||||
phosphor/file-pdf | |||||||
phosphor/file-plus | |||||||
phosphor/file-ppt | |||||||
phosphor/file-txt | |||||||
phosphor/file-video | |||||||
phosphor/file-x | |||||||
phosphor/file-zip | |||||||
phosphor/flip-horizontal | |||||||
phosphor/flip-vertical | |||||||
phosphor/floppy-disk | |||||||
phosphor/folder | |||||||
phosphor/folder-minus | |||||||
phosphor/folder-plus | |||||||
phosphor/funnel | |||||||
phosphor/funnel-simple | |||||||
phosphor/gear | |||||||
phosphor/globe | |||||||
phosphor/greater-than | |||||||
phosphor/greater-than-or-equal | |||||||
phosphor/grid-nine | |||||||
phosphor/hand-deposit | |||||||
phosphor/hard-drives | |||||||
phosphor/hash | |||||||
phosphor/highlighter | |||||||
phosphor/house | |||||||
phosphor/image | |||||||
phosphor/image-square | |||||||
phosphor/info | |||||||
phosphor/info-fill | |||||||
phosphor/key | |||||||
phosphor/layout | |||||||
phosphor/layout-duotone | |||||||
phosphor/less-than | |||||||
phosphor/less-than-or-equal | |||||||
phosphor/link | |||||||
phosphor/list | |||||||
phosphor/list-bullets | |||||||
phosphor/list-checks | |||||||
phosphor/list-numbers | |||||||
phosphor/list-plus | |||||||
phosphor/lock-simple | |||||||
phosphor/lock-simple-open | |||||||
phosphor/magnifying-glass | |||||||
phosphor/magnifying-glass-minus | |||||||
phosphor/magnifying-glass-plus | |||||||
phosphor/map-pin-simple-area | |||||||
phosphor/microsoft-excel-logo | |||||||
phosphor/microsoft-word-logo | |||||||
phosphor/minus | |||||||
phosphor/minus-circle | |||||||
phosphor/minus-circle-duotone | |||||||
phosphor/network | |||||||
phosphor/not-equals | |||||||
phosphor/note-pencil | |||||||
phosphor/notebook | |||||||
phosphor/number-square-four | |||||||
phosphor/number-square-one | |||||||
phosphor/number-square-three | |||||||
phosphor/number-square-two | |||||||
phosphor/paint-bucket | |||||||
phosphor/palette | |||||||
phosphor/paper-plane-right | |||||||
phosphor/paperclip | |||||||
phosphor/pencil-line | |||||||
phosphor/pencil-simple | |||||||
phosphor/pencil-simple-line | |||||||
phosphor/phone | |||||||
phosphor/plug | |||||||
phosphor/plus | |||||||
phosphor/plus-circle | |||||||
phosphor/printer | |||||||
phosphor/push-pin | |||||||
phosphor/question | |||||||
phosphor/rows | |||||||
phosphor/rows-plus-bottom | |||||||
phosphor/rows-plus-top | |||||||
phosphor/scissors | |||||||
phosphor/selection-all | |||||||
phosphor/sigma | |||||||
phosphor/sign-in | |||||||
phosphor/sign-out | |||||||
phosphor/sketch-logo | |||||||
phosphor/sliders-horizontal | |||||||
phosphor/sparkle | |||||||
phosphor/split-horizontal | |||||||
phosphor/square | |||||||
phosphor/stack | |||||||
phosphor/stack-minus | |||||||
phosphor/stack-overflow-logo | |||||||
phosphor/stack-plus | |||||||
phosphor/star | |||||||
phosphor/star-fill | |||||||
phosphor/suitcase-simple | |||||||
phosphor/swap | |||||||
phosphor/table | |||||||
phosphor/text-align-center | |||||||
phosphor/text-align-justify | |||||||
phosphor/text-align-left | |||||||
phosphor/text-align-right | |||||||
phosphor/text-b | |||||||
phosphor/text-columns | |||||||
phosphor/text-h | |||||||
phosphor/text-indent | |||||||
phosphor/text-italic | |||||||
phosphor/text-outdent | |||||||
phosphor/text-strikethrough | |||||||
phosphor/text-subscript | |||||||
phosphor/text-superscript | |||||||
phosphor/text-t | |||||||
phosphor/text-t-slash | |||||||
phosphor/text-underline | |||||||
phosphor/textbox | |||||||
phosphor/timer | |||||||
phosphor/trash | |||||||
phosphor/tree-structure | |||||||
phosphor/tree-view | |||||||
phosphor/upload-simple | |||||||
phosphor/user | |||||||
phosphor/user-circle-dashed | |||||||
phosphor/user-gear | |||||||
phosphor/user-plus | |||||||
phosphor/users | |||||||
phosphor/users-three | |||||||
phosphor/warning | |||||||
phosphor/warning-circle | |||||||
phosphor/warning-diamond | |||||||
phosphor/warning-diamond-fill | |||||||
phosphor/warning-fill | |||||||
phosphor/x | |||||||
phosphor/x-circle |
generic/ · 20
| Name | 16 | 20 | 24 | Hover | color prop | Primary | Ghost |
|---|---|---|---|---|---|---|---|
generic/add-to-folder | |||||||
generic/calendar-time | |||||||
generic/columns-minus | |||||||
generic/create-folder | |||||||
generic/dossier | |||||||
generic/dossier-module | |||||||
generic/dot | |||||||
generic/file-psd | |||||||
generic/initial-avatar | |||||||
generic/mail-draft | |||||||
generic/mail-inbox | |||||||
generic/mail-sent | |||||||
generic/row-groups | |||||||
generic/rows-minus | |||||||
generic/scayla-logo | |||||||
generic/scayla-logo-text | |||||||
generic/size-l | |||||||
generic/size-m | |||||||
generic/size-s | |||||||
generic/text-italic-x |