├── .github
├── composite-actions
│ └── install
│ │ └── action.yml
├── dependabot.yml
└── workflows
│ └── static.yml
├── .gitignore
├── .husky
├── commit-msg
└── pre-commit
├── .ncurc.json
├── .npmrc
├── .nvmrc
├── .prettierignore
├── .prettierrc
├── README.md
├── examples
└── next-js
│ ├── .eslintrc.json
│ ├── .gitignore
│ ├── README.md
│ ├── next.config.js
│ ├── package.json
│ ├── panda.config.ts
│ ├── postcss.config.cjs
│ ├── public
│ ├── next.svg
│ └── vercel.svg
│ ├── src
│ └── app
│ │ ├── favicon.ico
│ │ ├── global.css
│ │ ├── layout.tsx
│ │ └── page.tsx
│ └── tsconfig.json
├── package.json
├── packages
└── animated-pandacss
│ ├── .release-it.json
│ ├── CHANGELOG.md
│ ├── package.json
│ ├── src
│ ├── index.ts
│ └── keyframes.ts
│ └── tsconfig.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
└── site
├── .eslintrc.cjs
├── .gitignore
├── README.md
├── index.html
├── package.json
├── panda.config.ts
├── postcss.config.cjs
├── src
├── App.tsx
├── code.tsx
├── codeblocks.ts
├── color-mode-button.tsx
├── copy-code-button.tsx
├── index.css
├── main.tsx
├── useColorMode.ts
└── vite-env.d.ts
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
/.github/composite-actions/install/action.yml:
--------------------------------------------------------------------------------
1 | name: "Install"
2 | description: "Sets up Node.js and runs install"
3 |
4 | runs:
5 | using: composite
6 | steps:
7 | - uses: pnpm/action-setup@v2.2.4
8 | with:
9 | version: 7
10 |
11 | - name: Setup Node.js
12 | uses: actions/setup-node@v3
13 | with:
14 | node-version: 16.x
15 | registry-url: "https://registry.npmjs.org"
16 | cache: "pnpm"
17 |
18 | - name: Install dependencies
19 | shell: bash
20 | run: pnpm install --no-frozen-lockfile
21 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | # To get started with Dependabot version updates, you'll need to specify which
2 | # package ecosystems to update and where the package manifests are located.
3 | # Please see the documentation for all configuration options:
4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5 |
6 | version: 2
7 | updates:
8 | - package-ecosystem: "pnpm" # See documentation for possible values
9 | directory: "/" # Location of package manifests
10 | schedule:
11 | interval: "weekly"
12 |
--------------------------------------------------------------------------------
/.github/workflows/static.yml:
--------------------------------------------------------------------------------
1 | # Simple workflow for deploying static content to GitHub Pages
2 | name: Deploy Demo page
3 |
4 | on:
5 | # Runs on pushes targeting the default branch
6 | push:
7 | branches: ["main"]
8 |
9 | # Allows you to run this workflow manually from the Actions tab
10 | workflow_dispatch:
11 |
12 | # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
13 | permissions:
14 | contents: read
15 | pages: write
16 | id-token: write
17 |
18 | # Allow one concurrent deployment
19 | concurrency:
20 | group: "pages"
21 | cancel-in-progress: true
22 |
23 | env:
24 | BUILD_PATH: "site"
25 |
26 | jobs:
27 | build:
28 | name: Build
29 | runs-on: ubuntu-latest
30 | steps:
31 | - name: Checkout
32 | uses: actions/checkout@v3
33 | - name: Install
34 | uses: ./.github/composite-actions/install
35 | - name: Setup Node
36 | uses: actions/setup-node@v3
37 | - name: Setup Pages
38 | id: pages
39 | uses: actions/configure-pages@v2
40 | - name: Build with Vite
41 | run: |
42 | pnpm --filter site build
43 | working-directory: ${{ env.BUILD_PATH }}
44 | - name: Upload artifact
45 | uses: actions/upload-pages-artifact@v1
46 | with:
47 | path: ${{ env.BUILD_PATH }}/site-build
48 |
49 | deploy:
50 | environment:
51 | name: github-pages
52 | url: ${{ steps.deployment.outputs.page_url }}
53 | needs: build
54 | runs-on: ubuntu-latest
55 | name: Deploy
56 | steps:
57 | - name: Deploy to GitHub Pages
58 | id: deployment
59 | uses: actions/deploy-pages@v1
60 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | node_modules/
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | .next
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 |
27 | # local env files
28 | .env*.local
29 |
30 | # vercel
31 | .vercel
32 |
33 | # typescript
34 | *.tsbuildinfo
35 | next-env.d.ts
36 |
37 | # Panda
38 | styled-system
39 |
40 | # Sitemap
41 | sitemap*.xml
42 |
43 | .env
44 | dist
45 | *.tgz
46 |
47 | # contentlayer
48 | .contentlayer
--------------------------------------------------------------------------------
/.husky/commit-msg:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | pnpm commitlint --edit
5 |
--------------------------------------------------------------------------------
/.husky/pre-commit:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | . "$(dirname "$0")/_/husky.sh"
3 |
4 | pnpm lint-staged
5 |
--------------------------------------------------------------------------------
/.ncurc.json:
--------------------------------------------------------------------------------
1 | {
2 | "reject": ["@types/node"]
3 | }
4 |
--------------------------------------------------------------------------------
/.npmrc:
--------------------------------------------------------------------------------
1 | unsafe-perm=true
2 | save-exact=true
3 | enable-pre-post-scripts=true
--------------------------------------------------------------------------------
/.nvmrc:
--------------------------------------------------------------------------------
1 | 18.x
2 |
--------------------------------------------------------------------------------
/.prettierignore:
--------------------------------------------------------------------------------
1 | *.hbs
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "printWidth": 100,
3 | "singleQuote": true,
4 | "trailingComma": "all",
5 | "arrowParens": "always",
6 | "semi": false
7 | }
8 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 | 🐼
11 |
12 |
13 |
14 |
15 | animated-pandacss
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | Use Animate.css with Panda CSS
38 |
39 |
40 |
41 |
42 |
43 |
44 |
npm i -D animated-pandacss
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | ## About
53 |
54 | It's a preset for [Panda CSS](https://panda-css.com) that adds [Animate.css](https://animate.style) animations to your project.
55 |
56 | ## Install
57 |
58 | ```bash
59 | npm i -D animated-pandacss
60 | #or
61 | yarn add -D animated-pandacss
62 | #or
63 | pnpm i -D animated-pandacss
64 | ```
65 |
66 | ## Usage
67 |
68 | Add as first item of presets in your [Panda](https://panda-css.com) config.
69 |
70 | ```ts
71 | import { defineConfig } from '@pandacss/dev'
72 |
73 | export default defineConfig({
74 | // Other config...
75 | presets: ['animated-pandacss', '@pandacss/dev/presets'],
76 | })
77 | ```
78 |
79 | You can now use it in your project.
80 |
81 | ```jsx
82 |
92 | Animated element
93 |
94 | ```
95 |
96 | You can play around with the animations in the [docs](https://anubra266.github.io/animated-pandacss/)
97 |
98 | ## Sponsors ✨
99 |
100 | Thanks goes to these wonderful people
101 |
102 |
103 |
104 |
105 |
106 |
107 |
--------------------------------------------------------------------------------
/examples/next-js/.eslintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "next/core-web-vitals"
3 | }
4 |
--------------------------------------------------------------------------------
/examples/next-js/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # next.js
12 | /.next/
13 | /out/
14 |
15 | # production
16 | /build
17 |
18 | # misc
19 | .DS_Store
20 | *.pem
21 |
22 | # debug
23 | npm-debug.log*
24 | yarn-debug.log*
25 | yarn-error.log*
26 |
27 | # local env files
28 | .env*.local
29 |
30 | # vercel
31 | .vercel
32 |
33 | # typescript
34 | *.tsbuildinfo
35 | next-env.d.ts
36 |
--------------------------------------------------------------------------------
/examples/next-js/README.md:
--------------------------------------------------------------------------------
1 | This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2 |
3 | ## Getting Started
4 |
5 | First, run the development server:
6 |
7 | ```bash
8 | npm run dev
9 | # or
10 | yarn dev
11 | # or
12 | pnpm dev
13 | ```
14 |
15 | Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16 |
17 | You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
18 |
19 | This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20 |
21 | ## Learn More
22 |
23 | To learn more about Next.js, take a look at the following resources:
24 |
25 | - [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26 | - [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27 |
28 | You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29 |
30 | ## Deploy on Vercel
31 |
32 | 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.
33 |
34 | Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
35 |
--------------------------------------------------------------------------------
/examples/next-js/next.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('next').NextConfig} */
2 | const nextConfig = {}
3 |
4 | module.exports = nextConfig
5 |
--------------------------------------------------------------------------------
/examples/next-js/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "examples-react-next-js",
3 | "version": "0.1.0",
4 | "private": true,
5 | "scripts": {
6 | "prepare": "panda codegen --silent",
7 | "dev": "next dev",
8 | "build": "next build",
9 | "start": "next start",
10 | "lint": "next lint"
11 | },
12 | "dependencies": {
13 | "@types/node": "20.4.9",
14 | "@types/react": "18.2.20",
15 | "@types/react-dom": "18.2.7",
16 | "animated-pandacss": "workspace:*",
17 | "eslint": "8.47.0",
18 | "eslint-config-next": "13.4.16",
19 | "next": "13.4.16",
20 | "react": "18.2.0",
21 | "react-dom": "18.2.0",
22 | "typescript": "5.1.6"
23 | },
24 | "devDependencies": {
25 | "@pandacss/dev": "0.11.1"
26 | }
27 | }
--------------------------------------------------------------------------------
/examples/next-js/panda.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from '@pandacss/dev'
2 |
3 | export default defineConfig({
4 | preflight: true,
5 | presets: ['@pandacss/dev/presets', 'animated-pandacss'],
6 | include: ['./src/**/*.{js,jsx,ts,tsx}', './pages/**/*.{js,jsx,ts,tsx}'],
7 | exclude: [],
8 | theme: {
9 | extend: {},
10 | },
11 | jsxFramework: 'react',
12 | outdir: 'styled-system',
13 | })
14 |
--------------------------------------------------------------------------------
/examples/next-js/postcss.config.cjs:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | plugins: {
3 | '@pandacss/dev/postcss': {},
4 | },
5 | }
--------------------------------------------------------------------------------
/examples/next-js/public/next.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/next-js/public/vercel.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/next-js/src/app/favicon.ico:
--------------------------------------------------------------------------------
1 | ( F ( n 00 (- � � �F ( $ ] � � ] $ � � � � � � � � 8 � � � � � � � � � � 8 � � � � � � � � � � � � � � � � � � � � � � � � � � # � � �OOO�������������������������ggg� � � � # Y � � ��������������������������555� � � � Y � � � � �kkk��������������������� � � � � � � � � � � ������������������ � � � � � Y � � � � �JJJ���������kkk� � � � � � Y # � � � � ���������� � � � � � � # � � � � � �111�DDD� � � � � � � � � � � � � � � � � � � 8 � � � � � � � � � � 8 � � � � � � � � $ ] � � ] $ ( @ , U � � � � U , * � � � � � � � � � � � � * � � � � � � � � � � � � � � � � Q � � � � � � � � � � � � � � � � � � Q r � � � � � � � � � � � � � � � � � � � � r r � � � � � � � � � � � � � � � � � � � � � � r O � � � � � � � � � � � � � � � � � � � � � � � � O � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � ( � � � � � � � � � � � � � � � � � � � � � � � � � � � � ' � � � � � � �888���������������������������������������������������������___� � � � � � � � � � � � � � ����������������������������������������������������������SSS� � � � � � � � + � � � � � � � �hhh����������������������������������������������������� � � � � � � � � + T � � � � � � � ��������������������������������������������������,,,� � � � � � � � � T � � � � � � � � � �GGG��������������������������������������������� � � � � � � � � � � � � � � � � � � � � ������������������������������������������ � � � � � � � � � � � � � � � � � � � � �+++���������������������������������jjj� � � � � � � � � � � � � � � � � � � � � � � ���������������������������������� � � � � � � � � � � � T � � � � � � � � � � ��������������������������III� � � � � � � � � � � � T + � � � � � � � � � � � �hhh���������������������� � � � � � � � � � � � + � � � � � � � � � � � ������������������,,,� � � � � � � � � � � � � � � � � � � � � � � � � �GGG������������� � � � � � � � � � � � � � ' � � � � � � � � � � � � ���������� � � � � � � � � � � � � ( � � � � � � � � � � � � �333�___� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � O � � � � � � � � � � � � � � � � � � � � � � � � O r � � � � � � � � � � � � � � � � � � � � � � r r � � � � � � � � � � � � � � � � � � � � r Q � � � � � � � � � � � � � � � � � � Q � � � � � � � � � � � � � � � � * � � � � � � � � � � � � * , U � � � � U , ( 0 ` - ( L j � � � � j K ( V � � � � � � � � � � � � � � U % � � � � � � � � � � � � � � � � � � � � &