Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/error

Package Overview
Dependencies
Maintainers
1
Versions
922
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/error - npm Package Versions

1
93

0.0.0-dev-20240108205048

Diff

segunadebayo
published 0.0.0-dev-20240108181940 •

segunadebayo
published 0.0.0-dev-20240108091559 •

segunadebayo
published 0.0.0-dev-20240108000519 •

segunadebayo
published 0.0.0-dev-20240107203500 •

segunadebayo
published 0.0.0-dev-20240107170553 •

segunadebayo
published 0.0.0-dev-20240107164218 •

segunadebayo
published 0.0.0-dev-20240106191203 •

segunadebayo
published 0.0.0-dev-20240106191137 •

segunadebayo
published 0.25.0 •

Changelog

Source

[0.25.0] - 2024-01-06

Fixed

  • Fix config dependencies detection by re-introducing the file tracing utility
  • Fix issue where base doesn't work within css function
css({
  // This didn't work, but now it does
  base: { color: 'blue' },
})

Added

  • Add a way to generate the staticCss for all recipes (and all variants of each recipe)
import { defineConfig } from '@pandacss/dev'

export default defineConfig({
  // ...
  staticCss: {
    recipes: '*', // ✅ will generate the staticCss for all recipes
  },
})
  • Support token reference syntax when authoring styles object, text styles and layer styles.
import { css } from '../styled-system/css'

const styles = css({
  border: '2px solid {colors.primary}',
})

This will resolve the token reference and convert it to css variables.

.border_2px_solid_\{colors\.primary\} {
  border: 2px solid var(--colors-primary);
}

The alternative to this was to use the token(...) css function which will be resolved.

token(...) vs {...}

Both approaches return the css variable

const styles = css({
  // token reference syntax
  border: '2px solid {colors.primary}',
  // token function syntax
  border: '2px solid token(colors.primary)',
})

However, The token(...) syntax allows you to set a fallback value.

const styles = css({
  border: '2px solid token(colors.primary, red)',
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc