GithubHelp home page GithubHelp logo

stellar / stellar-design-system Goto Github PK

View Code? Open in Web Editor NEW
9.0 21.0 7.0 2.73 MB

Components for Stellar’s design system

License: Apache License 2.0

JavaScript 5.70% TypeScript 53.66% SCSS 25.85% Shell 0.05% Dockerfile 0.39% Makefile 0.24% MDX 9.35% CSS 4.75%

stellar-design-system's Introduction

Stellar Design System

Components for Stellar Development Foundation’s design system.

Usage

Install as a dependency:

yarn add @stellar/design-system

Add the main CSS file to your project (for example, the main index file of your React project).

import "@stellar/design-system/build/styles.min.css";

Import Stellar Design System components

import { Button, Input } from "@stellar/design-system";

Available components can be found here.

Development

This repo has two parts to it:

This project is tested with BrowserStack.

Scripts

build:sds build Stellar Design System (sds) project only

build:sds-web build Stellar Design System Website (sds-web) project only

build build both projects

start:sds start sds project for local development

start:sds-web start sds-web project for local development

clean delete node_modules and build directories in the whole repo

Note You need to run each start command in its own window or tab.

stellar-design-system's People

Contributors

quietbits avatar piyalbasu avatar kanwalpreetd avatar jacekn avatar

Stargazers

 avatar Ibrahim Umar  avatar jeesun 지선 avatar Phathutshedzo Khabubu avatar Igor Pancheski avatar  avatar Gábor Mihálcz avatar Marcelo Salloum dos Santos avatar Alex Cordeiro avatar

Watchers

James Cloos avatar Tom Llewellyn-Smith avatar Ricky Lindenhovius avatar Debnil Sur avatar Lydia Wagner avatar Elliot Voris avatar Shannon Romano avatar jordyn avatar  avatar  avatar aristides avatar Jamie Li avatar  avatar Howard Tinghao Chen avatar Ryan avatar Aditya Vyas avatar Jiahui Hu avatar Justin Rice avatar  avatar Ibrahim Umar  avatar  avatar

stellar-design-system's Issues

Add increased flexibility to block components

What problem does your feature solve?

The stellar-anchor-tests UI has create several custom components that closely mimic the InfoBlock component, with the following variations:

  • no icon / custom icon
  • custom border, text, & background coloring

What would you like to see?

This flexibility supported natively in the InfoBlock SDS component.

What alternatives are there?

Keeping the custom components.

PR sources:

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Add new components

Add new components from AMM Reference UI.

  • Avatar
  • Card
  • Tooltip
  • Header
  • Table
  • Pagination
  • Sortable table

Note adding Chart yet because it's used only in one project.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Feature Request: Add ability to remove file from input

What problem does your feature solve?

When I upload a file to an input field, sometimes I would like to remove that file or "clear" it, but I cannot do that unless I click the input field and select "cancel" in the file selection menu.

One of the reasons this is needed is because if I try to re-upload the same filename with new contents, the new content is not loaded. This means users need to clear the file in order to re-upload.

What would you like to see?

An "x" or "clear" button that allows users to remove files from the input field. Ideally we can also pass a function that is executed when a file is cleared as well.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Feature Request: Status Bar Addition

What problem does your feature solve?

Standardizing status bars across our products. This came up based on a discussion around how we have different, not clear distinctions for TestNet vs. MainNet.

Designs:

https://www.figma.com/file/76H3em3Auk43P4SHhH54az/Stellar-Web-Products-Style-Guide?node-id=986%3A865

The designs are very similar to our Info Block component, with changes to padding, text size, and should be full width. There is one for Default, Success, Warning, and Error.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Feature Request: Add 'tag' component

What problem does your feature solve?

The stellar-anchor-tests UI would like to indicate whether or not the home domain specified has a TOML file specifying a testnet or mainnet set of services. The mockup designs have a 'Testnet' or 'Mainnet' tag similar to a Github issue label next to the home domain input field.

What would you like to see?

Add a SDS component that for adding tags/labels to other UI elements.

What alternatives are there?

Creating a custom component.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Replace RGBA colors with solid colors

Transparent colors are harder to manage because they change depending on the background. To make sure colors are always easy to read, we'll use only solid colors (no transparency).

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Create monorepo structure

It will be better to have the design system and website in the same repo.

  • Separate directories (sds and sds-web inside packages/)
  • CircleCI is updated and works as expected
  • sds has development mode (has only production mode at the moment)
  • sds-web has basic setup with create-react-app
  • Update readme

feature request: custom button

Where text, icon, and onClick can be customized with props. example use case, a download button:

Screen Shot 2022-01-31 at 5 45 54 PM

Adding one to SDS will make these custom buttons designs consistent across projects (and also consistent with other buttons in SDS like Copy)

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Publish v0.1.0

Publish new v0.1.0-beta.1 (currently at v0.1.0-alpha.3)

Feature Request: Pie Progress Indicator

What problem does your feature solve?

We need a progress indicator for the Anchor Validator to show progress/status of SEP tests run.

What would you like to see?

Indicator logic:
Pie Circle / Number of Tests
Then progressing in clockwise order, showing each slice (representative of each test) as green for successful, or red for unsuccessful. These colors can be pulled from the current color palette for light/dark mode

Link to designs:
https://www.figma.com/file/4BjIB3QZMbI5pd87JJwSLi/Anchor-Validator?node-id=395%3A62

Update dependencies

Update all project dependencies.

yarn upgrade-interactive --latest

Make sure there are no issues in the code editor, code compiles, and it runs without issues in the browser.

Feature Request: Color palette in SDS Website

It'd be useful to be able to see every available color on the SDS website.

For ex: var(--pal-brand-primary) next to a swatch of what that color looks like

Issue it solves: when a dev receives a comment like "Let's make this color stand out more", we could take a look at what's available in our color palette to use

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.