This project is not covered by Drupal’s security advisory policy.

Stardust is a theming framework for Drupal. It is similar to many minimalist CSS frameworks (e.g. Pure, Spectre), but Drupal-native. It includes basic CSS for standard HTML elements, Drupal's native components (tabs, messages, pagers etc), and a few other things that are very commonly used.

Stardust is not a typical "base theme". It's actually a set of libraries that you can use as a starting point for your own custom theme. It does not include twig template files. Stardust's theme libraries should be compatible with any base theme that uses Drupal's standard class names.

Stable, Classy, and StarBase are supported base/starter themes. Other base themes should work as long as they only provide minimal CSS and don't alter Drupal's core classes (e.g. .menu, .form-item). Base themes with a lot of CSS may conflict.

Components Included:

  • Minimal CSS Reset
  • Basic typography
  • A few useful classes
  • Component theming for:
    • Buttons
    • Forms
    • Tables
    • Pager & Mini-pager
    • Breadcrumbs
    • Responsive media (images, videos, iframes)
  • Theming for native Drupal UI components including:
    • Tabs
    • Messages
    • Content preview header
    • User login & password reset forms
    • Maintenance page
  • Optional extras:
    • Starter sitewide layout (header, footer, content with sidebar)
    • Responsive Menu (slide-in)
    • Search (advanced search form & search results)
    • Sticky header
  • Minimal preprocessing with PostCSS (optional)

How to use this

  1. Create your new custom theme based on whatever starter kit you like.
  2. Copy the Stardust CSS libraries you want to start with over to your new custom theme. Include the parts you want to use.
  3. Copy the library definitions from the stardust library files into your own libraries.yml file.
  4. Enable your theme and check to see that everything is working. Add your own themeing from here.

Future Plans

Add basic, optional theming for:

  • Card component (as a teaser view mode?)
  • Comments
  • Forums
  • Book module

#D8AX - I pledge to make this theme as accessible as it can be. If you find any flaws, please submit an issue. Help me fix them if you can.

Supporting organizations: 
Core development

Project information

  • Created by megan_m on , updated
  • shield alertThis project is not covered by the security advisory policy.
    Use at your own risk! It may have publicly disclosed vulnerabilities.

Releases