CSS Question - black or white text color based on background
mix-blend-mode - they say it's not well supported and it also does not work with only black / white coloring.
Is there a pretty convenient way to do it in CSS (maybe Tailwind) / JS (I'm using React)?
The screenshot shows what I have right now (I want the black text on the red-ish background to be white)...
What's the best way to attach functions to a TypeScript interface?
const isSlow = card.properties.includes(Property.Slow);
const isSlow = card.properties.includes(Property.Slow);
NextAuth 2FA with oAuth
why is prettier broken on vs code?
TRPC query initial undefined
is anyone else having issues with creating a new preact next app with pnpm?
pnpm create next-app --example using-preact preact-app is ok, but then once I run pnpm dev I get:
```
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - ../../node_modules/@prefresh/core/src/index.js:7:0
Module not found: Can't resolve 'preact'...Convert zod schema to typescript interfaces
React Query - Update data after successful mutation
queryClient doesn't provide any of these methods.
const queryClient = trpc.useContext();
...Credentials Auth with tRPC
CredentialsProvider wasn't going to work for us. Then we moved to Strapi and after using Strapi I decided I'm just gonna do it myself. <Insert Thanos GIF>
We still need to authenticate users based on username/password credentials, and I'm not sure how tRPC handles that within its ctx since according to NextAuth docs (https://next-auth.js.org/providers/credentials) it doesn't store session data in the DB....Adding next.js plugin to T3?
defineNextConfig?Next.js multi zones and shared components
3000 and a web app at port 4200, which is working fine. Unfortunately I am encountering some problems that aren't described anywhere in their documentation (as far as I can tell).
I am working in a monorepo and have shared components between both apps, such as the header and footer, which obviously includes navigation. When I am on the blog and want to navigate to e.g. the /about page, then it will obviously navigate to localhost:3000/blog/about instead of localhost:3000/about. One solution is to check the base path in the navigation component and then prepend localhost:3000 to the href if the base path equals blog, but that refreshes the entire app and does not result in smooth navigation, so it's not really ideal. Is there anything else can I do about this?...Generating a Layout with main AND sidebar content??
<Layout /> that will allow me to pass in children to define the body content AND sidebar content? So I'm expecting each page to have the Header, provided by the Layout, and then two children. The first child will be the body content, the second will be the sidebar. Is there a way to write a Layout that will accept specific children in specific places?Analytics Platform
Super lightweight JS(X) parser?
What does Preline UI actually do?
! in a lot of places. Their animations also seemed to not work with Headless UI. The library also seems to try to do more than just styling by how it uses hidden checkboxes to control components like accordions. I'm confused because that seems like it would go against Theo's Venn diagram from his video.
- All that said, Preline UI is the one I'm most confused about. Their website seems to just have a bunch of normal tailwind classes. I can just copy / paste them into my code and they work fine....Is t3 stack good for serverless
Am I doing Prisma relations right?

Why can i click through a disabled button with ontouchstart event?
my VSCODE broke
