Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
fix(theme): support fa5 with latest vars/overrides from sui 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Jul 25, 2018
1 parent bb16a68 commit 053b179
Show file tree
Hide file tree
Showing 5 changed files with 1,806 additions and 998 deletions.
File renamed without changes
Binary file added snaps/ref/Icon-sui-font-awesome-chrome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
283 changes: 149 additions & 134 deletions src/components/suir/Icon.examples.md
Original file line number Diff line number Diff line change
@@ -1,139 +1,154 @@
#### Set
#### SUI Font Awesome

const Icon = require('semantic-ui-react').Icon;
<div>
<div>
<span style={{marginRight: '20px'}}>
Warning
</span>
<Icon className='ei icon_error-triangle_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Alert
</span>
<Icon className='ei icon_error-circle_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Success
</span>
<Icon className='ei icon_check_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Stopped
</span>
<Icon className='ei icon_minus_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Settings
</span>
<Icon className='ei icon_cog' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Warning
</span>
<Icon className='ei icon_error-triangle' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Error
</span>
<Icon className='ei icon_error-circle' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Success
</span>
<Icon className='ei icon_check_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Info
</span>
<Icon className='ei icon_info' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Operation Run
</span>
<Icon className='ei arrow_triangle-right_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Operation Stop
</span>
<Icon className='ei icon_pause_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Chevron
</span>
<Icon className='ei arrow_carrot-right' />
<Icon className='ei arrow_carrot-left' />
<Icon className='ei arrow_carrot-down' />
<Icon className='ei arrow_carrot-up' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Trend Arrow
</span>
<Icon className='ei arrow_triangle-right' />
<Icon className='ei arrow_triangle-left' />
<Icon className='ei arrow_triangle-down' />
<Icon className='ei arrow_triangle-up' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Success Checkmark
</span>
<Icon className='ei icon_check' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Search
</span>
<Icon className='ei icon_search' />
</div>
<div>
<span style={{marginRight: '20px'}}>
User
</span>
<Icon className='ei icon_profile' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Tag
</span>
<Icon className='ei icon_tag_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Folder
</span>
<Icon className='ei icon_folder-alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Sizing
</span>
<Icon className='ei icon_folder-alt' />
<Icon className='ei icon_folder-alt' size='large' />
<Icon className='ei icon_folder-alt' size='big' />
<Icon className='ei icon_folder-alt' size='huge' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Colors
</span>
<Icon className='ei icon_folder-alt' color='red' size='big' />
<Icon className='ei icon_folder-alt' color='grey' size='big' />
<Icon className='ei icon_folder-alt' color='yellow' size='big' />
</div>
```jsx
const Icon = require('semantic-ui-react').Icon;
const iconNames = [
'space shuttle',
'sign out'
];
<div>
{iconNames.map(name => <div><Icon name={name} /></div>)}
</div>
```

#### Elegant Icons

```jsx
const Icon = require('semantic-ui-react').Icon;
<div>
<div>
<span style={{marginRight: '20px'}}>
Warning
</span>
<Icon className='ei icon_error-triangle_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Alert
</span>
<Icon className='ei icon_error-circle_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Success
</span>
<Icon className='ei icon_check_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Stopped
</span>
<Icon className='ei icon_minus_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Settings
</span>
<Icon className='ei icon_cog' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Warning
</span>
<Icon className='ei icon_error-triangle' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Error
</span>
<Icon className='ei icon_error-circle' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Success
</span>
<Icon className='ei icon_check_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Dialog Info
</span>
<Icon className='ei icon_info' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Operation Run
</span>
<Icon className='ei arrow_triangle-right_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Operation Stop
</span>
<Icon className='ei icon_pause_alt2' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Chevron
</span>
<Icon className='ei arrow_carrot-right' />
<Icon className='ei arrow_carrot-left' />
<Icon className='ei arrow_carrot-down' />
<Icon className='ei arrow_carrot-up' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Trend Arrow
</span>
<Icon className='ei arrow_triangle-right' />
<Icon className='ei arrow_triangle-left' />
<Icon className='ei arrow_triangle-down' />
<Icon className='ei arrow_triangle-up' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Success Checkmark
</span>
<Icon className='ei icon_check' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Search
</span>
<Icon className='ei icon_search' />
</div>
<div>
<span style={{marginRight: '20px'}}>
User
</span>
<Icon className='ei icon_profile' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Tag
</span>
<Icon className='ei icon_tag_alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Folder
</span>
<Icon className='ei icon_folder-alt' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Sizing
</span>
<Icon className='ei icon_folder-alt' />
<Icon className='ei icon_folder-alt' size='large' />
<Icon className='ei icon_folder-alt' size='big' />
<Icon className='ei icon_folder-alt' size='huge' />
</div>
<div>
<span style={{marginRight: '20px'}}>
Colors
</span>
<Icon className='ei icon_folder-alt' color='red' size='big' />
<Icon className='ei icon_folder-alt' color='grey' size='big' />
<Icon className='ei icon_folder-alt' color='yellow' size='big' />
</div>
</div>
```

Note that these icons are namespaced with the class `ei` which enables you to access the Elegant Icons while retaining the usage of the Semantic UI Icon component.

Expand Down
Loading

0 comments on commit 053b179

Please sign in to comment.