GithubHelp home page GithubHelp logo

abokareem / slate-bootstrap-theme Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neckerson/slate-bootstrap-theme

0.0 1.0 0.0 547 KB

A complete Shopify template with Bootstrap 4 styles implemented sitewide. Compile with Slate & upload!

Home Page: https://slate-bootstrap-theme.myshopify.com

License: MIT License

JavaScript 7.90% Liquid 86.87% CSS 5.24%

slate-bootstrap-theme's Introduction

Slate-Bootstrap Theme

Slate v1 is currently in beta! You should expect potentially breaking changes between updates and more bugs than a finalized release. Slate v1.0 has not yet been tested on Windows.

This is the theme I wish had been available when I was rolling my own integration of Bootstrap 4 into a custom Shopify store.

Theme Preview

I've started with the base Shopify/skeleton-theme and brought over most of the /src directory of Shopify/starter-theme, and some of src/styles. These default Shopify styles are being gradually refactored out of the theme as I have time. PRs welcome!

For responsive image loading, use the responsive-image & responsive-bg-image snippets. They pair well with Bootstrap's responsive classes, and the lazyloader dependancy is built into the theme.

Theming

Body background and text color can be set via the Shopify theme editor panels, but other changes should be made with Bootstrap's built-in Sass variables, allowing global style preferences, easy theming and component changes.

In src/styles/variables.scss you will find examples of customization already done, with the primary and secondary colors changed to different Bootstrap 4 color variables. You could experiment with other changes, such as adding $enable-rounded: false; to variables.scss and deploying the theme. For more examples, see the Bootstrap 4 theming documentation.

Typography

This theme is intended to be used with Montserrat Bold for headings and Harmonica Sans for body text. Both of these can be set using the Shopify admin theme editor. You may need to make adjustments in typography.scss if other font pairings are used.

jQuery & Webpack

Because Bootstrap requires jQuery, additional setup is required in theme.js. For discussion, see Webpack issue #4258.

To add plugins to the theme, such as jackmoore/zoom, take a look at this gist which is implemented in theme.js. Image zoom is implemented in sections/product.liquid.

System requirements

You'll want to ensure you have the following already installed on your local machine before getting started with the Slate-Bootstrap theme:

  • Node: The current LTS (long-term support) release. We like to use a Node Version Manager like NVM.

  • NPM 5+ or Yarn: Both of these package managers have ups and downs, choose whichever you prefer. Follow the installation instructions for Yarn or NPM to make sure you're using the latest version.

Getting started

To get started with the Slate-Bootstrap theme, run the following command in your terminal:

$ yarn create slate-theme my-new-theme neckerson/slate-bootstrap-theme

For more information on connecting your new project with a Shopify store, see the Slate docs.

Troubleshooting

If you cannot see the Bootstrap styles being applied after running yarn start, open the browser console and check for ERR_CERT_AUTHORITY_INVALID errors. You will need to generate a local SSL certificate before the theme assets can be served.

Contributing

For help on setting up the repository locally, building, testing, and contributing please see CONTRIBUTING.md.

Code of Conduct

All developers who wish to contribute through code or issues, take a look at the Code of Conduct.

License

This theme is derived from the Shopify Skeleton theme, which is Copyright © 2018 Shopify. See LICENSE for further details.

slate-bootstrap-theme's People

Contributors

neckerson avatar dependabot-preview[bot] avatar

Watchers

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