JCrafts Joomla Template - 11ty Design System
Folders
-
All design tokens can be found in
src/_data/designTokens. This includes all baseline fonts, colors, sizes, and spacing. -
All components and their documentation should
be in folders under
src/_includes/components. As long as there's an accompanying*.config.jsfile it'll get picked up and auto generated in the design system. -
All design system layouts can be found in
src/_includes/layoutsand are prefixed withds-. -
To document atomic elements of your design
system that aren't components, you can add pages under
src/design-system/just as you would any standard Eleventy page. There are several already started for you underAtomsthat itemize block, form, inline, and preformatted HTML tags.
Notes
-
There are examples of just documentation in the
CardandQuotefolders -
There are examples of WebC components and their documentation
under
_Compositions/sidebarand_Compositions/stack -
For components that you do not want to document, leave out the
*.config.jsfile.Utils/ds-menu.webcis one existing example of this. -
The design tokens are automatically documented
by the
src/design-system/Atoms/tokens.njkpage. This will source the tokens directly from the data files so it updates as the tokens themselves are updated.
Protoype Design System Use the design system to build a prototype site with pre-built components and styles.