All Projects → envoy → polarwind

envoy / polarwind

Licence: other
Envoy's product component library

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
typescript
32286 projects
Handlebars
879 projects

Projects that are alternatives of or similar to polarwind

react-dsfr
Non-official React components of the official french Système de Design de l'État.
Stars: ✭ 48 (+182.35%)
Mutual labels:  component-library, design-system
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (+100%)
Mutual labels:  component-library, design-system
react-uswds
USWDS 3.0 components built in React
Stars: ✭ 108 (+535.29%)
Mutual labels:  component-library, design-system
Ugnis
Visual CSS generator for React
Stars: ✭ 249 (+1364.71%)
Mutual labels:  component-library, design-system
maker
Maker Design System by Square
Stars: ✭ 43 (+152.94%)
Mutual labels:  component-library, design-system
design-systems
A list of famous design systems, design languages and guidelines
Stars: ✭ 403 (+2270.59%)
Mutual labels:  component-library, design-system
dorai-ui
Accessible, unstyled, open-sourced, and fully functional react component library for building design systems
Stars: ✭ 34 (+100%)
Mutual labels:  component-library, design-system
Aksara Ui
Aksara Design System, from Kata.ai.
Stars: ✭ 107 (+529.41%)
Mutual labels:  component-library, design-system
tds-community
TELUS Design System Community Components
Stars: ✭ 22 (+29.41%)
Mutual labels:  component-library, design-system
paramount
React Component Library for React Native and React Web
Stars: ✭ 23 (+35.29%)
Mutual labels:  component-library, design-system
Carbon Web Components
Carbon Design System variant on top of Web Components
Stars: ✭ 171 (+905.88%)
Mutual labels:  component-library, design-system
anv-ui-components
AnyVision React components library
Stars: ✭ 35 (+105.88%)
Mutual labels:  component-library, design-system
Vue Design System
An open source tool for building UI Design Systems with Vue.js
Stars: ✭ 2,077 (+12117.65%)
Mutual labels:  component-library, design-system
paragon
💎 An accessible, theme-ready design system built for learning applications and Open edX.
Stars: ✭ 85 (+400%)
Mutual labels:  component-library, design-system
Styleguide
The VTEX Design System and React component library.
Stars: ✭ 138 (+711.76%)
Mutual labels:  component-library, design-system
react
An implementation of GitHub's Primer Design System using React
Stars: ✭ 2,023 (+11800%)
Mutual labels:  component-library, design-system
Purescript Ocelot
An opinionated component library for Halogen apps
Stars: ✭ 81 (+376.47%)
Mutual labels:  component-library, design-system
Barista
Barista - the Dynatrace design system. Tailored to scale.
Stars: ✭ 107 (+529.41%)
Mutual labels:  component-library, design-system
kahi-ui
Straight-forward Svelte UI for the Web
Stars: ✭ 169 (+894.12%)
Mutual labels:  component-library, design-system
carbon-components-svelte
Svelte implementation of the Carbon Design System
Stars: ✭ 1,615 (+9400%)
Mutual labels:  component-library, design-system

Polarwind

Polarwind is a React component library for the Envoy design system.

App development

Using the React components

While we do offer a CSS-only version, we strongly recommend using the React versions of our components. It allows for rich, complex components like Tabs and autogrowing multline TextFields, and will not have as many breaking changes as the CSS-only version.

Installation

Run the following command using npm:

npm install @envoy/polarwind --save

If you prefer Yarn, use the following command instead:

yarn add @envoy/polarwind

Usage

  1. Import the CSS directly into your project if your asset packager supports it:
import "@envoy/polarwind/polarwind.css";

Otherwise include the CSS in your HTML. We suggest copying the styles file into your own project, but you may also use it directly:

<link
  rel="stylesheet"
  href="https://unpkg.com/@envoy/[email protected]/polarwind.css"
/>
  1. Include any of the provided components in your project:
import { AppProvider, Page, Button } from "@envoy/polarwind";
  1. Tell React to render the element in the DOM:
ReactDOM.render(
  <AppProvider>
    <Page title="Example app">
      <Button onClick={() => alert("Button clicked!")}>Example button</Button>
    </Page>
  </AppProvider>,
  document.querySelector("#app")
);

Using the CSS components

If React doesn't make sense for your application, you can use a CSS-only version of our components. This includes all the styles you need for every component in the library, but you'll be responsible for writing the correct markup and updating classes and DOM attributes in response to user events.

Usage

  1. Include the CSS in your HTML. We suggest copying the styles file into your own project, but you may also use it directly:
<link
  rel="stylesheet"
  href="https://unpkg.com/@envoy/[email protected]/polarwind.css"
/>
  1. Include the markup and associated classes in your HTML document:
<button class="Polarwind-Button">Example button</button>

Examples

We have created example applications to document some of the ways you could include Polarwind in one of your own applications. Each of these examples includes further documentation on how to install dependencies and run the app:

Development

This package has a development dependency on a private @envoy/tailwind package hosted on GitHub Packages. It contains the common Envoy shared preset for Tailwind. You will need to perform an npm login against the @envoy scope for you to be able to install the package (yes, even if this project uses yarn you still need to use npm for logging in)

$ npm login --scope envoy --registry=https://npm.pkg.github.com
Username: <your github username>
Password: <your personal access token with scopes `repo` and `read:packages`>
Email: <your envoy email>

You will have to generate a Personal Access Token (PAT) with the scopes repo and read:packages in order to log in. Now you should be able to yarn install as normal.

GitHub Actions in this project will use a PAT from envoybot.

We use Storybook to create a simple, hot-reloading playground for development on these components. Run yarn start in order to start the Storybook server.

We use generators to build scaffolding for a typical component. Run yarn generate to see the list of generators provided.

Visual regression testing

Chromatic runs for every pull request. Chromatic is a tool that compares screenshots for every single component we have in the library.

Chromatic is not always 100% accurate. Since it uses screenshot comparison, even browser sub-pixel rendering differences can cause Chromatic to ask for user confirmation of whether a change was intended or not. In cases like that, use your best judgement to determine whether you need to address it or not. This is why the choice to approve something or not is always manual. While everyone can view changes, only members of the Envoy team an approve changes.

Manual visual regression testing

To start a server for manually viewing the visual regression testing examples, run yarn storybook.

Learning resources

If you're new to React, we recommend you start with the official React Getting Started documentation. As you read through the topics we suggest you follow along using their React Hello World CodePen example.

Additional resources:

License

Source code is under a custom license based on MIT. The license restricts Polarwind usage to applications that integrate or interoperate with Envoy software or services, with additional restrictions for external, stand-alone applications.

Trivia

Polarwind is a portmanteau of Polaris and Tailwind CSS.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].