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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@smitag/angular-shared-ui

v20.1.4

Published

Styling elements and methods shared by all frontends

Downloads

607

Readme

Angular Material Theme for Smart InsurTech AG

This repository contains themes for Angular Material components with the styling and colors of Smart InsurTech.

Requirements

  • Angular >= 20
  • Angular material >= 20

Installation

  • Install Angular Material and it's peer dependencies as described on material.angular.io
  • Skip including a prebuild theme
  • Install theme via npm npm install @smitag/angular-shared-ui
  • Add following code to your global style.scss
    @use '@smitag/angular-shared-ui/src/lib/styles/components';
    @use '@smitag/angular-shared-ui/src/lib/styles/tokens';
    @use '@smitag/angular-shared-ui/src/lib/styles/layout'; //Skip if you use Tailwind
    @use '@smitag/angular-shared-ui/src/lib/styles/themes/default';

Applying the theme color

The system-level-colors generates a set of CSS classes based on color role that can be used across an app.

  • Primary, Secondary, Tertiary – Accent color roles used to emphasize or de-emphasize foreground elements.
  • Container – Roles used as a fill color for foreground elements like buttons.
  • On – Roles starting with this term indicate a color for text or icons on top of its paired parent color. For example, on primary is used for text and icons against the primary fill color.
  • Variant – Roles ending with this term offer a lower emphasis alternative to its non-variant pair. For example, outline variant is a less emphasized version of the outline color.
  • Surface – A role used for backgrounds and large, low-emphasis areas of the screen.

| Name | background-color | color | | ------------------------- | -------------------------- | ----------------------- | | Primary | .primary | .on-primary | | Primary fixed | - | .on-primary-fixed | | Primary container | .primary-container | .on-primary-container | | Secondary | .secondary | .on-secondary | | Secondary fixed | - | .on-secondary-fixed | | Secondary container | .secondary-container | .on-secondary-container | | Tertiary | .tertiary | .on-tertiary | | Tertiary fixed | - | .on-tertiary-fixed | | Tertiary container | .tertiary-container | .on-tertiary-container | | Error | .error | .on-error | | Error container | .error-container | .on-error-container | | Error fixed | - | .on-error-fixed | | Outline | - | .outline | | Outline variant | - | .outline-variant | | Surface | .surface | - | | Surface container lowest | .surface-container-lowest | - | | Surface container low | .surface-container-low | - | | Surface container | .surface-container | - | | Surface container high | .surface-container-high | - | | Surface container highest | .surface-container-highest | - |

Example:

<mat-card class="primary">
  <!-- background-color -->
  <mat-card-content class="on-primary">primary</mat-card-content>
  <!-- color -->
</mat-card>

Applying typography

The typography-hierarchy generates a set of CSS classes based on type scale levels. A type scale is a selection of font styles that can be used across an app.

There are large, medium, and small variations for Display, Headline, Title, Body and Label. You can read more about it here.

The table below lists the CSS classes emitted and the native elements styled:

| CSS class | Typescale level | Native Element | | -------------------- | --------------- | -------------- | | .mat-display-large | display-large | <h1> | | .mat-display-medium | display-medium | <h2> | | .mat-display-small | display_small | <h3> | | .mat-headline-large | headline-large | <h4> | | .mat-headline-medium | headline-medium | <h5> | | .mat-headline-small | headline-small | <h6> | | .mat-title-large | title-large | none | | .mat-title-medium | title-medium | none | | .mat-title-small | title-small | none | | .mat-body-large | body-large | none | | .mat-body-medium | body-medium | none | | .mat-body-small | body-small | none | | .mat-label-large | label-large | none | | .mat-label-medium | label-medium | none | | .mat-label-small | label-small | none |

Applying elevation

Material Design provides six levels of elevation that can be used to provide a sense of depth and organization to an application's UI. Learn more at Material Design's Elevation guide.

These levels are defined as CSS box-shadow values that can be styled to an element.

| CSS class | Native Element | | --------- | ------------------------------- | | .level0 | none | | .level1 | .second-toolbar, .mat-mdc-card | | .level2 | none | | .level3 | .mat-mdc-mini-fab, .mat-mdc-fab | | .level4 | none | | .level5 | none |