@timus-networks/theme 1.0.1 → 1.0.3

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  ```json
7
7
  {
8
- "modules": ["@nuxtjs/axios", ["@timus-networks/filter", { "client": false, "typescript": false }]]
8
+ "modules": ["@nuxtjs/axios", ["@timus-networks/theme", { "client": false, "typescript": false }]]
9
9
  }
10
10
  ```
11
11
 
@@ -32,6 +32,35 @@ tailwindcss: {
32
32
  },
33
33
  ```
34
34
 
35
+ 4. Add below code to your **tailwind.confif.js** file
36
+
37
+ ```js
38
+ // tint & shade color generator
39
+ function generateColors(baseName, start = 100, end = 900, step = 100) {
40
+ const colors = {};
41
+ for (let i = start; i <= end; i += step) {
42
+ colors[i] = `var(--${baseName}-${i})`;
43
+ }
44
+ return colors;
45
+ }
46
+
47
+ const colorNames = ['primary', 'secondary', 'gray', 'danger', 'success', 'warning', 'info'];
48
+
49
+ const colors = colorNames.reduce((acc, color) => {
50
+ return { ...acc, [`${color}`]: generateColors(color, 100, 900) };
51
+ }, {});
52
+
53
+ module.exports = {
54
+ content: ['./pages/**/*.{html,js}'],
55
+ theme: {
56
+ extend: {
57
+ colors: colors,
58
+ },
59
+ },
60
+ plugins: [],
61
+ };
62
+ ```
63
+
35
64
  ### Usage
36
65
 
37
66
  Default dark theme is `false`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timus-networks/theme",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
5
5
  "main": "module.js",
6
6
  "types": "index.d.ts",
package/scss/_layers.scss CHANGED
@@ -1,9 +1,9 @@
1
- @layer components {
2
- @import 'colors';
3
- @import 'containers';
4
- @import 'fonts';
5
- @import 'icons';
6
- @import 'buttons.scss';
7
- @import 'inputs.scss';
8
- @import 'selectbox.scss';
9
- }
1
+ // @layer components {
2
+ // @import 'colors';
3
+ // @import 'containers';
4
+ // @import 'fonts';
5
+ // @import 'icons';
6
+ // @import 'buttons.scss';
7
+ // @import 'inputs.scss';
8
+ // @import 'selectbox.scss';
9
+ // }