TinyColor
create-t3-app
Our great sponsors
TinyColor | create-t3-app | |
---|---|---|
6 | 183 | |
4,949 | 23,295 | |
- | 3.3% | |
0.0 | 9.2 | |
6 months ago | 4 days ago | |
JavaScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TinyColor
-
I Made an Automatic Color Theme Generator for Tailwind CSS
Importantly, for accessibility I automatically choose an accessible text color all across the site using tinycolor. This includes a fallback to using pure black and pure white in case that user decides that their favorite light shade is white and their favorite dark shade is white.
-
Convert Hex to RGBA
TinyColor Is a great color manipulation js library that does everything I want here and more. I figure you guys may want to give it a try! - https://github.com/bgrins/TinyColor
- CSS color palette generator (link in description)
-
Argument of type 'Instance' is not assignable to parameter of type 'string'.ts(2345)
I'm using tinycolor2 library:
-
How can I change Dark/Black Usernames to different colors?
It depends a lot on how the chat thing is set up, but it is definitely possible to access the text colour of an element using JS and potentially modify it to something else. If you wanted to get fancy, you could even utilise a library like TinyColor, which can help you detect whether any given colour is readable against a certain background colour and select a more readable alternative.
-
How to tell a browser a site is already in dark mode?
This may be a helpful library.
create-t3-app
-
Deploy Full-Stack Next.js T3App with Cognito and Prisma using AWS Lambda
import { unstable_noStore as noStore } from "next/cache"; import Link from "next/link"; import { CreatePost } from "~/app/_components/create-post"; import { getServerAuthSession } from "~/server/auth"; import { api } from "~/trpc/server"; export default async function Home() { noStore(); const hello = await api.post.hello.query({ text: "from tRPC" }); const session = await getServerAuthSession(); return (
Create T3span> App h1>
First Steps →h3>
Just the basics - Everything you need to know to set up your database and authentication. div> Link>Documentation →h3>
Learn more about Create T3 App, the libraries it uses, and how to deploy it.div> Link> div>{hello ? hello.greeting : "Loading tRPC query..."}p>
{session && Logged in as {session.user?.email}span>} p> {session ? "Sign out" : "Sign in"} Link> div> div> div> main> ); } async function CrudShowcase() { const session = await getServerAuthSession(); if (!session?.user) return null; const latestPost = await api.post.getLatest.query(); return (
{latestPost ? (Your most recent post: {latestPost.name}p> ) : (
You have no posts yet.p> )} div> ); }
-
Interview with Senior JavaScript Developer 2024 [video]
I thought he was making stuff up - "t3 stack vs t4 stack". But about 2 minutes in, I realized that I'd heard of a few things that he's talking about so I looked it up and they're real!
I think it's possible everything he's saying is true, more or less. LOL
t3: https://create.t3.gg
t4: https://t4stack.com
-
Localized tRPC errors
We start with a project that was bootstrapped with create-t3-app. For internationalization we use next-intl and set it up as described in the getting started guide. With this initial project setup we can jump into implementing localized error messages.
-
Building an Admin Console With Minimum Code Using React-Admin, Prisma, and Zenstack
I used create-t3-app to scaffold the Next.js app, with TypeScript, Prisma, and "app router" enabled in the options. You can also use create-next-app for the job and install Prisma manually.
-
Leaving Everything Behind For Elixir [Theo – t3․gg] [video]
I agree that the quantity of publicly available code isn't the most reliable indicator of someone's seniority.
My issue with this individual arises from the discrepancy between his public claims of significant expertise in the content he produces. He positions himself as a highly experienced developer, attracting a large following of junior developers who take his advice at face value.
I am trying to collect data points supporting his claims of seniority. For instance, his website prominently features a statement that he is the creator of the T3 Stack. However, a review of the contributor statistics for the T3 Stack (https://github.com/t3-oss/create-t3-app/graphs/contributors)... minimal contributions from him, which raises questions about the validity of his claims.
-
Ask HN: Which full stack framework (NextJS, Remix, SvelteKit) would you use?
I would recommend - https://create.t3.gg/
It uses the following, which as of late are pretty well know and common, so you can punch in your problems to stackoverflow, google, or chatgpt and get some pretty good answers.
It uses:
Nextjs (React), typescript, trpc (typescript rpc), auth, tailwind, and Prisma (ORM)
Though of course these could go out of fashion tomorrow, but I don't think the essential idea behind these libs and frameworks are that wacky, unique or unordinary.
Prisma ORM, is a little opinionated, and you could swap it out for Drizzle, which is basically typescript side sugared SQL.
TRPC might be also be a little sticky because it is tied to typescript, this is the tradeoff for the buttery smooth coupling for the fullstack experience. I think there exists a typed-rest solution out there, but haven't used it.
Personal anecdata, I used this stack for a little hobby project and it was FUN.
-
You don't need to pay for SaaS boilerplates - Open SaaS
Open SaaS was built with Typescript, and because it’s a full-stack app, type safety from the back-end to the front-end can be a real lifesaver. I mean, some opinionated stacks have gotten hugely popular on this basis.
-
Building a Local Development Environment: Running a Next.js Full-Stack App with PostgreSQL and Minio S3 Using Docker
Let's start by creating a Next.js application. We will use the T3 stack (TypeScript, TailwindCSS, and Prisma ORM) for this tutorial to skip installing and configuring all the dependencies which is out of the scope of this article. You can find more information about the T3 stack.
- Ask HN: Who wants to be hired? (January 2024)
-
Show HN: Build your startup or side project faster with these SaaS templates
https://github.com/t3-oss/create-t3-app
You still would need to add Stripe but there are so many examples publicly available that it should be straight forward
What are some alternatives?
chroma.js - JavaScript library for all kinds of color manipulations
vite - Next generation frontend tooling. It's fast!
colors - Smarter defaults for colors on the web.
next-pwa-contentlayer - Next.js PWA App with `next-i18next` and `Contentlayer`.
Vibrant.js
Refine - A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
color - :rainbow: Javascript color conversion and manipulation library
supabase - The open source Firebase alternative.
KolorWheel.js - 🌈 Color palette generator JavaScript library
turbo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turbopack and Turborepo.
randomColor - A tiny script for generating attractive colors
next-auth - Authentication for the Web.