Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artsy/palette
Artsy's design system
https://github.com/artsy/palette
Last synced: 3 months ago
JSON representation
Artsy's design system
- Host: GitHub
- URL: https://github.com/artsy/palette
- Owner: artsy
- License: mit
- Created: 2018-05-03T17:08:27.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T19:47:06.000Z (5 months ago)
- Last Synced: 2024-05-30T00:29:49.855Z (5 months ago)
- Language: TypeScript
- Homepage: https://palette-storybook.artsy.net/
- Size: 19.9 MB
- Stars: 212
- Watchers: 42
- Forks: 45
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @artsy/palette [![CircleCI](https://circleci.com/gh/artsy/palette.svg?style=shield)](https://circleci.com/gh/artsy/palette) [![npm version](https://badge.fury.io/js/%40artsy%2Fpalette.svg)](https://www.npmjs.com/package/@artsy/palette) [![Netlify Status](https://api.netlify.com/api/v1/badges/beb9e8d7-10cc-4a2e-99bb-0d4c6f46db82/deploy-status)](https://app.netlify.com/sites/artsy-palette/deploys)
Artsy's Design System
## Meta
- Storybook: [https://palette-storybook.artsy.net](https://palette-storybook.artsy.net)
-Docs: [https://palette.artsy.net](https://palette.artsy.net)(Deprecated: Documentation will be moved to Storybook to have a single source of truth.)
- Point People: [@dzucconi](https://github.com/dzucconi), [@damassi](https://github.com/damassi)## Related Repos
- Icons: [https://github.com/artsy/icons](https://github.com/artsy/icons)
## What is Palette?
Palette is a collection of primitive, product-agnostic elements that help encapsulate Artsy's look and feel at base level. This project is intended to be used
across our digital product portfolio.## Does my component belong in Palette?
If the component applies to Artsy as a brand and can/will be used across multiple digital products, then Palette is a great place for it. If it's highly product
specific then it's best to leave the component where it's used. We can always move things later!## How to contribute
If you'd like to add a new component to Palette please raise the need in our `#design-system` Slack channel.
## Local development
In the project root run the following:
```sh
$ lerna bootstrap
$ yarn storybook
```This will compile Palette and boot Storybooks, our default development environment. New components require stories.
Other relevant commands are:
```sh
$ yarn test
$ yarn type-check
```## Developing Features using Local Versions of Palette
When developing new components in Palette, it's often useful to test those components in consuming apps (such as Force). However, due to the poor support for symlinks, this can be difficult. Enter [yalc](https://github.com/wclr/yalc). Yalc is a mini package manager that one can publish to and install from, which makes it easy to test code in realtime from outside of your app.
> Note: [@artsy/palette](https://github.com/artsy/palette) uses Storybooks for developing features; work there first! Then, when ready (and if necessary), test your code locally using the flow described below. You can also publish npm canary releases from the palette repo by attaching a `canary` label to your PR.
### Setup
- Install `yalc` globally:
```sh
yarn global add yalc
```- Navigate to `palette` in the terminal and start the watcher:
```sh
cd palette/packages/palette
yarn local-palette-dev
```- Navigate back to Force and link:
```sh
cd force
yarn local-palette-dev
yarn start
```This will update `package.json` to point at the yalc-published version of palette.
- When done developing your local palette feature, be sure to unlink:
```sh
yarn local-palette-dev:stop
```For more info, check out our [development guide in the docs](https://palette.artsy.net/guides/development/).
## Deployment process
### Commits and Deployments
Palette uses [auto-release](https://github.com/intuit/auto-release#readme) to automatically release on every PR. Every PR should have a label that matches one of the following
- Version: Trivial
- Version: Patch
- Version: Minor
- Version: Major
- CanaryMajor, minor, and patch will cause a new release to be generated. Use major for breaking changes, minor for new non-breaking features,
and patch for bug fixes. Trivial will not cause a release and should be used when updating documentation or non-project code.If you don't want to release on a particular PR but the changes aren't trivial then use the `Skip Release` tag along side the appropriate version tag.
`Canary` tags will publish a canary version to NPM which can be used to test work in progress. See [the CircleCI job](https://app.circleci.com/pipelines/github/artsy/palette/4138/workflows/ffc56588-35bf-41ed-a0a8-a806fc807678/jobs/20148) for the exact version published and update your consuming app accordingly.
## Repos consuming Palette
- [Force](https://github.com/artsy/force)
- [Forque](https://github.com/artsy/forque)
- [Positron](https://github.com/artsy/positron)
- [Prediction](https://github.com/artsy/prediction)
- [Volt-V2](https://github.com/artsy/volt-v2)
- [Volt](https://github.com/artsy/volt)## About Artsy
This project is the work of designers and engineers at [Artsy][footer_website], the
world's leading and largest online art marketplace and platform for discovering art.
One of our core [Engineering Principles][footer_principles] is being [Open
Source by Default][footer_open] which means we strive to share as many details
of our work as possible.You can learn more about this work from [our blog][footer_blog] and by following
[@ArtsyOpenSource][footer_twitter] or explore our public data by checking out
[our API][footer_api]. If you're interested in a career at Artsy, read through
our [job postings][footer_jobs]![footer_website]: https://www.artsy.net/
[footer_principles]: culture/engineering-principles.md
[footer_open]: culture/engineering-principles.md#open-source-by-default
[footer_blog]: https://artsy.github.io/
[footer_twitter]: https://twitter.com/ArtsyOpenSource
[footer_api]: https://developers.artsy.net/
[footer_jobs]: https://www.artsy.net/jobs