ninavizz / securedrop-styleguide

The styleguide for the SecureDrop project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note: This styleguide was created by the community, and has not been updated to reflect how SecureDrop's design has evolved in the subsequent years. The SecureDrop Wiki should be referenced for up to date information on styling and UX needs for the project.

About

SecureDrop is an open source whistleblower submission system that media organizations can install to securely accept documents from anonymous sources.

This styleguide showcases a potential future state for SecureDrop. It was originally created by URA Design with input from the SecureDrop community during mid-to-late 2018. See the related forum thread for more background.

Getting started

The SecureDrop styleguide is based on Bootstrap, an open-source toolkit for developing with HTML, CSS, and JS. We are currently on v4.1.0.

To use the SecureDrop styleguide, you can download our scss style (components.scss) and import it in your project with bootstrap included. SASS is a CSS extension language.

If you want to use SASS you can download the complete archive for the styleguide. The scss folder under assets contains all the sass files. Since we use bootstrap, we only add a few styles without modifying bootstrap core or defining new elements whenever possible.

Bootstrap contains a few JavaScript libraries for extra interaction with the DOM. We use these libraries but do not add extra JavaScript, so that only few elements are affected if you disable JavaScript.

This styleguide has been built using Jekyll.

Building

Before you can modify the contents, you need to have Ruby and Jekyll installed. You can do that by running the following command.

gem install bundler jekyll

After you install Jekyll, you need to clone the repo on your system. You can do that by running the command.

git clone $REPO

After you have cloned the repo on your system, start by installing the bundle using the following command.

bundle install

Afterwards, execute the following command to build the project and to be able to browse it locally on your browser.

bundle exec jekyll serve

That's it! Now you can begin to modify the files and they will be automatically built and displayed on your localhost upon a page refresh.

When you're done with the changes, press Ctrl+C to stop the localhost process.

About

The styleguide for the SecureDrop project

License:MIT License


Languages

Language:HTML 63.5%Language:CSS 23.0%Language:SCSS 11.1%Language:JavaScript 1.4%Language:Ruby 0.9%