Giter VIP home page Giter VIP logo

fett's Introduction

Fett Logo

# Fett

A lightweight pattern library for HTML, CSS, and brand styles.

Description

A site styleguide gives designers and frontend developers one central place to reference brand colors and typography, test new components, and test changes to existing component markup (HTML) and style (CSS).

Fett is meant to be a component library for ideal markup which can then be cloned throughout your own site when building new pages.

What Fett Does

  • Generates styleguide navigation
  • Builds color swatches out of HTML
  • Builds previews of your <code> blocks
  • Syntax highlighting for your <code> blocks

Usage

1. Get Fett

Check the Fett repository somewhere you can serve it. Your styleguide's homepage will be index.html.

Fett itself is a website, ideally served in parallel to your own site. If you use a version control system it is recommended to your instance of Fett within your site's repository, that way Fett markup will always parallel your site's markup.

2. Setup your canvas

The styleguide previews work by injecting each example HTML code block onto an iframe canvas which simulates your site. This provides an isolated preview to render your code into.

The canvas consists of two files: canvas.html The base iframe file into which each code block gets injected. Edit this file to include your site's CSS, preferrably by relative URL.

css/canvas-extension.css A Fett-specific CSS file which is also loaded on the canvas. You can use this file to alter how your examples appear within Fett.

3. Build your Styleguide!

A Fett styleguide is written in HTML 5 to be easily editable by everybody who might use it. The styleguide file itself is index.html.

There are a few structures within the styleguide that are useful to know: main > section These sections are the top level navigation.

License

Copyright (c) 2014 Ben Duncan

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

fett's People

Contributors

bendman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.