p6l.richard
Explore posts from serversTTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
Do you know if there's a way for me to obtain the hex value at runtime?
Instead of the variable string, I'd need the hex value. :/
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
fair
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
I think this could be what I was looking for. 🙌
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
For clarification: you mean
redixColors[c.name]
right?29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
Oh interesting
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
I haven't worked with css variables a lot, so I'm a bit ignorant of the benefit.
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
What's your recommendation for storing the color hex code in the database?
In it's own table?
I don't quite understand why I would store the hexCode in the database as well.
Like, wouldn't the
colorVariable
(or however you'd define this) be enough and then simply use the class names for applying the color?29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
Okay
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 11/12/2022 in #questions
[Tailwind&Prisma] How can you tie a tailwind color configuration to a prisma enumâť“
But what if I don't want to define the
primary
, secondary
etc. myself but use something predefined, like radix-colors instead?
https://github.com/brattonross/windy-radix-palette29 replies
TTCTheo's Typesafe Cult
•Created by p6l.richard on 10/2/2022 in #questions
Is there a way to add only a specific addon to an already existing ct3a app?
Yep, I just ended up adding it manually. Thanks. 🙂
6 replies