Skip to content

Office-of-Digital-Services/California-Design-System

Repository files navigation

California Design System

This repository contains the early development work for California’s next design system. Code, components, and documentation are evolving, and the system is not yet ready for production use. Follow along as we build towards an Alpha release.

Grab it

There are currently two ways to grab the latest code from this repository. Take your pick.

We plan to support CDN-based download options in the future.

Install from NPM

From your JavaScript project folder, run the following.

npm install @cagovweb/design-system

For now, the files will be available in node_modules/@cagovweb/design-system/dist.

We'll make this more convenient as we learn more about how people want to consume this code from the NPM package.

Source

All CSS and JavaScript source can be found in their respective src subfolders.

Pages

The pages folder is a place to test your work.

Development

The repository currently uses 11ty for page previews. To run it...

  1. Clone this repository.
  2. Run npm install.
  3. Run npm run start.
  4. Point your browser to the URL that appears in the terminal, probably localhost:8080.

Build the 11ty site

To build the 11ty site files, run npm run site.

Files will be written to the _site folder.

This is useful for uploading to GitHub Pages.

Build standalone bundle files

To build the CSS/JS bundle files, run npm run bundle.

Files will be written to the dist folder.

This is useful for packaging activities, such as GitHub Releases, NPM, and CDN.

Deprecated NPM packages

We previously published NPM packages in the 1.X.X series. Since then, we decided to republish as beta in 0.X.X. Therefore, several npm packages from the past work have been deprecated, to prevent stale downloads while we're still in beta.

To bring those packages back and remove the deprecation warning, run the following command.

npm deprecate @cagovweb/[email protected] ""

npm deprecate @cagovweb/[email protected] "The Design System is currently in beta. This post-1.0 package is an artifact of past work. It does not represent the latest progress on this project."

The following package version numbers apply.

  • 1.1.0
  • 1.2.0
  • 1.3.1
  • 1.4.0
  • 1.5.0
  • 1.6.0

See more at npm's deprecation page.

Early test site

View the test site

This is just our sandbox. It’s where we try things out and preview work in progress. It’s not the finished product and doesn’t reflect the final design or content.

About

Early development for California’s next design system. Pre-Alpha and not yet stable.

Resources

License

Stars

Watchers

Forks

Packages

No packages published