Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@fluentui/scheme-utilities
Advanced tools
Theme variant generator for Fluent UI React (formerly Office UI Fabric React)
Variants are themes generated from an existing theme, as opposed to from raw colors. A variant will share the same colors as the original theme it was generated from, but will use those colors differently. For example, the background color and text color might be swapped. Variants can be used to highlight or de-emphasize portions of the page.
Example of normal, soft, and strong variants:
This project provides helper functions to create variants of a given theme, which can be used with the ThemeProvider component to theme a specific portion of the page. Each function takes in an IPartialTheme and returns an ITheme.
The following example creates a strong variant of a given theme, and applies that strong variant to the components wrapped by ThemeProvider
.
import { FluentTheme } from '@fluentui/theme';
import { getStrongVariant } from '@fluentui/theme-schemes';
const strongTheme = getStrongVariant(FluentTheme);
<ThemeProvider theme={strongTheme}>
<components... />
</ThemeProvider>
The available variants are:
getNeutralVariant(theme: IPartialTheme): ITheme
getSoftVariant(theme: IPartialTheme): ITheme
getStrongVariant(theme: IPartialTheme): ITheme
FAQs
Fluent UI React subtheme generator.
We found that @fluentui/scheme-utilities 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.