Coder Social home page Coder Social logo

recipes are not working about panda HOT 3 CLOSED

chakra-ui avatar chakra-ui commented on May 17, 2024
recipes are not working

from panda.

Comments (3)

segunadebayo avatar segunadebayo commented on May 17, 2024 1

@omarkhatibco, yes.

The recipe "key" should match the "name" in the recipe.

from panda.

segunadebayo avatar segunadebayo commented on May 17, 2024

Hey @omarkhatibco,

I went around in circles trying to figure out why it didn't work because the website uses recipes, and it worked there 😅.

It boils down to the key used in the recipe here
CleanShot 2023-06-25 at 18 25 00@2x

What you currently have is this:

export const recipes = {
  buttonRecipe,
};

instead of

export const recipes = {
  button: buttonRecipe,
};

I've also used the extend key for the theme to pull in the default spacing tokens.

https://codesandbox.io/p/github/omarkhatibco/pandacss-test/csb-l9pfj2/draft/peaceful-heisenberg?file=/recipes.ts:30,1-32,3

from panda.

omarkhatibco avatar omarkhatibco commented on May 17, 2024

Thanks @segunadebayo,

is it because of the Recipe in the key?

from panda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.