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
- ✅ No Update
- ➖ Optional Update
- ➖ Forced Update
- ➖ Forced Update if Unchanged
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #4
rajab natshah