Code Monkey home page Code Monkey logo

carbon-ds's Introduction

Carbon design system

Carbon-ds is a package that describes components taken from IBM's Carbon design system, so that a design tool like Hadron can use it to provide a design experience with its components.

All credits go to IBM, i just made it usable as design system in Hadron.

Theme Options

You can use the different design themes available at Carbon Design kits, for this collection the default white theme is used. In the future might release screenshots for other themes in other branches for example.

Installation

Add carbon-ds as a dependency to your project

npm install carbon-ds

Converting components with variants from IBM's examples (carbon-components/html)

Of course not everything was done by hand, i created a small script to automatically generate the design systems json files and take screenshots of the elements.

To run the script yourself execute the following commands.

Requirements

  • run firefox.exe -headless -marionette -safe-mode or set marionette.enabled to true in about:config
  • you can use chrome by changing the import to const foxr = require('puppeteer'); See https://github.com/puppeteer/puppeteer
# install dependencies (seperate npm project, might be transfered to own repo in the future)
cd convert
npm install

# start converting
npm start

# to clean up the files after conversion
npm run prettier

# if you want to check if the files are exported correctly
npm run lint

Contributing

Requests are welcome. Especially when using the convert script for another project, we might be able to make it universal and move it to a repo of it's own. Please open an issue first to discuss what you would like to change.

License

MIT

carbon-ds's People

Contributors

lalilaloe avatar

Watchers

 avatar  avatar

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.