@freshworks/core

0.15.1 • Public • Published

@freshworks/core

npm version npm

ember install @freshworks/core

Contains the core design modules of Freshworks DSM:

  1. variables
  2. animations
  3. utilities

To import these stylesheets in your host app, add any/all of the following to your app.scss as per your requirement.

@import "nucleus/variables";
@import "nucleus/animations";
@import "nucleus/utilities";

To import them in another dependent addon (e.g @freshdesk/button), add the following to the addon's index.js:

treeForAddonStyles(tree) {
  let coreStyleTree = new Funnel(this.getCoreStylesPath(), {
    destDir: 'nucleus'
  });
  return mergeTrees([coreStyleTree, tree]);
},

getCoreStylesPath() {
  let pkgPath = path.dirname(require.resolve(`@freshworks/core/package.json`));
  return path.join(pkgPath, 'app/styles');
}

REASON:

@nucleus/core's app style funnel needs to be merged with the addon's style funnel in order for those files to be recognised by ember-cli-sass. More info here

Dependents (12)

Package Sidebar

Install

npm i @freshworks/core

Weekly Downloads

2,603

Version

0.15.1

License

MIT

Unpacked Size

148 kB

Total Files

69

Last publish

Collaborators

  • rihan.siddhi
  • vinodhmanick
  • mdibrahim
  • arvindan.aswathanarayanan
  • freshworks-dev
  • muthufd
  • prasannanfd
  • sankar-ganesh
  • hrishikesh
  • rajasegar-c
  • ravirajsubramanian
  • adithya_nat
  • freshanand
  • harishkumr