# @freshworks/core

> Nucleus::Core - SCSS styles & helpers

Latest version **0.15.1** (published 2023-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @freshworks/core
pnpm add @freshworks/core
yarn add @freshworks/core
bun add @freshworks/core
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.15.1 |
| Published | 2023-09-20 |
| First published | 2019-11-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.* \|\| >= 10.* |
| Dependencies | 3 |
| Unpacked size | 144.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Maintainers | vinodhmanick, mdibrahim, arvindan.aswathanarayanan, freshworks-dev, muthufd, prasannanfd, sankar-ganesh, hrishikesh, parsuram-npm, rajasegar-c, asifahmed, ravirajsubramanian, adithya_nat, freshanand, harishkumr |
| Keywords | ember-addon |

## Links

- npm: https://www.npmjs.com/package/@freshworks/core
- Repository: https://github.com/freshdesk/nucleus
- Homepage: https://freshdesk.github.io/nucleus
- Issues: https://github.com/freshdesk/nucleus/issues
- npm.io page: https://npm.io/package/@freshworks/core

## Dependencies (3)

- [ember-cli-sass](https://npm.io/package/ember-cli-sass.md) ^10.0.0
- [ember-cli-babel](https://npm.io/package/ember-cli-babel.md) ^7.11.1
- [ember-cli-htmlbars](https://npm.io/package/ember-cli-htmlbars.md) ^4.0.0

## Recent versions

- 0.15.1 (latest) — 2023-09-20
- 0.1.1-alpha.31 (beta) — 2019-11-19
- 0.14.0 — 2021-03-05
- 0.12.0 — 2020-11-19
- 0.11.0 — 2020-10-09
- 0.10.0 — 2020-08-21
- 0.7.1 — 2020-08-07
- 0.6.0 — 2020-07-14
- 0.5.0 — 2020-07-07
- 0.4.0 — 2020-06-16
- 0.3.0 — 2020-05-06
- 0.2.1 — 2020-04-13
- 0.2.0 — 2020-03-30
- 0.1.17 — 2020-03-30
- 0.1.16 — 2020-03-20
- … 16 more at https://npm.io/package/@freshworks/core/versions

## README

@freshworks/core
==============================================================================
[![npm version](https://badge.fury.io/js/%40freshworks%2Fcore.svg)](https://www.npmjs.com/package/@freshworks/core)
![npm](https://img.shields.io/npm/dm/@freshworks/core)

```
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.

```css
@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`:

```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](https://discuss.emberjs.com/t/how-can-i-share-files-css-sass-between-addons/15429/8)

---
_Source: https://npm.io/package/@freshworks/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
