open-index/open-npm huggingface dataset:
npm package: @ngwam/ngx-generate-material2-theme
Description: A schematic to generate an angular material 2 theme from a primary and accent set of hexadecimal color codes
Author: Tayamba Mwanza
Latest version: 1.1.0

# Ngx Generate Material 2 Theme

This Angular schematic generates an angular material 2 theme from primary and accent hex color values, a dark mode is also generated.

Use it after adding @angular/material with schematics.

[For material 3, click here](https://material.angular.io/guide/theming#custom-theme)

### Usage

#### _1. Install @angular/material_

```sh
ng add @angular/material --projectName app-name --animations enabled --theme custom --typography
```

#### _2. Run the schematic to generate a custom theme (replace color values with your own)_

```sh
ng add @ngwam/ngx-generate-material2-theme --projectName app-name --primaryColor '#702963' --accentColor '#FFC0CB'
```

#### N.B. Theme switcher

You will have to implement the theme switching service on your own.

```ts
// Here is an example snippet for changing the data-theme data attribute

const document = inject(Document);
document.body.setAttribute('data-theme-mode', 'dark');
```

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with

```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```
npm package: @ngwam/ngx-generate-pwa-icons
Description: A schematic to generate a set of the standard angular pwa icons from a specific image.
Author: Tayamba Mwanza
Latest version: 1.6.9

# Ngx Generate PWA Icons

This Angular schematic generates a set of pwa icons based on a custom .png logo.

Use it after adding @angular/pwa with schematics.

### Usage

#### _1. Install @angular/pwa_

```sh
ng add @angular/pwa --project project-name
```

#### _2. Add logo_

Add a .png with the name logo.png in the public folder, or the assets folder for projects that were generated before v18.

#### _3. Run the schematic to generate custom logos_

```sh
ng add @ngwam/ngx-generate-pwa-icons --projectName project-name
```