purgecss
tailwindcss-jit
Our great sponsors
purgecss | tailwindcss-jit | |
---|---|---|
51 | 12 | |
7,659 | 2,241 | |
0.5% | - | |
8.1 | 9.0 | |
24 days ago | about 3 years ago | |
TypeScript | JavaScript | |
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.
purgecss
-
Optimize CSS with SAT Solving
As a starting point, Tailwind used to use PurgeCSS [0] but I'm not sure what they use now.
[0] https://purgecss.com
-
How to load critical styles for a NextJs app
A similar question was already posted here but, I think looking at the raw html, we will be able to better determine the required css than what Purgecss does.
-
Frontend development roadmap
PurgeCss
-
How to speed up your web application
Webpack minifies JS and CSS files by default when we build them in production mode. But it does not remove useless styles or classes. For this, you can use libraries like https://purgecss.com/ Do not forget to check the dependency, connect only the functionality that you use.
-
Removing unused CSS in a Django template-based project
When I searched online I couldn't find an "industry standard" solution to this problem. What I ended up doing was using the popular tool PurgeCSS along with a quick Python script to generate the appropriate command. What the PurgeCSS tool does is search for all your HTML files, gather all the CSS classes used, and then "purge" all the unused ones from the CSS file. You just need to declare all the HTML files you have.
-
23 of the best Eleventy Themes (Starters) for 2023
Skeleventy gives you a rock-solid foundation to build fast and accessible static websites, with clean, understated design. Features include a minimal build pipeline with Laravel Mix, the Sass-powered utility class generator Gorko, Purge CSS, an HTML minifier, SEO-friendly page metadata, image lazy loading, responsive navigation, and an XML sitemap.
-
Reduce unused CSS / JS from a Django App
You could look into using PurgeCSS and its cli?
- Eliminating unused selectors from Sass
-
Workplaces for digital nomads: the frontend
Unable to get rid of unused styles. Importing components individually and setting styles in SASS can greatly simplify builds, but several common unused styles can't be deleted using PurgeCSS and analogues due to dynamic class names.
-
Does My Website Look Big in This? Six Tips to Lower your Page Weight
If you’re hand-crafting your CSS, using only the exact classes you need, you’ll still probably find that your CSS file size grows as your site does. But it doesn’t need to grow too much — you can remove unused classes with tools like Purge CSS .
tailwindcss-jit
-
How can I use CSS variables in arbitrary values?
I found this GitHub issue where someone wants to use CSS variables for padding, like so: p-[var(--app-padding)]
-
Any opinion about the new Rails 7 frontend assets management ?
Just cruised the JIT docs & code on GitHub (merged into main branch).
-
Ask HN: What novel tools are you using to write web sites/apps?
> add non-default variations (mostly different heights/widths than what it ships with).
Check out https://github.com/tailwindlabs/tailwindcss-jit. It got released 3 weeks ago, and supports variable variables in width and height now.
-
Why Tailwind’s Just-In-Time mode is a game-changer and how to use it right now
About two weeks ago, Adam Wathan announced a new Tailwind experiment: Just-In-Time. In this article, I'll tell you what it's all about, and how you can take advantage of it.
-
React Storybook Environment with TailwindCSS
In the latest Storybook update, we finally got support for PostCSS 8. So, to celebrate this occasion, I've put together a React Storybook environment that includes everyone's favourite utility-first CSS framework: TailwindCSS. The environment also utilizes the TailwindCSS JIT compiler & Webpack 5 to bring the build times as close to instant as possible. And to top it off, the repo includes a simple GitHub action that deploys the Storybook to GitHub pages every time something is pushed.
-
NextJS Landing Page Template Free with Tailwind CSS and TypeScript [Open source]
Tailwind CSS 2.0 with the Just-in-time version
-
Latest & Greatest Combo
It’s not a setup issue. The JIT works differently: there’s no “purging”. And the issue I described is a known problem: https://github.com/tailwindlabs/tailwindcss-jit/issues/71
- An experimental just-in-time compiler for Tailwind CSS
-
Just-In-Time: The Next Generation of Tailwind CSS – Tailwind CSS
Sidestepping the broader conversation, this "JIT tool" is apparently a postcss plugin, which means you have to spawn postcss process (e.g. at every save events or have build tool do the same).
-
Speed up Next.js build with Typescript and Tailwind CSS
Enter @tailwindcss/jit, a drop-in replacement (though not with 100% feature parity yet) that collects the classes used by your files and only generates the requested classes.
What are some alternatives?
vue-vite-starter-template - A single page app Vite starter template, created to easily bootstrap Vue.js 2 apps
storybook-tailwind - Storybook with Tailwind 2 JIT and PostCSS 8
cssnano - A modular minifier, built on top of the PostCSS ecosystem.
Quasar Framework - Quasar Framework - Build high-performance VueJS user interfaces in record time
PostCSS - Transforming styles with JS plugins
tailwindcss-rtl - Enabling bidirectional support on tailwindcss framework
esbuild-loader - Webpack loader for esbuild: Speed up your build ⚡️
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
nx - Smart Monorepos · Fast CI
purifycss - Remove unused CSS. Also works with single-page apps.
Next-js-Boilerplate - 🚀🎉📚 Boilerplate and Starter for Next.js 14+ with App Router and Page Router support, Tailwind CSS 3.4 and TypeScript ⚡️ Made with developer experience first: Next.js + TypeScript + ESLint + Prettier + Husky + Lint-Staged + Jest + Testing Library + Cypress + Storybook + Commitlint + VSCode + Netlify + PostCSS + Tailwind CSS