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
Can I PR new functions? #81
Comments
Hey @PabloLION, That's a good idea! There is already a hook about dark theme, but your feature is a bit different, it's really welcome!! I'm looking forward to reviewing it! |
I know about that hook, and I tried it. But after I made it I find Mac OS is using this ternary dark mode. (system-> automatic) And if we use what The And do you have any idea on naming? I'm going to start working on it now. |
Hi again @juliencrn. I need some guide on the
|
@PabloLION I am not sure whether it is the correct way to go but since there is a symlink i think reloads are not recognised. Assuming you have VSCode; after you make a change and compile, while a TypeScript file is open hit |
Thanks for the reply, @egehandulger. The |
@PabloLION Yes, I mean |
Hi, yes @PabloLION, you're right, I will add a contribution guide, it will be easier for someone to contribute. And yes @egehandulger exact; the
The To play with the demo locally, it is a little tricky too for now, you can import it in the Thanks to you guys, I'm now convicted that I really need to improve the developer experience, by fixing the points told below. I will do it sooner! You maybe could name it Thank you 🤗 |
Hi @juliencrn. Than you for the details. I was also thinking about to summarize these things I learned there and make another PR on the README for the "contribution" chapter. But obviously you will do it better than me. As for the name, "useDarkMode" explains clearly what it means. "useSystemTheme" is not as good as "dark mode" since windows has its own "theme" and Mac has an "accent color", yet we still related, better than how I called it("usePaletteMode"). On the other hand, "useTernaryDarkMode" is not so elegant but more explicit, I guess everyone sees the name knows its meaning. Also, I don't think the old "useDarkMode" need to be deprecated. Some people just prefer everything easier. PS I forgot that I have this deployed on https://SnippetHub.dev , an unfinished project. You can see the effect there. |
If you want to create/improve the "contribution" chapter, feel free, it's really welcome. You have been just blocked by its absence, so you know well what is missing, what was blocking you. |
Hello @PabloLION, I've updated the readme.md about how to contribute. What do think about, it's better? Is missing something? |
@juliencrn Sorry I was busy lately. Today hopefully I'll finish this PR. I pulled the new master and did a rebase on my branch. how to contribute
While using About this PR
|
Hi @PabloLION, thanks for your feedback (and for the PR 🎉 )
Good catch, it's true on your version of master, but I've renamed it to be more explicit.
Hm weird, it works well on my machine. And, the
True, it was the case before, it was only watching files changes to re-build the lib. I've removed it, now there is only
Indeed, I think we need to be clearer on this.
If there is no bug, it should work. |
I forked this repo and I didn't fetch on my forked repo.
I'll test with the latest commit again.
I just saw that it's under
That means we don't need to call out to run |
Hi team.
I made a ternary Darkmode (based on this repo) like
"dark" | "system" | "light"
in a project and I want to use it in another project.The best way to share it is to upload it on NPM and GitHub. And I think putting it here might be helpful, as I see you have " Add new hooks" in your roadmap. Questions are:
Thanks.
The text was updated successfully, but these errors were encountered: