Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sebgroup/green-angular

Package Overview
Dependencies
Maintainers
0
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sebgroup/green-angular

Angular components built on top of @sebgroup/chlorophyll.

  • 5.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5K
increased by29.98%
Maintainers
0
Weekly downloads
 
Created
Source
green-angular

@sebgroup/green-angular

Angular components with SEB's look and feel.

Install

If you are using the latest version of Angular, you can simply install @sebgroup/green-angular like this:

// If you are using yarn
yarn install @sebgroup/green-angular --save

// If you are using npm
npm install @sebgroup/green-angular --save

However, because @sebgroup/green-angular has a peer dependency to @angular/cdk, and Angular is very picky about which versions go together, if you use an older version of Angular you need to explicitly install the matching version of @angular/cdk as well.

For example, for Angular 14:

npm install @angular/cdk@~14.0.0 @sebgroup/green-angular --save

Currently, our aim is to support the LTS version of Angular as well as the current latest version.

Import module

We recommend that you import NggModule (or just the module you need for Angular Green) into a shared module eg. SharedModule that can be imported into other, preferably lazy loaded modules when needed.

import { NggModule } from '@sebgroup/green-angular'

@NgModule({
  declarations: [...],
  imports: [
    ...
    NggModule
  ],
  exports: [
    NggModule
  ]
})
export class SharedModule {}

Import styling

We recommend setting up your Angular project to use scss (SASS) for css preprocessing.

Once configured to use scss, it's just a matter of including the scss to your main styles file, typically it would be styles.scss located at the root of the src folder unless you've changed it.

Add scss

{project}/src/styles.scss

// import base styles from @sebgroup/chlorophyll
@use '@sebgroup/chlorophyll/scss';

Have other needs?

More examples and use cases coming soon! In the meantime create an issue over at github

FAQs

Package last updated on 18 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc