@tociva/tailng-theme 0.11.0 → 0.16.0

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": "@tociva/tailng-theme",
3
- "version": "0.11.0",
3
+ "version": "0.16.0",
4
4
  "description": "TailNG theme tokens (CSS) + Tailwind preset/plugin helpers",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -12,7 +12,15 @@
12
12
  "url": "https://github.com/tociva/tailng/issues"
13
13
  },
14
14
  "sideEffects": [
15
- "*.css"
15
+ "*.css",
16
+ "tailwind/*.cjs"
17
+ ],
18
+ "files": [
19
+ "tokens",
20
+ "tailwind",
21
+ "package.json",
22
+ "README.md",
23
+ "LICENSE"
16
24
  ],
17
25
  "peerDependencies": {
18
26
  "tailwindcss": "^3.4.0"
@@ -1,49 +0,0 @@
1
- const radii = {
2
- sm: 'var(--radius-sm)',
3
- md: 'var(--radius-md)',
4
- lg: 'var(--radius-lg)',
5
- };
6
- const motion = {
7
- fast: 'var(--duration-fast)',
8
- normal: 'var(--duration-normal)',
9
- slow: 'var(--duration-slow)',
10
- };
11
-
12
- const colors = {
13
- bg: 'var(--background-color)',
14
- fg: 'var(--text-color)',
15
- border: 'var(--border-color)',
16
- primary: 'var(--primary-color)',
17
- danger: 'var(--danger-color)',
18
- warning: 'var(--warning-color)',
19
- success: 'var(--success-color)',
20
- info: 'var(--info-color)',
21
- };
22
-
23
- /**
24
- * Tailwind preset for @tailng/theme.
25
- * Map Tailwind colors to CSS variables (no hardcoded colors here).
26
- */
27
- const tailngPreset = {
28
- theme: {
29
- extend: {
30
- colors: {
31
- bg: 'var(--background-color)',
32
- fg: 'var(--text-color)',
33
- border: 'var(--border-color)',
34
- primary: 'var(--primary-color)',
35
- danger: 'var(--danger-color)',
36
- warning: 'var(--warning-color)',
37
- success: 'var(--success-color)',
38
- info: 'var(--info-color)',
39
- },
40
- },
41
- },
42
- };
43
-
44
- /**
45
- * Generated bundle index. Do not edit.
46
- */
47
-
48
- export { colors, motion, radii, tailngPreset };
49
- //# sourceMappingURL=tociva-tailng-theme.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tociva-tailng-theme.mjs","sources":["../../../../libs/theme/src/scales/scales.ts","../../../../libs/theme/src/scales/colors.ts","../../../../libs/theme/src/tailwind/tailwind.preset.ts","../../../../libs/theme/src/tociva-tailng-theme.ts"],"sourcesContent":["export const radii = {\n sm: 'var(--radius-sm)',\n md: 'var(--radius-md)',\n lg: 'var(--radius-lg)',\n} as const;\n\nexport const motion = {\n fast: 'var(--duration-fast)',\n normal: 'var(--duration-normal)',\n slow: 'var(--duration-slow)',\n} as const;\n","export const colors = {\n bg: 'var(--background-color)',\n fg: 'var(--text-color)',\n border: 'var(--border-color)',\n\n primary: 'var(--primary-color)',\n danger: 'var(--danger-color)',\n warning: 'var(--warning-color)',\n success: 'var(--success-color)',\n info: 'var(--info-color)',\n} as const;\n","import type { Config } from 'tailwindcss';\n\n/**\n * Tailwind preset for @tailng/theme.\n * Map Tailwind colors to CSS variables (no hardcoded colors here).\n */\nexport const tailngPreset: Partial<Config> = {\n theme: {\n extend: {\n colors: {\n bg: 'var(--background-color)',\n fg: 'var(--text-color)',\n border: 'var(--border-color)',\n\n primary: 'var(--primary-color)',\n danger: 'var(--danger-color)',\n warning: 'var(--warning-color)',\n success: 'var(--success-color)',\n info: 'var(--info-color)',\n },\n },\n },\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAO,MAAM,KAAK,GAAG;AACnB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB;AACtB,IAAA,EAAE,EAAE,kBAAkB;;AAGjB,MAAM,MAAM,GAAG;AACpB,IAAA,IAAI,EAAE,sBAAsB;AAC5B,IAAA,MAAM,EAAE,wBAAwB;AAChC,IAAA,IAAI,EAAE,sBAAsB;;;ACTvB,MAAM,MAAM,GAAG;AACpB,IAAA,EAAE,EAAE,yBAAyB;AAC7B,IAAA,EAAE,EAAE,mBAAmB;AACvB,IAAA,MAAM,EAAE,qBAAqB;AAE7B,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,MAAM,EAAE,qBAAqB;AAC7B,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,IAAI,EAAE,mBAAmB;;;ACP3B;;;AAGG;AACI,MAAM,YAAY,GAAoB;AAC3C,IAAA,KAAK,EAAE;AACL,QAAA,MAAM,EAAE;AACN,YAAA,MAAM,EAAE;AACN,gBAAA,EAAE,EAAE,yBAAyB;AAC7B,gBAAA,EAAE,EAAE,mBAAmB;AACvB,gBAAA,MAAM,EAAE,qBAAqB;AAE7B,gBAAA,OAAO,EAAE,sBAAsB;AAC/B,gBAAA,MAAM,EAAE,qBAAqB;AAC7B,gBAAA,OAAO,EAAE,sBAAsB;AAC/B,gBAAA,OAAO,EAAE,sBAAsB;AAC/B,gBAAA,IAAI,EAAE,mBAAmB;AAC1B,aAAA;AACF,SAAA;AACF,KAAA;;;ACrBH;;AAEG;;;;"}
@@ -1,31 +0,0 @@
1
- import { Config } from 'tailwindcss';
2
-
3
- declare const radii: {
4
- readonly sm: "var(--radius-sm)";
5
- readonly md: "var(--radius-md)";
6
- readonly lg: "var(--radius-lg)";
7
- };
8
- declare const motion: {
9
- readonly fast: "var(--duration-fast)";
10
- readonly normal: "var(--duration-normal)";
11
- readonly slow: "var(--duration-slow)";
12
- };
13
-
14
- declare const colors: {
15
- readonly bg: "var(--background-color)";
16
- readonly fg: "var(--text-color)";
17
- readonly border: "var(--border-color)";
18
- readonly primary: "var(--primary-color)";
19
- readonly danger: "var(--danger-color)";
20
- readonly warning: "var(--warning-color)";
21
- readonly success: "var(--success-color)";
22
- readonly info: "var(--info-color)";
23
- };
24
-
25
- /**
26
- * Tailwind preset for @tailng/theme.
27
- * Map Tailwind colors to CSS variables (no hardcoded colors here).
28
- */
29
- declare const tailngPreset: Partial<Config>;
30
-
31
- export { colors, motion, radii, tailngPreset };