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

@pandacss/shared

Package Overview
Dependencies
Maintainers
1
Versions
1149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/shared - npm Package Versions

1
115

0.0.0-dev-20240730122032

Diff

segunadebayo
published 0.0.0-dev-20240730101302 •

segunadebayo
published 0.0.0-dev-20240727164156 •

segunadebayo
published 0.0.0-dev-20240726092655 •

segunadebayo
published 0.44.0 •

Changelog

Source

[0.44.0] - 2024-07-22

Fixed

  • Ensure globalFontface definitions are merged correctly

Added

  • Add a name mandatory key in Preset to make it easy to target one specifically

Changed

  • Replace JSX with React.JSX for better React 19 support
segunadebayo
published 0.0.0-dev-20240722130804 •

segunadebayo
published 0.0.0-dev-20240722083328 •

segunadebayo
published 0.0.0-dev-20240720123529 •

segunadebayo
published 0.0.0-dev-20240720122109 •

segunadebayo
published 0.43.0 •

Changelog

Source

[0.43.0] - 2024-07-19

Added

Add support for defining global font face in config and preset

// pandacss.config.js
export default defineConfig({
  globalFontface: {
    Roboto: {
      src: 'url(/fonts/roboto.woff2) format("woff2")',
      fontWeight: '400',
      fontStyle: 'normal',
    },
  },
})

You can also add multiple font src for the same weight

// pandacss.config.js

export default defineConfig({
  globalFontface: {
    Roboto: {
      // multiple src
      src: ['url(/fonts/roboto.woff2) format("woff2")', 'url(/fonts/roboto.woff) format("woff")'],
      fontWeight: '400',
      fontStyle: 'normal',
    },
  },
})

You can also define multiple font weights

// pandacss.config.js

export default defineConfig({
  globalFontface: {
    // multiple font weights
    Roboto: [
      {
        src: 'url(/fonts/roboto.woff2) format("woff2")',
        fontWeight: '400',
        fontStyle: 'normal',
      },
      {
        src: 'url(/fonts/roboto-bold.woff2) format("woff2")',
        fontWeight: '700',
        fontStyle: 'normal',
      },
    ],
  },
})
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