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

daisyui #2379

Open
1 task done
Liumingxun opened this issue Apr 27, 2024 · 6 comments
Open
1 task done

daisyui #2379

Liumingxun opened this issue Apr 27, 2024 · 6 comments
Labels
waiting for transfer Waiting on the repository being transferred from the maintainer

Comments

@Liumingxun
Copy link

Liumingxun commented Apr 27, 2024

Link to repository

https://github.com/Liumingxun/daisyui

Screenshots

preview

Any additional comments?

haven't published on npmjs.com

now can use npm install https://github.com/Liumingxun/daisyui for test, and provide example in the repo

link #2285

Submission Guidelines

  • I have read and followed Catppuccin's submission guidelines.
@sgoudham
Copy link
Contributor

sgoudham commented Apr 30, 2024

Hey 👋
Thanks for your work on this.

I've looked into daisyui and it looks like it relies solely upon TailwindCSS, which we already have an existing port/repository for. I'd like to make the same argument/case as I did for shadcn-ui (view comment).

I'd rather not merge a new repository for something that seems like it can be added to catppuccin/tailwindcss without too much maintenance burden?

Feel free to share your thoughts, I could be misunderstanding how daisyui integrates with tailwindcss!

@sgoudham sgoudham added the waiting on author Waiting on action from the maintainer label Apr 30, 2024
@Liumingxun
Copy link
Author

@sgoudham Yes, daisyui is a TailwindCSS component library. However, its theme definition does not depend on the TailwindCSS color palette, but use color value directly. I just try use the palette catppuccin/tailwindcss added, it can't access and doesn't work.

I still believe there should be a stand-alone port for this.

@sgoudham sgoudham removed the waiting on author Waiting on action from the maintainer label Jun 5, 2024
@Skarian
Copy link

Skarian commented Jun 5, 2024

@sgoudham Yes, daisyui is a TailwindCSS component library. However, its theme definition does not depend on the TailwindCSS color palette, but use color value directly. I just try use the palette catppuccin/tailwindcss added, it can't access and doesn't work.

I still believe there should be a stand-alone port for this.

I agree with this take. I've wasted most of my morning getting catppuccin color palette into DaisyUI manually. The tailwindcss color palette published did not fit into DaisyUI's design system.

This solves that for me and probably many others.

Thanks @Liumingxun for building, if this can't be merged here please consider publishing independently.

@sgoudham
Copy link
Contributor

sgoudham commented Jun 5, 2024

However, its theme definition does not depend on the TailwindCSS color palette

Thanks for letting me know. I'd be okay with it existing as a separate repository given your reasoning.

I've got a few comments regarding the repository/theme:

  1. Does the dist directory need to be committed into the repository?

  2. I don't believe info should be rosewater. We tend not to use rosewater for anything meaningful across our ports, aside from the terminal cursor colour. Please switch info to blue.

  3. To me, it feels odd that accent defaults to a single colour. The accent variant in Catppuccin means that the colour can be any one of the "rainbow" colours defined in each flavour. E.g.

    image

    Can we modify the configuration API to allow users to choose the flavour + accent, instead of just the flavour? Where accent is one of the rainbow colours shown above. E.g. something like catppuccin("latte", "mauve"),

I'd be happy to merge if 2. is at least implemented and we can raise issues / discuss other bulletpoints afterwards. Thanks for creating the repository 👍

@sgoudham sgoudham added the waiting on author Waiting on action from the maintainer label Jun 5, 2024
@Liumingxun
Copy link
Author

@sgoudham Thanks for your words, which help me understand the color design system better! I'd updated the repo, and I noticed that the primary color also belongs to the accent color palette; is that okay?

@sgoudham sgoudham removed the waiting on author Waiting on action from the maintainer label Jun 6, 2024
@sgoudham
Copy link
Contributor

sgoudham commented Jun 8, 2024

Thanks for updating @Liumingxun, I'm honestly a bit unsure what to put as the primary and secondary colours - maybe @unseen-ninja has some opinions here.

In any case, I think we can raise issues afterwards to discuss improvements/refactors, happy to approve for now and get it transferred to the organisation!

You should receive an email invitation to join the repository soon, I'll generate the creds for publishing to the NPM organisation and I believe we'd want to essentially copy/paste the publish actions workflow from catppuccin/insomnia. I'd quite like to use release-please more across the organisation but it might be a fair amount of learning that you don't want to do so a tag based workflow is also fine to me.

Please read, "Transferring a repository owned by your personal account", if you are unsure about the process of transferring the repository to Catppuccin.

We'll close this issue once the port has been added to our ports.yml. You can find an example of this in #2378

@sgoudham sgoudham added the waiting for transfer Waiting on the repository being transferred from the maintainer label Jun 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for transfer Waiting on the repository being transferred from the maintainer
Projects
None yet
Development

No branches or pull requests

3 participants