One-offs patterns are modules that are not parsed into directly into PHP. Their implementation in the pattern library and the production theme are separate. The one-offs here are artifacts of the development process, and are not necessarily up to date with the production version. Their markup files should have a .html
extension so that they are not parsed into PHP.
When writing styles for a one-off, get as far as you can with utility and algorithm classes, then add additional styles that do not fit into utilities/algorithms in the One-off pattern's SCSS file.
Class names for One-off patterns should have no namespace to indicate they are outside of the design system. For example, a one-off pattern for an author
, might have the following styles in 09-one-offs/author/author.scss
: