Skip to content

Commit

Permalink
generateTheme -> generatePalette
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Sep 5, 2018
1 parent 0184166 commit 07f591c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function multiply(rgb1, rgb2) {
return tinycolor(`rgb ${rgb1.r} ${rgb1.g} ${rgb1.b}`);
}

export default function generateTheme(base) {
export default function generatePalette(base) {
let baseLight = tinycolor('#ffffff');
let baseDark = multiply(tinycolor(base).toRgb(), tinycolor(base).toRgb());
let baseTriad = tinycolor(base).tetrad();
Expand Down
4 changes: 2 additions & 2 deletions tests/dummy/app/templates/theme.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@

<p>
To use the utility simply import the function
<code>import generateTheme from 'ember-paper/utils/generate-theme';</code>. You
can then use the function to create a palette like <code>generateTheme('#326eb6');</code>.
<code>import generatePalette from 'ember-paper/utils/generate-theme';</code>. You
can then use the function to create a palette like <code>generatePalette('#326eb6');</code>.
</p>

<p>
Expand Down

0 comments on commit 07f591c

Please sign in to comment.