Comment on page
Namespaces
Component namespaces mirror the namespaces in CivicTheme library as defined in
civictheme.info.yml
.CivicTheme defines two sets of namespaces: atomic component namespaces and civictheme atomic namespaces.
components:
namespaces:
ct-base:
- components/00-base
base:
- components/00-base
ct-atoms:
- components/01-atoms
atoms:
- components/01-atoms
ct-molecules:
- components/02-molecules
molecules:
- components/02-molecules
ct-organisms:
- components/03-organisms
organisms:
- components/03-organisms
ct-templates:
- components/04-templates
templates:
- components/04-templates
ct-pages:
- components/05-pages
pages:
- components/05-pages
Any sub-theme of CivicTheme must implement the following component namespaces (note how they are also contained in
civictheme.info.yml
). These namespaces allow the overriding of CivicTheme components.
components:
namespaces:
base:
- components/00-base
atoms:
- components/01-atoms
molecules:
- components/02-molecules
organisms:
- components/03-organisms
templates:
- components/04-templates
pages:
- components/05-pages
The CivicTheme namespaces (
ct-base
, ct-atoms
, ct-molecules
etc.) are used to provide access to the unaltered CivicTheme namespaces so the original civictheme component can be extended and then overridden by a sub-theme.Last modified 21d ago