Windy CSS styleguide

6 #icons Icons a emojis πŸ‘ˆπŸ»

Our set of icons loaded as iconfont and defined as font-family: "iconfont". Edit our iconfont here on Icomoon.io.

Always reference glyphs with <!-- @echo icon-glyphId -->

See πŸ‘‰πŸ»list of our icon glyphs hereπŸ‘ˆπŸ»

Source: src/css/fonts/icons.less, line 1
Example
k
Markup
    <!-- In production use "...@echo icon-glyphId..." to define glyph -->
    <div class="iconfont size-xxl">k</div>
Source: src/css/fonts/icons.less, line 41

6.2 #icons.02 [data-icon]

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

Handy attribute, that can be used to add icon to any element and ::before pseudo element

    <!-- In production use "...@echo icon-glyphId..." to define glyph -->
    <div data-icon="k" class="{{modifier_class}} size-xxl">Hello world</div>
Examples
Default styling
Hello world
.inlined
align icon with text
Hello world
Markup
    <!-- In production use "...@echo icon-glyphId..." to define glyph -->
    <div data-icon="k" class="[modifier class] size-xxl">Hello world</div>
Source: src/css/fonts/icons.less, line 59

6.3 #icons.03 [data-icon-after]

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

Handy attribute, that can be used to add icon to any element and ::after pseudo element

    <!-- In production use "...@echo icon-glyphId..." to define glyph -->
    <div data-icon-after="k" class="{{modifier_class}} size-xxl">Hello world</div>
Examples
Default styling
Hello world
.inlined
align icon with text
Hello world
Markup
    <!-- In production use "...@echo icon-glyphId..." to define glyph -->
    <div data-icon-after="k" class="[modifier class] size-xxl">Hello world</div>
Source: src/css/fonts/icons.less, line 91

6.4 #icons.04 .noto-emoji

Toggle full screen Open in new window Toggle example guides Toggle HTML markup

Google's Noto Emoji iconfont loaded as iconfont and defined as font-family: "noto-emoji". Contains all emojis from unicode, BUT it has +400kb size, so it is used only for icons for installed external plugins.

Example
βœ… ☠️ ⛺️ πŸ“š πŸ‘πŸ» πŸ›Ί πŸ”Œ
Markup
    <div class="noto-emoji size-l"> βœ… ☠️ ⛺️ πŸ“š πŸ‘πŸ» πŸ›Ί πŸ”Œ</div>
Source: src/css/fonts/icons.less, line 124