npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ts-ccs-frontend

v0.6.1

Published

CCS Frontend contains the code you need to start building a user interface for CCS platforms and services.

Downloads

8

Readme

CCS Frontend

CCS Frontend contains the code you need to start building a user interface for CCS platforms and services.

This is based off of GOV.UK Frontend which was created and is maintained by a team at the Government Digital Service.

Because of this, CCS Frontend can be used in an identical way to GOV.UK Frontend.

As part of future work, there will be a place where you can view live examples and guidance on when to use CCS Frontend as part of your service.

STATUS: BUILD AND DEVELOPMENT

At the moment this project is still in the build and development phase.

As it is still not decided if CCS wants to take on this project, it is being hosted on the personal accounts of tim-s-ccs.

That is why the package is called ts-ccs-frontend on NPM.

This will all be updated, with real package name confirmed, before the first major release.

Contact the team

CCS Frontend is maintained by a team at the Crown Commercial Service.

If you want to know more about CCS Frontend, please email Tim South

Quick start

Please note that this package is designed to be used in the same way as GOV.UK Frontend so if these documents are not sufficient, please try the documentation for GOV.UK Frontend.

There are 2 ways to start using CCS Frontend in your app.

1. Install with npm (recommended)

We recommend installing CCS Frontend using node package manager (npm).

2. Install using compiled files

You can also install CCS Frontend by copying our CSS, JavaScript and asset files into your project.

Importing styles, JavaScripts and assets

Before you start

GOV.UK Frontend is a dependency of CCS Frontend. Therefore, before you import the styles, JavaScripts and assets CCS Frontend, you need to import them from GOV.UK Frontend first.

You can do this by following the steps on the Design System website

Importing styles

You need to import the CCS Frontend styles into the main Sass file in your project. You should place the below code before your own Sass rules (or Sass imports) if you want to override CCS Frontend with your own styles.

To import add the below to your Sass file:

@import "node_modules/ts-ccs-frontend/ccs/all";

More details on importing styles

Importing JavaScript

Some of the JavaScript included in CCS Frontend improves the usability and accessibility of the components. You should make sure that you are importing and initialising Javascript in your application to ensure that all users can use it successfully.

You can include Javascript for all components either by copying the all.js from node_modules//ts-ccs-frontend/ccs/ into your application or referencing the file directly:

<script src="<path-to-ts-ccs-frontend-all-file>/all.js"></script>

Next you need to initialise the script by adding:

<script>window.CCSFrontend.initAll()</script>

More details on importing Javascript and advanced options

Importing assets

In order to import CCS Frontend images to your project, you should configure your application to reference or copy the relevant CCS Frontend assets.

More details on importing assets

Getting updates

To be notified when there’s a new release, you can:

Find out how to update with npm.

Licence

Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

Contributing

To learn how to help us build CCS Frontend, see our contribution guidelines.

The ts-ccs-frontend repository is public and we welcome contributions from anyone.

However, please note this a small project compared to GOV.UK Frontend and is only concerned with assets relating to CCS.

We're unable to monitor activity on this repository outside of our office hours (10am to 4pm, UK time). To get a faster response at other times, you can report abuse or spam to GitHub.

Credits :trophy:

This project was created from GOV.UK Frontend so a lot of the credit needs to go to the team at Government Digital Services. Beyond adding the CCS stylings, nearly all the code comes from that original project.

So a big Thank you to the team at GDS because, without your hard work on GOV.UK Frontend, CCS Frontend would be a much lesser offering.