Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Module 4: Styling the administration

The fourth module of Theme design. Learners learn the administration styling rules, build a dashboard block from the shared admin4 components, style it with tokens that work in dark mode, handle forced colors and right…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/theme-designers/module-04-styling-the-administration/README.md

On this page

Module 4: Styling the administration

The administration is shared by every extension and every editor, so it is styled by common rules: no inline CSS, shared components first, tokens for every value, a dark value for every color token. In this module learners add a block to the admin4 dashboard from their own extension, build it from the shared components, give it a stylesheet written only with tokens, make its state visible in forced-colors mode, and finish with a peer review against the project's code review checklist.

At a glance

CourseTheme design
Duration4 hours 35 minutes (with two 10-minute breaks)
Lessons5
LevelIntermediate to advanced

Lessons

LessonDurationWhat learners do
Lesson 4.1: The administration styling rules45 minutesLearn the seven rules and their exceptions; find the rule breaks in a sample template
Lesson 4.2: Building with the shared components60 minutesAdd a dashboard block from the extension, built from .a4-table, .a4-badge, .a4-empty and .a4-btn
Lesson 4.3: Tokens and dark mode60 minutesRead tokens in the browser, add training_admin.css, fix a hard-coded color with tokens
Lesson 4.4: Module and extension stylesheets45 minutesAdd a current-row state with a forced-colors outline, logical properties only
Lesson 4.5: The review checklist and the design tests45 minutesReview a partner's block with the checklist at two sizes and both modes; run the design test

Preparing this module

  • The administration siteaccess of every learner installation in admin4 (or admin4l); check with php bin/php/console exp:ini where site/DesignSettings/SiteDesign admin.
  • Printed or projected copies of the sample template of lesson 4.1, and of the code review checklist from Styling the administration.
  • A Chromium-based browser on each learner computer for the forced-colors emulation of lesson 4.4.
  • For lesson 4.5, step 9: one development checkout with the development dependencies installed (vendor/bin/phpunit), on the trainer's machine if the learners' installations do not have it.
  • Pair learners for lessons 4.1 and 4.5 before the module starts.

Timing plan

PartMinutes
Lesson 4.145
Lesson 4.260
Break10
Lesson 4.360
Break10
Lesson 4.445
Lesson 4.545
Total275

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x