TypeScript
Tailwind CSS
TypeScript | Tailwind CSS | |
---|---|---|
1,353 | 1,356 | |
100,022 | 81,714 | |
0.6% | 1.2% | |
9.9 | 9.6 | |
4 days ago | 3 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | 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.
TypeScript
-
createStore in Zustand's source code explained.
const createStoreImpl: CreateStoreImpl = (createState) => { type TState = ReturnType type Listener = (state: TState, prevState: TState) => void let state: TState const listeners: Set = new Set() const setState: StoreApi['setState'] = (partial, replace) => { // TODO: Remove type assertion once https://github.com/microsoft/TypeScript/issues/37663 is resolved // https://github.com/microsoft/TypeScript/issues/37663#issuecomment-759728342 const nextState = typeof partial === 'function' ? (partial as (state: TState) => TState)(state) : partial if (!Object.is(nextState, state)) { const previousState = state state = (replace ?? (typeof nextState !== 'object' || nextState === null)) ? (nextState as TState) : Object.assign({}, state, nextState) listeners.forEach((listener) => listener(state, previousState)) } } const getState: StoreApi['getState'] = () => state const getInitialState: StoreApi['getInitialState'] = () => initialState const subscribe: StoreApi['subscribe'] = (listener) => { listeners.add(listener) // Unsubscribe return () => listeners.delete(listener) } const api = { setState, getState, getInitialState, subscribe } const initialState = (state = createState(setState, getState, api)) return api as any }
-
Building a Personal Finance App with Arcjet
Our application will be built using TypeScript and the technical stack will be:
-
What is your way declare types for objects in TypeScript?
TypeScript is a great "onbuild" for JavaScript that adds static types and helps us catch errors early during development, and even though, sometimes you need to break your brain to type some function it is still wonderful.
-
Object.is() usage in Zustand’s source code.
const setState: StoreApi['setState'] = (partial, replace) => { // TODO: Remove type assertion once https://github.com/microsoft/TypeScript/issues/37663 is resolved // https://github.com/microsoft/TypeScript/issues/37663#issuecomment-759728342 const nextState = typeof partial === 'function' ? (partial as (state: TState) => TState)(state) : partial if (!Object.is(nextState, state)) { const previousState = state state = (replace ?? (typeof nextState !== 'object' || nextState === null)) ? (nextState as TState) : Object.assign({}, state, nextState) listeners.forEach((listener) => listener(state, previousState)) } }
- 10 Reasons TypeScript is Transforming How We Build Web Apps
-
Casual Clothes App Using Next.js 14, TypeScript, Prisma & Next-Auth
TypeScript
-
Modern Web Development with Turborepo, Next.js, TailwindCSS, NestJS, and More…
Each package/app is 100% TypeScript.
-
Interesting TypeScript issue
As we can see, it has a typing issue as the comment. I quickly searched for solution, then I ended up following up this issue which was open long ago https://github.com/microsoft/TypeScript/issues/30581.
-
LogTape: Zero-Dependency Logging for JavaScript That Just Works
LogTape is a shiny new logging library for JavaScript and TypeScript that's designed with one goal in mind: to make logging simple, flexible, and hassle-free across all your JavaScript environments. Whether you're building applications for Deno, Node.js, Bun, edge functions, or browsers, LogTape has got you covered.
- Allow type annotations in .js files in preparation for Type Annotations proposal
Tailwind CSS
-
Building a Personal Finance App with Arcjet
This article will serve as a guide on how to create a simple finance management app using Arcjet, Next.js, Auth.js, Prisma, SQLite, and Tailwind CSS. Building a personal finance management app with modern web development skills, practical functionality, and robust security helps drive home the point of how effective it can be to incorporate these features. Our application will be proof of concept, so there will be no live working payment gateway.
-
My Personal Intro to TailwindCSS
Tailwind documentation: https://tailwindcss.com/
-
Casual Clothes App Using Next.js 14, TypeScript, Prisma & Next-Auth
TailwindCSS
-
How to setup standalone CLI: use Tailwind CSS without Node.js in Shopify.
TailwindCSS: A utility-first CSS framework for rapidly building custom designs.
-
Your Startup’s First Web Summit: Essential Preparation Tips
These code starters are open-source, responsive, styled with TailwindCSS, and yes, they're free.
-
How to implement real-time mouse pointers into a web-application using SuperViz React SDK
In this tutorial, we'll use the Tailwind CSS framework. First, install the Tailwind package.
-
Supercharge Your E-Commerce Site with Astro SSR SPA Template
Designing a visually appealing e-commerce site is easy with Tailwind CSS and Daisy UI, both of which are integrated into the template. Tailwind CSS provides a utility-first approach to styling, allowing you to rapidly build custom designs without leaving your HTML. Daisy UI builds on top of Tailwind, offering a set of pre-styled components that are easy to customize.
-
Six Tailwind CSS Utility Classes to Enhance Your Productivity
Tailwind CSS is one of the popular CSS frameworks that offers many classes. This classes helps to streamline and enhance web development workflows. Among the vast array of classes are some that developers have probably yet to hear of, underestimated, or are relatively new.
-
Storefront hero sections for e-commerce built with Tailwind CSS and Flowbite
Tailwind CSS
-
Top Free Developer Tools & Libraries You Need to Know in 2024
Website: tailwindcss.com
What are some alternatives?
zod - TypeScript-first schema validation with static type inference
flowbite - Open-source UI component library and front-end development framework based on Tailwind CSS
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
antd - An enterprise-class UI design language and React UI library
zx - A tool for writing better scripts
unocss - The instant on-demand atomic CSS engine.
esbuild - An extremely fast bundler for the web
windicss - Next generation utility-first CSS framework.
Yup - Dead simple Object schema validation
emotion - 👩🎤 CSS-in-JS library designed for high performance style composition
gray-matter - Smarter YAML front matter parser, used by metalsmith, Gatsby, Netlify, Assemble, mapbox-gl, phenomic, vuejs vitepress, TinaCMS, Shopify Polaris, Ant Design, Astro, hashicorp, garden, slidev, saber, sourcegraph, and many others. Simple to use, and battle tested. Parses YAML by default but can also parse JSON Front Matter, Coffee Front Matter, TOML Front Matter, and has support for custom parsers. Please follow gray-matter's author: https://github.com/jonschlinkert
Material UI - Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.