Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@monster_property_services/monster-global-styles
Advanced tools
This is a package to store the global css variables for the monster web components
This package is exporting a globalStyles
constant containing css variables with default company level rules.
These variables will be imported in each monster web component in order to keep the same look and feel for the
layout.
You can start using this package right away like this:
<script type="module" src="https://unpkg.com/@monster_property_services/monster-global-styles@latest"></script>
npm i @monster_property_services/monster-global-styles
Usage ✨:
In your web component initialization:
import { LitElement, css, html } from 'lit';
import { globalStyles } from '@monster_property_services/monster-global-styles';
export class MyWebComponent extends LitElement {
static styles = [
globalStyles, // Include global style inside of the styles array object
css`
.my-class {
margin-top: var(--mp-wc-default-spacing);
}` // Then you can add your own css code and reference the variables declared in the globalStyles object
];
// Then the rest of your Lit web component code
constructor() {}
render() {
return html`<h1 class="my-class">Test</h1>`;
}
}
customElements.define('my-web-component', MyWebComponent);
FAQs
This is a package to store the global css variables for the monster web components
The npm package @monster_property_services/monster-global-styles receives a total of 0 weekly downloads. As such, @monster_property_services/monster-global-styles popularity was classified as not popular.
We found that @monster_property_services/monster-global-styles demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.