Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Stylify

No security coverage
View on drupal.org

Stylify allows trusted users to edit CSS directly on the page they are viewing, with live previews and granular control over which pages or content types the styles apply to. It stores CSS in the database and supports multiple scopes, from global styles to styles for individual content items.

Stylify lets trusted users edit CSS directly on the page they are viewing, with live preview and scoped stylesheets. CSS is stored in the database and rendered on matching pages for all visitors.

Unlike theme-only CSS editors, Stylify supports multiple stylesheet scopes on a single page:

  • Global — site-wide front-end CSS
  • Admin global — administrative interface CSS
  • Route / View — CSS for the current route or Views display
  • Entity type — all nodes (or other entities) of a type
  • Content type — all content of a specific bundle (e.g. all Blog posts)
  • Individual entity — a single node or entity (e.g. node:123)

Features

  • On-page CSS editor with Ace syntax highlighting (lazy-loaded)
  • Live preview while editing
  • Locking workflow so only one user edits a stylesheet at a time
  • Granular permissions (global, admin, entity scopes)
  • Central admin UI to list, edit, export, and import stylesheets
  • Cache-aware stylesheet delivery with cache tag invalidation
  • CSRF protection and flood control on editor API endpoints
  • Basic CSS validation (blocks some dangerous patterns)
  • Empty stylesheets are not attached to pages (performance)

Editor workflow

  1. Open any page where you have permission to edit CSS.
  2. Click CSS Editor in the bottom-right corner.
  3. Choose the stylesheet scope (Global, node, Content type, etc.).
  4. Click Edit to acquire a lock and start editing.
  5. Changes preview live on the page.
  6. Click Save to store changes, then Save & close to release the lock.

Administration

Go to Configuration → System → Stylify stylesheets to:

  • View all saved stylesheets
  • Edit or delete CSS without opening the on-page editor
  • Export a single stylesheet or export all as JSON
  • Import stylesheets from JSON

Go to Configuration → System → Stylify Settings to release stale editor locks.

Requirements

  • Drupal 10 or Drupal 11
  • No contributed module dependencies

Security notice

Custom CSS affects every visitor who can see the page. Treat Stylify permissions like code deployment rights. Only grant them to trusted administrators. CSS validation reduces some risks but does not make untrusted CSS safe.

Similar modules

Stylify is intended for context-aware, database-stored CSS with route/entity/content-type scoping. If you only need theme-level custom CSS, consider the CSS Editor module.

Third-party libraries

Includes Ace Editor 1.36.5 (BSD 3-Clause License).

Activity

Tracked releases
2
Tracked since
Aug 2026
Latest release
2 weeks ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Aug 7, 2026
1.0.x-dev Dev Aug 7, 2026