npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@favian/favian-ui

v0.1.40

Published

A UI Library based on Favian Design System.

Downloads

28

Readme

Favian UI

A UI Library based on Favian Design System.

For now, there is no organized documentation for component.

To see available components, render FaviShowcaseComponent in view.

<favi-showcase></favi-showcase>

Installation

npm install --save @favian/favian-ui

Import Styles

To use system styles, add stylePreprocessorOptions to your angular.json.

{
  "stylePreprocessorOptions": {
    "includePaths": [
      "node_modules/@favian/favian-ui/styles"
    ]
  }
}

In your styles.scss file, import favi-theme and call apply-theme() mixin to apply theme for UI.

@import "favi-theme";

@include apply-theme();

The apply-theme() mixin can retrieve map as $options parameter which contains following properties.

$options: (
  primary: $primary,
  secondary: $secondary,
  tertiary: $tertiary,
  quaternary: $quaternary,
  warning: $warning,
  error: $error,
  success: $success,
  light-foreground: $light-foreground,
  dark-foreground: $dark-foreground,
  light-background: $light-background,
  dark-background: $dark-background,
  light-contrast: $light-contrast,
  dark-contrast: $dark-contrast,
)
  • primary: Set the primary color of UI. Default is #FE4365.
  • secondary: Set the secondary color of UI. Default is #FC9D9A.
  • tertiary: Set the tertiary color of UI. Default is #F9CDAD.
  • quaternary: Set the quaternary color of UI. Default is #C8C8A9.
  • warning: Set the warning color of UI. Default is #F2B33D.
  • error: Set the error color of UI. Default is #C02942.
  • success: Set the success color of UI. Default is #27AE60.
  • light-foreground: Set the font color for light theme. Default is #444444.
  • dark-foreground: Set the font color for dark theme. #DDDDDD.
  • light-background: Set the background color for light theme. Default is #FFFFFF.
  • dark-background: Set the background color for dark theme. Default is #222222.
  • light-contrast: Set the highlight color for light theme. Default is #000000.
  • dark-contrast: Set the highlight color for dark theme. Default is #FFFFFF.

To apply your custom theme, you can provide all or partial properties.

// Apply theme by providing all properties.
@import "favi-theme";

@include apply-theme((
  primary: #FE4365,
  secondary: #FC9D9A,
  tertiary: #F9CDAD,
  quaternary: #C8C8A9,
  warning: #F2B33D,
  error: #C02942,
  success: #27AE60,
  light-foreground: #444444,
  dark-foreground: #DDDDDD,
  light-background: #FFFFFF,
  dark-background: #222222,
  light-contrast: #000000,
  dark-contrast: #FFFFFF,
));
// Apply theme by providing partial properties.
@import "favi-theme";

@include apply-theme((
  primary: #FE4365,
  secondary: #FC9D9A,
));

App

It is highly recommended to wrap your application in FaviAppComponent.

The FaviAppComponent do following things:

  • Wrap your application with width: 100%, height: 100%, position: absolute, overflow: auto container.
  • Create outlets of Toast and Overlay. If you don't use FaviAppComponent, both have to imported manually.

In your app.component.html:

<favi-app>
  <!-- Your Application content in here. -->
</favi-app>