Skip to content

EnergySage/es-ds

Repository files navigation

EnergySage Design System

See the documentation and demonstrations at https://design.energysage.dev/

This is a monorepo containing the elements required for building experiences following the EnergySage Design System, or es-ds for short.

NOTICE: this is a vue3 based design system, if you're working with a vue2 based micro-frontend, please see EnergySage/es-ds-legacy instead

Public works

This repository es-ds is public and the contents are licensed under the MIT

For that reason discussion and documentation specific to EnergySage should probably be kept within private org channels.

EnergySage specific channels

For EnergySage specific resources & channels see the Quick Links section of the Design System confluence page

The parts

Starting in version 3.0, the EnergySage Design System is composed of 2 core npm packages:

graph TB
    subgraph es-ds
        subgraph "@energysage"
            A["@energysage/es-ds-styles"]
            C["@energysage/es-ds-components"]
        end
        D[es-ds-docs]
        C-->D
    end
    Y(nuxt3)
    Z(primevue) --> C
    X(reka-ui) --> C
    Y-->D
Loading

es-ds-styles

  • es-ds-styles started as a fork of Bootstrap 4.
  • This package overrides the _variables.scss file in Bootstrap to the defaults required by the EnergySage design system.
  • There are additional variables and colors that diverge and extend from the core Bootstrap framework.
  • The SASS has also been refactored to use the modular system and dart-sass compiler.
  • Prior to v3.0, es-ds-styles worked with the es-vue-base package, which is based on bootstrap-vue. As such, there are still some legacy Bootstrap Vue styles present in es-ds-styles. Those are deprecated and will be removed in a future version.

es-ds-components

  • es-ds-components contains Vue 3 components for use in Nuxt 4 projects. It is primarily based on PrimeVue and Reka UI, with some customizations specific to EnergySage.

es-ds-docs

  • This is the design system documentation site powered by Nuxt 4.
  • It also serves a reference for how to integrate es-ds packages into a Nuxt 4 project.

Contributing

Setting up the repo

clone git@github.com:EnergySage/es-ds.git

When publishing changes you will commit to the origin branch of the es-ds repo. So your git set-up should look like this:

$ git remote -v
origin  git@github.com:EnergySage/es-ds.git (fetch)
origin  git@github.com:EnergySage/es-ds.git (push)

Installing Dependencies and Linking packages

  1. make install && make symlink - installs all packages from npm

Development workflow

make dev

This command will:

  • Locally link your es-ds-styles and es-ds-components folders to the es-ds-docs Nuxt app
  • Start the es-ds-docs local dev server

You can then make changes as desired in either upstream package folder and the local dev server should immediately reflect those changes.

make unlink

This command will:

  • Undo the local linking set up by the above command
  • Reinstall the public NPM versions of the es-ds-styles and es-ds-components packages

This enables you to run the es-ds-docs server with the state of code that is publicly available on NPM.

cd es-ds-docs
npm run dev

These commands will:

  • Run the es-ds-docs local dev server without locally linking to the es-ds-styles and es-ds-components packages folders
  • Whichever versions of the two upstream packages are installed (or already locally linked) will be used

Updating the changelog

The changelog no longer needs to be updated manually, as it will be managed automatically by release-please, based on the pull request titles. See the individual changelogs:

Publishing and Versioning

Publishing and versioning is now automated through release-please. Upon merging to main, a release-please PR will be created or updated with your changes in the description. Merging this release-please PR will create a release automatically, and also deploy to the documentation site.

About

EnergySage Design System Monorepo (new Vue 3)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 39