Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikemunsie/ember-export-sass-variables
Export your SASS variables and access them through a utility.
https://github.com/mikemunsie/ember-export-sass-variables
ember sass
Last synced: about 1 month ago
JSON representation
Export your SASS variables and access them through a utility.
- Host: GitHub
- URL: https://github.com/mikemunsie/ember-export-sass-variables
- Owner: mikemunsie
- License: mit
- Created: 2018-02-24T14:44:15.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-07T00:59:29.000Z (over 6 years ago)
- Last Synced: 2024-11-09T15:04:02.255Z (about 2 months ago)
- Topics: ember, sass
- Language: JavaScript
- Homepage:
- Size: 78.1 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ember-export-sass-variables
### Note: This project is no longer maintained!
I suggest checking out https://github.com/minusfive/ember-cli-sass-variables-export if you need a great alternative.Export your SASS variables and access them through a utility. This addon supports any lists / maps / nested maps and uses the built in node-sass functions to parse values.
## Methods
`export (utilName: String, contents: any)`
The export method is used in your SASS file to tell the compiler what name the utility file is, and what variables to export inside.
## Usage
Two parts: Define a sass export and import the utility that matches the name of the export.```css
$export: export('colors', (
colors: $colors,
themes: $themes
));
``````js
import styles from 'ember-export-sass-variables/utils/colors';
```## Installation
`ember install ember-export-sass-variables`## Credits
Thanks to these projects, I would not have been able to create this:
- https://github.com/Punk-UnDeaD/node-sass-export
- https://github.com/davidpett/ember-cli-sass-variables