Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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 3,741 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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.