Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.
/ patternbot Public archive

A GUI application for making style guides and pattern libraries.

License

Notifications You must be signed in to change notification settings

thomasjbradley/patternbot

Repository files navigation

This project has been archived in favour of Jekyll Patternbot—a replacement that integrates with and expands Jekyll’s functionality.


Patternbot

Your pompous and persnickety patterning robot.

There are lots of fantastic tools for creating style guides and pattern libraries—but they all have a lot of embedded knowledge (command line, Gulp, Grunt, PHP, Handlebars, SASS, etc.)

It’s just too much stuff for my students. I don’t want them to have to learn the tool, I want them to use a tool and get on with designing.

My aim is not to replace the wonderful tools that exist, but simplify them into a very minimal GUI package that can get the students familiarized with using style guides without having to learn all the extra stuff.


Download

Download the latest version of Patternbot below:


Ideas for folder structure

Inspired by lots of other tools that exist.

common/
  modules.css
  grid.css             Determine all sizes and create sample layouts.
  type.css             Create a preview using the standard classes.
  theme.css            Use CSS variables inside `:root {}` to define colours & fonts.
patterns/
  buttons/
    index.html
    main.css
    README.md          Could contain element info? Why? Rational?
  lists/
    unordered.html     Each file would be used to generate the examples.
    ordered.html
    main.css
    main.js            JS should also be supported.
  header/
    index.html
    main.css
images/
  icons.svg            Parse all the <symbol> tags and generate icon previews.
  logo.svg
  logo-64.svg          Find all the images that start with `logo` and display them.
  logo-32.svg
  logo-16.svg
  banner.jpg
pages/
  home.html
  about.html
pattern-library.html   The final output. A single HTML file with necessary CSS & JS embedded.

Questions

  • Without a preprocessor how do we include all the CSS on the example pages?
    • Link every file at the top?
    • Have Patternbot generate a concatenated file?
  • Should Patternbot include a web server? Browsersync?

What will show for the parsable files

Here’s a list of things that will show in the interface for the parsable files.

Brand

  • Grab font-families from theme.css, show different weights & styles
  • Use the large full alphabet display
  • Show a grid of available colours with Hex & RGB
  • Show the name assigned to it from the theme.css file
  • Show the variable used to access it

Gridifier

This is completely automated.

  • Available sizes, showing size boxes
  • Show media queries & sizes for each media query
  • Some sample text
  • Link to Gridifier cheat sheet

Typografier

All these things should be styled within the theme.css file.

  • Show font sizes & media queries
  • Show a waterfall of <h#> tags
  • Example paragraphs & columns?
  • Show all the different font sizes
  • Show all three list types
  • Show inline elements: del, ins, abbr, sup, sub, dfn, b, strong, i, em, cite
  • Show gutters, push, pad, islands
  • Show blockquote
  • Show links
  • Link to Typografier cheat sheet

Modulifier

These things should only be shown if they are enabled.

  • List groups
  • Embed containers
  • Media objects
  • Skip links
  • Link to Modulifier cheat sheet

Icons

  • Parse the SVG sprite sheet and find all the <symbol> tags
  • Show each symbol at a couple different sizes & colours?

Resources

After looking through tonnes of resources these are the things that stick out to me as inspiration.

Articles

Tools

Examples