mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 15:46:11 +02:00
📚 Update docs.
This commit is contained in:
parent
8e00ba7457
commit
0f5f2a1715
5 changed files with 52 additions and 39 deletions
|
@ -6,6 +6,28 @@ application.
|
|||
**TODO**
|
||||
|
||||
|
||||
## Icons & Assets
|
||||
|
||||
The icons used on the frontend application are loaded using svgsprite
|
||||
(properly handled by the gulp watch task). All icons should be on SVG
|
||||
format located in `resources/images/icons`. The gulp task will
|
||||
generate the sprite and the embedd it into the `index.html`.
|
||||
|
||||
Then, you can reference the icon from the sprite using the
|
||||
`uxbox.builtins.icons/icon-xref` macro:
|
||||
|
||||
```clojure
|
||||
(ns some.namespace
|
||||
(:require-macros [uxbox.builtins.icons :refer [icon-xref]]))
|
||||
|
||||
(icon-xref :arrow)
|
||||
```
|
||||
|
||||
For performance reasons, all used icons are statically defined in the
|
||||
`src/uxbox/buitings/icons.cljs` file.
|
||||
|
||||
|
||||
|
||||
## Translations (I18N) ##
|
||||
|
||||
### How it Works ###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue