Skip to content

emulsify-ds/compound

Repository files navigation

Emulsify Design System

Compound

Noun: A thing that is composed of two or more separate elements

Compound is the default Emulsify system of components.

View the deployed storybook instance here

Development

  • Ensure you're using the correct node/npm version nvm use
  • Install dependencies npm install
  • Run the develop script npm run develop

That should spin up a local server (typically at http://localhost:6006) that you can open in your browser, to see the components in a Storybook instance. It will also watch for updates to your code, so any changes you make will be reflected in the Storybook instance live, any time you save.

Contributing Components

Compound is a completely open source set of components that work with each other. If you find yourself using these components as starter files in your projects, feel free to contribute your own components to the repo!

When you do, remember to add it to the system.emulsify.json file so that it's exposed to the CLI! You can place it wherever is appropriate inside the variants > components section.

If the component has dependencies, be sure to identify them, so that the CLI knows to install them as well.

Components with a leading underscore, such as _tab.twig, indicate that the twig file is not intended to be used on its own, but rather as part of a higher level component.

Common Scripts

These are the most common npm scripts you may find yourself using: (Each is prefixed with npm run)

  • develop
    Initializes Webpack to compile existing files and watch for additional changes. It also starts an instance of storybook that auto-refreshes when file changes are detected.

  • lint
    Runs stylelint for your sass files and eslint for your javascript files. The eslint configuration enforces formatting based on prettier and javascript comments according to JSdoc.

{
  "name": "card",
  "structure": "molecules",
  "dependency": ["images", "text", "links", "buttons"]
},

Contributors

Brian
Brian Lewis
Callin
Callin Mullaney
Marvin
Marvin J. Cortés
Randy
Randy Oest
Joe
Joe Tower
Amanda
Amanda Luker
Patrick
Patrick Coffey
josue2591/
josue2591
Kurt
Kurt Trowbridge
Andrii
Andrii Shutov
Ana
Ana B Zúñiga
Brandon
Brandon Akers
James
James Landrum
Marc
Marc Berger
Mariana
Mariana Núñez
Robert/
Robert
Roberto
Roberto Henández Badilla