Skip to content

Icon Twig functions

ibexa_icon_path()

ibexa_icon_path() generates a path to the selected icon from an icon set.

Argument Type Description
icon string Identifier of an icon in the icon set.
set string Identifier of the configured icon set. If empty, the default icon set is used.
1
2
3
<svg class="ibexa-icon ibexa-icon--medium ibexa-icon--light">
    <use xlink:href="{{ ibexa_icon_path('edit', 'my_icons') }}"></use>
</svg>

The icons can be displayed in different colors and sizes.

Icon color variants

By default, the icon inherits the fill attribute from the parent element. You can change it by using one of the available CSS modifiers:

Modifier Usage
--light To be used on dark backgrounds
--dark To be used on light backgrounds
--base-dark To be used on light backgrounds
--primary To use the primary back office color
--secondary To use the secondary back office color
1
2
3
<svg class="ibexa-icon ibexa-icon--dark">
    <use xlink:href="{{ ibexa_icon_path('edit') }}"></use>
</svg>

Icon size variants

The default icon size in the back office is 32px. To change the default size, in the template add the modifier to the class name.

1
2
3
<svg class="ibexa-icon ibexa-icon--medium">
  <use xlink:href="{{ ibexa_icon_path('create') }}"></use>
</svg>

The list of available icon sizes:

Modifier Size
--tiny 8px
--tiny-small 12px
--small 16px
--small-medium 20px
--medium 24px
--medium-large 38px
--large 48px
--extra-large 64px

Icons reference

The following icons are available out-of-the-box:

Icon Identifier
about-info about-info
about about
activate activate
airtime airtime
align-center align-center
align-justify align-justify
align-left align-left
align-right align-right
approved approved
arrow-down arrow-down
arrow-right arrow-right
article article
assign-section assign-section
assign-user assign-user
author author
autosave-error autosave-error
autosave-off autosave-off
autosave-on autosave-on
autosave-saved autosave-saved
autosave-saving autosave-saving
b2b b2b
back-current-date back-current-date
back back
banner banner
bell bell
bestseller bestseller
block-add block-add
block-invisible block-invisible
block-visible-recurring block-visible-recurring
block-visible block-visible
blog_post blog_post
blog blog
bold bold
bookmark-active bookmark-active
bookmark-manager bookmark-manager
bookmark bookmark
box-collapse box-collapse
browse browse
bubbles bubbles
business-deal-cash business-deal-cash
button button
campaign campaign
captcha captcha
caret-back caret-back
caret-double-back caret-double-back
caret-double-next caret-double-next
caret-down caret-down
caret-expanded caret-expanded
caret-next caret-next
caret-up caret-up
cart-full cart-full
cart-upload cart-upload
cart-wishlist cart-wishlist
cart cart
catalog catalog
category category
checkbox-multiple checkbox-multiple
checkbox checkbox
checkmark checkmark
circle-caret-down circle-caret-down
circle-caret-left circle-caret-left
circle-caret-right circle-caret-right
circle-caret-up circle-caret-up
circle-close circle-close
circle-create circle-create
clicked-recommendations clicked-recommendations
clipboard clipboard
collaboration collaboration
collapse collapse
collection collection
column-one column-one
column-two column-two
comment comment
components components
connect connect
content-draft content-draft
content-tree content-tree
content-type-content content-type-content
content-type-group content-type-group
content-type content-type
content-write content-write
contentlist contentlist
copy-subtree copy-subtree
copy copy
core core
create-content create-content
create-location create-location
create create
crop crop
custom_tags custom_tags
customer-portal-page customer-portal-page
customer-portal customer-portal
customer-type customer-type
customer customer
dashboard-clean dashboard-clean
dashboard-type dashboard-type
dashboard dashboard
database database
date-updated date-updated
date date
deactivate deactivate
discard discard
discount-coupon discount-coupon
download download
drafts drafts
drag drag
dropdown dropdown
earth-access earth-access
edit edit
embed-inline embed-inline
embed embed
erp erp
error-icon error-icon
error error
events-collected events-collected
expand-left expand-left
expand-right expand-right
explore explore
facebook facebook
factbox factbox
fields fields
file-text file-text
file-video file-video
file file
filters-funnel filters-funnel
filters filters
flag flag
flash flash
flip-horizontal flip-horizontal
flip-vertical flip-vertical
flip flip
focus-image focus-image
focus focus
folder-empty folder-empty
folder folder
form-data form-data
form form
full-view full-view
future-publication future-publication
gallery gallery
go-right go-right
go-to-root go-to-root
go-up go-up
h1 h1
h2 h2
h3 h3
h4 h4
h5 h5
h6 h6
hide hide
hierarchy hierarchy
history-file history-file
history history
home-page home-page
image-center image-center
image-editor image-editor
image-left image-left
image-right image-right
image-variations image-variations
image image
imported-items imported-items
information information
input-hidden input-hidden
input-line-multiple input-line-multiple
input-line input-line
input-number input-number
interface-block interface-block
italic italic
keyword keyword
landing_page landing_page
landingpage-add landingpage-add
landingpage-preview landingpage-preview
languages-add languages-add
languages languages
last-purchased last-purchased
last-viewed last-viewed
layout-manager layout-manager
layout-switch layout-switch
link-anchor link-anchor
link-content link-content
link-remove link-remove
link link
list-numbered list-numbered
list list
localize localize
location-add-new location-add-new
lock-unlock lock-unlock
lock lock
logout logout
maform maform
mail-open mail-open
mail mail
markup markup
media-type media-type
media media
menu menu
merge merge
move move
news news
newsletter newsletter
notice notice
object-state object-state
open-newtab open-newtab
open-sametab open-sametab
options options
order-history order-history
order-management order-management
order-status order-status
panels panels
paragraph-add paragraph-add
paragraph paragraph
pdf-file pdf-file
personalize-block personalize-block
personalize-content personalize-content
personalize personalize
pin-unpin pin-unpin
pin pin
place place
places places
portfolio portfolio
previewed previewed
previewed previewed
price price
product_list product_list
product-catalog product-catalog
product-category product-category
product-low product-low
product-type product-type
product product
profile profile
publish-hide publish-hide
publish-later-cancel publish-later-cancel
publish-later-create publish-later-create
publish-later publish-later
publish publish
qa-catalog qa-catalog
qa-company qa-company
qa-content qa-content
qa-form qa-form
qa-product qa-product
quote quote
radio-button-multiple radio-button-multiple
radio-button radio-button
rate-review rate-review
rate rate
recent-activity recent-activity
recently-added recently-added
recommendation-calls recommendation-calls
redo redo
refresh refresh
rejected rejected
relations relations
restore-parent restore-parent
restore restore
reveal reveal
review review
roles roles
rss rss
save-exit save-exit
save save
schedule schedule
search search
sections sections
send-review send-review
server server
settings-block settings-block
settings-config settings-config
share share
sites-all sites-all
sites sites
slider slider
spinner spinner
square square
stats stats
strikethrough strikethrough
subscriber subscriber
subscript subscript
superscript superscript
swap swap
system-information system-information
table-add table-add
table-cell table-cell
table-column table-column
table-row table-row
tag tag
tags tags
telephone telephone
timeline timeline
trash-empty trash-empty
trash-notrashed trash-notrashed
trash-send trash-send
trash trash
twitter twitter
un-focus un-focus
un-full-view un-full-view
unarchive unarchive
underscore underscore
undo undo
upload-image upload-image
upload upload
user_group user_group
user-add user-add
user-blocked user-blocked
user-recycle user-recycle
user-tick user-tick
user-type user-type
user user
users-personalization users-personalization
users-select users-select
variation-1-1 variation-1-1
variation-16-9 variation-16-9
variation-3-2 variation-3-2
variation-4-3 variation-4-3
variation-custom variation-custom
version-compare-action version-compare-action
version-compare version-compare
versions versions
vertical-left-right vertical-left-right
video video
view-custom view-custom
view-desktop view-desktop
view-grid view-grid
view-hide view-hide
view-list view-list
view-mobile view-mobile
view-tablet view-tablet
view view
wand wand
warning-triangle warning-triangle
warning warning
wiki-file wiki-file
wiki wiki
workflow workflow