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

Layout primitives #129

Open
brandonjpierce opened this issue Dec 11, 2024 · 0 comments
Open

Layout primitives #129

brandonjpierce opened this issue Dec 11, 2024 · 0 comments

Comments

@brandonjpierce
Copy link
Contributor

brandonjpierce commented Dec 11, 2024

Provide a general summary of the feature

I find myself constructing the exact same CSS over and over again for basic layout work e.g. a grid-ish based horizontal or vertical layout etc.

Ideally we have something akin to common primitives in the wild for other design systems such as Stack, Flex, Grid, etc.

Caveat that this definitely lands in more of a "chrome" package where we layer some higher level primitives on top of our headless system + some theme values.

💻 Examples

https://react-spectrum.adobe.com/react-spectrum/Flex.html

<Stack direction="column" gap={1}>
  <Stack direction="row" justifyContent="space-around" gap={1}>
    <div>Cool block bro</div>
    <div>Cool block bro</div>
  </Stack>
  <div>Cool block bro</div>
</Stack>
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

No branches or pull requests

1 participant