material-inspired-component-library 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -8
- package/components/accordion/README.md +5 -2
- package/components/bottomsheet/README.md +5 -2
- package/components/button/README.md +5 -2
- package/components/card/README.md +4 -1
- package/components/checkbox/README.md +5 -2
- package/components/dialog/README.md +4 -1
- package/components/divider/README.md +4 -1
- package/components/iconbutton/README.md +5 -2
- package/components/list/README.md +5 -2
- package/components/menu/README.md +4 -4
- package/components/radio/README.md +4 -1
- package/components/select/README.md +5 -5
- package/components/sidesheet/README.md +4 -1
- package/components/slider/README.md +5 -2
- package/components/slider/{slider.scss → index.scss} +11 -8
- package/components/switch/README.md +4 -1
- package/components/textfield/README.md +53 -17
- package/components/textfield/{textfield.scss → index.scss} +98 -55
- package/components/textfield/index.ts +23 -16
- package/components.ts +2 -1
- package/dist/micl.css +1 -1
- package/dist/micl.js +1 -1
- package/dist/slider.css +1 -1
- package/dist/textfield.css +1 -1
- package/docs/accordion.html +3 -3
- package/docs/bottomsheet.html +11 -11
- package/docs/button.html +3 -3
- package/docs/card-awards.webp +0 -0
- package/docs/card-cabinet.webp +0 -0
- package/docs/card-city.webp +0 -0
- package/docs/card-fingerprint.webp +0 -0
- package/docs/card-holiday.webp +0 -0
- package/docs/card-names.webp +0 -0
- package/docs/card.html +6 -6
- package/docs/checkbox.html +3 -3
- package/docs/dialog.html +3 -3
- package/docs/divider.html +3 -3
- package/docs/docs.js +1 -1
- package/docs/iconbutton.html +3 -3
- package/docs/index.html +5 -5
- package/docs/list.html +3 -3
- package/docs/menu.html +3 -3
- package/docs/micl.css +1 -0
- package/docs/micl.js +1 -0
- package/docs/radio.html +3 -3
- package/docs/select.html +3 -3
- package/docs/sidesheet.html +3 -3
- package/docs/slider.html +4 -3
- package/docs/switch.html +3 -3
- package/docs/textfield.html +33 -20
- package/docs/themes/airblue/dark-hc.css +51 -0
- package/docs/themes/airblue/dark-mc.css +51 -0
- package/docs/themes/airblue/dark.css +51 -0
- package/docs/themes/airblue/light-hc.css +51 -0
- package/docs/themes/airblue/light-mc.css +51 -0
- package/docs/themes/airblue/light.css +51 -0
- package/docs/themes/airblue/theme.css +306 -0
- package/docs/themes/barnred/dark-hc.css +51 -0
- package/docs/themes/barnred/dark-mc.css +51 -0
- package/docs/themes/barnred/dark.css +51 -0
- package/docs/themes/barnred/light-hc.css +51 -0
- package/docs/themes/barnred/light-mc.css +51 -0
- package/docs/themes/barnred/light.css +51 -0
- package/docs/themes/barnred/theme.css +306 -0
- package/docs/themes/citrine/dark-hc.css +51 -0
- package/docs/themes/citrine/dark-mc.css +51 -0
- package/docs/themes/citrine/dark.css +51 -0
- package/docs/themes/citrine/light-hc.css +51 -0
- package/docs/themes/citrine/light-mc.css +51 -0
- package/docs/themes/citrine/light.css +51 -0
- package/docs/themes/citrine/theme.css +306 -0
- package/docs/themes/olivegreen/dark-hc.css +51 -0
- package/docs/themes/olivegreen/dark-mc.css +51 -0
- package/docs/themes/olivegreen/dark.css +51 -0
- package/docs/themes/olivegreen/light-hc.css +51 -0
- package/docs/themes/olivegreen/light-mc.css +51 -0
- package/docs/themes/olivegreen/light.css +51 -0
- package/docs/themes/olivegreen/theme.css +306 -0
- package/package.json +1 -1
- package/styles/README.md +5 -5
- package/styles.scss +15 -15
- package/themes/README.md +1 -1
- package/webpack.config.js +1 -1
- /package/components/bottomsheet/{bottomsheet.scss → index.scss} +0 -0
- /package/components/button/{button.scss → index.scss} +0 -0
- /package/components/card/{card.scss → index.scss} +0 -0
- /package/components/checkbox/{checkbox.scss → index.scss} +0 -0
- /package/components/dialog/{dialog.scss → index.scss} +0 -0
- /package/components/divider/{divider.scss → index.scss} +0 -0
- /package/components/iconbutton/{iconbutton.scss → index.scss} +0 -0
- /package/components/list/{list.scss → index.scss} +0 -0
- /package/components/menu/{menu.scss → index.scss} +0 -0
- /package/components/radio/{radio.scss → index.scss} +0 -0
- /package/components/select/{select.scss → index.scss} +0 -0
- /package/components/sidesheet/{sidesheet.scss → index.scss} +0 -0
- /package/components/switch/{switch.scss → index.scss} +0 -0
package/docs/micl.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";(()=>{const e="dialog.micl-bottomsheet",t=(()=>{var e=0;const t=t=>{let n=parseInt(window.getComputedStyle(t).getPropertyValue("max-height")),i=(t.dataset.snapheights||"").split(",").map(Number).filter(e=>!isNaN(e)&&e>0&&e<=n);return e||(e=t.getBoundingClientRect().height),[...new Set(i.concat([e,n]).sort())]},n=(e,n)=>{let i=e.getBoundingClientRect().height,o=t(e);return o.filter(e=>e>i+4)[0]||o[n?o.length-1:0]},i=(e,t)=>{e.style.setProperty("--md-sys-bottomsheet-height",`${t}px`)};return{initialize:e=>{if(!e.matches("dialog.micl-bottomsheet")||e.dataset.miclinitialized)return;e.dataset.miclinitialized="1";const o=e.querySelector(".micl-bottomsheet__headline");if(!o)return;const l=o.querySelector(".micl-bottomsheet__draghandle");l?.addEventListener("click",()=>{const t=n(e,!1);t>4&&i(e,t)});let r,a,c=!1,s=!1;function m(t){const n=t.clientY;c&&Math.abs(r-n)>4&&(c=!1,s=!0,e.classList.add("micl-bottomsheet--resizing")),s&&i(e,a+r-n)}function d(o){c=!1,e.classList.remove("micl-bottomsheet--resizing"),s&&(s=!1,o.clientY<r?i(e,n(e,!0)):e.getBoundingClientRect().height<48?(e.popover&&e.hidePopover(),i(e,a)):i(e,(e=>{let n=e.getBoundingClientRect().height,i=t(e),o=i.filter(e=>e<n-4);return o[o.length-1]||i[0]})(e)),document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",d))}o.addEventListener("mousedown",t=>{t.eventPhase===Event.AT_TARGET&&(c=!0,t.preventDefault(),r=t.clientY,a=e.getBoundingClientRect().height,document.addEventListener("mousemove",m),document.addEventListener("mouseup",d))})},cleanup:e=>{e.matches("dialog.micl-bottomsheet")&&delete e.dataset.miclinitialized}}})(),n="button[popovertarget],button.micl-button--toggle",i=(()=>{const e=e=>{e.target&&e.target instanceof HTMLButtonElement&&(e.target.popoverTargetElement instanceof HTMLDialogElement&&(e.target.popoverTargetElement.open?e.target.popoverTargetElement.close():e.target.popoverTargetElement.showModal()),e.target.classList.contains("micl-button--toggle")&&e.target.classList.toggle("micl-button--selected"))};return{initialize:t=>{t.matches("button[popovertarget],button.micl-button--toggle")&&!t.dataset.miclinitialized&&(t.dataset.miclinitialized="1",(t.popoverTargetElement instanceof HTMLDialogElement&&!t.popoverTargetElement.hasAttribute("popover")||t.classList.contains("micl-button--toggle"))&&t.addEventListener("click",e))},cleanup:t=>{t.matches("button[popovertarget],button.micl-button--toggle")&&(document.removeEventListener("click",e),delete t.dataset.miclinitialized)}}})(),o=".micl-checkbox",l={keydown:e=>{if(e.target.matches(o)&&e instanceof KeyboardEvent&&e.target instanceof HTMLInputElement&&!e.target.disabled)switch(e.key){case"Enter":case" ":e.target.checked=!e.target.checked,e.preventDefault()}}},r=".micl-list-item-one,.micl-list-item-two,.micl-list-item-three",a=(()=>{const e=e=>!!e&&e.classList.contains("micl-list-item--disabled"),t=e=>!!e&&e.matches(":has(input[type=checkbox]:checked)");return{keydown:n=>{if(!(n instanceof KeyboardEvent&&n.target instanceof Element&&n.target.matches(".micl-list-item-one,.micl-list-item-two,.micl-list-item-three")))return;const i=n.target.parentElement;if(!i)return;let o=[];if(i instanceof HTMLDetailsElement?o=Array.from(i.parentElement?.children||[]).map(t=>{let n=t.querySelector(":scope > summary");return e(n)?null:n}).filter(e=>!!e):i instanceof HTMLUListElement&&(o=Array.from(i.children).map(t=>t instanceof HTMLLIElement&&!e(t)?t:null).filter(e=>!!e)),0===o.length)return;let l=o.findIndex(e=>t(e));-1===l&&(l=o.findIndex(e=>0===e.tabIndex)),-1===l&&(l=0);let r=l;switch(n.key){case"ArrowDown":r=(l+1)%o.length,n.preventDefault();break;case"ArrowUp":r=(l-1+o.length)%o.length,n.preventDefault();break;case"Tab":let e=o.findIndex(e=>t(e));-1===e?0!==l&&(o[l].tabIndex=-1,o[0].tabIndex=0):e!==l&&(o[l].tabIndex=-1,o[e].tabIndex=0);break;case"Enter":case" ":const i=n.target.querySelector("input[type=checkbox].micl-checkbox");i instanceof HTMLInputElement&&(i.checked=!i.checked)}r!==l&&(o[l].tabIndex=-1,o[r].tabIndex=0,o[r].focus())}}})(),c=".micl-menu[popover]",s=(()=>{const e=(e,t)=>{const n=e.getBoundingClientRect().y,i=t.getBoundingClientRect().y,o=window.getComputedStyle(t).getPropertyValue("transform-origin");return(n>i?"bottom ":"top ")+(parseInt(o)>0?"right":"left")};return{initialize:t=>{if(!t.matches(".micl-menu[popover]")||t.dataset.miclinitialized)return;t.dataset.miclinitialized="1";const n=document.querySelector(`[popovertarget="${t.id}"]`);n&&t.addEventListener("beforetoggle",i=>{"open"===i.oldState&&(t.style.transformOrigin=e(n,t))}),n&&t.addEventListener("toggle",i=>{"closed"===i.oldState&&(t.style.transformOrigin=e(n,t))})}}})(),m="input[type=range].micl-slider-xs,input[type=range].micl-slider-s,input[type=range].micl-slider-m,input[type=range].micl-slider-l,input[type=range].micl-slider-xl",d=(()=>{const e=String.fromCharCode(8226),t=String.fromCharCode(8201);return{initialize:n=>{n.style.setProperty("--md-sys-slider-max",n.max||"100"),n.style.setProperty("--md-sys-slider-min",n.min||"0"),n.style.setProperty("--md-sys-slider-value",n.value),n.style.setProperty("--md-sys-slider-tip",JSON.stringify(n.value+""));const i=n.getBoundingClientRect(),o=document.elementFromPoint(Math.max(i.x-1,0),Math.max(i.y-1,0));o&&(n.style.color=window.getComputedStyle(o).getPropertyValue("background-color"));const l=parseFloat(n.max),r=parseFloat(n.min),a=(e=>{const t=[],n=parseFloat(e.max),i=parseFloat(e.min);return e.list&&!isNaN(n)&&!isNaN(i)&&n>i&&e.list.querySelectorAll("option[value]").forEach(e=>{let o=parseFloat(e.value);!isNaN(o)&&o>=i&&o<=n&&t.push(o)}),t})(n).sort((e,t)=>e-t).map(e=>Math.round(100*(e-r)/(l-r)));if(a.length>0){const o=document.createElement("canvas"),l=o.getContext("2d");if(l){l.font=window.getComputedStyle(n).getPropertyValue("font");let o=l.measureText(t).width,r=l.measureText(e).width,c=i.width-10,s=0,m="";a.forEach(n=>{let i=c*n/100,l=Math.round((i-s)/o)-1;for(let e=0;e<l;e++)m+=t,s+=o;m+=e,s+=r}),n.dataset.miclsliderticks=m}o.remove()}else n.dataset.miclsliderticks=e},input:e=>{e.target.matches(".micl-slider-xs,.micl-slider-s,.micl-slider-m,.micl-slider-l,.micl-slider-xl")&&e.target instanceof HTMLInputElement&&!e.target.disabled&&(e.target.style.setProperty("--md-sys-slider-value",e.target.value),e.target.style.setProperty("--md-sys-slider-tip",JSON.stringify(e.target.value+"")))}}})(),u=".micl-textfield-outlined > input,.micl-textfield-filled > input",p=".micl-textfield-outlined > select,.micl-textfield-filled > select",g=".micl-textfield-outlined > textarea,.micl-textfield-filled > textarea",f=(()=>{const e=".micl-textfield__character-counter";return{initialize:t=>{if(t.dataset.miclinitialized)return;if(t.dataset.miclinitialized="1",t.value&&(t.dataset.miclvalue="1"),t instanceof HTMLSelectElement||!t.maxLength)return;const n=t.parentElement?.querySelector(e);n&&(n.textContent=`${t.value.length}/${t.maxLength}`)},input:t=>{if(!t.target.matches(`${u},${p},${g}`)||!(t.target instanceof HTMLInputElement||t.target instanceof HTMLSelectElement||t.target instanceof HTMLTextAreaElement)||!t.target.dataset.miclinitialized||t.target.disabled)return;if(t.target.value?t.target.dataset.miclvalue="1":delete t.target.dataset.miclvalue,t.target instanceof HTMLSelectElement||!t.target.maxLength)return;const n=t.target.parentElement?.querySelector(e);n&&(n.textContent=`${t.target.value.length}/${t.target.maxLength}`)}}})();(()=>{const h={[e]:{component:t,type:HTMLDialogElement},[n]:{component:i,type:HTMLButtonElement},[o]:{component:l,type:HTMLInputElement},[r]:{component:a,type:HTMLElement},[c]:{component:s,type:HTMLElement},[p]:{component:f,type:HTMLSelectElement},[m]:{component:d,type:HTMLInputElement},[g]:{component:f,type:HTMLTextAreaElement},[u]:{component:f,type:HTMLInputElement}},y=Object.keys(h).join(","),v=e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.matches(t)&&e instanceof i&&"function"==typeof n.initialize)return void n.initialize(e)},E=e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.matches(t)&&e instanceof i&&"function"==typeof n.cleanup)return void n.cleanup(e)};new MutationObserver(e=>{e.forEach(e=>{"childList"===e.type&&(e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(e.matches(y)&&v(e),e.querySelectorAll(y).forEach(v))}),e.removedNodes.forEach(e=>{e instanceof HTMLElement&&(e.matches(y)&&E(e),e.querySelectorAll(y).forEach(E))}))})}).observe(document.body,{childList:!0,subtree:!0}),document.querySelectorAll(y).forEach(v),document.querySelectorAll('[class*="micl-"]').forEach(e=>{window.getComputedStyle(e).getPropertyValue("--miclripple")&&e.addEventListener("pointerdown",t=>{if(t.currentTarget.classList.contains("micl-card--nonactionable"))return;const n=t.clientX,i=t.clientY,o=e.getBoundingClientRect(),l=2*Math.sqrt(Math.pow(o.width,2)+Math.pow(o.height,2));e.style.cssText="--s:0;--o:1;",e.offsetTop,e.style.cssText=`--t:1;--o:0;--d:${l};--x:${n-o.left};--y:${i-o.top}`})}),document.addEventListener("input",e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.target.matches(t)&&e.target instanceof i&&"function"==typeof n.input)return void n.input(e)}),document.addEventListener("keydown",e=>{for(const[t,{component:n,type:i}]of Object.entries(h))if(e.target.matches(t)&&e.target instanceof i&&"function"==typeof n.keydown)return void n.keydown(e)})})()})()})();
|
package/docs/radio.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>MICL Radio Buttons</title>
|
|
7
7
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_back,close,dark_mode&display=block">
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
8
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
9
|
+
<link rel="stylesheet" href="micl.css">
|
|
10
10
|
<link rel="stylesheet" href="docs.css">
|
|
11
11
|
<style>
|
|
12
12
|
label {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
|
|
98
|
-
<script src="
|
|
98
|
+
<script src="micl.js"></script>
|
|
99
99
|
<script src="docs.js"></script>
|
|
100
100
|
</body>
|
|
101
101
|
</html>
|
package/docs/select.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>MICL Selects</title>
|
|
7
7
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
8
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=check,confirmation_number,dark_mode,group,home,newspaper,person,settings&display=block">
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="stylesheet" href="
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
11
|
<link rel="stylesheet" href="docs.css">
|
|
12
12
|
<style>
|
|
13
13
|
.micl-card__content > .micl-textfield-outlined, .micl-card__content > .micl-textfield-filled {
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
</div>
|
|
200
200
|
</div>
|
|
201
201
|
|
|
202
|
-
<script src="
|
|
202
|
+
<script src="micl.js"></script>
|
|
203
203
|
<script src="docs.js"></script>
|
|
204
204
|
</body>
|
|
205
205
|
</html>
|
package/docs/sidesheet.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>MICL Side Sheets</title>
|
|
7
7
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
8
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=arrow_back,close,dark_mode&display=block">
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="stylesheet" href="
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
11
|
<link rel="stylesheet" href="docs.css">
|
|
12
12
|
<style>
|
|
13
13
|
.micl-card__content {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
111
|
|
|
112
|
-
<script src="
|
|
112
|
+
<script src="micl.js"></script>
|
|
113
113
|
<script src="docs.js"></script>
|
|
114
114
|
</body>
|
|
115
115
|
</html>
|
package/docs/slider.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
9
9
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
10
10
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=dark_mode,volume_up&display=block">
|
|
11
|
-
<link rel="stylesheet" href="
|
|
12
|
-
<link rel="stylesheet" href="
|
|
11
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
12
|
+
<link rel="stylesheet" href="micl.css">
|
|
13
13
|
<link rel="stylesheet" href="docs.css">
|
|
14
14
|
<style>
|
|
15
15
|
.micl-card-elevated, .micl-card-filled, .micl-card-outlined {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
.range {
|
|
20
20
|
margin: 64px 8px;
|
|
21
|
+
background-color: inherit;
|
|
21
22
|
}
|
|
22
23
|
.micl-card-elevated input[type=range] {
|
|
23
24
|
width: 100%;
|
|
@@ -66,7 +67,7 @@
|
|
|
66
67
|
</div>
|
|
67
68
|
</div>
|
|
68
69
|
|
|
69
|
-
<script src="
|
|
70
|
+
<script src="micl.js"></script>
|
|
70
71
|
<script src="docs.js"></script>
|
|
71
72
|
</body>
|
|
72
73
|
</html>
|
package/docs/switch.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>MICL Switches</title>
|
|
7
7
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
8
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=dark_mode&display=block">
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="stylesheet" href="
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
11
|
<link rel="stylesheet" href="docs.css">
|
|
12
12
|
<style>
|
|
13
13
|
label {
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
</div>
|
|
146
146
|
</div>
|
|
147
147
|
|
|
148
|
-
<script src="
|
|
148
|
+
<script src="micl.js"></script>
|
|
149
149
|
<script src="docs.js"></script>
|
|
150
150
|
</body>
|
|
151
151
|
</html>
|
package/docs/textfield.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<title>MICL Text Fields</title>
|
|
7
7
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap">
|
|
8
8
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:FILL@0..1&icon_names=cancel,credit_card,dark_mode,error,search&display=block">
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="stylesheet" href="
|
|
9
|
+
<link rel="stylesheet" href="themes/citrine/theme.css" id="theme-link">
|
|
10
|
+
<link rel="stylesheet" href="micl.css">
|
|
11
11
|
<link rel="stylesheet" href="docs.css">
|
|
12
12
|
<style>
|
|
13
13
|
.micl-textfield-outlined, .micl-textfield-filled {
|
|
@@ -45,15 +45,19 @@
|
|
|
45
45
|
<input type="text" id="mytextfield4" disabled value="Paris">
|
|
46
46
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
47
47
|
</div>
|
|
48
|
+
<div class="micl-textfield-outlined">
|
|
49
|
+
<label for="mytextfield5">Multiline text field</label>
|
|
50
|
+
<textarea id="mytextfield5"></textarea>
|
|
51
|
+
</div>
|
|
48
52
|
<div class="micl-textfield-outlined micl-textfield--error">
|
|
49
53
|
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
50
|
-
<label for="
|
|
51
|
-
<input type="text" id="
|
|
54
|
+
<label for="mytextfield6">Label text</label>
|
|
55
|
+
<input type="text" id="mytextfield6">
|
|
52
56
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
53
57
|
</div>
|
|
54
58
|
<div class="micl-textfield-outlined micl-textfield--error">
|
|
55
|
-
<label for="
|
|
56
|
-
<input type="password" id="
|
|
59
|
+
<label for="mytextfield7">Password</label>
|
|
60
|
+
<input type="password" id="mytextfield7" value="foobar">
|
|
57
61
|
<span class="micl-textfield__icon-trailing material-symbols-outlined" style="font-variation-settings:'FILL' 1">error</span>
|
|
58
62
|
<span class="micl-textfield__supporting-text">Include an uppercase letter, a lowercase letter, and a numeric character</span>
|
|
59
63
|
</div>
|
|
@@ -71,7 +75,7 @@
|
|
|
71
75
|
<span class="micl-textfield__supporting-text">Supporting text</span>
|
|
72
76
|
</div>
|
|
73
77
|
<div class="micl-textfield-outlined">
|
|
74
|
-
<span class="micl-textfield__prefix">€</span>
|
|
78
|
+
<span class="micl-textfield__prefix" aria-label="Euro">€</span>
|
|
75
79
|
<label for="mytextfield13">Amount</label>
|
|
76
80
|
<input type="text" id="mytextfield13" value="299.89">
|
|
77
81
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">credit_card</span>
|
|
@@ -83,16 +87,20 @@
|
|
|
83
87
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
84
88
|
<span class="micl-textfield__supporting-text">This input field is disabled</span>
|
|
85
89
|
</div>
|
|
90
|
+
<div class="micl-textfield-outlined">
|
|
91
|
+
<label for="mytextfield15">Text area</label>
|
|
92
|
+
<textarea id="mytextfield15" rows="3">Text areas are taller than text fields and wrap overflow text onto a new line. They are a fixed height and scroll vertically when the cursor reaches the bottom of the field. </textarea>
|
|
93
|
+
</div>
|
|
86
94
|
<div class="micl-textfield-outlined micl-textfield--error">
|
|
87
95
|
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
88
|
-
<label for="
|
|
89
|
-
<input type="text" id="
|
|
96
|
+
<label for="mytextfield16">Label text</label>
|
|
97
|
+
<input type="text" id="mytextfield16">
|
|
90
98
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
91
99
|
</div>
|
|
92
100
|
<div class="micl-textfield-outlined micl-textfield--error">
|
|
93
|
-
<label for="
|
|
94
|
-
<input type="number" id="
|
|
95
|
-
<span class="micl-textfield__suffix">kg</span>
|
|
101
|
+
<label for="mytextfield17">Weight</label>
|
|
102
|
+
<input type="number" id="mytextfield17" value="17800">
|
|
103
|
+
<span class="micl-textfield__suffix" aria-label="Kilograms">kg</span>
|
|
96
104
|
<span class="micl-textfield__icon-trailing material-symbols-outlined" style="font-variation-settings:'FILL' 1">error</span>
|
|
97
105
|
<span class="micl-textfield__supporting-text">Too heavy</span>
|
|
98
106
|
</div>
|
|
@@ -106,15 +114,15 @@
|
|
|
106
114
|
</div>
|
|
107
115
|
<div class="micl-textfield-filled" style="--md-sys-textfield-prefix-space:2.5em">
|
|
108
116
|
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
109
|
-
<span class="micl-textfield__prefix">NOK</span>
|
|
117
|
+
<span class="micl-textfield__prefix" aria-label="Norwegian kroner">NOK</span>
|
|
110
118
|
<label for="mytextfield22">Amount*</label>
|
|
111
119
|
<input type="text" id="mytextfield22" required value="">
|
|
112
120
|
<span class="micl-textfield__supporting-text">In Norwegian kroner</span>
|
|
113
121
|
</div>
|
|
114
122
|
<div class="micl-textfield-filled">
|
|
115
123
|
<span class="micl-textfield__character-counter"></span>
|
|
116
|
-
<span class="micl-textfield__supporting-text">Enter at least twelve characters</span>
|
|
117
|
-
<span class="micl-textfield__prefix">€</span>
|
|
124
|
+
<span class="micl-textfield__supporting-text micl-textfield__supporting-text--focus">Enter at least twelve characters</span>
|
|
125
|
+
<span class="micl-textfield__prefix" aria-label="Euro">€</span>
|
|
118
126
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
119
127
|
<input type="text" id="mytextfield23" maxlength="24">
|
|
120
128
|
<label for="mytextfield23">Label text</label>
|
|
@@ -127,16 +135,21 @@
|
|
|
127
135
|
<span class="micl-textfield__icon-trailing material-symbols-outlined">cancel</span>
|
|
128
136
|
<span class="micl-textfield__supporting-text">This input field is disabled</span>
|
|
129
137
|
</div>
|
|
138
|
+
<div class="micl-textfield-filled">
|
|
139
|
+
<label for="mytextfield25">Multiline text field</label>
|
|
140
|
+
<textarea id="mytextfield25" maxlength="100">Lorem ipsum dolor sit amet consectetur adipiscing elit</textarea>
|
|
141
|
+
<span class="micl-textfield__character-counter"></span>
|
|
142
|
+
</div>
|
|
130
143
|
<div class="micl-textfield-filled micl-textfield--error">
|
|
131
144
|
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
132
|
-
<label for="
|
|
133
|
-
<input type="text" id="
|
|
145
|
+
<label for="mytextfield26">Label text</label>
|
|
146
|
+
<input type="text" id="mytextfield26">
|
|
134
147
|
<span class="micl-textfield__icon-trailing material-symbols-outlined" style="font-variation-settings:'FILL' 1">error</span>
|
|
135
148
|
</div>
|
|
136
149
|
<div class="micl-textfield-filled micl-textfield--error">
|
|
137
150
|
<span class="micl-textfield__icon-leading material-symbols-outlined">search</span>
|
|
138
|
-
<label for="
|
|
139
|
-
<input type="text" id="
|
|
151
|
+
<label for="mytextfield27">City</label>
|
|
152
|
+
<input type="text" id="mytextfield27" maxlength="20" value="Amsterdaaam">
|
|
140
153
|
<span class="micl-textfield__icon-trailing material-symbols-outlined" style="font-variation-settings:'FILL' 1">error</span>
|
|
141
154
|
<span class="micl-textfield__supporting-text">Incorrect spelling</span>
|
|
142
155
|
<span class="micl-textfield__character-counter"></span>
|
|
@@ -145,7 +158,7 @@
|
|
|
145
158
|
</div>
|
|
146
159
|
</div>
|
|
147
160
|
|
|
148
|
-
<script src="
|
|
161
|
+
<script src="micl.js"></script>
|
|
149
162
|
<script src="docs.js"></script>
|
|
150
163
|
</body>
|
|
151
164
|
</html>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark-high-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(226 242 255);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(145 206 245);
|
|
4
|
+
--md-sys-color-on-primary: rgb(0 0 0);
|
|
5
|
+
--md-sys-color-primary-container: rgb(141 202 241);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(0 13 22);
|
|
7
|
+
--md-sys-color-secondary: rgb(226 242 255);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(0 0 0);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(178 197 212);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(0 13 22);
|
|
11
|
+
--md-sys-color-tertiary: rgb(244 237 255);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 0 0);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(200 189 229);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(13 6 36);
|
|
15
|
+
--md-sys-color-error: rgb(255 236 233);
|
|
16
|
+
--md-sys-color-on-error: rgb(0 0 0);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 174 164);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(34 0 1);
|
|
19
|
+
--md-sys-color-background: rgb(15 20 23);
|
|
20
|
+
--md-sys-color-on-background: rgb(223 227 231);
|
|
21
|
+
--md-sys-color-surface: rgb(15 20 23);
|
|
22
|
+
--md-sys-color-on-surface: rgb(255 255 255);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(65 72 77);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(255 255 255);
|
|
25
|
+
--md-sys-color-outline: rgb(234 241 247);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(189 195 202);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(223 227 231);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(0 0 0);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(0 77 108);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(198 231 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 0 0);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(145 206 245);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(0 19 30);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(210 229 244);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(0 0 0);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(182 201 216);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(1 19 30);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(231 222 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 0 0);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(204 193 233);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(19 12 42);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(15 20 23);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(76 81 84);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(0 0 0);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(28 32 36);
|
|
48
|
+
--md-sys-color-surface-container: rgb(44 49 52);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(55 60 64);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(67 71 75);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark-medium-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(184 226 255);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(145 206 245);
|
|
4
|
+
--md-sys-color-on-primary: rgb(0 41 59);
|
|
5
|
+
--md-sys-color-primary-container: rgb(90 152 188);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(0 0 0);
|
|
7
|
+
--md-sys-color-secondary: rgb(204 223 238);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(21 40 51);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(128 147 161);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(0 0 0);
|
|
11
|
+
--md-sys-color-tertiary: rgb(226 215 255);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(40 33 64);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(149 139 177);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(0 0 0);
|
|
15
|
+
--md-sys-color-error: rgb(255 210 204);
|
|
16
|
+
--md-sys-color-on-error: rgb(84 0 3);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 84 73);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(0 0 0);
|
|
19
|
+
--md-sys-color-background: rgb(15 20 23);
|
|
20
|
+
--md-sys-color-on-background: rgb(223 227 231);
|
|
21
|
+
--md-sys-color-surface: rgb(15 20 23);
|
|
22
|
+
--md-sys-color-on-surface: rgb(255 255 255);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(65 72 77);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(215 221 228);
|
|
25
|
+
--md-sys-color-outline: rgb(172 179 185);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(138 145 151);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(223 227 231);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(38 43 46);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(0 77 108);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(198 231 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 19 30);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(145 206 245);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(0 58 83);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(210 229 244);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(1 19 30);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(182 201 216);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(38 56 68);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(231 222 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(19 12 42);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(204 193 233);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(57 49 82);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(15 20 23);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(65 69 73);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(4 8 11);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(26 30 33);
|
|
48
|
+
--md-sys-color-surface-container: rgb(36 40 44);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(47 51 55);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(58 62 66);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark {
|
|
2
|
+
--md-sys-color-primary: rgb(145 206 245);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(145 206 245);
|
|
4
|
+
--md-sys-color-on-primary: rgb(0 52 75);
|
|
5
|
+
--md-sys-color-primary-container: rgb(0 76 107);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(198 231 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(182 201 216);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(32 51 62);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(55 73 85);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(210 229 244);
|
|
11
|
+
--md-sys-color-tertiary: rgb(204 193 233);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(51 44 76);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(74 66 99);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(231 222 255);
|
|
15
|
+
--md-sys-color-error: rgb(255 180 171);
|
|
16
|
+
--md-sys-color-on-error: rgb(105 0 5);
|
|
17
|
+
--md-sys-color-error-container: rgb(147 0 10);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 218 214);
|
|
19
|
+
--md-sys-color-background: rgb(15 20 23);
|
|
20
|
+
--md-sys-color-on-background: rgb(223 227 231);
|
|
21
|
+
--md-sys-color-surface: rgb(15 20 23);
|
|
22
|
+
--md-sys-color-on-surface: rgb(223 227 231);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(65 72 77);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(193 199 206);
|
|
25
|
+
--md-sys-color-outline: rgb(139 146 152);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(65 72 77);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(223 227 231);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(44 49 52);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(32 100 135);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(198 231 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 30 45);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(145 206 245);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(0 76 107);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(210 229 244);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(10 30 40);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(182 201 216);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(55 73 85);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(231 222 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(30 23 53);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(204 193 233);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(74 66 99);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(15 20 23);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(53 58 61);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(10 15 18);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(24 28 31);
|
|
48
|
+
--md-sys-color-surface-container: rgb(28 32 36);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(38 43 46);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(49 53 57);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light-high-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(0 48 69);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(32 100 135);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(0 79 110);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(28 46 58);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(57 75 88);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
11
|
+
--md-sys-color-tertiary: rgb(47 39 71);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(76 68 102);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-error: rgb(96 0 4);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(152 0 10);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
19
|
+
--md-sys-color-background: rgb(246 250 254);
|
|
20
|
+
--md-sys-color-on-background: rgb(24 28 31);
|
|
21
|
+
--md-sys-color-surface: rgb(246 250 254);
|
|
22
|
+
--md-sys-color-on-surface: rgb(0 0 0);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(221 227 234);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(0 0 0);
|
|
25
|
+
--md-sys-color-outline: rgb(38 45 50);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(67 74 79);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(44 49 52);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(255 255 255);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(145 206 245);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(0 79 110);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(0 55 78);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(57 75 88);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(35 53 64);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(76 68 102);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(53 46 78);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(181 185 189);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(246 250 254);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(238 241 246);
|
|
48
|
+
--md-sys-color-surface-container: rgb(223 227 231);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(209 213 217);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(195 199 203);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light-medium-contrast {
|
|
2
|
+
--md-sys-color-primary: rgb(0 58 83);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(32 100 135);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(51 115 150);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(255 255 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(38 56 68);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(93 111 124);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(255 255 255);
|
|
11
|
+
--md-sys-color-tertiary: rgb(57 49 82);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(113 104 140);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(255 255 255);
|
|
15
|
+
--md-sys-color-error: rgb(116 0 6);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(207 44 39);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 255 255);
|
|
19
|
+
--md-sys-color-background: rgb(246 250 254);
|
|
20
|
+
--md-sys-color-on-background: rgb(24 28 31);
|
|
21
|
+
--md-sys-color-surface: rgb(246 250 254);
|
|
22
|
+
--md-sys-color-on-surface: rgb(13 18 21);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(221 227 234);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(48 55 60);
|
|
25
|
+
--md-sys-color-outline: rgb(76 83 89);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(103 110 116);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(44 49 52);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(238 241 246);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(145 206 245);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(51 115 150);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(255 255 255);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(15 91 125);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(255 255 255);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(93 111 124);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(255 255 255);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(69 87 100);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(255 255 255);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(113 104 140);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(255 255 255);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(88 80 114);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(255 255 255);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(195 199 203);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(246 250 254);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(240 244 248);
|
|
48
|
+
--md-sys-color-surface-container: rgb(229 232 237);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(217 221 226);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(206 210 214);
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.light {
|
|
2
|
+
--md-sys-color-primary: rgb(32 100 135);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(32 100 135);
|
|
4
|
+
--md-sys-color-on-primary: rgb(255 255 255);
|
|
5
|
+
--md-sys-color-primary-container: rgb(198 231 255);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(0 76 107);
|
|
7
|
+
--md-sys-color-secondary: rgb(79 97 109);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(255 255 255);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(210 229 244);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(55 73 85);
|
|
11
|
+
--md-sys-color-tertiary: rgb(98 89 124);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(255 255 255);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(231 222 255);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(74 66 99);
|
|
15
|
+
--md-sys-color-error: rgb(186 26 26);
|
|
16
|
+
--md-sys-color-on-error: rgb(255 255 255);
|
|
17
|
+
--md-sys-color-error-container: rgb(255 218 214);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(147 0 10);
|
|
19
|
+
--md-sys-color-background: rgb(246 250 254);
|
|
20
|
+
--md-sys-color-on-background: rgb(24 28 31);
|
|
21
|
+
--md-sys-color-surface: rgb(246 250 254);
|
|
22
|
+
--md-sys-color-on-surface: rgb(24 28 31);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(221 227 234);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(65 72 77);
|
|
25
|
+
--md-sys-color-outline: rgb(113 120 126);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(193 199 206);
|
|
27
|
+
--md-sys-color-shadow: rgb(0 0 0);
|
|
28
|
+
--md-sys-color-scrim: rgb(0 0 0);
|
|
29
|
+
--md-sys-color-inverse-surface: rgb(44 49 52);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(238 241 246);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(145 206 245);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(198 231 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 30 45);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(145 206 245);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(0 76 107);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(210 229 244);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(10 30 40);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(182 201 216);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(55 73 85);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(231 222 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(30 23 53);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(204 193 233);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(74 66 99);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(215 218 223);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(246 250 254);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(255 255 255);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(240 244 248);
|
|
48
|
+
--md-sys-color-surface-container: rgb(235 238 243);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(229 232 237);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(223 227 231);
|
|
51
|
+
}
|