Security News
Supply Chain Attack Detected in @solana/web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
gatsby-theme-ui-layout
Advanced tools
Gatsby theme for adding shadowable layouts to multiple Gatsby themes for composition.
Gatsby theme for adding shadowable layouts to multiple Gatsby themes for composition.
npm i gatsby-theme-ui-layout
In your theme, import and use the Layout component, which does not include any default layout.
// example page template
/** @jsx jsx */
import { jsx } from 'theme-ui'
import { Layout } from 'gatsby-theme-ui-layout'
export default (props) => (
<Layout {...props}>{/* your theme content goes here */}</Layout>
)
End-users of a theme that is built with gatsby-theme-ui-layout
can shadow the same Layout component to customize the page layout.
v0.6.0
changes relative to 0.3, not the latest 0.6 prerelease
Styled
components dict was renamed to Themed
to avoid
confusion with styled
components constructors from @emotion/styled
and
similar libraries.
theme.useRootStyles
configuration option (false by default). Set it to
true
to add styles.root
to html
instead of body
.
theme.useBodyStyles
configuration option still defaults to true
, but
it's going in to be deprecated in favor of theme.useRootStyles
in the
future.New scale: transitions
supporting transition
CSS property. Issue
#1079, PR
#1272
Objects in nested scales can now have a __default
key. PR
#951
Given the theme
const theme = {
colors: {
primary: {
__default: '#00f',
light: '#33f',
}
}
}
color: 'primary'
resolves to color: '#00f'
.
Configuration option for printing color mode. PR #1267, issue #1144. No more wasted ink.
{
initialColorModeName: "dark",
printColorModeName: "light"
}
A new component, Paragraph was added in PR #1298
Theme UI 0.6 depends on Emotion 11, and isn't compatible with Emotion 10 anymore.
Refer to Emotion 11 release notes for more information.
Color mode flash on first render is gone, but to achieve this we had to bring
back theme.rawColors
.
theme.colors
when reading
theme from useThemeUI
or inside sx
..colors
object contains Custom CSS Properties now..rawColors
.Default color mode name is no longer "default"
— it's now undefined
, what
represents the lack of color mode set by user or detected from preferences.
useColorSchemeMediaQuery
defaults to true
. Issue
#624, PR
#1373
How to migrate? Add useColorSchemeMediaQuery: false
to your theme if you
don't have this property.
Read more in the docs.
We no longer export internal React context named as Context
😅 It wasn't and
it's still not public API, but if you used it and you really need it, you
can grab it as __ThemeUIContext
. (But please don't do this. Use
ThemeProvider
from @theme-ui/core for local theme overrides instead.)
Styled
will be removed in v0.7. Use Themed
instead.useBodyStyles
will be removed in v0.7. Use useRootStyles
instead.FAQs
Gatsby theme for adding shadowable layouts to multiple Gatsby themes for composition.
The npm package gatsby-theme-ui-layout receives a total of 16 weekly downloads. As such, gatsby-theme-ui-layout popularity was classified as not popular.
We found that gatsby-theme-ui-layout 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.