@spark-ui/theme-utils 1.2.0 → 2.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.0.1](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@2.0.0...@spark-ui/theme-utils@2.0.1) (2023-02-17)
7
+
8
+ **Note:** Version bump only for package @spark-ui/theme-utils
9
+
10
+ # [2.0.0](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@1.2.0...@spark-ui/theme-utils@2.0.0) (2023-02-14)
11
+
12
+ ### Features
13
+
14
+ - split the theme utils package into two distinct packages ([77def01](https://github.com/adevinta/spark/commit/77def01abd8b2ccf4f234093133294071e407231)), closes [#235](https://github.com/adevinta/spark/issues/235)
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ - Split the theme utils package into two distinct packages
19
+
6
20
  # [1.2.0](https://github.com/adevinta/spark/compare/@spark-ui/theme-utils@1.1.1...@spark-ui/theme-utils@1.2.0) (2023-02-13)
7
21
 
8
22
  ### Features
package/dist/index.d.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export { createTheme } from './createTheme';
2
- export { createTailwindThemeConfigFile } from './createTailwindThemeConfigFile';
3
- export { createCSSTokensFile } from './createCSSTokensFile';
4
2
  export { defaultTheme } from './defaultTheme';
5
3
  export type { Theme } from './types';
package/dist/index.js CHANGED
@@ -1,6 +1 @@
1
- "use strict";var M=Object.defineProperty,P=Object.defineProperties;var z=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var y=(e,r,t)=>r in e?M(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,$=(e,r)=>{for(var t in r||(r={}))g.call(r,t)&&y(e,t,r[t]);if(m)for(var t of m(r))b.call(r,t)&&y(e,t,r[t]);return e},h=(e,r)=>P(e,z(r));var S=(e,r)=>{var t={};for(var n in e)g.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&m)for(var n of m(e))r.indexOf(n)<0&&b.call(e,n)&&(t[n]=e[n]);return t};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("deepmerge"),c=require("fs"),j=require("parent-module"),w=require("path"),U=require("hex-rgb"),d={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},borderWidth:{none:"0",xs:"0.1rem",s:"0.2rem",m:"0.4rem"},colors:{transparent:"transparent",bg:{primary:"#f28133",primaryAccent:"#ad4c07",primarySubtle:"#fba56c",secondary:"#3481f2",secondaryAccent:"#074aad",secondarySubtle:"#4c93f7",body:"#fff"},bd:{primary:"#f28133",secondary:"#3481f2"},fg:{default:"#334155",accent:"#1161d7",cta:"#000",ctaInverse:"#fff"}},fontFamily:{openSans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"'},fontSize:{xs:"1rem",s:"1.2rem",m:"1.4rem",l:"1.6rem",xl:"1.8rem","2xl":"2rem","3xl":"2.4rem"},fontWeight:{regular:400,semibold:600,bold:700},lineHeight:{xs:"1.4rem",s:"1.7rem",m:"1.9rem",l:"2.2rem",xl:"2.4rem","2xl":"2.6rem","3xl":"2.8rem"},width:{pageMin:"320px",pageMax:"1066px"},borderRadius:{none:"0",xs:"0.4rem",s:"0.8rem",m:"1.6rem",l:"2.4rem",full:"100%"},boxShadow:{none:"none",normal:"0 -1px 4px 0 rgba(26, 26, 26, 0.08), 0 4px 8px 0 rgba(26, 26, 26, 0.12)",highlighted:"0 -1px 8px 0 rgba(26, 26, 26, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.14)"},spacing:{auto:"auto",none:"0",xs:"0.4rem",s:"0.8rem",m:"1.6rem",l:"2.4rem",xl:"3.2rem",xxl:"4rem"},zIndex:{hide:-1,base:0,raised:1,dropdown:1e3,sticky:1100,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}};function N(e){return Object.entries(e)}function l(e){return e.replace(/[A-Z]/g,r=>`-${r.toLocaleLowerCase()}`)}function O(e){return typeof e=="number"?!1:/^#[0-9a-fA-F]+$/.test(e)}function A(e){return typeof e=="string"||typeof e=="number"}function C(e,r=1){const t={};for(const n in e){const o=typeof e[n]=="object"?C(e[n],r+1):e[n];t[r>1?n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():n]=o}return t}function k(e){let r=function(n){var i;const o=n.slice(n.indexOf(":")+1);return o.replace(((i=o.match(/\/([^/]+)\.(jsx|js|tsx|ts|mjs|mts|cjs|cts)(?!$)/g))==null?void 0:i.at(0))||"","")}(e).replace(/\\/g,"/"),t="";return r[0]==="/"?(t="/",r=r.slice(1)):r[1]===":"&&(t=r.slice(0,3),r=r.slice(3)),{filepath:r,rootPath:t}}function H(e){const r=JSON.parse(JSON.stringify(e));return function t(n,o){N(n).forEach(([i,a])=>{if(a===null||typeof a!="object"){if(A(a)){const f=/--colors/.test(o||"")&&O(a)?`rgb(var(${o}-${l(i)}) / <alpha-value>)`:`var(${o}-${l(i)})`;n[i]=f}}else t(a,l((o?`--${o}-${i}`:`--${i}`).replace(/-{3,}/,"--")))})}(r),C(r)}const v=e=>Object.entries(e).map(([r,t])=>`${r}:${t}`).join(";"),R=e=>{return(r=e,Object.keys(r)).map(t=>{const i=function(a,f){const x={};return function F(T,u){N(T).forEach(([p,s])=>{if(s===null||typeof s!="object"){if(A(s)){const q=()=>{if(O(s)){const{red:E,green:I,blue:L}=U(s);return`${E} ${I} ${L}`}return s};x[`${u}-${l(p)}`]=q()}}else F(s,l((u?`--${u}-${p}`:`--${p}`).replace(/-{3,}/,"--")))})}(a),h($({},x),{className:f})}(e[t],t),{className:n}=i,o=S(i,["className"]);return t==="default"?`:root{${v(o)}}`:`.${n}{${v(o)}}`});var r};exports.createCSSTokensFile=function(e,r){const{filepath:t,rootPath:n}=k(w.join(j()||"",e));t.split("/").slice(0,-1).reduce((o,i)=>{const a=o+i+"/";return c.existsSync(a)||c.mkdirSync(a),a},n);try{c.appendFileSync(n+t,`
2
- @tailwind base;
3
- @tailwind components;
4
- @tailwind utilities;
5
- @layer base {${R(r).join("")}}
6
- `,{flag:"w"}),console.log(`✨ CSS tokens file has been created 👉 ${e}`)}catch(o){console.error(o)}},exports.createTailwindThemeConfigFile=function(e){const{filepath:r,rootPath:t}=k(w.join(j()||"",e));r.split("/").slice(0,-1).reduce((n,o)=>{const i=n+o+"/";return c.existsSync(i)||c.mkdirSync(i),i},t);try{c.writeFileSync(t+r,`module.exports = ${JSON.stringify(H(d))}`,{flag:"w"}),console.log(`✨ Tailwind theme config file has been created 👉 ${e}`)}catch(n){console.error(n)}},exports.createTheme=function(e={}){return J(d,e)},exports.defaultTheme=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("deepmerge"),e={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},borderWidth:{none:"0",xs:"0.1rem",s:"0.2rem",m:"0.4rem"},colors:{transparent:"transparent",bg:{primary:"#f28133",primaryAccent:"#ad4c07",primarySubtle:"#fba56c",secondary:"#3481f2",secondaryAccent:"#074aad",secondarySubtle:"#4c93f7",body:"#fff"},bd:{primary:"#f28133",secondary:"#3481f2"},fg:{default:"#334155",accent:"#1161d7",cta:"#000",ctaInverse:"#fff"}},fontFamily:{openSans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"'},fontSize:{xs:"1rem",s:"1.2rem",m:"1.4rem",l:"1.6rem",xl:"1.8rem","2xl":"2rem","3xl":"2.4rem"},fontWeight:{regular:400,semibold:600,bold:700},lineHeight:{xs:"1.4rem",s:"1.7rem",m:"1.9rem",l:"2.2rem",xl:"2.4rem","2xl":"2.6rem","3xl":"2.8rem"},width:{pageMin:"320px",pageMax:"1066px"},borderRadius:{none:"0",xs:"0.4rem",s:"0.8rem",m:"1.6rem",l:"2.4rem",full:"100%"},boxShadow:{none:"none",normal:"0 -1px 4px 0 rgba(26, 26, 26, 0.08), 0 4px 8px 0 rgba(26, 26, 26, 0.12)",highlighted:"0 -1px 8px 0 rgba(26, 26, 26, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.14)"},spacing:{auto:"auto",none:"0",xs:"0.4rem",s:"0.8rem",m:"1.6rem",l:"2.4rem",xl:"3.2rem",xxl:"4rem"},zIndex:{hide:-1,base:0,raised:1,dropdown:1e3,sticky:1100,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}};exports.createTheme=function(r={}){return o(e,r)},exports.defaultTheme=e;
package/dist/index.mjs CHANGED
@@ -1,133 +1,9 @@
1
- var M = Object.defineProperty, P = Object.defineProperties;
2
- var U = Object.getOwnPropertyDescriptors;
3
- var l = Object.getOwnPropertySymbols;
4
- var x = Object.prototype.hasOwnProperty, g = Object.prototype.propertyIsEnumerable;
5
- var d = (e, r, t) => r in e ? M(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, b = (e, r) => {
6
- for (var t in r || (r = {}))
7
- x.call(r, t) && d(e, t, r[t]);
8
- if (l)
9
- for (var t of l(r))
10
- g.call(r, t) && d(e, t, r[t]);
11
- return e;
12
- }, y = (e, r) => P(e, U(r));
13
- var $ = (e, r) => {
14
- var t = {};
15
- for (var o in e)
16
- x.call(e, o) && r.indexOf(o) < 0 && (t[o] = e[o]);
17
- if (e != null && l)
18
- for (var o of l(e))
19
- r.indexOf(o) < 0 && g.call(e, o) && (t[o] = e[o]);
20
- return t;
21
- };
22
- import H from "deepmerge";
23
- import { existsSync as S, mkdirSync as j, writeFileSync as R, appendFileSync as W } from "fs";
24
- import w from "parent-module";
25
- import { join as k } from "path";
26
- import Z from "hex-rgb";
27
- const v = { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, borderWidth: { none: "0", xs: "0.1rem", s: "0.2rem", m: "0.4rem" }, colors: { transparent: "transparent", bg: { primary: "#f28133", primaryAccent: "#ad4c07", primarySubtle: "#fba56c", secondary: "#3481f2", secondaryAccent: "#074aad", secondarySubtle: "#4c93f7", body: "#fff" }, bd: { primary: "#f28133", secondary: "#3481f2" }, fg: { default: "#334155", accent: "#1161d7", cta: "#000", ctaInverse: "#fff" } }, fontFamily: { openSans: 'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"' }, fontSize: { xs: "1rem", s: "1.2rem", m: "1.4rem", l: "1.6rem", xl: "1.8rem", "2xl": "2rem", "3xl": "2.4rem" }, fontWeight: { regular: 400, semibold: 600, bold: 700 }, lineHeight: { xs: "1.4rem", s: "1.7rem", m: "1.9rem", l: "2.2rem", xl: "2.4rem", "2xl": "2.6rem", "3xl": "2.8rem" }, width: { pageMin: "320px", pageMax: "1066px" }, borderRadius: { none: "0", xs: "0.4rem", s: "0.8rem", m: "1.6rem", l: "2.4rem", full: "100%" }, boxShadow: { none: "none", normal: "0 -1px 4px 0 rgba(26, 26, 26, 0.08), 0 4px 8px 0 rgba(26, 26, 26, 0.12)", highlighted: "0 -1px 8px 0 rgba(26, 26, 26, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.14)" }, spacing: { auto: "auto", none: "0", xs: "0.4rem", s: "0.8rem", m: "1.6rem", l: "2.4rem", xl: "3.2rem", xxl: "4rem" }, zIndex: { hide: -1, base: 0, raised: 1, dropdown: 1e3, sticky: 1100, overlay: 1300, modal: 1400, popover: 1500, skipLink: 1600, toast: 1700, tooltip: 1800 } };
28
- function Y(e = {}) {
29
- return H(v, e);
30
- }
31
- function N(e) {
32
- return Object.entries(e);
33
- }
34
- function c(e) {
35
- return e.replace(/[A-Z]/g, (r) => `-${r.toLocaleLowerCase()}`);
36
- }
37
- function A(e) {
38
- return typeof e == "number" ? !1 : /^#[0-9a-fA-F]+$/.test(e);
39
- }
40
- function C(e) {
41
- return typeof e == "string" || typeof e == "number";
42
- }
43
- function F(e, r = 1) {
44
- const t = {};
45
- for (const o in e) {
46
- const n = typeof e[o] == "object" ? F(e[o], r + 1) : e[o];
47
- t[r > 1 ? o.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase() : o] = n;
48
- }
49
- return t;
50
- }
51
- function O(e) {
52
- let r = function(o) {
53
- var s;
54
- const n = o.slice(o.indexOf(":") + 1);
55
- return n.replace(((s = n.match(/\/([^/]+)\.(jsx|js|tsx|ts|mjs|mts|cjs|cts)(?!$)/g)) == null ? void 0 : s.at(0)) || "", "");
56
- }(e).replace(/\\/g, "/"), t = "";
57
- return r[0] === "/" ? (t = "/", r = r.slice(1)) : r[1] === ":" && (t = r.slice(0, 3), r = r.slice(3)), { filepath: r, rootPath: t };
58
- }
59
- function B(e) {
60
- const r = JSON.parse(JSON.stringify(e));
61
- return function t(o, n) {
62
- N(o).forEach(([s, a]) => {
63
- if (a === null || typeof a != "object") {
64
- if (C(a)) {
65
- const m = /--colors/.test(n || "") && A(a) ? `rgb(var(${n}-${c(s)}) / <alpha-value>)` : `var(${n}-${c(s)})`;
66
- o[s] = m;
67
- }
68
- } else
69
- t(a, c((n ? `--${n}-${s}` : `--${s}`).replace(/-{3,}/, "--")));
70
- });
71
- }(r), F(r);
72
- }
73
- function _(e) {
74
- const { filepath: r, rootPath: t } = O(k(w() || "", e));
75
- r.split("/").slice(0, -1).reduce((o, n) => {
76
- const s = o + n + "/";
77
- return S(s) || j(s), s;
78
- }, t);
79
- try {
80
- R(t + r, `module.exports = ${JSON.stringify(B(v))}`, { flag: "w" }), console.log(`✨ Tailwind theme config file has been created 👉 ${e}`);
81
- } catch (o) {
82
- console.error(o);
83
- }
84
- }
85
- const h = (e) => Object.entries(e).map(([r, t]) => `${r}:${t}`).join(";"), q = (e) => {
86
- return (r = e, Object.keys(r)).map((t) => {
87
- const s = function(a, m) {
88
- const u = {};
89
- return function T(E, f) {
90
- N(E).forEach(([p, i]) => {
91
- if (i === null || typeof i != "object") {
92
- if (C(i)) {
93
- const I = () => {
94
- if (A(i)) {
95
- const { red: L, green: z, blue: J } = Z(i);
96
- return `${L} ${z} ${J}`;
97
- }
98
- return i;
99
- };
100
- u[`${f}-${c(p)}`] = I();
101
- }
102
- } else
103
- T(i, c((f ? `--${f}-${p}` : `--${p}`).replace(/-{3,}/, "--")));
104
- });
105
- }(a), y(b({}, u), { className: m });
106
- }(e[t], t), { className: o } = s, n = $(s, ["className"]);
107
- return t === "default" ? `:root{${h(n)}}` : `.${o}{${h(n)}}`;
108
- });
109
- var r;
110
- };
111
- function ee(e, r) {
112
- const { filepath: t, rootPath: o } = O(k(w() || "", e));
113
- t.split("/").slice(0, -1).reduce((n, s) => {
114
- const a = n + s + "/";
115
- return S(a) || j(a), a;
116
- }, o);
117
- try {
118
- W(o + t, `
119
- @tailwind base;
120
- @tailwind components;
121
- @tailwind utilities;
122
- @layer base {${q(r).join("")}}
123
- `, { flag: "w" }), console.log(`✨ CSS tokens file has been created 👉 ${e}`);
124
- } catch (n) {
125
- console.error(n);
126
- }
1
+ import r from "deepmerge";
2
+ const o = { screens: { sm: "640px", md: "768px", lg: "1024px", xl: "1280px", "2xl": "1536px" }, borderWidth: { none: "0", xs: "0.1rem", s: "0.2rem", m: "0.4rem" }, colors: { transparent: "transparent", bg: { primary: "#f28133", primaryAccent: "#ad4c07", primarySubtle: "#fba56c", secondary: "#3481f2", secondaryAccent: "#074aad", secondarySubtle: "#4c93f7", body: "#fff" }, bd: { primary: "#f28133", secondary: "#3481f2" }, fg: { default: "#334155", accent: "#1161d7", cta: "#000", ctaInverse: "#fff" } }, fontFamily: { openSans: 'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"' }, fontSize: { xs: "1rem", s: "1.2rem", m: "1.4rem", l: "1.6rem", xl: "1.8rem", "2xl": "2rem", "3xl": "2.4rem" }, fontWeight: { regular: 400, semibold: 600, bold: 700 }, lineHeight: { xs: "1.4rem", s: "1.7rem", m: "1.9rem", l: "2.2rem", xl: "2.4rem", "2xl": "2.6rem", "3xl": "2.8rem" }, width: { pageMin: "320px", pageMax: "1066px" }, borderRadius: { none: "0", xs: "0.4rem", s: "0.8rem", m: "1.6rem", l: "2.4rem", full: "100%" }, boxShadow: { none: "none", normal: "0 -1px 4px 0 rgba(26, 26, 26, 0.08), 0 4px 8px 0 rgba(26, 26, 26, 0.12)", highlighted: "0 -1px 8px 0 rgba(26, 26, 26, 0.12), 0 4px 8px 0 rgba(0, 0, 0, 0.14)" }, spacing: { auto: "auto", none: "0", xs: "0.4rem", s: "0.8rem", m: "1.6rem", l: "2.4rem", xl: "3.2rem", xxl: "4rem" }, zIndex: { hide: -1, base: 0, raised: 1, dropdown: 1e3, sticky: 1100, overlay: 1300, modal: 1400, popover: 1500, skipLink: 1600, toast: 1700, tooltip: 1800 } };
3
+ function a(e = {}) {
4
+ return r(o, e);
127
5
  }
128
6
  export {
129
- ee as createCSSTokensFile,
130
- _ as createTailwindThemeConfigFile,
131
- Y as createTheme,
132
- v as defaultTheme
7
+ a as createTheme,
8
+ o as defaultTheme
133
9
  };
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@spark-ui/theme-utils",
3
- "version": "1.2.0",
4
- "description": "Theme configuration",
3
+ "version": "2.0.1",
4
+ "description": "package for managing Spark theme configuration",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "main": "./dist/index.mjs",
8
+ "main": "./dist/index.js",
9
9
  "module": "./dist/index.mjs",
10
10
  "types": "./dist/index.d.ts",
11
11
  "scripts": {
@@ -13,9 +13,7 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "deepmerge": "4.3.0",
16
- "hex-rgb": "5.0.0",
17
- "parent-module": "3.0.0",
18
16
  "type-fest": "3.5.6"
19
17
  },
20
- "gitHead": "a854685e736add2fe4854ecd6bef7272ea4ab82f"
18
+ "gitHead": "51c01c9355b193d22f17eb7cc3f84aebbd2e3eeb"
21
19
  }
package/vite.config.ts CHANGED
@@ -16,7 +16,7 @@ export default {
16
16
  fileName: 'index',
17
17
  },
18
18
  rollupOptions: {
19
- external: [...deps, ...devDeps, 'path', 'fs'],
19
+ external: [...deps, ...devDeps],
20
20
  plugins: [terser()],
21
21
  },
22
22
  },
@@ -1,25 +0,0 @@
1
- import type { RequireAtLeastOne } from 'type-fest';
2
- import type { Theme } from './types';
3
- /**
4
- * Creates a CSS file containing theme tokens represented as CSS custom properties
5
- *
6
- * @param {string} path - The file path where the CSS file will be created.
7
- * @param {Record<string, Theme>} themeRecord - A record (with a required key of "default") of themes that will be included in the CSS Tokens file.
8
- *
9
- * @returns {void}
10
- *
11
- * @example
12
- *
13
- * const defaultTheme: Theme = { ... }
14
- * const darkTheme: Theme = { ... }
15
- * const otherTheme: Theme = { ... }
16
- *
17
- * const themes = {
18
- * default: defaultTheme,
19
- * dark: darkTheme
20
- * other: otherTheme
21
- * }
22
- *
23
- * createCSSTokensFile('somePath.css', themes)
24
- */
25
- export declare function createCSSTokensFile(path: string, themeRecord: RequireAtLeastOne<Record<string, Theme>, 'default'>): void;
@@ -1,12 +0,0 @@
1
- /**
2
- * Creates a Tailwind config file that links the [theme options](https://tailwindcss.com/docs/theme#configuration-reference) provided by Tailwind with the CSS custom property values generated using the "createCSSTokensFile" function
3
- *
4
- * @param {string} path - The file path where the Tailwind config file will be created.
5
- *
6
- * @returns {void}
7
- *
8
- * @example
9
- *
10
- * createTailwindThemeConfigFile('tailwind.theme.js')
11
- */
12
- export declare function createTailwindThemeConfigFile(path: string): void;
package/dist/utils.d.ts DELETED
@@ -1,11 +0,0 @@
1
- declare function objectKeys<T extends Record<string | number, unknown>>(obj: T): (keyof T)[];
2
- declare function objectEntries<T extends Record<string | number, unknown>>(obj: T): [keyof T, T[keyof T]][];
3
- declare function toKebabCase(v: string): string;
4
- declare function isHex(value: string | number): value is string;
5
- declare function isStringOrNumber(value: unknown): value is string | number;
6
- declare function toKebabCaseKeys<T extends Object>(obj: T, level?: number): Record<string, T[keyof T]>;
7
- declare function buildFilePath(path: string): {
8
- filepath: string;
9
- rootPath: string;
10
- };
11
- export { objectKeys, objectEntries, toKebabCase, isHex, toKebabCaseKeys, buildFilePath, isStringOrNumber, };