On #2293627: [meta] Document Human Interface Guidelines and make Seven style guide → , there was a discussion of making a Seven theme visual style guide, and it got mixed up into a discussion of making a better Human Interface Guidelines (HIG) document. On comment #42 & #43, we decided these two goals were not really the same, and that we needed to start over with two new issues. This one is about the Seven Style Guide. See #2404109: [meta] Update and improve linking to Human Interface Guidelines docs → for the HIG.
Module developers, who seek to understand how to build an admin interface for their module that is consistent with the existing admin interface.
Contrib admin theme maintainers, who seek to understand which UI components they need to support and override in order to support core and contrib Drupal modules. (See: Changes to Drupal 8 that affect admin theme maintainers)
Proposal: A Style Guide for Seven — Static images and text maintained on g.d.o. Does not evolve alongside development in core, quickly became out of date with the evolving style guide. Content is managed elsewhere, so it's easy to forget to update it. Static images are not a great way to display designs, due to lack of browser and viewport context.
Seventy eight sandbox — Documented components in HTML + CSS, built on a style guide framework that allows you to view the components at different viewport sizes and browsers. Also out of date with core, as the content and styling is managed elsewhere.
We also had a design test module in Drupal 8 that was unused #2037569: Remove design_test module →
We explored some possible solutions in #2102191: Discuss the availiable solutions to document the Seven style guide → . We propose the following:
1. Use inline CSS comments
2. Use a CSS document syntax parser
We propose following the same modal as for API.Drupal.org by having a document syntax parser. We will follow the relevant guidelines that are set in
API documentation and comment standards →
. However we will need to append these guidelines with some specific style guide tags to allow for appropriate styling in the website.
3. Provide a website that provides the pattern library
We propose using the KSS document syntax parser. This provides us with the HTML structure to build a website, following common user interface library patterns of grouping similar patterns. This means that the pattern library will be auto-generated and auto-updated following the information architecture and styling that we wish. Without having to hinder other parts of our documentation.
KSS attempts to provide a methodology for writing maintainable, documented CSS within a team. Specifically, KSS is a documentation specification and styleguide format. It is not a preprocessor, CSS framework, naming convention, or specificity guideline.
The full specification of KSS can be read at Spec on GitHub. The KSS framework is used by several other organisations and has a Node.JS or PHP implementation.
This applies to child issues. Copy and paste...
<!--Uncomment the relevant rows for the issue. -->None.
None.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.