@code-coaching/vuetiful 0.24.0 → 0.24.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-coaching/vuetiful",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "dev": "onchange 'src/**/*.vue' 'src/**/*.ts' 'src/**/*.css' -- npm run build",
@@ -1,7 +1,7 @@
1
1
  import { Ref, ref } from 'vue';
2
2
  import { usePlatform } from '../platform/platform.service';
3
3
  import { ColorSettings, Palette, useColors } from '../colors/colors.service';
4
- import { Theme, themes } from './themes';
4
+ import { Theme, themes, THEME } from './themes';
5
5
 
6
6
  const { isBrowser } = usePlatform();
7
7
  const chosenTheme: Ref<Theme> = ref(themes[0]);
@@ -160,6 +160,7 @@ ${generateColorCSS(theme)}
160
160
  return {
161
161
  chosenTheme,
162
162
  themes,
163
+ THEME,
163
164
  applyThemeSSR,
164
165
  applyTheme,
165
166
  getThemeFromCookie,
@@ -85,6 +85,11 @@ export const themes: Array<Theme> = [
85
85
  },
86
86
  ];
87
87
 
88
+ export const THEME = {
89
+ VUETIFUL: themes[0],
90
+ ROCKET: themes[1],
91
+ }
92
+
88
93
  export interface Theme {
89
94
  name: string;
90
95
  gradients: Gradients;