All Projects β†’ vtex β†’ Styleguide

vtex / Styleguide

The VTEX Design System and React component library.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Styleguide

Axiom React
Axiom - Brandwatch design system and React pattern library
Stars: ✭ 41 (-70.29%)
Mutual labels:  styleguide, design-system, react-components, component-library
react-pluto
A package of small but beautiful React components from the planet, Pluto. πŸ”΅ Get minimal components for your React based applications 😍
Stars: ✭ 17 (-87.68%)
Mutual labels:  styleguide, react-components, design-system
react-dsfr
Non-official React components of the official french Système de Design de l'État.
Stars: ✭ 48 (-65.22%)
Mutual labels:  styleguide, component-library, design-system
Uniforms
A React library for building forms from any schema.
Stars: ✭ 1,368 (+891.3%)
Mutual labels:  hacktoberfest, react-components, component-library
paragon
πŸ’Ž An accessible, theme-ready design system built for learning applications and Open edX.
Stars: ✭ 85 (-38.41%)
Mutual labels:  react-components, component-library, design-system
Circuit Ui
SumUp's component library for the web
Stars: ✭ 625 (+352.9%)
Mutual labels:  design-system, react-components, component-library
vf-core
A (primarily CSS) framework that targets needs of life science websites and services
Stars: ✭ 16 (-88.41%)
Mutual labels:  styleguide, component-library, design-system
smores-react
🍭 Marshmallow React components
Stars: ✭ 34 (-75.36%)
Mutual labels:  react-components, component-library, design-system
Hiui
HIUI is a solution that is adequate for the fomulation and implementation of interaction and UI design standard for front, middle and backend.
Stars: ✭ 366 (+165.22%)
Mutual labels:  design-system, react-components, component-library
Operational Ui
Building blocks for effective operational interfaces
Stars: ✭ 258 (+86.96%)
Mutual labels:  design-system, react-components, component-library
Clarity
Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
Stars: ✭ 6,398 (+4536.23%)
Mutual labels:  hacktoberfest, design-system, component-library
Pivotal Ui
Pivotal's design system & component library
Stars: ✭ 637 (+361.59%)
Mutual labels:  design-system, react-components, component-library
Orbit
React components of open-source Orbit design system by Kiwi.com
Stars: ✭ 774 (+460.87%)
Mutual labels:  hacktoberfest, design-system, component-library
Matchbox
πŸ”₯ A react UI component library
Stars: ✭ 58 (-57.97%)
Mutual labels:  design-system, react-components
Paragon
πŸ’Ž Accessible components done right.
Stars: ✭ 52 (-62.32%)
Mutual labels:  react-components, component-library
Components
Primer React components
Stars: ✭ 1,133 (+721.01%)
Mutual labels:  design-system, component-library
Awesome Design Language System
list of awesome resources about digital design system.
Stars: ✭ 69 (-50%)
Mutual labels:  styleguide, design-system
Website
Website and documentation for Radix.
Stars: ✭ 45 (-67.39%)
Mutual labels:  design-system, component-library
Snacks
The Instacart Component Library
Stars: ✭ 65 (-52.9%)
Mutual labels:  styleguide, component-library
Vitamin Web
Decathlon Design System libraries for web applications
Stars: ✭ 70 (-49.28%)
Mutual labels:  styleguide, design-system

Styleguide

VTEX Styleguide React components (Docs)

Usage

For instructions on how to use the Styleguide in your project refer to the page itself: https://vtex.github.io/styleguide/.

Developing

Setup

yarn install

Running

yarn styleguide

Storybook

We use Storybook environment to help us build and test our components in real time. You can edit the Playground file and add the components you are working on, after this run the command below to see your changes in http://localhost:6006/ :

yarn storybook

If you want to change or add stories, take a look at this guide before.

Developing using npm link

Run this in this repo:

yarn develop

In your project run:

npm link @vtex/styleguide

Import (case a <Button> component in lib):

import Button from '@vtex/styleguide/lib/Button'

Testing

Developing new tests

To add tests to a component, just add a test file with the .test.js extension next to the component implementation.

Example:

react/components/Alert/
β”œβ”€β”€ README.md
β”œβ”€β”€ index.js
└── index.test.js

We use react-testing-library to test our components.

Running tests

To run the test use:

yarn test

You can also pass the --watch flag:

yarn test --watch

Publishing


To post the changelog on Github Release Notes, is required to configure a Personal Token. See more here

We use releasy to publish our styleguide. To publish on both npm and render(VTEX IO) with Github Release Notes, execute the command below:

releasy --stable

Docs

To update the docs:

yarn deploy

Known issues

  • Your project has to run with webpack >= 2. Here's a guide for upgrading Webpack to v2.

  • VTEX Styleguide is a project built to run on top of either npm or VTEX IO. To make this viable, we currently use two package.json files, one in the top repository folder for npm, and one inside the react folder for VTEX IO. We are looking into how we can improve this architecture, but for now we have to live with duplicated dependencies in these package.json files.

    For more info, please refer to https://github.com/vtex/styleguide/issues/483

  • We currently have two majors of the Styleguide, 8.x and 9.x (master branch). Each major supports a specific VTEX's Render version. This means that we develop new features only on the master branch (9.x major) and do bug fixes on both master and 8.x branches.

Custom icons

The icon components supports customization through the <use> element available in SVG. Read more

How to use: In the same page that has a icon, load in any place inside the <html> a SVG with the following structure:

<svg class="dn" height="0" version="1.1" width="0" xmlns="http://www.w3.org/2000/svg">
  <defs>
    <g id="icon-columns">
      <path d="M10.8 4.4L9.4 3L5.4 7L3.4 5L2 6.4L5.4 9.8L10.8 4.4Z" fill="currentColor" />
    </g>
    <g id="OTHER-ICON-ID">
      <path d="M11.7 0.3C11.5 0.1 11.3 0 11 0H10V3C10 3.6 9.6 4 9 4H4C3.4 4 3 3.6 3 3V0H1C0.4 0 0 0.4 0 1V15C0 15.6 0.4 16 1 16H15C15.6 16 16 15.6 16 15V5C16 4.7 15.9 4.5 15.7 4.3L11.7 0.3ZM13 14H3V11C3 10.4 3.4 10 4 10H12C12.6 10 13 10.4 13 11V14Z" fill="currentColor"/>
      <path d="M9 0H7V3H9V0Z" fill="currentColor"/>
    </g>
  </defs>
</svg>
  • The ID must match the ID of the icon you want to replace. To see all available options, view icons folder.
  • Inside one SVG you can have more than one <g id="">, one for each icon you want to update.
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].