
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@guardian/src-foundations
Advanced tools
The Guardian's design tokens are the atoms from which all our visual design is built. They are intended for use with a CSS-in-JS library such as Emotion.
The Guardian's design tokens are the atoms from which all our visual design is built. They are intended for use with a CSS-in-JS library such as Emotion.
$ yarn add @guardian/src-foundations
import { palette } from "@guardian/src-foundations"
const backgroundColor = css`
background-color: ${palette.neutral[97]};
`
import { from, until, between } from "@guardian/src-foundations/mq"
const styles = css`
padding: 0 10px;
${from.mobileLandscape} {
padding: 0 20px;
}
${between.phablet.and.desktop} {
padding: 0 32px;
}
${until.wide} {
padding: 0 40px;
}
`
Output:
.class-name {
padding: 0 10px;
}
@media (min-width: 480px) {
.class-name {
padding: 0 20px;
}
}
@media (min-width: 660px) and (max-width: 980px) {
.class-name {
padding: 0 32px;
}
}
@media (max-width: 1300px) {
.class-name {
padding: 0 40px;
}
}
For elements that should not appear to sighted users, but are useful to assistive technology users.
import { visuallyHidden } from "@guardian/src-foundations/accessibility"
const label = css`
${visuallyHidden};
`
Output:
.class-name {
position: absolute;
opacity: 0;
height: 0;
width: 0;
top: 0;
left: 0;
}
This mixin provides a clear focus state for elements that may receive keyboard focus.
import { focusHalo } from "@guardian/src-foundations/accessibility"
const input = css`
${focusHalo};
width: 200px;
height: 44px;
`
Output:
.class-name {
outline: 0;
box-shadow: 0 0 0 5px #00b2ff;
z-index: 9;
width: 200px;
height: 44px;
}
FAQs
The Guardian's foundations are the atoms from which all our visual design is built. They are intended for use with a CSS-in-JS library such as Emotion.
The npm package @guardian/src-foundations receives a total of 25 weekly downloads. As such, @guardian/src-foundations popularity was classified as not popular.
We found that @guardian/src-foundations demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 43 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.