Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@mui/material-pigment-css useTheme: theme has no spacing property #43803

Open
bmakan opened this issue Sep 18, 2024 · 1 comment
Open

@mui/material-pigment-css useTheme: theme has no spacing property #43803

bmakan opened this issue Sep 18, 2024 · 1 comment
Assignees
Labels
package: pigment-css Specific to @pigment-css/* status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@bmakan
Copy link

bmakan commented Sep 18, 2024

Steps to reproduce

Link to live example: CodeSandbox
(Sandbox not working, but downloading the sandbox code and running it locally works. Not sure what's going on.)

Steps:

  1. Download sandbox and unzip.
  2. bun install
  3. bun run vite
  4. open browser and check the console log for the theme - there's no spacing property in it.

Current behavior

When using the theme from import { useTheme } from "@mui/material-pigment-css";, the theme object has no spacing property. The property is present when using the import { useTheme } from "@mui/material/styles";.

Expected behavior

The theme object should have a spacing property.

Context

No response

Your environment

npx @mui/envinfo
  System:
    OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
  Binaries:
    Node: 20.12.2 - /usr/bin/node
    npm: 10.5.0 - /usr/bin/npm
    pnpm: Not Found
  Browsers:
    Edge: Version 128.0.2739.79 (Official build) (64-bit)
  npmPackages:
    @emotion/react:  11.13.3 
    @emotion/styled:  11.13.0 
    @mui/core-downloads-tracker:  6.1.0 
    @mui/material: 6.1.0 => 6.1.0 
    @mui/material-pigment-css: 6.1.0 => 6.1.0 
    @mui/private-theming:  6.1.0 
    @mui/styled-engine:  6.1.0 
    @mui/system:  6.1.0 
    @mui/types:  7.2.16 
    @mui/utils:  6.1.0 
    @pigment-css/react: 0.0.22 => 0.0.22 
    @pigment-css/vite-plugin: 0.0.22 => 0.0.22 
    @types/react: ^18.2.65 => 18.3.7 
    react: ^18.2.0 => 18.3.1 
    react-dom: ^18.2.0 => 18.3.1 
    typescript: ^5.4.2 => 5.6.2 

Search keywords: pigmentcss theme spacing

@bmakan bmakan added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 18, 2024
@zannager zannager added the package: pigment-css Specific to @pigment-css/* label Sep 18, 2024
@mc-dsk
Copy link

mc-dsk commented Sep 26, 2024

Same for shadows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: pigment-css Specific to @pigment-css/* status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants