All Projects β†’ govau β†’ Design System Components

govau / Design System Components

Licence: mit
πŸ›  Component code and tests for the Australian Government design system

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Design System Components

Blueprint
A React-based UI toolkit for the web
Stars: ✭ 18,376 (+2540.23%)
Mutual labels:  design, components, sass
Design System Starter
πŸš€ The Australian Government Design System - Starter
Stars: ✭ 61 (-91.24%)
Mutual labels:  government, design-systems, components
Neumorphic Ui
πŸ“š A library of components based on the concept of neumorphism
Stars: ✭ 82 (-88.22%)
Mutual labels:  design, design-systems, components
Design System Site
πŸ“š Documentation, rationale and accessibility guidance
Stars: ✭ 72 (-89.66%)
Mutual labels:  government, design, design-systems
Uswds
The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
Stars: ✭ 5,912 (+749.43%)
Mutual labels:  government, design, design-systems
pancake
Making npm work for the front end and the Australian Government Design System.
Stars: ✭ 93 (-86.64%)
Mutual labels:  government, components, design-systems
Mdx Go
⚑️ Lightning fast MDX-based dev server for progressive documentation
Stars: ✭ 340 (-51.15%)
Mutual labels:  design, design-systems
Lab
React UI component design tool
Stars: ✭ 349 (-49.86%)
Mutual labels:  design, components
Theme Specification
A specification for defining theme objects & design tokens for use with UI components
Stars: ✭ 374 (-46.26%)
Mutual labels:  design, design-systems
Story2sketch
Convert Storybook into Sketch symbols πŸ’Ž
Stars: ✭ 391 (-43.82%)
Mutual labels:  design-systems, components
Modulz Original Design System Archive
An open-source design system for building scalable, responsive websites and applications.
Stars: ✭ 300 (-56.9%)
Mutual labels:  design, design-systems
Alva
Create living prototypes with code components.
Stars: ✭ 3,734 (+436.49%)
Mutual labels:  design, components
Playroom
Design with JSX, powered by your own component library.
Stars: ✭ 4,033 (+479.45%)
Mutual labels:  design, design-systems
Uix Kit
A free UI toolkit based on some common libraries for building beautiful responsive website, compatible with Bootstrap v4.
Stars: ✭ 318 (-54.31%)
Mutual labels:  design, sass
Webdevscom
😍 All kinds of resources for Developers πŸ”± in one place.
Stars: ✭ 364 (-47.7%)
Mutual labels:  design, design-systems
Prism
Gett's Design System code generator. Use Zeplin Styleguides as your R&D's Single Source of Truth.
Stars: ✭ 308 (-55.75%)
Mutual labels:  design, design-systems
Shards Vue
🌟Shards Vue is a free, beautiful and modern Vue.js UI kit based on Shards.
Stars: ✭ 390 (-43.97%)
Mutual labels:  design, components
Awesome Design Tools
The best design tools and plugins for everything πŸ‘‰
Stars: ✭ 23,754 (+3312.93%)
Mutual labels:  design, design-systems
Awesome React Design Systems
A collection of awesome React-based design systems
Stars: ✭ 552 (-20.69%)
Mutual labels:  design, design-systems
Html Sketchapp Cli
Quickly generate Sketch libraries from HTML documents and living style guides, powered by html-sketchapp
Stars: ✭ 631 (-9.34%)
Mutual labels:  design, design-systems

Australian Government Design System Components

The components for the Australian Government Design System.

Documentation

Full documentation at designsystem.gov.au


Visual unit tests

Production CircleCI Staging CircleCI
https://auds.service.gov.au https://auds.staging.service.gov.au
user: auds, pass: auds

Contents


Installation

Prerequisites

The design system components are distributed through the npm ecosystem. Npm requires node.js and the components needs node.js 8 or higher.

If you are not familiar with npm and want to use the design system, we have created a download page to help.

Once on the page you can select the components you wish to use and choose how you want do download them.

  • CSS minified will bundle the CSS of the components into a single file to be used directly in HTML.
  • CSS modules are used with modern JavaScript allowing you to import styles specific component styles.
  • SASS modules will create multiple SASS files that can be imported into a main.scss file.
  • JavaScript minified will bundle the JavaScript of the components together and minify them for use directly in HTML.
  • JavaScript modules are used when you want to break a part the components functionality.
  • React modules allow the components to be imported directly into React.

Installing modules

To install a module make sure you have a package.json file in the root of your project folders. (You can generate one by running npm init.) Inside your working folder install any module and pancake will make sure you have all assets ready to use.

Run npm install @gov.au/body to install the body module. To install several modules, chain them like:

npm install @gov.au/body @gov.au/header @gov.au/footer @gov.au/buttons

An even better experience is using Syrup. Install it globally via npm install -g @gov.au/syrup. More info coming soon.

⬆ back to top


Frequently asked questions

View our frequently asked questions page to see common questions from the community.

If you can’t find an answer to a question you have please email us at [email protected] or join our conversation on slack.

⬆ back to top


Checklist and browser support

We use the below checklist to ensure new modules or updates to existing modules have a certain level of quality:

Checklist

General checks

  • [x] Semantic HTML and non semantic test?
  • [x] No JavaScript fallback?
  • [x] SVG fallback, functional without SVG?
  • [x] IE9, IE10, IE11 legacy test
  • [x] IE8 functional test

Accessibility checks

  • [x] Accessibility colour contrast
  • [x] Keyboard accessible
  • [x] Tested with screen reader
  • [x] Accessibility expert review

CSS / Sass

  • [x] Never nest anything that is not either an overwrite or a child element.
  • [x] font-family and text color on elements that don’t require body
  • [x] Using AU-space() with unit for spacing everywhere but in font-sizes; no magic numbers
  • [x] No hardcoded colors, use $AU-color- or $AU-colordark- vars.
  • [x] Sass focus mixin AU-focus() or AU-focus( 'dark' )
  • [x] Using AU-fontgrid() for font-size and line-height to snap typography to the grid.
  • [x] Print style sheets

JavaScript

  • [x] var AU = AU || {}; in top?
  • [x] Each module has it’s own name-space prefixed with AU e.g.: AU.modulename.function1, AU.modulename.function2
  • [x] Keep public API small, use private functions where you can
  • [x] Export out private function for tests only if( typeof module !== 'undefined' )
  • [x] Export entire module in the end: if( typeof module !== 'undefined' ) { module.exports = AU; } so react can use it.
  • [x] Provide sane defaults for parameters where you can
  • [x] Add jest unit tests where you can
  • [x] Document public API in the readme.

package.json

  • [x] dependencies - peerDependencies check
  • [x] Delete/enable js object and settings for pancake plugins

Browser support

All components have to work on the below browsers:

Browser Version Platform Engine
Internet Explorer 8 Windows 7 Trident
Internet Explorer 9 Windows 7 Trident
Internet Explorer 10 Windows 7 Trident
Internet Explorer 11 Windows 8.1 Trident
Edge Latest Windows 10 EdgeHTML
Firefox Latest OS X Gecko
Firefox Latest Windows 10 Gecko
Firefox Latest Android 6 Gecko
Chrome Latest OS X Blink
Chrome Latest Windows 10 Blink
Chrome Latest Android 4.0 Blink
Chrome Latest Android 6 Blink
Safari Latest (11) OS X WebKit
Safari Latest - 1 ( 10 ) iOS WebKit
Samsung G S8
Samsung G S7
Samsung G S6
Chrome pixel 7.1
Native browser Lumia 930 8.1
Chome +1
Safari +1
Firefox +1

⬆ back to top


Modules

@gov.au/core
npm install @gov.au/core

See the visual test file for core
See the readme file for core

No dependencies
@gov.au/accordion
npm install @gov.au/accordion

See the visual test file for accordion
See the readme file for accordion

Dependencies:
β”œβ”€ animate
└─ core

@gov.au/animate
npm install @gov.au/animate

See the visual test file for animate
See the readme file for animate

No dependencies
@gov.au/body
npm install @gov.au/body

See the visual test file for body
See the readme file for body

Dependencies:
└─ core

@gov.au/breadcrumbs
npm install @gov.au/breadcrumbs

See the visual test file for breadcrumbs
See the readme file for breadcrumbs

Dependencies:
β”œβ”€ core
└─ link-list
   β”œβ”€ core
   └─ body
      └─ core

@gov.au/buttons
npm install @gov.au/buttons

See the visual test file for buttons
See the readme file for buttons

Dependencies:
└─ core

@gov.au/callout
npm install @gov.au/callout

See the visual test file for callout
See the readme file for callout

Dependencies:
└─ core

@gov.au/card
npm install @gov.au/card

See the visual test file for card
See the readme file for card

Dependencies:
└─ core

@gov.au/control-input
npm install @gov.au/control-input

See the visual test file for control-input
See the readme file for control-input

Dependencies:
└─ core

@gov.au/cta-link
npm install @gov.au/cta-link

See the visual test file for cta-link
See the readme file for cta-link

Dependencies:
└─ core

@gov.au/direction-links
npm install @gov.au/direction-links

See the visual test file for direction-links
See the readme file for direction-links

Dependencies:
└─ core

@gov.au/footer
npm install @gov.au/footer

See the visual test file for footer
See the readme file for footer

Dependencies:
└─ core

@gov.au/form
npm install @gov.au/form

See the visual test file for form
See the readme file for form

Dependencies:
└─ core

@gov.au/grid-12
npm install @gov.au/grid-12

See the visual test file for grid-12
See the readme file for grid-12

Dependencies:
└─ core

@gov.au/header
npm install @gov.au/header

See the visual test file for header
See the readme file for header

Dependencies:
└─ core

@gov.au/headings
npm install @gov.au/headings

See the visual test file for headings
See the readme file for headings

Dependencies:
└─ core

@gov.au/inpage-nav
npm install @gov.au/inpage-nav

See the visual test file for inpage-nav
See the readme file for inpage-nav

Dependencies:
β”œβ”€ core
└─ link-list
   β”œβ”€ core
   └─ body
      └─ core

@gov.au/keyword-list
npm install @gov.au/keyword-list

See the visual test file for keyword-list
See the readme file for keyword-list

Dependencies:
β”œβ”€ core
└─ link-list
   β”œβ”€ core
   └─ body
      └─ core

@gov.au/link-list
npm install @gov.au/link-list

See the visual test file for link-list
See the readme file for link-list

Dependencies:
β”œβ”€ core
└─ body
   └─ core

@gov.au/main-nav
npm install @gov.au/main-nav

See the visual test file for main-nav
See the readme file for main-nav

Dependencies:
β”œβ”€ core
β”œβ”€ animate
└─ link-list
   β”œβ”€ core
   └─ body
      └─ core

@gov.au/page-alerts
npm install @gov.au/page-alerts

See the visual test file for page-alerts
See the readme file for page-alerts

Dependencies:
β”œβ”€ core
└─ body
   └─ core

@gov.au/progress-indicator
npm install @gov.au/progress-indicator

See the visual test file for progress-indicator
See the readme file for progress-indicator

Dependencies:
└─ core

@gov.au/responsive-media
npm install @gov.au/responsive-media

See the visual test file for responsive-media
See the readme file for responsive-media

Dependencies:
└─ core

@gov.au/searchbox
npm install @gov.au/searchbox

See the visual test file for searchbox
See the readme file for searchbox

Dependencies:
β”œβ”€ core
β”œβ”€ text-inputs
β”‚  └─ core
└─ buttons
   └─ core

@gov.au/select
npm install @gov.au/select

See the visual test file for select
See the readme file for select

Dependencies:
└─ core

@gov.au/side-nav
npm install @gov.au/side-nav

See the visual test file for side-nav
See the readme file for side-nav

Dependencies:
β”œβ”€ core
β”œβ”€ animate
β”œβ”€ accordion
β”‚  β”œβ”€ animate
β”‚  └─ core
└─ link-list
   β”œβ”€ core
   └─ body
      └─ core

@gov.au/skip-link
npm install @gov.au/skip-link

See the visual test file for skip-link
See the readme file for skip-link

Dependencies:
└─ core

@gov.au/table
npm install @gov.au/table

See the visual test file for table
See the readme file for table

Dependencies:
└─ core

@gov.au/tags
npm install @gov.au/tags

See the visual test file for tags
See the readme file for tags

Dependencies:
└─ core

@gov.au/text-inputs
npm install @gov.au/text-inputs

See the visual test file for text-inputs
See the readme file for text-inputs

Dependencies:
└─ core


⬆ back to top


Tests

Visual tests have been built into each module and can be seen in either of the README.md files of each module or in the listing above. We have also integrated pa11y for accessibility testing and are using jest for javascript tests.

Run all tests with the npm test script:

npm run test

⬆ back to top


Related repositories

⬆ back to top

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].