Skip to content

Commit a069e51

Browse files
committed
chore: rename css-panda to pandacss/dev
1 parent 69cf352 commit a069e51

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+86
-86
lines changed

.changeset/gold-horses-pull.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
'@pandacss/config': patch
33
'@pandacss/types': patch
4-
'css-panda': patch
4+
'@pandacss/dev': patch
55
---
66

77
Add `definePreset` method

.changeset/thirty-chairs-sin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
'@pandacss/parser': patch
3-
'css-panda': patch
3+
'@pandacss/dev': patch
44
'@pandacss/config': patch
55
'@pandacss/core': patch
66
'@pandacss/presets': patch

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The universal design system solution for the web
2323
## Getting Started
2424

2525
```sh
26-
yarn install css-panda
26+
yarn install @pandacss/dev
2727
```
2828

2929
To scaffold the panda config and postcss

docs/concepts/atomic-styles.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `css` function is used to write atomic styles. It accepts a style object of
88
and returns a string.
99

1010
```js
11-
import { css } from './design-system/css'
11+
import { css } from './styled-system/css'
1212

1313
const btnClass = css({
1414
backgroundColor: 'gainsboro',

docs/creating-a-preset.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ By default, any configuration you add in your own `panda.config.js` file is smar
99
You can specify a preset in your `panda.config.js` file by using the `presets` option:
1010

1111
```js
12-
import { defineConfig } from 'css-panda'
12+
import { defineConfig } from '@pandacss/dev'
1313

1414
export default defineConfig({
1515
presets: ['@acmecorp/panda-preset'],
@@ -19,7 +19,7 @@ export default defineConfig({
1919
# Creating a preset
2020

2121
```js
22-
import { defineConfig } from 'css-panda'
22+
import { defineConfig } from '@pandacss/dev'
2323

2424
export default defineConfig({
2525
utilities: {

docs/getting-started/astro.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Vite, and Parcel.
88
Install panda and create your `panda.config.ts` file.
99

1010
```bash
11-
npm install -g @panda-css/cli
11+
npm install -g @pandacss/dev
1212
npx panda init
1313
```
1414

@@ -18,7 +18,7 @@ Add panda integration to your `astro.config.mjs` file.
1818

1919
```js
2020
import { defineConfig } from 'astro/config'
21-
import pandacss from '@pandacss/cli/astro'
21+
import pandacss from '@pandacss/dev/astro'
2222

2323
export default defineConfig({
2424
// ...
@@ -29,15 +29,15 @@ export default defineConfig({
2929
## Configure the content
3030

3131
```js {3}
32-
import { defineConfig } from 'css-panda'
32+
import { defineConfig } from '@pandacss/dev'
3333

3434
export default defineConfig({
3535
preflight: true,
36-
presets: ['css-panda/presets'],
36+
presets: ['@pandacss/dev/presets'],
3737
// define the content to scan 👇🏻
3838
include: ['./src/**/*.{tsx,jsx}', './pages/**/*.{jsx,tsx}'],
3939
exclude: [],
40-
outdir: 'design-system',
40+
outdir: 'styled-system',
4141
})
4242
```
4343

@@ -60,7 +60,7 @@ npm run dev
6060
Use the generated style utilities in your code and panda will extract them to the generated CSS file.
6161

6262
```jsx
63-
import { css } from './design-system/css'
63+
import { css } from './styled-system/css'
6464

6565
export function App() {
6666
return <div className={css({ bg: 'red.400' })} />

docs/getting-started/cli.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ The simplest and fastest way to use Panda is with the Panda CLI tool.
55
## Install Panda
66

77
```bash
8-
npm install -g @panda-css/cli
8+
npm install -g @pandacss/dev
99
npx panda init
1010
```
1111

1212
## Configure the content
1313

1414
```js {3}
15-
import { defineConfig } from 'css-panda'
15+
import { defineConfig } from '@pandacss/dev'
1616

1717
export default defineConfig({
1818
preflight: true,
19-
presets: ['css-panda/presets'],
19+
presets: ['@pandacss/dev/presets'],
2020
// define the content to scan 👇🏻
2121
include: ['./src/**/*.{tsx,jsx}', './pages/**/*.{jsx,tsx}'],
2222
exclude: [],
23-
outdir: 'design-system',
23+
outdir: 'styled-system',
2424
})
2525
```
2626

@@ -47,7 +47,7 @@ panda --watch
4747
Use the generated style utilities in your code and panda will extract them to the generated CSS file.
4848

4949
```jsx
50-
import { css } from './design-system/css'
50+
import { css } from './styled-system/css'
5151

5252
export function App() {
5353
return <div className={css({ bg: 'red.400' })} />

docs/getting-started/postcss.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Vite, and Parcel.
88
Install panda and create your `panda.config.ts` file.
99

1010
```bash
11-
npm install -g @panda-css/cli postcss autoprefixer
11+
npm install -g @pandacss/dev postcss autoprefixer
1212
npx panda init --postcss
1313
```
1414

@@ -20,23 +20,23 @@ Add panda and autoprefixer to your `postcss.config.cjs` file, or wherever PostCS
2020
module.exports = {
2121
plugins: {
2222
autoprefixer: {},
23-
'@pandacss/cli/postcss': {},
23+
'@pandacss/dev/postcss': {},
2424
},
2525
}
2626
```
2727

2828
## Configure the content
2929

3030
```js {3}
31-
import { defineConfig } from 'css-panda'
31+
import { defineConfig } from '@pandacss/dev'
3232

3333
export default defineConfig({
3434
preflight: true,
35-
presets: ['css-panda/presets'],
35+
presets: ['@pandacss/dev/presets'],
3636
// define the content to scan 👇🏻
3737
include: ['./src/**/*.{tsx,jsx}', './pages/**/*.{jsx,tsx}'],
3838
exclude: [],
39-
outdir: 'design-system',
39+
outdir: 'styled-system',
4040
})
4141
```
4242

@@ -59,7 +59,7 @@ npm run dev
5959
Use the generated style utilities in your code and panda will extract them to the generated CSS file.
6060

6161
```jsx
62-
import { css } from './design-system/css'
62+
import { css } from './styled-system/css'
6363

6464
export function App() {
6565
return <div className={css({ bg: 'red.400' })} />

docs/recipe/01-introduction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Here's an example button recipe
1717

1818
```jsx
1919
// recipes/button.tsx
20-
import { defineRecipe } from 'css-panda'
20+
import { defineRecipe } from '@pandacss/dev'
2121

2222
const buttonRecipe = defineRecipe({
2323
...

docs/recipe/02-config-recipe.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The config recipe takes the following properties:
1818
To define a config recipe, import the `defineRecipe` helper function
1919

2020
```jsx
21-
import { defineRecipe } from 'css-panda'
21+
import { defineRecipe } from '@pandacss/dev'
2222

2323
export const buttonRecipe = defineRecipe({
2424
name: 'button',
@@ -53,13 +53,13 @@ export const buttonRecipe = defineRecipe({
5353
To add the recipe to the config, you’d need to add it to the `theme.recipes` object.
5454

5555
```jsx
56-
import { defineConfig } from 'css-panda'
56+
import { defineConfig } from '@pandacss/dev'
5757
import { buttonRecipe } from './recipes/button'
5858

5959
export default defineConfig({
6060
include: ['src/**/*.tsx'],
6161
outdir: 'panda',
62-
presets: ['css-panda/presets'],
62+
presets: ['@pandacss/dev/presets'],
6363
jsxFramework: 'solid',
6464
theme: {
6565
recipes: {

0 commit comments

Comments
 (0)