Emma.css provides a comprehensive set of Emmet-like utility classes, designed for accelerating front-end development by integrating directly into Sass projects. This library is not a standalone CSS framework but rather a collection of SCSS partials that compile into highly configurable utility classes. Currently at version 0.16.1, it maintains an active release cadence with regular updates and dependency management. Its key differentiators include its tight integration with Sass, allowing for custom prefixes and the toggling of `!important` declarations, and its commitment to modern Sass practices, having recently migrated to `@use`/`@forward` syntax. It focuses on providing atomic CSS classes that map closely to common CSS declarations, similar to how Emmet abbreviations work.
npm install emma.cssVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to include Emma.css in a Sass project, configure a custom prefix, and disable `!important` flags in the generated utility classes using modern `@use` syntax.
Update your Sass entry files from `@import 'emma.css/scss/all';` to `@use 'emma.css/scss/all' as emma;`. Remember that configuration variables like `$emma-prefix` must be declared *before* the `@use` rule.
Ensure your Node.js environment is updated to version 20.0.0 or higher. Use `nvm` or a similar tool to manage Node.js versions, e.g., `nvm install 20 && nvm use 20`.
Review your stylesheets for usages of the removed font snippets and update them to the new equivalent snippets or custom font declarations as needed.
Update your Sass import paths from `@import "emma.css/sass/all";` to `@import "emma.css/scss/all";` (or the `@use` equivalent for modern Sass).
Adjust your import path to `emma.css/scss/all`. If you relied on the default `u-` prefix, you must now explicitly set `$emma-prefix: "u-";` before the `@use` statement to reintroduce it.
Ensure the import path is correct and uses the `scss/` directory: `@use 'emma.css/scss/all';`. Also, verify `emma.css` is installed in `node_modules`.
Switch to the `@use` syntax: `@use 'emma.css/scss/all';`. If you are setting configuration variables like `$emma-prefix` or `$emma-important`, ensure they are declared *before* the `@use` statement.
No dependency data recorded yet.