@w-iris/tokens 0.1.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/dist/index.d.ts +43 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/package.json +17 -0
- package/src/index.ts +43 -0
- package/tsconfig.json +8 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const irisTokens: {
|
|
2
|
+
readonly color: {
|
|
3
|
+
readonly primary: "#2563eb";
|
|
4
|
+
readonly primaryHover: "#1d4ed8";
|
|
5
|
+
readonly secondary: "#64748b";
|
|
6
|
+
readonly success: "#16a34a";
|
|
7
|
+
readonly warning: "#f59e0b";
|
|
8
|
+
readonly danger: "#dc2626";
|
|
9
|
+
readonly surface: "#ffffff";
|
|
10
|
+
readonly surfaceMuted: "#f8fafc";
|
|
11
|
+
readonly border: "#dbe4f0";
|
|
12
|
+
readonly text: "#111827";
|
|
13
|
+
readonly muted: "#64748b";
|
|
14
|
+
};
|
|
15
|
+
readonly spacing: {
|
|
16
|
+
readonly xs: "0.25rem";
|
|
17
|
+
readonly sm: "0.5rem";
|
|
18
|
+
readonly md: "0.75rem";
|
|
19
|
+
readonly lg: "1rem";
|
|
20
|
+
readonly xl: "1.5rem";
|
|
21
|
+
readonly "2xl": "2rem";
|
|
22
|
+
};
|
|
23
|
+
readonly radius: {
|
|
24
|
+
readonly sm: "0.375rem";
|
|
25
|
+
readonly md: "0.5rem";
|
|
26
|
+
readonly lg: "0.75rem";
|
|
27
|
+
readonly full: "999px";
|
|
28
|
+
};
|
|
29
|
+
readonly shadow: {
|
|
30
|
+
readonly sm: "0 1px 2px rgba(16, 24, 40, 0.06)";
|
|
31
|
+
readonly md: "0 12px 30px rgba(15, 23, 42, 0.12)";
|
|
32
|
+
};
|
|
33
|
+
readonly font: {
|
|
34
|
+
readonly sans: "Inter, \"Segoe UI\", Arial, sans-serif";
|
|
35
|
+
readonly mono: "Consolas, \"Courier New\", monospace";
|
|
36
|
+
};
|
|
37
|
+
readonly motion: {
|
|
38
|
+
readonly fast: "120ms";
|
|
39
|
+
readonly normal: "180ms";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type IrisTokens = typeof irisTokens;
|
|
43
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export const irisTokens = {
|
|
2
|
+
color: {
|
|
3
|
+
primary: "#2563eb",
|
|
4
|
+
primaryHover: "#1d4ed8",
|
|
5
|
+
secondary: "#64748b",
|
|
6
|
+
success: "#16a34a",
|
|
7
|
+
warning: "#f59e0b",
|
|
8
|
+
danger: "#dc2626",
|
|
9
|
+
surface: "#ffffff",
|
|
10
|
+
surfaceMuted: "#f8fafc",
|
|
11
|
+
border: "#dbe4f0",
|
|
12
|
+
text: "#111827",
|
|
13
|
+
muted: "#64748b",
|
|
14
|
+
},
|
|
15
|
+
spacing: {
|
|
16
|
+
xs: "0.25rem",
|
|
17
|
+
sm: "0.5rem",
|
|
18
|
+
md: "0.75rem",
|
|
19
|
+
lg: "1rem",
|
|
20
|
+
xl: "1.5rem",
|
|
21
|
+
"2xl": "2rem",
|
|
22
|
+
},
|
|
23
|
+
radius: {
|
|
24
|
+
sm: "0.375rem",
|
|
25
|
+
md: "0.5rem",
|
|
26
|
+
lg: "0.75rem",
|
|
27
|
+
full: "999px",
|
|
28
|
+
},
|
|
29
|
+
shadow: {
|
|
30
|
+
sm: "0 1px 2px rgba(16, 24, 40, 0.06)",
|
|
31
|
+
md: "0 12px 30px rgba(15, 23, 42, 0.12)",
|
|
32
|
+
},
|
|
33
|
+
font: {
|
|
34
|
+
sans: 'Inter, "Segoe UI", Arial, sans-serif',
|
|
35
|
+
mono: 'Consolas, "Courier New", monospace',
|
|
36
|
+
},
|
|
37
|
+
motion: {
|
|
38
|
+
fast: "120ms",
|
|
39
|
+
normal: "180ms",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,KAAK,EAAE;QACL,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,SAAS;QACvB,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,MAAM,EAAE,SAAS;QACjB,OAAO,EAAE,SAAS;QAClB,YAAY,EAAE,SAAS;QACvB,MAAM,EAAE,SAAS;QACjB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE,SAAS;KACjB;IACD,OAAO,EAAE;QACP,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,SAAS;QACb,EAAE,EAAE,MAAM;QACV,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,MAAM;KACd;IACD,MAAM,EAAE;QACN,EAAE,EAAE,UAAU;QACd,EAAE,EAAE,QAAQ;QACZ,EAAE,EAAE,SAAS;QACb,IAAI,EAAE,OAAO;KACd;IACD,MAAM,EAAE;QACN,EAAE,EAAE,kCAAkC;QACtC,EAAE,EAAE,oCAAoC;KACzC;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,sCAAsC;QAC5C,IAAI,EAAE,oCAAoC;KAC3C;IACD,MAAM,EAAE;QACN,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,OAAO;KAChB;CACO,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@w-iris/tokens",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "tsc -p tsconfig.json",
|
|
15
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
16
|
+
}
|
|
17
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export const irisTokens = {
|
|
2
|
+
color: {
|
|
3
|
+
primary: "#2563eb",
|
|
4
|
+
primaryHover: "#1d4ed8",
|
|
5
|
+
secondary: "#64748b",
|
|
6
|
+
success: "#16a34a",
|
|
7
|
+
warning: "#f59e0b",
|
|
8
|
+
danger: "#dc2626",
|
|
9
|
+
surface: "#ffffff",
|
|
10
|
+
surfaceMuted: "#f8fafc",
|
|
11
|
+
border: "#dbe4f0",
|
|
12
|
+
text: "#111827",
|
|
13
|
+
muted: "#64748b",
|
|
14
|
+
},
|
|
15
|
+
spacing: {
|
|
16
|
+
xs: "0.25rem",
|
|
17
|
+
sm: "0.5rem",
|
|
18
|
+
md: "0.75rem",
|
|
19
|
+
lg: "1rem",
|
|
20
|
+
xl: "1.5rem",
|
|
21
|
+
"2xl": "2rem",
|
|
22
|
+
},
|
|
23
|
+
radius: {
|
|
24
|
+
sm: "0.375rem",
|
|
25
|
+
md: "0.5rem",
|
|
26
|
+
lg: "0.75rem",
|
|
27
|
+
full: "999px",
|
|
28
|
+
},
|
|
29
|
+
shadow: {
|
|
30
|
+
sm: "0 1px 2px rgba(16, 24, 40, 0.06)",
|
|
31
|
+
md: "0 12px 30px rgba(15, 23, 42, 0.12)",
|
|
32
|
+
},
|
|
33
|
+
font: {
|
|
34
|
+
sans: 'Inter, "Segoe UI", Arial, sans-serif',
|
|
35
|
+
mono: 'Consolas, "Courier New", monospace',
|
|
36
|
+
},
|
|
37
|
+
motion: {
|
|
38
|
+
fast: "120ms",
|
|
39
|
+
normal: "180ms",
|
|
40
|
+
},
|
|
41
|
+
} as const;
|
|
42
|
+
|
|
43
|
+
export type IrisTokens = typeof irisTokens;
|