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

Playground doesn't match the docs import pathname #778

Closed
1 of 3 tasks
joevingracien opened this issue Jun 21, 2023 · 2 comments · Fixed by #779
Closed
1 of 3 tasks

Playground doesn't match the docs import pathname #778

joevingracien opened this issue Jun 21, 2023 · 2 comments · Fixed by #779

Comments

@joevingracien
Copy link

joevingracien commented Jun 21, 2023

Description

import { css } from 'design-system/css';
import { grid } from 'design-system/patterns';

const Button = ({children}) => {
  return (
    <button
      className={css({
        color: 'red.400',
        padding: '10px',
        border: 'solid',
        _hover: {
          borderRadius: '50px',
          bg: 'orange.400',
          border: 'none',
          color: 'white',
          _focus: {
            color: 'black',
            letterSpacing: '10px',
          },
        },
        transition: '1s',
      })}
    >
      {children}
    </button>
  );
};

export const App = () => {
  return (
<div className={grid({ columns: 2, gap: '6' })}>
      <Button>yoyo</Button>
      <Button>YOOOOOOOw</Button>
      <Button>Hasaaa</Button>
</div>
  );
};

While I like the wording 'design-system' much better and as far as I understand this should be import { grid } from 'styled-system/patterns';

Link to Reproduction

https://panda-playground.vercel.app/bPovrTv3Lc

Steps to reproduce

import { grid } from 'styled-system/patterns' brings an error

JS Framework

React

Panda CSS Version

Playground

Browser

Arc

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

Thanks a lot for creating Panda CSS

@anubra266
Copy link
Collaborator

@joevingracien it's configurable, you can set it in the config with outDir key.

@joevingracien
Copy link
Author

Sure, and that's awesome. I just thought it would make much more sense to have consistency between playground and docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants