Skip to content

JBValo/bond

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bond

A front-end component library and framework based on PostCSS and Atomic Design.

Prerequisites

Installation

  1. Create a new directory for your project.
  2. cd my-project
  3. Clone or download Bond.
  4. cd assets
  5. npm run bond
  6. Customize components to your needs.

Getting Started

Bond includes two primary HTML files: starter.html and index.html. The index.html file serves as the primary demo page and includes some unnecessary scripts, styling and content that will likely be irrelevant to your project. As such, it is best to delete index.html and rename starter.html to index.html.

Bond provides you with a "kitchen sink" of components within starter.html. All components, including their various states and orientations, are included by default so you can get the most out of Bond. Start your project by reviewing the demo page, determining which Bond components you need, and deleting the ones you don't.

For more detailed information, I encourage you to check out the complete Bond Docs.

Local Development

For efficiency I strongly recommend using BrowserSync. Simply cd into your project's development directory and run BrowserSync to start developing right away.

Change Log

November 2018
  • [DEPENDENCIES] - Removed pikaday as a default dependency.
  • [DEPENDENCIES] - Added hc-sticky as a default dependency.
July 2018 (Summer Performance Update)
  • [CORE] - The postcss-color-function plugin has been replaced with the PostCSS Color Mod plugin for better CSS variable support and spec/syntax parity with CSS3.
  • [CORE] - PostCSS color variables in palette.css have been changed to use CSS3 :root variable syntax. This allows for better theming on a global level.
  • [CORE] - Added global $paragraph-font-family, $paragraph-color, and $paragraph-font-size variables to typography.css for better global customization.
  • [CORE] - Updated syntax for padding and margin resets for more verbose and descriptive classes.
  • [NEW COMPONENT] - Page Loader. The page loader prevents the display of partially rendered content as your page loads.
  • [PERFORMANCE] - Core PostCSS files have been significantly optimized to reduce load strain / lengthy lookup times.
  • [PERFORMANCE] - Moved all Javascript requests after CSS requests. No more render blocking.
  • [PERFORMANCE] - Added async and defer attributes for all Javascript requests where applicable.
  • [PERFORMANCE] - Added preconnect and crossorigin attributes to custom font requests.
  • [PERFORMANCE] - Added preload to all CSS requests.
  • [PERFORMANCE] - Added lazyload to all <img> tags. Images now load in as they are needed for a faster initial page load.
  • [PERFORMANCE] - Changed how custom SVG icons are loaded for better performance. Icons are now loaded in via a direct <script> within the HTML document rather than a separate component file / request.
  • [PERFORMANCE] - The IE11 fallback stylesheet for Bond's flexbox grid is now optional and disabled by default. Selectors too complex. Use only when absolutely required.
  • [PERFORMANCE] - Some CSS classes have been simplified to prevent overcomplication.
May 11, 2018
  • Added :any-link to typography.css
  • Fixed a bug where WordPress image classes weren't being applied properly.
  • Added JS to hero.js in order to autoplay hero background videos in Chrome.
  • Cleaned up and minimized palette.css.
  • Added inline icon styles to SVG icons in typography.css.
  • Moved font scale declarations higher up in typography.css.

About

A PostCSS front-end component library and framework. Docs: https://bond.codeandmortar.com/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published