UtiliKit - The Ultimate Utility-First CSS Framework for Drupal
Security covered Maintenance fixes only 31 sitesUtiliKit is a dynamic, zero-CSS utility framework for Drupal that allows you to style websites using intuitive utility classes instead of writing custom CSS. It offers unlimited flexibility in values, supports modern CSS properties for internationalization and RTL, and provides multiple rendering modes optimized for development and production. The framework includes comprehensive documentation, live examples, and tools for content creators, theme developers, and site builders.
UtiliKit generates responsive utility CSS from class names such as uk-pd--20 that you add to templates, content or the editor. It is for theme developers, site builders and editors.
You write the class on the element, and UtiliKit creates the matching CSS rule, with breakpoints when you ask for them. You do not write or maintain a separate stylesheet for spacing, color or layout changes.
Start here
- Explore the UtiliKit live examples
- Browse the UtiliKit online reference
- Read the UtiliKit help guide
Features
- Utility classes: A class has the form
uk-pd--20, and the element also carries the marker classutilikit. Add a breakpoint name afteruk-, as inuk-md-pd--20, to tie the rule to that breakpoint. There are 50 two-letter prefixes, such aspdfor padding,mgfor margin andfsfor font size. - Breakpoints: sm (576 px), md (768 px), lg (992 px), xl (1200 px) and xxl (1400 px). Each one can be switched off in "Active breakpoints".
- Rendering mode: Choose "Inline", "Static" or "Head" under "Rendering mode". Inline is the default. Head mode keeps the generated CSS in Drupal's state storage instead of a file.
- CSS output: The settings page has "Optimize CSS output", "Use !important in CSS rules", "Enable smooth transitions" and "Resize debounce delay".
- Where it loads: "Enable globally on all pages", "Disable on admin pages", and "Limit to specific content types" with "Enabled content types".
- Automatic updates: In Static and Head modes, tick "Update when saving nodes", "Update when saving custom blocks" or "Update when saving paragraphs" to rebuild the CSS when that content is saved. All three are off by default.
- Content scanning: "Entity types to scan" sets which content UtiliKit reads for classes. "Reset all CSS" in the Maintenance section clears the generated CSS after a confirmation. When the UtiliKit Test Suite is enabled, the section also offers "Generate Complete Test CSS" and "Delete Test CSS".
- Current status: The top of the settings page shows the number of tracked classes and a link to "View generated CSS file".
- Developer tools: "Enable developer mode", "Visual debugging", "Display errors on page" and "Console logging level" (Off, Warnings only, Detailed (verbose)). Developer mode is off by default.
- Reference page: The "Reference" page at
/utilikit/referencelists the classes. It needs the permission "Access UtiliKit reference". - Update button: The permission "Use UtiliKit update button" lets an editor rebuild the CSS from the front end, through
/utilikit/update-css, which checks a CSRF token. - Drush: Eight commands:
utilikit:generate,utilikit:scan,utilikit:clear,utilikit:mode,utilikit:status,utilikit:classes,utilikit:validateandutilikit:cache-clear. Theutilikit:modecommand accepts the same three modes as the settings page.utilikit:scantakes--entity-typesand--batch-size, andutilikit:classestakes--limit(50 by default,--limit=0for all). Some commands have short aliases, such asuk-genanduk-cc.
Permissions
- "UtiliKit Administration" opens the settings page. It is marked restricted.
- "Access UtiliKit reference" opens the reference page.
- "Use UtiliKit update button" allows the CSS rebuild button.
Submodules
All six submodules need UtiliKit.
- UtiliKit CKEditor: Adds a UtiliKit button to the CKEditor 5 toolbar. It needs the core CKEditor 5 module.
- UtiliKit Playground: Adds a "Playground" page at
/admin/config/development/utilikit/playground. It needs the permission "Use UtiliKit playground". - UtiliKit Help: Adds the help guide at
/utilikit/helpwith nine tabs, from "Getting started" to "Troubleshooting". It needs the permission "Access UtiliKit documentation". - UtiliKit Examples: Adds the examples page at
/utilikit/examples. It needs the permission "Access UtiliKit examples". - UtiliKit AI: Adds an assistant that can check classes, explain a utility, diagnose the setup and apply classes, and ships an agent named
utilikit_agent. Its settings page is "AI" at/admin/config/utilikit/ai. It needs the Drupal AI module and the permission "Use the UtiliKit assistant". - UtiliKit Test Suite: A test page for development sites only. It needs the permission "Run UtiliKit tests".
Installation: get started in 3 steps
- Install the module with Composer:
composer require drupal/utilikit - Enable it on the Extend page, or with Drush:
drush en utilikit - Open "UtiliKit" under Configuration → Development, check "Rendering mode", then add a class such as
uk-pd--20together withutilikitto an element and view the page.
Requirements
- Drupal 11.2 or later, including 12
- PHP 8.1 or later
UtiliKit needs no other module. UtiliKit CKEditor needs the core CKEditor 5 module. UtiliKit AI needs the AI module and supports Drupal 11.2 and later 11 releases only.
Support and maintenance
Questions, ideas, and bug reports are welcome. Please use this project’s issue queue so discussions and solutions remain available to the Drupal community.
Maintainers monitor issues, but response times depend on availability.
Developed and maintained by Alaa Haddad of Flash Web Center, LLC.
AI disclosure: AI tools assisted with drafting and reviewing this project description. The maintainer verified the final content against the project source.
Ask your assistant about UtiliKit - The Ultimate Utility-First CSS Framework for Drupal
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.8 | Stable | 11 | PHP >=8.1 | Nov 29, 2026 | |
| 1.0.7 | Stable | 11 | PHP >=8.1 | Nov 3, 2026 | |
| 1.0.6 | Stable | 11 | PHP >=8.1 | Oct 12, 2026 | |
| 1.0.5 | Stable | 11 | PHP >=8.1 | Oct 5, 2026 | |
| 1.0.4 | Stable | 10–11 | Mar 14, 2026 | ||
| 1.0.3 | Stable | 10–11 | Jan 30, 2026 | ||
| 1.0.2 | Stable | 10–11 | Nov 12, 2025 | ||
| 1.0.1 | Stable | 10–11 | Oct 17, 2025 | ||
| 1.0.0 | Stable | 10–11 | Aug 29, 2025 | ||
| 1.0.x-dev | Dev | 10–11 | Aug 25, 2025 |