scu-icon released in v0.0.8 component parameters states scu-icon is
scu-icon
<scu-icon icon="comment"></scu-icon>
scu-icon
<scu-flex-h gap="60px">
<scu-icon icon="comment" size="12"></scu-icon>
<scu-icon icon="comment" size="16"></scu-icon>
<scu-icon icon="comment" size="24"></scu-icon>
<scu-icon icon="comment" size="32"></scu-icon>
<scu-icon icon="comment" size="48"></scu-icon>
<scu-icon icon="comment" size="64"></scu-icon>
</scu-flex-h>

scu-icon

Properties

Property Attribute Description Type Default
color color string 'icon'
colorVar color-var string undefined
colorVariation color-variation string undefined
icon icon string 'placeholder'
margin margin string undefined
size size number 24

Dependencies

Used by

Graph

graph TD;
  scu-button --> scu-icon
  style scu-icon fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS

scu-icon defaults
<scu-icon></scu-icon>
scu-icon
<scu-icon 
icon="comment"
size="64"></scu-icon>
scu-icon - color
<scu-icon 
color="accent-savings"
color-variation="07"
icon="search"
size="64"></scu-icon>
scu-icon - color
<scu-icon 
color="accent-savings-05"
icon="search"
size="64"></scu-icon>
scu-icon - error
<scu-icon 
color="WRONG"></scu-icon>
scu-icon - error
<scu-icon
icon="WRONG"></scu-icon>
History
Summit Design System The Summit Design System is our design process. It is composed of a shared design library for designers built in Figma, tokens driven from that Figma library, and a reusable JavaScript component library built with web components using StencilJS. This should work within any development framework (Vue, Angular, etc). Implementation HTML To build a simple static HTML page, like a prototype, add these two lines to an HTML page running within a server (see "Server" if you don't have a server running locally) <script src="https://unpkg.com/scu-components-beta/dist/scu/scu.esm.js" type="module"></script>
<link href="https://unpkg.com/scu-components-beta/dist/scu/scu.css" rel="stylesheet">
Within the HTML page you can just start dropping components: <scu-button label='Submit' outline></scu-button> Server Vue Stencil Vue Documentation With Vue you need to first add the SCU Design System to your project then add the custom element definitions and tell Vue to ignore all components with the "scu-" prefix. This is an example of the main.js file of a simple Vue app. npm install --save scu-components-beta import Vue from 'vue' import App from './App.vue' import { applyPolyfills, defineCustomElements } from 'scu-components-beta/loader'; Vue.config.productionTip = false // Tell Vue to ignore all components prefixed 'scu-' Vue.config.ignoredElements = [/scu-\w*/]; // Bind the custom elements to the window object applyPolyfills().then(() => { defineCustomElements(); }); new Vue({ render: h => h(App), }).$mount('#app') Angular Stencil Angular Documentation Other Stencil Documentation