-
Notifications
You must be signed in to change notification settings - Fork 15
Instalation
There exists two ways how to use this template:
- Direct use - the most straightforward is fork this repo and directly edit files in it.
- Theme use - more flexible way is use this repository as theme for your own design system. This approach enable to split appearance of DS from its content. More suitable for agencies who delivers different design systems for several agencies.
- Install Ruby
- In console install Ruby bundler by
gem install bundler
- In console go to forked repository and install all requirements
bundle install
- In console run
bundle exec jekyll serve
to startup your design system locally. - Visit
http://localhost:4000/design-system-template/
in your browser to see the design system. You can open it in your browser on addresshttp://localhost:4000/design-system-template/
You can use Design System Template as Jekyll theme. Future propagation of changes and bugfixes from theme to your site will be easier. You can override any of the theme defaults with your own site content. To replace any part of theme just make a copy of the specific file you wish to modify, or create the file from scratch giving it the same name as the file you wish to override.
- Install Ruby
- In console install Ruby bundler and Jekyll by
gem install bundler jekyll
- Add the following to your Gemfile
gem "jekyll-remote-theme"
and run bundle install
to install the plugin
- Create
_config.yml
file with content
# Site settings
title: Design System Template
author: Lundegaard a.s.
email: [email protected]
baseurl: "/design-system-template" # the subpath of your site, e.g. /blog
url: "https://lundegaard.github.io/" # the base hostname & protocol for your site
# Build settings
markdown: kramdown
plugins:
- jekyll-feed
# Setup pattern collection
collections:
patterns:
output: true
# Overriding default colors
branding:
logo_path: '/assets/logo.svg'
navigation_background_color: '#eee'
navigation_link_color: '#444'
navigation_link_color_hover: 'gray'
main_background_color: '#fff'
highlight_color: '#444'
code_background_color: '#f9f9f9'
# GTM analytics
gtm_id: GTM-XXXXXX
Note: If you are using a Jekyll version less than 3.5.0, use the gems
key instead of plugins
.
- Add the following to your site's
_config.yml
to choose your theme
remote_theme: lundegaard/design-system-template
Note: You may also optionally specify a branch, tag, or commit to use by appending an @
and the Git ref (e.g., lundegaard/[email protected]
). If you don't specify a Git ref, the master
branch will be used.