hgrid-css
purgecss
Our great sponsors
hgrid-css | purgecss | |
---|---|---|
10 | 51 | |
14 | 7,659 | |
- | 0.5% | |
2.8 | 8.1 | |
about 1 year ago | 26 days ago | |
SCSS | 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.
hgrid-css
-
Sass media queries
Another solution is to only use a mixin like the one here: https://github.com/ahansson/hgrid-css/blob/main/sass/mixins/_mixins.scss
-
Small CSS utility framework to complement huge vanilla stylesheet
https://hgrid.io maybe, but with PostCSS, see the production build section of the docs.
-
What's your favorite simple performant CSS or animation script/library/tool?
https://hgrid.io using it everywhere
-
Are there any other CSS frameworks like Bootstrap worth learning?
https://hgrid.io is a utility kit that is simple and has what you need.
- Favourite css framework/library?
-
Which framework do you use at work
I use my own package hgrid-css (https://hgrid.io) for everything because it's light, written in Sass, and has everything I need without the overhead of the bigger ones.
-
I am finding way too many options to choose from for a css reset. Is there a common denominator across all resets?
This is the most "modern" reset I know and is why I used it in my utility framework: https://github.com/ahansson/hgrid-css/blob/main/sass/base/_base.scss
-
Looking for suggestions/experiences using 'css cleanup' tools ala PurgeCSS...
As I use my own css framework (hgrid-css) I always have a whole bunch of classes in my css output that aren't used. I just purge all these and it works. I never touch the framework partials as part of the project itself, so I (almost) never have mess in my working scss files that need to be cleaned out, unlike what your issue is. As I don't have a problem with all the unused sass styles, I don't care to try to maintain the sass at all. I mostly work with purged CSS both on localhost and in prod, so I never see all the unused mess. If you take a look at the hgrid.io repository you'll see in package.json how I run purgecss on every start command and build command. So when sass is watching file changes I now and then have to stop and restart to reevaluate with purgecss. This way I always debug css based on what's really in my browser, and not what is in my source code.
-
Need some tips to speed up frontend development
You could try speeding up development with something simpler than Tailwind and less opinionated and easier to customize than Bootstrap. It has most of the utilities you need, check out https://hgrid.io
-
CSS Frameworks Without Node, Gulp, Grunt, Sass, React, Vue, Etc.
`hgrid-css` comes both as an npm package and as a single css file, you decide. Check out hgrid.io and the prebuilt files on GitHub: https://github.com/ahansson/hgrid-css/tree/main/dist
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 .
What are some alternatives?
Gutenberg - Modern framework to print the web correctly.βββββββββββββββββββββββββββββββββββββββββββββββ
vue-vite-starter-template - A single page app Vite starter template, created to easily bootstrap Vue.js 2 apps
Cavepaint CSS - Cavepaint is a color, contrast and typography library and composable class framework for CSS and Less
cssnano - A modular minifier, built on top of the PostCSS ecosystem.
css - Utility and component-centric design system leveraging Bootstrap 5 for rapid, responsive UI development.
PostCSS - Transforming styles with JS plugins
hgrid.io - Homepage for hgrid-css
esbuild-loader - Webpack loader for esbuild: Speed up your build β‘οΈ
animxyz - The first truly composable CSS animation library. Built for Vue, React, SCSS, and CSS, AnimXYZ will bring your website to life.
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
styled-jsx - Full CSS support for JSX without compromises
purifycss - Remove unused CSS. Also works with single-page apps.