![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@pandacss/shared
Advanced tools
[0.14.0] - 2023-09-05
pattern.raw(...)
did not share the same signature as pattern(...)
config.strictTokens: true
issue where some properties would still allow arbitrary valuestoken()
function in CSS strings that produced CSS syntax error when non-existing token were left
unchanged (due to the .
)Before:
* {
color: token(colors.magenta, pink);
}
Now:
* {
color: token('colors.magenta', pink);
}
{svaFn}.raw
function to get raw styles and allow reusable components with style overrides, just like with
{cvaFn}.raw
generator:done
hook to perform actions when codegen artifacts are emitted.StyledComponents
, RecipeConfig
, PatternConfig
etc) to solve a TypeScript issue (The inferred
type of xxx cannot be named without a reference...) when generating declaration files in addition to using
emitPackage: true
colorPalettes
for enhanced color managementcolorPalettes
can be organized hierarchically for
improved organizationExample: Define colors within categories, variants and states
const theme = {
extend: {
semanticTokens: {
colors: {
button: {
dark: {
value: 'navy',
},
light: {
DEFAULT: {
value: 'skyblue',
},
accent: {
DEFAULT: {
value: 'cyan',
},
secondary: {
value: 'blue',
},
},
},
},
},
},
},
}
You can now use the root button
color palette and its values directly:
import { css } from '../styled-system/css'
export const App = () => {
return (
<button
className={css({
colorPalette: 'button',
color: 'colorPalette.light',
backgroundColor: 'colorPalette.dark',
_hover: {
color: 'colorPalette.light.accent',
background: 'colorPalette.light.accent.secondary',
},
})}
>
Root color palette
</button>
)
}
Or you can use any deeply nested property (e.g. button.light.accent
) as a root color palette:
import { css } from '../styled-system/css'
export const App = () => {
return (
<button
className={css({
colorPalette: 'button.light.accent',
color: 'colorPalette.secondary',
})}
>
Nested color palette leaf
</button>
)
}
css(...args)
function so that you can pass possibly undefined values to it. This is
mostly intended for component props that have optional values like cssProps?: SystemStyleObject
and would use it
like css({ ... }, cssProps)
css.raw
function signature to match the one from css()
,
to allow passing multiple style objects that will be smartly merged.FAQs
Shared utilities for css panda
The npm package @pandacss/shared receives a total of 67,705 weekly downloads. As such, @pandacss/shared popularity was classified as popular.
We found that @pandacss/shared demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.