Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@digital-realty/theme
Advanced tools
This packages is intented to allow any consumers to be able to follow the Digital Realty styling/theming across components that they use from our component library.
This package should be imported at the highest level and once by the consuming application.
[!IMPORTANT] What this package looks to achieve for the components in the component library...
- Colours
- Fonts
- Icons
- General CSS theming thats not component specific
- Custom CSS Properties
[!IMPORTANT] What this packages doesn't achieve for components in the component library...
- Component specific styling (eg. specific rounding for a component, Button height)
npm i @digital-realty/theme
<script type="module">
import '@digital-realty/theme';
</script>
Alternatively:
import { LitElement } from 'lit';
import '@digital-realty/theme';
export class IxComponent extends LitElement {
...
}
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
To build the project run the following command, it will execute TypeScript compilation and rollup of the theming files.
npm run build
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
FAQs
Webcomponent typography-app following open-wc recommendations
We found that @digital-realty/theme 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.