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

Panda CSS v3 #267

Open
wants to merge 22 commits into
base: v3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,9 @@ yarn-error.log*
# Contentlayer
.contentlayer

.changelogrc
.changelogrc
*storybook.log

## Panda
styled-system
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styled-system folder was checked into git even though this rule was added.

Can you make sure it gets removed?

This should work I think

git rm -rf packages/saas-ui-panda/styled-system

styled-system-studio
45 changes: 45 additions & 0 deletions apps/panda-testing/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

## Panda
styled-system
styled-system-studio
36 changes: 36 additions & 0 deletions apps/panda-testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
Binary file added apps/panda-testing/app/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions apps/panda-testing/app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@layer reset, base, tokens, recipes, utilities;
27 changes: 27 additions & 0 deletions apps/panda-testing/app/gradient.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Box } from '@saas-ui/panda-preset/jsx'

export const BackgroundGradient = () => {
const fallbackBackground =
'radial-gradient(at 40% 45%, #4f1d9e 10%, transparent 30%),radial-gradient(at 60% 60%, #2ab4d9 0%, transparent 40%),radial-gradient(at 30% 60%, {colors.cyan.500} 0%, transparent 30%),radial-gradient(at 70% 70%, #1d979e 0%, transparent 10%),radial-gradient(at 60% 70%, #4f1d9e 0%, transparent 30%)'

return (
<Box
backgroundImage={fallbackBackground}
backgroundBlendMode="saturation"
position="absolute"
top="-1000px"
left="0"
zIndex="0"
opacity={{
base: 0.3,
md: 0.5,
}}
height="1500px"
width="100%"
overflow="hidden"
pointerEvents="none"
transform="translate3d(0, 0, 0)"
filter="blur(240px)"
/>
)
}
33 changes: 33 additions & 0 deletions apps/panda-testing/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import type { Metadata } from 'next'
import { Geist, Geist_Mono } from 'next/font/google'
import './globals.css'
import { BackgroundGradient } from './gradient'

const geistSans = Geist({
variable: '--font-geist-sans',
subsets: ['latin'],
})

const geistMono = Geist_Mono({
variable: '--font-geist-mono',
subsets: ['latin'],
})

export const metadata: Metadata = {
title: 'SaaS UI + Panda CSS',
}

export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en" suppressHydrationWarning>
<body className={`${geistSans.variable} ${geistMono.variable} light`}>
{children}
<BackgroundGradient />
</body>
</html>
)
}
32 changes: 32 additions & 0 deletions apps/panda-testing/app/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import { Flex } from '@saas-ui/panda-preset/jsx'

import {
AccordionShowcase,
BadgeShowcase,
ButtonShowcase,
CardShowcase,
Headings,
MenuShowcase,
TagShowcase,
} from './showcase'

export default function Home() {
return (
<Flex
direction={'column'}
gap={10}
align={'center'}
maxW={'2xl'}
mx={'auto'}
p={10}
>
<Headings />
<ButtonShowcase />
<AccordionShowcase />
<CardShowcase />
<BadgeShowcase />
<TagShowcase />
<MenuShowcase />
</Flex>
)
}
Loading