Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Stardust

No security coverage Under active development

Stardust is a Drupal-native CSS framework designed to provide a minimalist starting point for custom themes. It offers basic styling for common HTML elements and Drupal components, without including template files, allowing developers to integrate it with existing base themes.

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.

Ask your assistant about Stardust

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

Tracked releases
1
Tracked since
Apr 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
2.x-dev Dev Apr 21, 2023