TAC is a base theme for Drupal 11 and 12, built entirely from Single Directory Components. It uses plain CSS in cascade layers, design tokens for every value, and has no build step.
TAC stands for Tag, Attributes, Classes, the order in which it styles things. Native HTML elements come first, then attributes for variants and state, and classes only as a last resort. The result is lean markup, CSS that works in a plain browser with no tooling, and components that are accessible because they're built on the platform rather than patched with ARIA.
Features
- 35 stable components, including accordion, alert, breadcrumb, button, card, carousel, drawer, hero, mega menu, off-canvas menu, pagination, stat, steps, tabs and video. Every component works in Twig templates and in Drupal Canvas.
- A starter kit that generates a ready-to-use sub-theme with one command.
- Theme settings site builders can use without code: colour palettes or custom colours (with live WCAG AA contrast checks), spacing density, corner roundness and typography.
- Light and dark mode built in, with every colour defined as a light and dark pair.
- Accessibility by default: every component story is audited automatically with axe, keyboard, reduced motion, 320px reflow and forced colours checks.
- No build step: no Sass, no bundler and no Node at runtime. Edit a
.cssfile, clear the cache, reload. - A documented public API with semantic versioning and a deprecation policy, so you know what is safe to build on between releases.
- Phosphor icons and the Geist font family included.
Getting started
- Install TAC:
composer require 'drupal/tac:^1.0@beta' - Generate your sub-theme from the project root:
vendor/bin/dr generate-theme my_theme --name "My theme" --starterkit tac_starterkit --path themes/custom - Go to Appearance, install "My theme" and set it as the default. TAC is installed with it.
- Set your brand colours and fonts in
my_theme/css/tokens.css, or under Appearance > Settings > My theme.
The README and docs/SUBTHEMING.md cover overriding tokens, replacing a component, adding CSS and JavaScript, and regions.
Requirements
- Drupal 11.3 or later, or Drupal 12
- PHP 8.3 or later
- Drupal Canvas is optional
Project status
TAC is in beta. The component API is close to final, but breaking changes are still possible before 1.0.0 and are recorded in CHANGELOG.md. Bug reports and feedback are very welcome in the issue queue.
Ask your assistant about Tag Attribute Class
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta1 | Pre-release | 11 | Nov 24, 2026 | ||
| 1.x-dev | Dev | 11 | Nov 24, 2026 |