Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@biom3/react
Advanced tools
![logohd](https://user-images.githubusercontent.com/1452237/205757058-6f0b6602-af1a-4ef9-a7d0-51c5feba1b80.png)
This package publishes via CICD to the public npm component: @biom3/react
.
All react based design system components.
We have designed and implemented a grqanular status system where each BIOME design system component has it's own maturity status. Information on these component statuses can be found in confluence.
Each status update should be accompanied by a timestamp (format: ddd mm yyyy, eg: '2nd Dec 2022'). We will use these timestamps to move components through the status levels, as technical debt.
BIOME react components are all theme-aware. This means that they all need to sit underneath the <BiomeThemeProvider />
. Please ensure you wrap your whole application in the BiomeThemeProvider
, so that components at all levels in the tree, have access to BIOME design tokens.
@NOTE For those planning to consume biom3/react
inside a nextjs application, please be aware that the BiomeThemeProvider inserts a rudimentary amount of global css, which simply implements some very basic css resets. This means that ideally, the BiomeThemeProvider
should to be used inside of the _app.tsx
file. For example:
// pages/_app.tsx
export default function NextJsApp({ Component, pageProps }) {
return (
<BiomeThemeProvider theme={{ base, ui }}>
<Component {...pageProps} />
</BiomeThemeProvider>
);
}
If you want to dynamically change the color theme, you simply create a custom provider, which might look something like this:
import { base, ui, onDarkBase } from "@biom3/design-tokens";
export const LightOrDarkThemeProvider = ({
children,
}: {
children: ReactNode;
}) => {
const [themeBrightness, setThemeBrightness] = useState<"light" | "dark">(
"light"
);
const [theme, setTheme] = useState<DesignTokens>({ base, ui });
useEffect(() => {
if (themeBrightness === "light") {
setTheme({ base, ui });
} else {
setTheme({ base: onDarkBase, ui });
}
}, [themeBrightness]);
return <BiomeThemeProvider theme={theme}>{children}</BiomeThemeProvider>;
};
FAQs
![logohd](https://user-images.githubusercontent.com/1452237/205757058-6f0b6602-af1a-4ef9-a7d0-51c5feba1b80.png)
The npm package @biom3/react receives a total of 4,326 weekly downloads. As such, @biom3/react popularity was classified as popular.
We found that @biom3/react 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.