Header
An article begins with a Title, Subtitle, and Byline, followed by the Article Intro which offers an overview of the content that follows.
Title and Subtitle
Byline
Article Intro
Outro
CSS Class |
Use Case |
---|---|
|
Apply to the last paragraph of the Article Intro or Conclusion for for a small splat of brand. |
Article Text
Ink & Switch articles include several main topics, or <h2>
Sections, which are supported by their <h3>
Subtopics, text and other content.
Section Headers
Subtopic Headers
Asides
Asides are a great way to call attention to, or support article content, and are architecturally similar to Figure Captions.
Asides should appear in the DOM immediately after the block element that they relate to, or, if they have an <h4>
to set the appropriate context, they can precede their related content1.
CSS Class |
Use Case |
---|---|
|
Apply this class to an |
|
Will position the |
Blockquotes
“HyperCard was a tool for making tools – Mac users could use Hypercard to build their own mini-programs to balance their taxes, manage sports statistics, make music – all kinds of individualized software that would be useful (or fun) for individual users. These little programs were called stacks, and were built as a system of cards that could be hyperlinked together.”
Lists
- A repository for creative inputs. The studio is a place to collect raw material as input to your thinking. This means everything together, with no media silos. If you get a critical mass of documents into the studio, connections will naturally form. These connections produce new ideas that can be captured in the studio—a virtuous cycle producing yet more fodder for generation of future ideas.
- Freeform and arranged by you. A spatial environment allows you to pull out excerpts,ases things side by side, arrange them in a loose, freeform, fluid way.
- Multimedia. Text, photos, sketches, PDFs, web pages, diagrams—all together to reflect your variety in creative inputs and your own thinking.
- No spinners: your work at your fingertips
- Your work is not trapped on one device
- The network is optional
- Seamless collaboration with your colleagues
- The Long Now
- Security and privacy by default
- You retain ultimate control
Figures
Figures can include flow or embedded content such as <img>
, <video>
, <pre>
, <table>
or other visual content, and will generally span the width of the article text. Follow the content with an aside, using <figcaption>
. The same rules apply to <figcaption>
as <aside>
for article text.
Images
Videos
When embedding video, be sure to include the controls
attribute to display the default browser video controls. This allows the user to scrub or replay the video. If you'd like to loop video, you can also ammend the loop
attribute.
Tiled Figures
Occasionally, there is a need to display multiple images or videos next to each other, or on a tiled grid. Wrapping the images in a <div>
with the appropriate utility class will allow us to tile 2,3 or 4 images next to each other, and in multiple rows.
CSS Class |
Use Case |
---|---|
|
Apply this class to a |
|
Will display the children in rows of 2 columns. |
|
Will display the children in rows of 3 columns. |
|
Will display the children in rows of 4 columns. |
For example, by appending the utility class <grid-columns-3
to a <div>
containing 6 images, we can display the images in a tiled grid.
Code
Tables
Utility Classes
When presenting data or any structured content in a table, you might prefer to adjust the style of content or width of the column display data in a more elegant way. To do so, use the utility classes described in this table.
CSS Class |
Use Case |
---|---|
|
Use this to optionally turn off row highlighting. Great for complex tables that make use of |
|
Apply this class to all |
|
Will set the width of the column to the default width determined by the browser. Useful for |
|
Will set the width of the column to the width of the text. Useful for headers for numerical data. |
|
Will make columns 1/2 width. Apply this class to an entire |
|
Will make the column 1/3rd of the total width. Useful if you want one column to be a fixed width, or longer than the others. Apply this class to an entire |
|
Will make the column 1/4th of the total width. Useful if you want one column to be a fixed width, or longer than the others. Apply this class to an entire |
|
Will make the column 1/8th of the total width. Useful if you want one column to be a fixed width, or longer than the others. Apply this class to an entire |
Table with Charts
This table makes use of many of the utility classes described above.
Device | Program | Latency (ms) | |
---|---|---|---|
iPad Pro | Notes | 20 | |
GoodNotes | 30 | ||
Flutter | 35 | ||
Surface Pro | OneNote | 25 | |
SketchPad | 30 | ||
Canvas | 60 | ||
Pixelbook | Squid | 40 | |
Canvas | 60 | ||
Samsung S3 | Squid | 60 | |
Flutter | 65 | ||
Canvas | 75 | ||
LiveBoard | 80 |
<svg>
is a scalable method of implementing Bar graphs within a table.
Wide Content
Occasionally, content might be more suited to a full-width layout. For these instances, apply the utility class .wide
to block level article content. This feature is especially suited to a figure with video, images, or possibly tables with more data than can fit comfortably in the width of article text.
Files and Email Attachments
1. Fast | 2. Multi-device | 3. Offline | 4. Collaboration | 5. Longevity | 6. Privacy | 7. User control |
---|---|---|---|---|---|---|
✔ | ➖ | ✔ | ✘ | ✔ | ➖ | ✔ |
Conclusion
Summarize your findings in a few paragraphs, and invite our readers to contribute by ending with a closing paragraph similar to the following:
At Ink & Switch we continue to believe that the end-user programming utopia is reachable. Are you working on this problem, or have thoughts on what we've written here? Get in touch: @inkandswitch or hello@inkandswitch.com.
Appendix
An appendix can have a few closing <h3>
subtopics, or can be less structured set of links, or <p>
.
One last thought to consider
Using Lorem Ipsum is not the best way to convey example text, but it's a decent placeholder. A future iteration of this guide will have more information about voice and tone, and sharing to social media with the <meta property="og:...">
tags.