{"id":13827563,"url":"https://github.com/One-Nexus/Synergy","last_synced_at":"2025-07-09T04:32:35.190Z","repository":{"id":35214910,"uuid":"39473973","full_name":"One-Nexus/Synergy","owner":"One-Nexus","description":"Synergy is a framework for building modular, configurable and scalable UI components for React-DOM projects","archived":false,"fork":false,"pushed_at":"2023-06-23T01:47:12.000Z","size":4076,"stargazers_count":149,"open_issues_count":18,"forks_count":10,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-06-19T22:05:46.983Z","etag":null,"topics":["bem","javascript","modular-css","react","react-components","sass","sass-mixins","synergy","theme"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/One-Nexus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-07-21T22:58:45.000Z","updated_at":"2025-02-17T00:45:20.000Z","dependencies_parsed_at":"2022-08-04T00:30:16.141Z","dependency_job_id":"fd3ea16d-8e23-4a38-9051-722a74bfb9d1","html_url":"https://github.com/One-Nexus/Synergy","commit_stats":null,"previous_names":["esr360/synergy","esr360/modular"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/One-Nexus/Synergy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-Nexus%2FSynergy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-Nexus%2FSynergy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-Nexus%2FSynergy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-Nexus%2FSynergy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/One-Nexus","download_url":"https://codeload.github.com/One-Nexus/Synergy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/One-Nexus%2FSynergy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261393001,"owners_count":23151877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bem","javascript","modular-css","react","react-components","sass","sass-mixins","synergy","theme"],"created_at":"2024-08-04T09:02:01.844Z","updated_at":"2025-07-09T04:32:34.844Z","avatar_url":"https://github.com/One-Nexus.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/One-Nexus/Synergy/blob/master/LICENSE)\n[![Build status](https://api.travis-ci.com/One-Nexus/Synergy.svg)](https://travis-ci.com/One-Nexus/Synergy)\n[![npm version](https://badge.fury.io/js/%40onenexus%2Fsynergy.svg)](https://www.npmjs.com/package/@onenexus/synergy)\n[![npm downloads](https://img.shields.io/npm/dm/@onenexus/synergy.svg)](https://www.npmjs.com/package/@onenexus/synergy)\n\n\u003cimg src=\"https://edmundreed.com/projects/synergy/banner.png\" /\u003e\n\n\u003e Synergy is a framework for building modular, configurable and scalable UI components for React-DOM projects\n\n###### Features\n\n* Style Modules using either [Sass](https://github.com/One-Nexus/Synergy/wiki/Using-Sass-With-Synergy) or [JavaScript](https://github.com/One-Nexus/Synergy/wiki/Styling-Modules#styling-a-module-with-javascript)\n* Make cosmetic UI updates to your app without modifying source code ([learn more](https://github.com/One-Nexus/Lucid/wiki/Config#retreiving-cosmetic-styles-from-config))\n* Easily [configure modules](https://github.com/One-Nexus/Synergy/wiki/Module-Configuration) and create [themes](https://github.com/One-Nexus/Synergy/wiki/Themes) for your app\n* Ideal for creating presentational React components\n* ...for use with Component Libraries/UI Styleguides/Design Systems\n\n###### Useful Wiki Pages\n\n* [Installation \u0026 Setup](https://github.com/One-Nexus/Synergy/wiki/Installation)\n* [Intro: Modules, Components \u0026 Modifiers](https://github.com/One-Nexus/Synergy/wiki/Modules,-Components-and-Modifiers)\n* [Creating a Synergy Module](https://github.com/One-Nexus/Synergy/wiki/Creating-a-Module)\n* [Module Configuration](https://github.com/One-Nexus/Synergy/wiki/Module-Configuration)\n* [Themes](https://github.com/One-Nexus/Synergy/wiki/Themes)\n\n###### Boilerplates\n\n\u003ctable width=\"100%\"\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://github.com/One-Nexus/Synergy-Boilerplate\"\u003e\n        Synergy Boilerplate (Javascript Styles)\n      \u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://github.com/One-Nexus/Synergy-Boilerplate-Sass\"\u003e\n        Synergy Boilerplate (Sass Styles)\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## 60 Second Accordion From Scratch\n\n```\nnpm install --save react react-dom @onenexus/synergy;\n```\n\n\u003e [View a live demo of this example in CodeSandbox](https://codesandbox.io/s/synergy-demo-t5qkd)\n\n###### accordion.jsx\n\n```jsx\nimport React, { useState } from 'react';\nimport { Module, Component } from '@onenexus/synergy';\n\nconst styles = {\n  fontFamily: 'sans-serif',\n\n  heading: ({ context }) =\u003e ({\n    backgroundColor: '#1E90FF',\n    color: 'white',\n    padding: '1em',\n    cursor: 'pointer',\n    \n    ...(context.panel.open \u0026\u0026 {\n      backgroundColor: '#00FFB2'\n    }),\n\n    ':hover': {\n      backgroundColor: '#01BFFF'\n    }\n  }),\n\n  content: ({ context }) =\u003e ({\n    padding: '1em',\n    color: '#444444',\n    display: context.panel.open ? 'block' : 'none'\n  })\n}\n\nconst Accordion = ({ panels, ...props }) =\u003e {\n  const [current, toggle] = useState(0);\n\n  return (\n    \u003cModule name='Accordion' styles={styles} { ...props }\u003e\n      {panels.map(({ heading, content }, i) =\u003e (\n        \u003cComponent name='panel' open={i === current}\u003e\n          \u003cComponent name='heading' onClick={() =\u003e toggle(i === current ? -1 : i)}\u003e\n            {heading}\n          \u003c/Component\u003e\n          \u003cComponent name='content' content={content} /\u003e\n        \u003c/Component\u003e\n      ))}\n    \u003c/Module\u003e\n  );\n}\n\nexport default Accordion;\n```\n\n###### Usage\n\n```jsx\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport Accordion from './accordion.jsx';\n\nconst data = [\n  {\n    heading: 'accordion heading 1',\n    content: 'lorem ipsum'\n  },\n  {\n    heading: 'accordion heading 2',\n    content: \u003cp\u003efoo bar\u003c/p\u003e\n  }\n];\n\nconst Screen = () =\u003e (\n  \u003cAccordion panels={data} /\u003e\n);\n\nReactDOM.render(\u003cScreen /\u003e, document.getElementById('app'));\n```\n\n\u003e This example is short and concise for demo purposes; for a more complete example utilising more features see the [Creating a Module](https://github.com/One-Nexus/Synergy/wiki/Creating-a-Module) page\n\n---\n\n\u003ca href=\"https://github.com/ESR360\"\u003e\n  \u003cimg src=\"http://edmundreed.com/assets/images/github.gif?v=1\" width=\"230px\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/ESR360\"\u003e\n  \u003cimg src=\"http://edmundreed.com/assets/images/twitter.gif?v=1\" width=\"230px\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.instagram.com/edmund_reed/\"\u003e\n  \u003cimg src=\"http://edmundreed.com/assets/images/insta.png\" width=\"230px\" /\u003e\n\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOne-Nexus%2FSynergy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FOne-Nexus%2FSynergy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FOne-Nexus%2FSynergy/lists"}