Git Product home page Git Product logo

bootstrap-sf1's Introduction

Introduction

If you haven't seen it already, please check out the Lightning Design System as it may be more appropriate for your project.

This is a Bootstrap based theme developed by the Salesforce.com Foundation's Business Applications team. The aim is to provide a solid and complete theme for Bootstrap that matches the SFDC Salesforce1 styleguide. More information about the contents of this theme is available at the Bootstrap-sf1 companion site.

The general look and feel is inspired by the SFDC Styleguide. There is some intention of building theme variations for different application contexts (visualforce, salesforce1, chatter), but this work has not been done at this time.

The Proxima Nova Soft fonts are not included in this repository. To match the SFDC styles you will need to include this font in your page.

Getting Started

To use the theme you just need to include the dist/ folder in your project and include bootstrap.css or bootstrap.min.css in your page. For use inside of a VisualForce page or Lightning Component you may need to use the namespaced CSS in bootstrap-namespaced.css.

You can download the theme using bower:

bower install bootstrap-sf1

Or you can download the zip.

Development

You will need:

Things never to do:

  • Edit any CSS files in dist/ directly
  • Edit any html page in pages/ or the index.html file directly
  • Edit any less file in the less/generated folder directly

These files are generated automatically and your changes will be overwritten. You have been warned. :)

First clone the repo and navigate into the directory:

git clone https://github.com/SalesforceFoundation/bootstrap-sf1.git
cd bootstrap-sf1

Next

npm install
bower install

There are a number of files that are generated for you as you make changes to the less files. To facilitate this process start the grunt watch machinery with:

grunt serve

This will also start up a local webserver at http://localhost:8000. As you edit Less files or templates Grunt will automatically compile the CSS and HTML for the docs so long as you have grunt serve running.

bootstrap-sf1's People

Contributors

dextermilo avatar swervo avatar

Watchers

James Cloos 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.