diff --git a/addon/utils/generate-theme.js b/addon/utils/generate-palette.js similarity index 97% rename from addon/utils/generate-theme.js rename to addon/utils/generate-palette.js index 8af1e90f9..a50d6bb43 100644 --- a/addon/utils/generate-theme.js +++ b/addon/utils/generate-palette.js @@ -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(); diff --git a/tests/dummy/app/templates/theme.hbs b/tests/dummy/app/templates/theme.hbs index 19746808a..2ff07539b 100644 --- a/tests/dummy/app/templates/theme.hbs +++ b/tests/dummy/app/templates/theme.hbs @@ -212,8 +212,8 @@

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