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
shadcn-ui #2270
Comments
This looks really cool. I hope this gets added to the catppuccin org |
Thanks. I'm not really sure what this is waiting on right now. |
I just gave it a review and it looks fine to me! |
I'm not sure where the preview screenshots are from but it looks fine to me when I apply the variables to the shadcn/ui examples with the following userstyle: /* ==UserStyle==
@name ui.shadcn.com
@namespace shadcn/ui
@version 0.1.0
==/UserStyle== */
@-moz-document domain("ui.shadcn.com") {
:root,
:root.dark {
--background: 229.091 18.644% 23.137%; /* base */
--foreground: 227.234 70.149% 86.863%; /* text */
--muted: 230 15.584% 30.196%; /* surface0 */
--muted-foreground: 226.667 43.689% 79.804%; /* subtext1 */
--popover: 229.091 18.644% 23.137%; /* base */
--popover-foreground: 227.234 70.149% 86.863%; /* text */
--card: 229.091 18.644% 23.137%; /* base */
--card-foreground: 227.234 70.149% 86.863%; /* text */
--border: 227.143 14.737% 37.255%; /* surface1 */
--input: 227.143 14.737% 37.255%; /* surface1 */
--primary: 276.667 59.016% 76.078%; /* mauve */
--primary-foreground: 229.091 18.644% 23.137%; /* base */
--secondary: 230 15.584% 30.196%; /* surface0 */
--secondary-foreground: 227.234 70.149% 86.863%; /* text */
--accent: 230 15.584% 30.196%; /* surface0 */
--accent-foreground: 227.234 70.149% 86.863%; /* text */
--destructive: 358.812 67.785% 70.784%; /* red */
--destructive-foreground: 230.526 18.812% 19.804%; /* mantle */
--ring: 227.234 70.149% 86.863%; /* text */
--radius: 0.5rem;
}
} |
The example I used used --destructive there. |
I was just previewing the website in their themes page -> https://ui.shadcn.com/themes When you set it to blue, every component is set to blue as default. I couldn't help but notice that our catwalk previews have one element which is red and the rest blue. Obviously its meant to be changed, but the preview below gives me the impression that we provide files that have 2 accents mixed together by default? |
Okay, I'll change that and make it more clear that that is the destructive color. |
Done |
Is it worth adding the wrapper code around the variables (
|
I suppose, but it's not like you have to put latte in light or mocha in dark though |
So I thought a little more about this. It looks like shadcn-ui hard depends on TailwindCSS, so I believe that it would be much better implemented as part of our catppuccin/tailwindcss port? I'd like to avoid merging a repository with a few lines of CSS duplicated which can technically be offered through one of our existing ports. |
Link to repository
https://github.com/Tnixc/shadcn-ui/tree/main
Screenshots
Any additional comments?
It's a bunch of css variables in the proper format. I think I chose the values properly, but please review the choice of colors as I can change it easily. Also all the values that are the same are based on shadcn/ui's default.
Submission Guidelines
The text was updated successfully, but these errors were encountered: