Coder Social home page Coder Social logo

simonwhatley / govuk-design-system-snippets-atom-package Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 55 KB

This Atom package includes snippets to help build UK Government digital services.

Home Page: https://atom.io/packages/govuk-design-system-snippets

License: MIT License

package atom atom-package govuk snippets nunjucks design design-system

govuk-design-system-snippets-atom-package's Introduction

GOV.UK Design System snippets for Nunjucks

This Atom package includes snippets to help build UK Government digital services.

Installation

Go to Atom > Preferences > Install and then search for govuk design system snippets under Packages.

After installing the package, you will need to restart Atom.

Available snippets

Styles

Layout

Name Shortcut Notes
Form group govuk-form-group
Form section govuk-form-section
Grid column full govuk-grid-column-full
Grid column one-half govuk-grid-column-one-half
Grid column one-quarter govuk-grid-column-one-quarter
Grid column one-third govuk-grid-column-one-third
Grid column two-thirds govuk-grid-column-two-thirds
Grid column govuk-grid-column
Grid row govuk-grid-row
Layout one-third / two-thirds govuk-layout-one-third-two-thirds
Layout two-thirds / one-third govuk-layout-two-thirds-one-third

Typography

Name Shortcut Notes
Caption govuk-caption
Font size override govuk-font-size
Font weight override govuk-font-weight
Heading govuk-heading
Link item govuk-link-item
Links govuk-link
Lists govuk-list
Lists – Bulleted govuk-list-bulleted
Lists – Numbered govuk-list-numbered
Paragraph body text govuk-paragraph-body
Paragraph body text large govuk-paragraph-body-lead
Paragraph body text small govuk-paragraph-body-small
Section break govuk-section-break
Visually hidden govuk-visually-hidden Creates a visually hidden span

Components

Form elements

Name Shortcut Notes
Addresses govuk-address
Bank details govuk-bank-details
Button govuk-button
Character count govuk-character-count
Checkboxes govuk-checkboxes
Checkbox or radio option govuk-option Use in conjunction with the govuk-checkboxes and govuk-radios Nunjucks snippets.
Currency input govuk-currency-input
Dates govuk-date
Email address govuk-email
Error summary govuk-error-summary
Fieldset govuk-fieldset
File upload govuk-file
National Insurance Number (NINO) govuk-nino
Radios govuk-radios
Select govuk-select
Select option govuk-select-option Use in conjunction with the govuk-select Nunjucks snippet.
Telephone number govuk-telephone
Text input govuk-input
Textarea govuk-textarea

Content presentation

Name Shortcut Notes
Accordion govuk-accordion
Details govuk-details
Inset text govuk-inset-text
Notification banner govuk-notification-banner
Panels govuk-panel
Phase banner govuk-phase-banner
Summary list govuk-summary-list
Tables govuk-table
Tabs govuk-tabs
Tab item HTML govuk-tab-item Use in conjunction with the govuk-tabs snippet. This snippet can be used to encapsulate a tab panel.
Tags govuk-tag
Warning text govuk-warning-text

Navigation

Name Shortcut Notes
Back link govuk-back-link
Breadcrumbs govuk-breadcrumbs
Footer govuk-footer
Header govuk-header
Pagination govuk-pagination
Previous/next navigation govuk-previous-next
Skip link govuk-skip-link

Miscellaneous

Name Shortcut Notes
Cookie banner govuk-cookie-banner

Dependencies

Using this package depends on the installation of the GOV.UK Frontend and Nunjucks into your project.

Support

This repository is maintained by Simon Whatley. If you’ve got a question or need support you can:

Contributing

If you’ve got an idea or suggestion you can:

Licence

Unless otherwise stated, this codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.