Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                # Using Material Design Icons

The U-M Library Design System uses the Material Icon library.

We use the *outlined* or *rounded* category. We typically set the icon size equal to our base font size which is 16px.

## Finding icons

**Search for icons on Google Fonts**: 
- [Material icon outlined](https://fonts.google.com/icons?icon.style=Outlined&icon.set=Material+Icons)
- [Material icon rounded](https://fonts.google.com/icons?icon.style=Rounded&icon.set=Material+Icons)


Use the icons as:
- inline SVG
- icon fonts with markup and CSS

### Inline SVG
Download the SVG from [Google Fonts](https://fonts.google.com/icons?icon.style=Outlined&icon.set=Material+Icons) and add to your site.

For accessibility:
- If decorative, add `role=img focusable=false aria-hidden=true` to the `svg`
- If meaningful, add `role=img` and a `<title>Title</title>` nested within the SVG.

For more information: [Creating accessible SVGs by Deque](https://www.deque.com/blog/creating-accessible-svgs/)

### Using Icon Fonts via Google Fonts

1. Add font to the `<head>` with
`<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">`

2. Then add to markup:
  `<span class="material-icons">face</span>`
  - If decorative, add `aria-hidden="true" to the <span>`: `<span class="material-icons" aria-hidden="true">face</span>`

Examples (look in HTML 👀):
<span class="material-icons">
search
</span>

<span class="material-icons">
open_in_new
</span>

### Styling the icons

- The `.material-design` class assigns the styling to the icons. 
- The base size is 24px.

              
            
!

CSS

              
                /* No CSS */
              
            
!

JS

              
                /* No JS */
              
            
!
999px

Console