Problem/Motivation

Restructured 27 components across the Vartheme BS5 design system to correctly align with Brad Frost's Atomic Design methodology: Atoms, Molecules, Organisms, Templates, and Pages.

Several components were placed in the wrong atomic level. For example, complex hero sections were classified as atoms, single HTML input elements were classified as molecules, and simple form groupings were classified as
organisms.

Proposed resolution

Changes

Atoms & Organisms (complex page sections)

  • hero-billboard
  • hero-blog
  • hero-card
  • hero-side-by-side
  • hero-slider-container
  • cta

Atoms & Molecules (simple groups of atoms)

  • hero-slide
  • accordion-block
  • accordion-container
  • field-comment

Molecules & Atoms (single indivisible HTML elements)

  • input-checkbox, input-color, input-date, input-email, input-password, input-radio, input-submit
  • nav-item
  • page-title

Organisms & Molecules (simple groupings of atoms)

  • details
  • fieldset
  • form-element
  • form-element-radiocheckbox
  • links-dropbutton
  • local-tasks

Organisms & Templates / Pages

  • region & Templates (page layout container)
  • page-better-login &Pages (page-specific layout)

Build updates

  • Renamed accordion-item.scss/.css to accordion-block.scss/.css
  • Updated webpack.config.components.js SCSS entry paths
  • Updated vartheme_bs5.libraries.yml asset paths

Notes

  • No Twig include paths break because Drupal SDC resolves components by name (vartheme_bs5:component-name), not directory path.
  • SCSS @import "../../defaults" paths remain valid since all atomic levels share the same directory depth.
  • base and foundation directories are kept as-is.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

Comments

rajab natshah created an issue. See original summary.

  • rajab natshah committed 9b12eae9 on 5.0.x
    chore: #3583314 Reorganize components to follow Brad Frost's Atomic...

  • rajab natshah committed 85fa09e9 on 5.0.x
    chore: #3583314 Reorganize components to follow Brad Frost's Atomic...
rajab natshah’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.