GithubHelp home page GithubHelp logo

reactioncommerce / reaction-styleguide Goto Github PK

View Code? Open in Web Editor NEW
9.0 24.0 3.0 104 KB

A plugin for Reaction, transforming it into a style guide and UI component playground.

Home Page: https://styleguide.reactioncommerce.com/

License: GNU General Public License v3.0

JavaScript 78.21% CSS 19.50% Shell 2.29%

reaction-styleguide's Introduction


โš ๏ธ NOTICE: This repository is archived for read-only reference purposes. Check out the Reaction Component Library for the replacement.


reaction-styleguide

A plugin for Reaction, transforming it into a style guide and UI component playground.

Install

This plugin does a complete takeover of a reaction app, so be sure to install it into fresh master copy.

Prereq

https://github.com/reactioncommerce/reaction-cli

Install or update reaction-cli if necessary

npm install -g reaction-cli

Installing plugin

# Checkout a fresh copy of reaction as a different name.
reaction init my-styleguide

# Move into the app directory
cd my-styleguide

# Clone this repo into the plugins folder. Or you could download it and unzip there if you prefer
git submodule add -f https://github.com/reactioncommerce/reaction-styleguide.git imports/plugins/custom/styleguide

# Run reaction to build the app and install the styleguide plugin
reaction

# running on http://localhost:3000/

reaction-styleguide's People

Contributors

jshimko avatar machikoyasuda avatar mikemurray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reaction-styleguide's Issues

Style guide architecture

As a contributor with the proper permissions, I should be able to write markdown to update design guidelines for usage of our components in the Reaction Commerce design system. As well as have the ability to add images or embed videos.

As a reaction engineer, I should be able to easily add and update components for documentation of our React UI components.

As a contributor to Reaction Commerce, both core contributors or community contributors, I should be able to view a style guide that has -

  • design guidelines for components,
  • visual representation of our components with properties,
  • the ability to select between our most common usages (i.e. buttons types)
  • ability to copy react code

As a design director, I should be able to add static pages such as Reaction Commerce design principles (now) and color, typography, and illustration guidelines (in the future).

Writing Style Guide

Labels on buttons

  • Title Case
  • ordering of buttons: Cancel should be on the Left, most important should be on the Right. Cancel should be an outlined button.

Titles, labels elsewhere

  • Sentence case like this

Setting Card titles

Alert

Style guide not working

I followed the exact same steps, but unable to see any difference. It is still the original theme.

Research Storybook.js and other options

React component style guide generators

As a styleguide user:

  • I want to be able to test a component in a sandbox
  • I want to be able to copy/paste code for it
  • I want to be able to see all the React props

As a content creator:

  • I want to be able to write descriptions in Markdown about a component
  • I do NOT want to have to code the component (and all the component changes everytime the library changes)
  • I do NOT want to hand-code and write all the propTypes: the propTypes should be generated

NAMING THINGS!!

decided

  1. Icon Navigation Bar
  2. Action View Panel, which is composed of Action View (master) and Action View Detail
  3. Which have Cards in them
  4. Product Grid (instead of Grid)

undecided?

  1. Content Edit Bar??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.