Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

W3CSS Theme

Security covered Maintenance fixes only 3,071 sites

This project provides a modern and fast theme for Drupal, along with enhanced content creation tools. It offers extensive customization options for design and layout, including numerous pre-set color schemes and flexible structures for building pages. The theme is designed to be user-friendly and improve website performance.

W3CSS Theme is a Drupal base theme built on W3.CSS, with 22 regions, horizontal or vertical menus, width presets, color themes and fonts, all set from the theme settings.

It is for site builders who want to choose the layout, colors and fonts of a site on one settings page instead of writing CSS. It needs no modules and no other base theme, and its script does not use jQuery.

Start here

See it working

The screenshot shows the theme on the demo site. The live demo shows the same site.

Features

  • Regions: 22 regions, listed below. Place blocks in them at Structure → Block layout.
  • Menus: a horizontal menu in the "Primary Menu" region or a vertical menu in the "Primary Menu Vertical" region. Nested menu levels are supported.
  • Website width: a select list in "Website's Width", from 800 pixels to 100%.
  • Color themes: 53 predefined color themes, chosen by picture in "Predefined Color Themes".
  • Fonts: 101 fonts: 50 global site fonts, 26 heading fonts and 25 special fonts, chosen in "Libraries and Fonts".
  • Text animation: 24 effects for the site name and the page title, chosen in "Animation and Effects".
  • Region fields: 26 text fields in five groups, each taking CSS class names that the theme checks.
  • Social links: nine platforms in "Social Media Links". Only addresses starting with https://, http:// or a site path are accepted.
  • Custom page templates: the theme offers a template per content type, per vocabulary and per view.
  • Accessibility: text colors that meet WCAG 2.2 AA readability, support for high-contrast mode and a skip link.
  • CSS cascade layers: the theme's styles load in w3css.* layers, so a sub-theme can override them without !important.
  • Breakpoints in rem: the responsive breakpoints are set in rem, so they follow the browser's text size.
  • Social icons: inline SVG in the link color. Stored links that are not safe are removed.
  • Header search: one field with a joined button, 44 pixels high.
  • Upgrade safety: stored settings are renamed by an update with a backup, and deprecated aliases remain for the five JavaScript behaviors and for the Font Awesome 4, 5 and 6 library IDs.

Installation: get started in 3 steps

  1. Install the theme with Composer:
    composer require drupal/d8w3css
  2. Open Appearance, find W3CSS Theme, and select "Install and set as default".
  3. Open the theme settings at Appearance → Settings → W3CSS Theme, open "Site-wide", and choose a width under "Website's Width".

The theme's machine name is drupal8_w3css_theme. The settings page is at /admin/appearance/settings/drupal8_w3css_theme.

Color themes

The "Predefined Color Themes" section has 53 choices shown as pictures. The default is "Pure Monochrome". The choice is stored in the theme configuration.

The theme also includes 11 W3.CSS color libraries: Camouflage, European Signal, Fashion, Flat UI, Food, IOS, Metro UI, US Highway, US Safety, Vivid and Win8. Use the live color theme demo to compare the predefined themes.

Regions

22 regions are available.

  • Header, Primary Menu Vertical, Primary Menu, Welcome Text: the top of the page and the main navigation.
  • Top First, Second and Third Container: three containers above the content.
  • Highlighted, Page Title, Breadcrumb: the area directly above the content.
  • Left Sidebar, Content, Right Sidebar: the main area.
  • Bottom First, Second, Third and Forth Container: four containers below the content.
  • Footer First, Second and Third Container, Footer Menu Container: the footer.
  • Auto Hidden Blocks: a region for blocks that are hidden automatically.

The "Blueprint" section of the theme settings shows where each region sits on the page.

Layouts

  • Website's Width: choose Default - 1600 Pixels, 2560, 1920, 1360, 1280, 1024, 800 Pixels or 100%.
  • Main Container Columns' Width: select "Change the columns in the main container to (33% 33% 33%)" for equal columns.
  • Login Pages Layout: select "Change the layout for the login, register and reset password pages".
  • Breadcrumb: select "Remove the page title from breadcrumb".

All four options are in "Global Site Settings".

Theme settings

The settings page has three navigation groups, "Site-wide", "Colors" and "Footer and social", and shows one section at a time. It has a "Block layout" link.

  • Global Site Settings: the four options under "Layouts" above.
  • Animation and Effects: "Border Animation" (animate the region's border), "Full Opacity On Scroll" and "Text Animation".
  • Libraries and Fonts: "Font Awesome" and "Google Fonts". Font Awesome 7 is off by default and loads locally or from the CDN. A checkbox loads the global and heading fonts locally.
  • Predefined Color Themes: the 53 color themes.
  • Region fields: 26 fields in five groups: Page and Header, Top, Main, Bottom, Footer. A reference lists nine kinds of CSS classes: Background, Background hover, Text, Text hover, Link text, Link background, Link background hover, Button and Button hover.
  • Blueprint: where each region sits on the page.
  • Social Media Links: a "Display" tab (icon size Small, Medium or Large, and "Show social icons") and a "Platform links" tab for Facebook, X, Pinterest, LinkedIn, Instagram, YouTube, Drupal, RSS and Mastodon.
  • Copyright and Credit: the footer text. The default is "Copyright © %year% Company Name - All rights reserved".

The settings page also holds Drupal's own Logo, Favicon and Theme settings sections.

Sub-themes

The theme ships an empty starter sub-theme, "W3CSS Sub-theme". Copy and rename it when the theme settings are not enough. Sub-themes write their CSS in the w3css.subtheme layer. Three sub-themes are separate projects:

Amun live demo and download Amun.

Amunet live demo and download Amunet.

Anhur live demo and download Anhur.

Updating from an earlier release

Run drush updb after updating. The updates rename stored settings and move Font Awesome sites to Font Awesome 7.

The theme's own CSS classes now start with w3css-. The old names are no longer printed, so sub-theme CSS that uses them stops matching. Run the scripts/migrate-classes.php Drush script to find and rename them. Drupal 9, 10 and 11.0 to 11.2 stay on the 2.0.x branch.

Requirements

  • Drupal ^11.3 || ^12
  • No modules and no base theme

Composer blocks Amun, Amunet and Anhur older than 3.0, and W3CSS Paragraphs older than 2.0, so these projects stay in step with the theme.

Other themes from Flash Web Center

W3CSS Theme stands on its own. If you need a different set of features, see our other themes:

  • Solo: a responsive, accessible theme with 24 regions and 50 color schemes, all set from the theme settings.
  • APEX Theme: the base theme of the APEX design system, with 28 regions and twelve ready-made sub-themes for different kinds of sites.

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 W3CSS Theme

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
12
Tracked since
Jan 2023
Latest release
3 weeks ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.10 Stable Feb 12, 2023
2.0.9 Stable Jan 28, 2023