
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@spark-web/theme
Advanced tools
🚧 — Under construction
The theme packages exports a set of objects and utilities that are used internally to create Spark Web components as well as for consumers to be able to override
The useGlobalTheme hook returns the name of the theme set in the
GlobalThemeProvider. It defaults to brighte if there's no value provided.
The useTheme hook returns an object with our theme tokens along with a set of
styling utilities.
The theme will always be in the same shape, but the values can be overridden by passing in a custom theme to the SparkProvider.
Theme tokens differ slightly from the values passed into the provider (or the defaultTokens if you don't provide a theme) as they are run through the decorateTokens function which add some extra values that should never change (and therefore aren't themeable) as well as using Capsize to add tokens we need to trim space above capital letters and below the baseline so spacing between elements is consistent and doesn't vary depending on line-height, font-size etc.
For more documentation about our tokens, please see the tokens reference page.
Returns either the string value of the token provided to it, or an array which maps to our breakpoints (where index 0 refers to the mobile breakpoint, 1 is the tablet breakpoint and so on).
Helper for mapping keys/breakpoint map to a theme scale e.g.
mapResponsiveProp('small', { small: 8, large: 16 }); // 8
mapResponsiveProp(
{ mobile: 'small', tablet: 'large' },
{ small: 8, medium: 12, large: 16 }
); // [8, 16]
TODO
Designed to be used alongside optimizeResponsiveArray.
TODO
TODO
This is the default tokens for the Brighte theme before they've been decorated.
This function
Pass the result of this function into the SparkProvider if you want to override the default theme.
FAQs
--- title: Theme isExperimentalPackage: true ---
The npm package @spark-web/theme receives a total of 1,725 weekly downloads. As such, @spark-web/theme popularity was classified as popular.
We found that @spark-web/theme demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.