Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add websafe departmental colours, ported from Whitehall #262

Merged
merged 3 commits into from Mar 4, 2016

Commits on Mar 2, 2016

  1. Port websafe departmental colours from Whitehall

    We will need to use these colours and styles in government-frontend,
    whitehall and static.
    
    We use `websafe` to mean strong enough contrast against white to be
    used for copy and meet the AAA (large text) and AA (smaller copy) WCAG
    guidelines.
    
    * Port the brand colour mixin which can be used to generate styles for
    each organisation
    
    Original:
    https://github.com/alphagov/whitehall/blob/540b900378823c2aa7b3baf3c5245
    28dd48ee30e/app/assets/stylesheets/frontend/styleguide/_colours.scss
    fofr committed Mar 2, 2016
    Copy the full SHA
    4c9a597 View commit details
    Browse the repository at this point in the history
  2. Split colours into two files

    * Separate palette and organisations
    * Keep existing behaviour of `_colour.scss` by importing the two files
    * Import order matters as organisations uses `link-color` which is
    defined in palette.
    fofr committed Mar 2, 2016
    Copy the full SHA
    3844ad2 View commit details
    Browse the repository at this point in the history
  3. Remove brand colour mixin, include example

    * Remove the `organisation-brand-colour` mixin which creates an
    anti-pattern of needing to nest containers to achieve the desired affect
    * Instead include a simpler example of how the list can be used.
    fofr committed Mar 2, 2016
    Copy the full SHA
    21258f5 View commit details
    Browse the repository at this point in the history