All Projects → alphagov → Govuk_frontend_toolkit

alphagov / Govuk_frontend_toolkit

Licence: mit
❗️GOV.UK Frontend Toolkit is deprecated, and will only receive major bug fixes and security patches.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Govuk frontend toolkit

Govuk elements
❗️GOV.UK Elements is deprecated, and will only receive major bug fixes and security patches.
Stars: ✭ 226 (-43.92%)
Mutual labels:  portfolio, deprecated
Govuk template
❗️GOV.UK Template is deprecated, and will only receive major bug fixes and security patches. A template containing the GOV.UK header and footer, and associated assets.
Stars: ✭ 107 (-73.45%)
Mutual labels:  portfolio, deprecated
Weka
Now redundant weka mirror. Visit https://github.com/Waikato/weka-trunk for the real deal
Stars: ✭ 304 (-24.57%)
Mutual labels:  deprecated
Phalanger
PHP 5.4 compiler for .NET/Mono frameworks. Predecessor to the opensource PeachPie project (www.peachpie.io).
Stars: ✭ 369 (-8.44%)
Mutual labels:  deprecated
Wpaint
jQuery Paint Plugin
Stars: ✭ 332 (-17.62%)
Mutual labels:  deprecated
Dagre
⛔ [DEPRECATED] - Directed graph layout for JavaScript
Stars: ✭ 3,504 (+769.48%)
Mutual labels:  deprecated
Sphero.js
🚫 DEPRECATED: The Sphero JavaScript SDK to control Sphero robots.
Stars: ✭ 346 (-14.14%)
Mutual labels:  deprecated
Simpleauthentication
⛔️ [DEPRECATED] A really simple way for developers to add "Social Authentication" to their ASP.NET web application
Stars: ✭ 299 (-25.81%)
Mutual labels:  deprecated
Nextjs Notion Starter Kit
Deploy your own Notion-powered website in minutes with Next.js and Vercel.
Stars: ✭ 379 (-5.96%)
Mutual labels:  portfolio
H5ive Deprecated
**DEPRECATED** A collection of thin facade APIs wrapped around HTML5 JavaScript features.
Stars: ✭ 332 (-17.62%)
Mutual labels:  deprecated
Cryptoetf
Portfolio Overview Tool for Your CryptoCoin Capitalization-Weighted Portfolio.
Stars: ✭ 358 (-11.17%)
Mutual labels:  portfolio
Personal Site
My personal website - built with React, React-Router, React-Snap for Static-Export, and GitHub Pages.
Stars: ✭ 324 (-19.6%)
Mutual labels:  portfolio
Devfolio
A simple, responsive, single-page portfolio and resume for developers built with Bulma, Sass, Font Awesome and Flickity.
Stars: ✭ 320 (-20.6%)
Mutual labels:  portfolio
Jekyll Theme Prologue
A Jekyll version of the "Prologue" theme by HTML5 UP
Stars: ✭ 346 (-14.14%)
Mutual labels:  portfolio
Starx
[DEPRECATED] Lightweight, scalable ,distributed game server framework for Golang
Stars: ✭ 308 (-23.57%)
Mutual labels:  deprecated
Msx
JSX for Mithril.js 0.x
Stars: ✭ 370 (-8.19%)
Mutual labels:  deprecated
Gatsby Starter Portfolio Emilia
Minimalistic portfolio/photography site with masonry grid, page transitions and big images. Themeable with Theme UI. Includes Light/Dark mode.
Stars: ✭ 300 (-25.56%)
Mutual labels:  portfolio
Devportfolio
A lightweight, customizable single-page personal portfolio website template built with JavaScript and Sass
Stars: ✭ 3,582 (+788.83%)
Mutual labels:  portfolio
Leethub
Automatically sync your leetcode solutions to your github account - top 5 trending GitHub repository
Stars: ✭ 316 (-21.59%)
Mutual labels:  portfolio
Bchiang7.github.io
Third iteration of my personal site built with Jekyll
Stars: ✭ 391 (-2.98%)
Mutual labels:  portfolio

The GOV.UK Design System launched on 22 June 2018

GOV.UK Frontend Toolkit:

This framework will remain available in case you’re currently using it. To help your service meet accessibility requirements, you should use the GOV.UK Design System. You can migrate to the Design System from GOV.UK Frontend Toolkit.

GOV.UK frontend toolkit

A collection of Sass and JavaScript files for using as part of your application's frontend.

This project is not tied to a specific language and is designed to be used as a dependency in as many different languages as needed.

There's a Gemfile and a package.json in this directory, but they are only for running tests and are not an indication that this project prefers Ruby or Node.js.

Installing

Ruby on Rails

We recommend you use the govuk_frontend_toolkit_gem and follow the installation instructions.

Node.js

govuk_frontend_toolkit_npm is an NPM package that can be installed or included in your package.json.

If you are using a build tool that depends on Libsass then you may need to upgrade to a more recent version to use the grid helpers. Minimal compatible versions include node-sass 1.0.0, grunt-sass 0.16.0, gulp-sass 1.2.0 and libsass 3.0.0.

Django

Requirement: NodeJS installed. This gives you Node Package Manager(NPM) which is required to install npm packages.

The easiest way to integrate it would be to create a package.json file in your application with npm init

You then install the toolkit with npm install --save govuk_frontend_toolkit. If you need javascript files, they will live in (node_modules/govuk_frontend_toolkit/javascripts). If you need stylesheets they will live in (node_modules/govuk_frontend_toolkit/stylesheets).

With Django you can use https://github.com/jrief/django-sass-processor to compile Sass files.

Note: if you need complete styles you might want to install govuk-elements-sass package that also installs toolkit

Other projects

Using the tagged versions

Each version of the toolkit is tagged with the version number in this format:

v*version number*, for example v4.1.1 for version 4.1.1.

If your dependency management tool allows the use of Git repositories as dependencies, you can point to a version by using its tag.

For example, if you are using bower, you can add the toolkit to your bower.json like so:

"govuk_frontend_toolkit": "git://github.com/alphagov/govuk_frontend_toolkit#v4.1.1" (assuming you want version 4.1.1)

Using git submodules

You can include the toolkit as a git submodule.

To add the submodule to your project run the following command substituting the path to a subdirectory in your project's assets directory:

$ git submodule add https://github.com/alphagov/govuk_frontend_toolkit.git ./path/to/assets/govuk_frontend_toolkit

We recommend you use https rather than ssh for submodules as they don't require key exchanges when deploying to remote servers.

If you clone a project with the toolkit submodule installed you will need to initialise the submodule with the following command:

$ git submodule init

To update the toolkit to the latest version you can use:

$ git submodule update

Running tests

Tests for this project use Jasmine for the JavaScript and Ruby's scss and scss-lint to check the stylesheets.

The requirements are Node.js 0.8 or higher and PhantomJS, and Ruby:

bundle install
npm install
npm test

Standard JavaScript

govuk_frontend_toolkit uses standardjs, an opinionated JavaScript linter. All JavaScript files follow its conventions. Read more

Using the local test runner

The test suite can be run by opening the ./spec/support/LocalTestRunner.html file in a browser for a more detailed trace of errors.

The files for unit tests and any supporting JavaScript should be added to ./spec/manifest.js file.

Usage

At the top of a Sass file in your project you should use an @import rule to include the file for the mixins you require, eg if you want the conditionals and typography mixins you should add:

@import '_conditionals';
@import '_typography';

You may need to include the relative path to the toolkit if it is installed as a submodule:

@import '../toolkit/_conditionals';

If you are compiling Sass from the command-line tool, here are some options we recommend.

In development:

sass --style expanded --line-numbers --load-path [path to]/govuk_frontend_toolkit/stylesheets input.scss output.css

In production:

sass --style compressed --load-path [path to]/govuk_frontend_toolkit/stylesheets input.scss output.css

Documentation

Licence

Released under the MIT Licence, a copy of which can be found in the file LICENCE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].