@marianmeres/design-tokens 1.0.3 → 1.0.4
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/dist/mod.d.ts +33 -3
- package/dist/mod.js +11 -2
- package/package.json +1 -1
package/dist/mod.d.ts
CHANGED
|
@@ -7,7 +7,37 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
export
|
|
12
|
-
|
|
10
|
+
/** Generate CSS token key-value pairs from a {@link TokenSchema}. */
|
|
11
|
+
export { generateCssTokens } from "./generate.js";
|
|
12
|
+
/** Generate complete CSS for a theme (light + optional dark mode). */
|
|
13
|
+
export { generateThemeCss } from "./generate.js";
|
|
14
|
+
/** Convert a tokens record to a CSS declaration block string. */
|
|
15
|
+
export { toCssString } from "./generate.js";
|
|
16
|
+
/** Base color value with optional hover/active pseudo states. */
|
|
17
|
+
export type { ColorPair } from "./types.js";
|
|
18
|
+
/** Color value: a hex string or an object with DEFAULT and optional pseudo states. */
|
|
19
|
+
export type { ColorValue } from "./types.js";
|
|
20
|
+
/** Generated CSS token key-value pairs (without the `--` prefix on keys). */
|
|
21
|
+
export type { GeneratedTokens } from "./types.js";
|
|
22
|
+
/** Known intent color keys: primary, accent, destructive, warning, success. */
|
|
23
|
+
export type { IntentColorKey } from "./types.js";
|
|
24
|
+
/** Known role color keys (paired with foreground): background, muted, surface. */
|
|
25
|
+
export type { RolePairedKey } from "./types.js";
|
|
26
|
+
/** Known role color keys (single value): foreground, border, input, ring. */
|
|
27
|
+
export type { RoleSingleKey } from "./types.js";
|
|
28
|
+
/** Single color: either a plain hex string or a {@link ColorValue} object. */
|
|
29
|
+
export type { SingleColor } from "./types.js";
|
|
30
|
+
/** A complete theme definition with required light mode and optional dark mode. */
|
|
31
|
+
export type { ThemeSchema } from "./types.js";
|
|
32
|
+
/** Complete token schema for a single mode (light or dark). */
|
|
33
|
+
export type { TokenSchema } from "./types.js";
|
|
34
|
+
/** Helper: partial known keys, allow additional. */
|
|
35
|
+
export type { WithOptional } from "./types.js";
|
|
36
|
+
/** Helper: require known keys, allow additional. */
|
|
37
|
+
export type { WithRequired } from "./types.js";
|
|
38
|
+
/** Parse a hex color string to an `[r, g, b]` tuple. */
|
|
39
|
+
export { hexToRgb } from "./utils.js";
|
|
40
|
+
/** Convert a hex color to an `"r, g, b"` triplet string. */
|
|
41
|
+
export { hexToRgbTriplet } from "./utils.js";
|
|
42
|
+
/** Complete Tailwind CSS v3 color palette as hex values. */
|
|
13
43
|
export { colors } from "./colors.js";
|
package/dist/mod.js
CHANGED
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
export {
|
|
10
|
+
/** Generate CSS token key-value pairs from a {@link TokenSchema}. */
|
|
11
|
+
export { generateCssTokens } from "./generate.js";
|
|
12
|
+
/** Generate complete CSS for a theme (light + optional dark mode). */
|
|
13
|
+
export { generateThemeCss } from "./generate.js";
|
|
14
|
+
/** Convert a tokens record to a CSS declaration block string. */
|
|
15
|
+
export { toCssString } from "./generate.js";
|
|
16
|
+
/** Parse a hex color string to an `[r, g, b]` tuple. */
|
|
17
|
+
export { hexToRgb } from "./utils.js";
|
|
18
|
+
/** Convert a hex color to an `"r, g, b"` triplet string. */
|
|
19
|
+
export { hexToRgbTriplet } from "./utils.js";
|
|
20
|
+
/** Complete Tailwind CSS v3 color palette as hex values. */
|
|
12
21
|
export { colors } from "./colors.js";
|