smartcoop / design

An open source design system for Smart applications

Home Page:https://design.smart.coop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart Design System

This repository contains the design system website hosted at design.smart.coop. This site describes how to contribute to the design system from a design and development perspective. A big part of the site is the component documentation where you can find copy/pastable HTML and CSS for common components. The Figma design files can be found on our Figma community profile.

This website uses Bedrock in the background, which is a static site generator specialized in showing design systems. For instructions, view the README here.

Getting started

git clone git@github.com:smartcoop/design.git
cd design
npm install
npm start

(Make sure you are using a recent version of Node.)

Using Docker

Docker is not necessary to develop or build the design system but a Dockerfile is present in this repository for your convenience. It is also useful to document a somewhat reproducible build.

The following commands show how to build a Docker image named design and serve the design system on port 5000:

$ docker build -t design -f Dockerfile .
$ docker run -p 5000:80 design

With the development server, the browser will automatically refresh the current page whenever its source changes. The development server can be run on port 3000 with the following commands:

$ ./init.sh     # This is running 'npm install', so can be done once.
$ ./develop.sh  # This is running 'npm start'.

Using Nix

Just like Docker, Nix is not necessary to develop or build the design system. The instructions here are provided for your convenience.

The following commands show how to build the design system as a static site in the dist/ directory and serve it on port 5000:

$ nix-shell -p nodejs-14_x --run 'npm install'
$ nix-shell -p nodejs-14_x --run 'npm run-script build'
$ nix-shell -p busybox --run 'httpd -f -p 5000 -h dist'

With the development server, the browser will automatically refresh the current page whenever its source changes. The development server can be run on port 3000 with the following commands:

$ nix-shell -p nodejs-14_x --run 'npm install'
$ nix-shell -p nodejs-14_x --run 'npm start'

Pandoc

The repository contains a Pandoc template and an example Markdown file. The Markdown can be converted to HTML using something like:

pandoc --standalone --template template.html display-test.md > output.html

The resulting file should render in the browser exactly as the c-display example page.

Contributing

You can contribute to this project in several ways.

  • Create a pull request, that improves the code
    • Look at open issues for inspiration
    • Discuss an open issue if you need more information to solve it
  • Create an issue that describes a comment you have, a problem or bug

License

License to be determined, see #64

This text to be updated when we have a licensing logic.

About

An open source design system for Smart applications

https://design.smart.coop

License:Other


Languages

Language:Pug 67.8%Language:SCSS 19.9%Language:JavaScript 11.9%Language:CSS 0.2%Language:Shell 0.2%Language:HTML 0.1%Language:Dockerfile 0.1%