• Stars
    star
    471
  • Rank 93,216 (Top 2 %)
  • Language
    HTML
  • Created about 11 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A frontend styleguide for the pragmatic.

Poor Man's Styleguide

A quick-and-dirty frontend styleguide, designed to be copied and pasted into your CMS.

It contains all common page elements, in HTML and (Github Flavored) Markdown formats.

If you'd like to contribute, make your changes to both the markdown and HTML files. If the elements can not be represented in markdown (like forms, for example), you can just add them to the final section of index.html.

See the full demo at bryanbraun.com/poor-mans-styleguide


Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Headings with Text

Heading 1

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

Heading 2

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

Heading 3

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

Heading 4

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

Heading 5

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

Heading 6

Lorem ipsum dolor sit amet, adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.


Block Elements

Paragraphs and Images

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl. Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. Maecenas ornare tortor.

Placeholder Image and Some Alt Text

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem.

Blockquote

This is a standard paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

"This is a blockquote. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl."

This is a standard paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

Note: the Figure-Figcaption and Details-Summary elements are not currently supported in markdown.


Text Elements

The a element, external a element, and a element with title examples

The abbr element and an abbr element with title examples

The ACRONYM element example

The b element example

The cite element example

The code element example

The data element example

The del element example

The dfn element and dfn element with title examples

The em element example

The i element example

The ins element example

The kbd element example

The mark element example

The q element example

The q element inside a q element example

The s element example

The samp element example

The small element example

The span element example

The strong element example

The sub element example

The sup element example

The time element example

The u element example

The var element example


Monospace / Preformatted

Code block wrapped in "pre" and "code" tags:

// Loop through Divs using Javascript.
var divs = document.querySelectorAll("div"),
  i;

for (i = 0; i < divs.length; ++i) {
  divs[i].style.color = "green";
}

Monospace Text wrapped in "pre" tags:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam dignissim convallis est. Quisque aliquam. Donec faucibus. Nunc iaculis suscipit dui. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.

List Types

Ordered List

  1. List Item 1
  2. List Item 2
  3. List Item 3
    1. List Item 3.1
    2. List Item 3.2
      1. List Item 3.2.1
      2. List Item 3.2 2
    3. List Item 3.3
  4. List Item 4

Unordered List

  • List Item 1
  • List Item 2
  • List Item 3
    • List Item 3.1
    • List Item 3.2
      • List Item 3.2.1
      • List Item 3.2 2
    • List Item 3.3
  • List Item 4

Definition List

Definition Term 1
Definition Description 1
Definition Term 2
Definition Description 2

Tables

Table Header 1 Table Header 2 Table Header 3
Division 1 Division 2 Division 3
Division 1 Division 2 Division 3
Division 1 Division 2 Division 3

Media and Form Elements

The remaining sections contain elements that cannot be represented in markdown. Please consult the HTML version, to see these elements.

More Repositories

1

after-dark-css

Recreating After Dark screensavers in CSS.
CSS
1,167
star
2

checkboxland

Render anything as HTML checkboxes
JavaScript
946
star
3

anchorjs

Add deep anchor links to your docs.
JavaScript
883
star
4

your-life

HTML
249
star
5

franklin

A static site framework for online books.
CSS
140
star
6

twitter-listbot

A simple twitter bot that retweets the contents of a twitter list.
JavaScript
61
star
7

music-box-fun

A web app for making music box songs.
JavaScript
54
star
8

middleman-navtree

For building navigation trees & menus in Middleman.
Ruby
45
star
9

bryanbraun.github.io

My personal website.
HTML
23
star
10

alt-react-demo

Demo for a build-free alternative to React, written in vanilla JS.
JavaScript
18
star
11

connect-four

Connect Four, in Javascript.
JavaScript
17
star
12

lets-get-creative

A collection of high-quality, free, online creativity tools.
TypeScript
12
star
13

infinitely-nested-iframes

I N C E P T I O N
HTML
7
star
14

africa-map-raphael

A Javascript-friendly map of Africa using the Raphael.js library.
7
star
15

tiny-book-of-rules

A online book about the Drupal Rules module, written by Johan Falk.
5
star
16

twitter-timeline-eradicator

This Chrome Extension displays all of Twitter except the Timeline.
JavaScript
4
star
17

writer

A Drupal Blogging Theme For Developers
PHP
3
star
18

hubot-answers

Let Hubot answer your yes/no questions.
CoffeeScript
3
star
19

lit-element-demo

A demo app for exploring a web-component-based React alternative
JavaScript
3
star
20

landmark-articles

My personal list of landmark articles for personal/professional development in the web industry.
HTML
2
star
21

github-wiki-html-test

Testing which html tags are supported in Github Wikis
2
star
22

advent-of-code

My collection of advent of code exercises
TypeScript
2
star
23

petitions-newslink

Tracking public engagement by linking news items to White House petitions.
JavaScript
2
star
24

googly

A chrome extension for adding Googly eyes to any webpage.
JavaScript
1
star
25

propagate

A series of demos about Javascript Events
JavaScript
1
star
26

jTutor

Real-time javascript programming feedback in the browser.
JavaScript
1
star
27

hello

A classy introduction page.
HTML
1
star
28

alchemist

A simple, incomplete javascript game, built as a personal javascript exercise.
JavaScript
1
star
29

gdi-personal-website

Slides for a Girl Develop It workshop: Building a Personal Website with Github Pages
JavaScript
1
star