0.0.2 • Published 6 years ago

fluent-web-components v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Fluent Design Web Components

Built With Stencil

Microsoft's Fluent Design system implemented for the web using Stencil.

Available Components:

Coming Soon:

  • Input
  • Navigation View

Getting started

Install from npm: npm i --save fluent-web-components

If you don't already have the body set to have no margin & padding, make sure you do.

body {
  margin: 0;
  padding: 0;
}

Components

Acrylic

  • Creates a container for child elements with the Fluent Acrylic effect applied.

Tag: fluent-acrylic

PropertyTypeDefaultDescription
paddingbooleanfalseGives acrylic children some room to breathe.
tint-opacity[1-10]5Opacity from 1 to 9 of the background of the acrylic
tint-colorcss colorcolor schemeChanges the tinit color of the acrylic from the default color scheme specified.
background-source"host-backdrop" or "backdrop""host-backdrop"Which background source to use as the background of the acrylic. "host-backdrop" uses the image set for the --background-image variable, while "backdrop" uses the content behind the element (right now this uses backdrop-filter so it may not work in all browsers yet).

Button

  • A simple button component with support for custom styling as specified in the UWP docs.

Tag: fluent-button

PropertyTypeDefaultDescription
backgroundstringbased on themeChanges the default background of the button
foregroundstringbased on themeChanges the default text color of the button

...and several other properties. See Microsoft's specs on UWP button styling for more info.

Content

  • A content wrapper for an application using Fluent for Web. It is optional but recommended.

Tag: fluent-content

PropertyTypeDefaultDescription
no-imagebooleanfalseDisables a page-wide background image, instead opting for a solid background.
theme"light" or "dark""light"Apply the selected theme to all fluent elements that are children of this content.
background-imagestringundefinedSet the host backdrop of the content.
0.0.2

6 years ago

0.0.1

6 years ago