@jsekulowicz/ds-tokens 0.1.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.
Files changed (61) hide show
  1. package/dist/base.css +127 -0
  2. package/dist/build/emit.d.ts +11 -0
  3. package/dist/build/emit.d.ts.map +1 -0
  4. package/dist/build/emit.js +25 -0
  5. package/dist/build/emit.js.map +1 -0
  6. package/dist/build/flatten.d.ts +6 -0
  7. package/dist/build/flatten.d.ts.map +1 -0
  8. package/dist/build/flatten.js +21 -0
  9. package/dist/build/flatten.js.map +1 -0
  10. package/dist/build.d.ts +2 -0
  11. package/dist/build.d.ts.map +1 -0
  12. package/dist/build.js +54 -0
  13. package/dist/build.js.map +1 -0
  14. package/dist/index.d.ts +3 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/index.js +3 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/primitive/breakpoints.d.ts +28 -0
  19. package/dist/primitive/breakpoints.d.ts.map +1 -0
  20. package/dist/primitive/breakpoints.js +25 -0
  21. package/dist/primitive/breakpoints.js.map +1 -0
  22. package/dist/primitive/color.d.ts +51 -0
  23. package/dist/primitive/color.d.ts.map +1 -0
  24. package/dist/primitive/color.js +50 -0
  25. package/dist/primitive/color.js.map +1 -0
  26. package/dist/primitive/index.d.ts +7 -0
  27. package/dist/primitive/index.d.ts.map +1 -0
  28. package/dist/primitive/index.js +7 -0
  29. package/dist/primitive/index.js.map +1 -0
  30. package/dist/primitive/motion.d.ts +16 -0
  31. package/dist/primitive/motion.d.ts.map +1 -0
  32. package/dist/primitive/motion.js +14 -0
  33. package/dist/primitive/motion.js.map +1 -0
  34. package/dist/primitive/shape.d.ts +24 -0
  35. package/dist/primitive/shape.d.ts.map +1 -0
  36. package/dist/primitive/shape.js +21 -0
  37. package/dist/primitive/shape.js.map +1 -0
  38. package/dist/primitive/spacing.d.ts +26 -0
  39. package/dist/primitive/spacing.d.ts.map +1 -0
  40. package/dist/primitive/spacing.js +27 -0
  41. package/dist/primitive/spacing.js.map +1 -0
  42. package/dist/primitive/typography.d.ts +39 -0
  43. package/dist/primitive/typography.d.ts.map +1 -0
  44. package/dist/primitive/typography.js +37 -0
  45. package/dist/primitive/typography.js.map +1 -0
  46. package/dist/semantic/dark.d.ts +136 -0
  47. package/dist/semantic/dark.d.ts.map +1 -0
  48. package/dist/semantic/dark.js +35 -0
  49. package/dist/semantic/dark.js.map +1 -0
  50. package/dist/semantic/index.d.ts +3 -0
  51. package/dist/semantic/index.d.ts.map +1 -0
  52. package/dist/semantic/index.js +3 -0
  53. package/dist/semantic/index.js.map +1 -0
  54. package/dist/semantic/light.d.ts +137 -0
  55. package/dist/semantic/light.d.ts.map +1 -0
  56. package/dist/semantic/light.js +52 -0
  57. package/dist/semantic/light.js.map +1 -0
  58. package/dist/theme-default-dark.css +226 -0
  59. package/dist/theme-default-light.css +113 -0
  60. package/dist/theme-default.css +3 -0
  61. package/package.json +47 -0
package/dist/base.css ADDED
@@ -0,0 +1,127 @@
1
+ @layer ds.base, ds.theme, ds.components, ds.utilities;
2
+ /* Generated by @jsekulowicz/ds-tokens — do not edit by hand. */
3
+ /* Run `pnpm --filter @jsekulowicz/ds-tokens build` to regenerate. */
4
+
5
+ @layer ds.base {
6
+ :root {
7
+ --ds-border-hairline: 1px;
8
+ --ds-border-regular: 1.5px;
9
+ --ds-border-heavy: 2px;
10
+ --ds-breakpoint-sm: 480px;
11
+ --ds-breakpoint-md: 768px;
12
+ --ds-breakpoint-lg: 1024px;
13
+ --ds-breakpoint-xl: 1280px;
14
+ --ds-breakpoint-2xl: 1536px;
15
+ --ds-color-ink-0: #0B0B0C;
16
+ --ds-color-ink-50: #1A1A1C;
17
+ --ds-color-ink-100: #2B2B2E;
18
+ --ds-color-ink-200: #3F3F43;
19
+ --ds-color-ink-300: #56565B;
20
+ --ds-color-ink-400: #6B6B6E;
21
+ --ds-color-ink-500: #86868A;
22
+ --ds-color-ink-600: #A6A6A9;
23
+ --ds-color-ink-700: #C5C5C7;
24
+ --ds-color-ink-800: #E2E2E3;
25
+ --ds-color-ink-900: #F2EFEA;
26
+ --ds-color-ink-1000: #FAF8F5;
27
+ --ds-color-vermilion-100: #FBEAE7;
28
+ --ds-color-vermilion-300: #F1988C;
29
+ --ds-color-vermilion-500: #E2341D;
30
+ --ds-color-vermilion-600: #C12613;
31
+ --ds-color-vermilion-700: #9A1B0C;
32
+ --ds-color-cobalt-100: #E8EEF9;
33
+ --ds-color-cobalt-300: #95AEDD;
34
+ --ds-color-cobalt-500: #4A72CC;
35
+ --ds-color-cobalt-600: #3860B8;
36
+ --ds-color-cobalt-700: #2750A2;
37
+ --ds-color-success-100: #E4F1EA;
38
+ --ds-color-success-500: #1F7A48;
39
+ --ds-color-warning-100: #FBF0DA;
40
+ --ds-color-warning-500: #A6620B;
41
+ --ds-color-danger-100: #FBE7E4;
42
+ --ds-color-danger-500: #B21A0A;
43
+ --ds-color-alpha-ink-hairline: rgba(11, 11, 12, 0.12);
44
+ --ds-color-alpha-ink-subtle: rgba(11, 11, 12, 0.06);
45
+ --ds-color-alpha-paper-hairline: rgba(242, 239, 234, 0.14);
46
+ --ds-color-alpha-paper-subtle: rgba(242, 239, 234, 0.06);
47
+ --ds-color-alpha-focus-ring: rgba(74, 114, 204, 0.35);
48
+ --ds-container-xs: 20rem;
49
+ --ds-container-sm: 30rem;
50
+ --ds-container-md: 48rem;
51
+ --ds-container-lg: 64rem;
52
+ --ds-container-xl: 80rem;
53
+ --ds-duration-instant: 80ms;
54
+ --ds-duration-fast: 120ms;
55
+ --ds-duration-normal: 180ms;
56
+ --ds-duration-slow: 240ms;
57
+ --ds-duration-slower: 320ms;
58
+ --ds-easing-standard: cubic-bezier(0.2, 0, 0, 1);
59
+ --ds-easing-emphasized: cubic-bezier(0.2, 0, 0.1, 1.1);
60
+ --ds-easing-enter: cubic-bezier(0, 0, 0, 1);
61
+ --ds-easing-exit: cubic-bezier(0.4, 0, 1, 1);
62
+ --ds-font-family-display: 'Fraunces', 'Times New Roman', Georgia, serif;
63
+ --ds-font-family-body: 'General Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
64
+ --ds-font-family-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
65
+ --ds-font-size-3xs: 0.6875rem;
66
+ --ds-font-size-2xs: 0.75rem;
67
+ --ds-font-size-xs: 0.8125rem;
68
+ --ds-font-size-sm: 0.875rem;
69
+ --ds-font-size-md: 1rem;
70
+ --ds-font-size-lg: 1.125rem;
71
+ --ds-font-size-xl: 1.375rem;
72
+ --ds-font-size-2xl: 1.75rem;
73
+ --ds-font-size-3xl: 2.25rem;
74
+ --ds-font-size-4xl: 3rem;
75
+ --ds-font-size-5xl: 4rem;
76
+ --ds-font-weight-regular: 400;
77
+ --ds-font-weight-medium: 500;
78
+ --ds-font-weight-semibold: 600;
79
+ --ds-font-weight-bold: 700;
80
+ --ds-letter-spacing-tight: -0.02em;
81
+ --ds-letter-spacing-normal: 0;
82
+ --ds-letter-spacing-wide: 0.04em;
83
+ --ds-letter-spacing-display: -0.01em;
84
+ --ds-line-height-tight: 1.1;
85
+ --ds-line-height-snug: 1.25;
86
+ --ds-line-height-normal: 1.45;
87
+ --ds-line-height-relaxed: 1.6;
88
+ --ds-radius-none: 0;
89
+ --ds-radius-xs: 2px;
90
+ --ds-radius-sm: 4px;
91
+ --ds-radius-md: 8px;
92
+ --ds-radius-lg: 12px;
93
+ --ds-radius-full: 9999px;
94
+ --ds-shadow-none: none;
95
+ --ds-shadow-sm: 0 1px 2px rgba(11, 11, 12, 0.06);
96
+ --ds-shadow-md: 0 4px 12px rgba(11, 11, 12, 0.08), 0 1px 2px rgba(11, 11, 12, 0.04);
97
+ --ds-shadow-lg: 0 12px 32px rgba(11, 11, 12, 0.10), 0 4px 8px rgba(11, 11, 12, 0.06);
98
+ --ds-shadow-focus: 0 0 0 3px rgba(74, 114, 204, 0.35);
99
+ --ds-size-xs: 1.75rem;
100
+ --ds-size-sm: 2rem;
101
+ --ds-size-md: 2.5rem;
102
+ --ds-size-lg: 3rem;
103
+ --ds-size-xl: 3.5rem;
104
+ --ds-space-0: 0;
105
+ --ds-space-1: 0.25rem;
106
+ --ds-space-2: 0.5rem;
107
+ --ds-space-3: 0.75rem;
108
+ --ds-space-4: 1rem;
109
+ --ds-space-5: 1.25rem;
110
+ --ds-space-6: 1.5rem;
111
+ --ds-space-8: 2rem;
112
+ --ds-space-10: 2.5rem;
113
+ --ds-space-12: 3rem;
114
+ --ds-space-16: 4rem;
115
+ --ds-space-20: 5rem;
116
+ --ds-space-24: 6rem;
117
+ --ds-space-32: 8rem;
118
+ --ds-z-index-base: 0;
119
+ --ds-z-index-raised: 10;
120
+ --ds-z-index-dropdown: 100;
121
+ --ds-z-index-sticky: 200;
122
+ --ds-z-index-overlay: 300;
123
+ --ds-z-index-modal: 400;
124
+ --ds-z-index-toast: 500;
125
+ --ds-z-index-tooltip: 600;
126
+ }
127
+ }
@@ -0,0 +1,11 @@
1
+ import type { FlatTokens } from './flatten.js';
2
+ export interface BlockOptions {
3
+ selector: string;
4
+ layer?: string;
5
+ mediaQuery?: string;
6
+ extraProps?: Record<string, string>;
7
+ }
8
+ export declare function renderBlock(tokens: FlatTokens, options: BlockOptions): string;
9
+ export declare function renderFile(header: string, blocks: string[]): string;
10
+ export declare const FILE_HEADER = "/* Generated by @jsekulowicz/ds-tokens \u2014 do not edit by hand. */\n/* Run `pnpm --filter @jsekulowicz/ds-tokens build` to regenerate. */";
11
+ //# sourceMappingURL=emit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emit.d.ts","sourceRoot":"","sources":["../../src/build/emit.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAQD,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAc7E;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAEnE;AAED,eAAO,MAAM,WAAW,iJACmH,CAAC"}
@@ -0,0 +1,25 @@
1
+ function renderVars(tokens, indent) {
2
+ return Object.entries(tokens)
3
+ .map(([name, value]) => `${indent}${name}: ${value};`)
4
+ .join('\n');
5
+ }
6
+ export function renderBlock(tokens, options) {
7
+ const { selector, layer, mediaQuery, extraProps } = options;
8
+ const extras = extraProps
9
+ ? Object.entries(extraProps)
10
+ .map(([k, v]) => ` ${k}: ${v};`)
11
+ .join('\n') + '\n'
12
+ : '';
13
+ const inner = extras + renderVars(tokens, ' ');
14
+ const rule = ` ${selector} {\n${inner}\n }`;
15
+ const layered = layer ? `@layer ${layer} {\n${rule}\n}` : rule.replace(/^ {2}/gm, '');
16
+ if (!mediaQuery) {
17
+ return layered;
18
+ }
19
+ return `@media ${mediaQuery} {\n${layered.replace(/^/gm, ' ')}\n}`;
20
+ }
21
+ export function renderFile(header, blocks) {
22
+ return `${header}\n\n${blocks.join('\n\n')}\n`;
23
+ }
24
+ export const FILE_HEADER = '/* Generated by @jsekulowicz/ds-tokens — do not edit by hand. */\n/* Run `pnpm --filter @jsekulowicz/ds-tokens build` to regenerate. */';
25
+ //# sourceMappingURL=emit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emit.js","sourceRoot":"","sources":["../../src/build/emit.ts"],"names":[],"mappings":"AASA,SAAS,UAAU,CAAC,MAAkB,EAAE,MAAc;IACpD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC;SAC1B,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,KAAK,KAAK,GAAG,CAAC;SACrD,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,MAAkB,EAAE,OAAqB;IACnE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC5D,MAAM,MAAM,GAAG,UAAU;QACvB,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;aACvB,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;aAClC,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI;QACtB,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,IAAI,GAAG,KAAK,QAAQ,OAAO,KAAK,OAAO,CAAC;IAC9C,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,UAAU,KAAK,OAAO,IAAI,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtF,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,UAAU,UAAU,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,MAAc,EAAE,MAAgB;IACzD,OAAO,GAAG,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;AACjD,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GACtB,yIAAyI,CAAC"}
@@ -0,0 +1,6 @@
1
+ export type TokenTree = {
2
+ [key: string]: string | number | TokenTree;
3
+ };
4
+ export type FlatTokens = Record<string, string>;
5
+ export declare function flatten(tree: TokenTree, prefix?: string): FlatTokens;
6
+ //# sourceMappingURL=flatten.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten.d.ts","sourceRoot":"","sources":["../../src/build/flatten.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC;AACvE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAShD,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,SAAS,GAAG,UAAU,CAYpE"}
@@ -0,0 +1,21 @@
1
+ function kebab(key) {
2
+ return String(key)
3
+ .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
4
+ .replace(/\./g, '-')
5
+ .toLowerCase();
6
+ }
7
+ export function flatten(tree, prefix = '--ds') {
8
+ const out = {};
9
+ for (const [rawKey, value] of Object.entries(tree)) {
10
+ const key = kebab(rawKey);
11
+ const path = `${prefix}-${key}`;
12
+ if (value !== null && typeof value === 'object') {
13
+ Object.assign(out, flatten(value, path));
14
+ }
15
+ else {
16
+ out[path] = String(value);
17
+ }
18
+ }
19
+ return out;
20
+ }
21
+ //# sourceMappingURL=flatten.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flatten.js","sourceRoot":"","sources":["../../src/build/flatten.ts"],"names":[],"mappings":"AAGA,SAAS,KAAK,CAAC,GAAW;IACxB,OAAO,MAAM,CAAC,GAAG,CAAC;SACf,OAAO,CAAC,oBAAoB,EAAE,OAAO,CAAC;SACtC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;SACnB,WAAW,EAAE,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,IAAe,EAAE,MAAM,GAAG,MAAM;IACtD,MAAM,GAAG,GAAe,EAAE,CAAC;IAC3B,KAAK,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACnD,MAAM,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1B,MAAM,IAAI,GAAG,GAAG,MAAM,IAAI,GAAG,EAAE,CAAC;QAChC,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAChD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,KAAkB,EAAE,IAAI,CAAC,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACN,GAAG,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":""}
package/dist/build.js ADDED
@@ -0,0 +1,54 @@
1
+ import { mkdir, writeFile } from 'node:fs/promises';
2
+ import { dirname, resolve } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import * as primitive from './primitive/index.js';
5
+ import { semanticLight } from './semantic/light.js';
6
+ import { semanticDark } from './semantic/dark.js';
7
+ import { flatten } from './build/flatten.js';
8
+ import { renderBlock, renderFile, FILE_HEADER } from './build/emit.js';
9
+ const here = dirname(fileURLToPath(import.meta.url));
10
+ const distDir = resolve(here);
11
+ async function writeOut(filename, contents) {
12
+ const target = resolve(distDir, filename);
13
+ await mkdir(dirname(target), { recursive: true });
14
+ await writeFile(target, contents, 'utf8');
15
+ }
16
+ function buildBaseCss() {
17
+ const tokens = flatten(primitive);
18
+ const block = renderBlock(tokens, { selector: ':root', layer: 'ds.base' });
19
+ return renderFile(FILE_HEADER, [block]);
20
+ }
21
+ function buildThemeCss(name) {
22
+ const semantic = name === 'light' ? semanticLight : semanticDark;
23
+ const tokens = flatten(semantic);
24
+ const colorScheme = name === 'light' ? 'light' : 'dark';
25
+ const root = renderBlock(tokens, {
26
+ selector: name === 'light' ? ':root, [data-ds-theme="light"]' : '[data-ds-theme="dark"]',
27
+ layer: 'ds.theme',
28
+ extraProps: { 'color-scheme': colorScheme },
29
+ });
30
+ if (name !== 'dark') {
31
+ return renderFile(FILE_HEADER, [root]);
32
+ }
33
+ const prefersDark = renderBlock(tokens, {
34
+ selector: ':root:not([data-ds-theme])',
35
+ layer: 'ds.theme',
36
+ mediaQuery: '(prefers-color-scheme: dark)',
37
+ extraProps: { 'color-scheme': 'dark' },
38
+ });
39
+ return renderFile(FILE_HEADER, [root, prefersDark]);
40
+ }
41
+ function buildLayerDeclaration() {
42
+ return '@layer ds.base, ds.theme, ds.components, ds.utilities;\n';
43
+ }
44
+ async function run() {
45
+ await writeOut('base.css', buildLayerDeclaration() + buildBaseCss());
46
+ await writeOut('theme-default-light.css', buildThemeCss('light'));
47
+ await writeOut('theme-default-dark.css', buildThemeCss('dark'));
48
+ await writeOut('theme-default.css', `@import './base.css';\n@import './theme-default-light.css';\n@import './theme-default-dark.css';\n`);
49
+ }
50
+ run().catch((error) => {
51
+ console.error(error);
52
+ process.exitCode = 1;
53
+ });
54
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,3 @@
1
+ export * from './primitive/index.js';
2
+ export { semanticLight, semanticDark, type SemanticTokens } from './semantic/index.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export * from './primitive/index.js';
2
+ export { semanticLight, semanticDark } from './semantic/index.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,YAAY,EAAuB,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,28 @@
1
+ export declare const breakpoint: {
2
+ readonly sm: "480px";
3
+ readonly md: "768px";
4
+ readonly lg: "1024px";
5
+ readonly xl: "1280px";
6
+ readonly '2xl': "1536px";
7
+ };
8
+ export declare const container: {
9
+ readonly xs: "20rem";
10
+ readonly sm: "30rem";
11
+ readonly md: "48rem";
12
+ readonly lg: "64rem";
13
+ readonly xl: "80rem";
14
+ };
15
+ export declare const zIndex: {
16
+ readonly base: "0";
17
+ readonly raised: "10";
18
+ readonly dropdown: "100";
19
+ readonly sticky: "200";
20
+ readonly overlay: "300";
21
+ readonly modal: "400";
22
+ readonly toast: "500";
23
+ readonly tooltip: "600";
24
+ };
25
+ export type BreakpointTokens = typeof breakpoint;
26
+ export type ContainerTokens = typeof container;
27
+ export type ZIndexTokens = typeof zIndex;
28
+ //# sourceMappingURL=breakpoints.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.d.ts","sourceRoot":"","sources":["../../src/primitive/breakpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAEX,eAAO,MAAM,SAAS;;;;;;CAMZ,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;CAST,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,UAAU,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,OAAO,SAAS,CAAC;AAC/C,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC"}
@@ -0,0 +1,25 @@
1
+ export const breakpoint = {
2
+ sm: '480px',
3
+ md: '768px',
4
+ lg: '1024px',
5
+ xl: '1280px',
6
+ '2xl': '1536px',
7
+ };
8
+ export const container = {
9
+ xs: '20rem',
10
+ sm: '30rem',
11
+ md: '48rem',
12
+ lg: '64rem',
13
+ xl: '80rem',
14
+ };
15
+ export const zIndex = {
16
+ base: '0',
17
+ raised: '10',
18
+ dropdown: '100',
19
+ sticky: '200',
20
+ overlay: '300',
21
+ modal: '400',
22
+ toast: '500',
23
+ tooltip: '600',
24
+ };
25
+ //# sourceMappingURL=breakpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoints.js","sourceRoot":"","sources":["../../src/primitive/breakpoints.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,QAAQ;IACZ,KAAK,EAAE,QAAQ;CACP,CAAC;AAEX,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;CACH,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK;IACf,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,KAAK;IACd,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,KAAK;CACN,CAAC"}
@@ -0,0 +1,51 @@
1
+ export declare const color: {
2
+ readonly ink: {
3
+ readonly 0: "#0B0B0C";
4
+ readonly 50: "#1A1A1C";
5
+ readonly 100: "#2B2B2E";
6
+ readonly 200: "#3F3F43";
7
+ readonly 300: "#56565B";
8
+ readonly 400: "#6B6B6E";
9
+ readonly 500: "#86868A";
10
+ readonly 600: "#A6A6A9";
11
+ readonly 700: "#C5C5C7";
12
+ readonly 800: "#E2E2E3";
13
+ readonly 900: "#F2EFEA";
14
+ readonly 1000: "#FAF8F5";
15
+ };
16
+ readonly vermilion: {
17
+ readonly 100: "#FBEAE7";
18
+ readonly 300: "#F1988C";
19
+ readonly 500: "#E2341D";
20
+ readonly 600: "#C12613";
21
+ readonly 700: "#9A1B0C";
22
+ };
23
+ readonly cobalt: {
24
+ readonly 100: "#E8EEF9";
25
+ readonly 300: "#95AEDD";
26
+ readonly 500: "#4A72CC";
27
+ readonly 600: "#3860B8";
28
+ readonly 700: "#2750A2";
29
+ };
30
+ readonly success: {
31
+ readonly 100: "#E4F1EA";
32
+ readonly 500: "#1F7A48";
33
+ };
34
+ readonly warning: {
35
+ readonly 100: "#FBF0DA";
36
+ readonly 500: "#A6620B";
37
+ };
38
+ readonly danger: {
39
+ readonly 100: "#FBE7E4";
40
+ readonly 500: "#B21A0A";
41
+ };
42
+ readonly alpha: {
43
+ readonly inkHairline: "rgba(11, 11, 12, 0.12)";
44
+ readonly inkSubtle: "rgba(11, 11, 12, 0.06)";
45
+ readonly paperHairline: "rgba(242, 239, 234, 0.14)";
46
+ readonly paperSubtle: "rgba(242, 239, 234, 0.06)";
47
+ readonly focusRing: "rgba(74, 114, 204, 0.35)";
48
+ };
49
+ };
50
+ export type ColorTokens = typeof color;
51
+ //# sourceMappingURL=color.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/primitive/color.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDR,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC"}
@@ -0,0 +1,50 @@
1
+ export const color = {
2
+ ink: {
3
+ 0: '#0B0B0C',
4
+ 50: '#1A1A1C',
5
+ 100: '#2B2B2E',
6
+ 200: '#3F3F43',
7
+ 300: '#56565B',
8
+ 400: '#6B6B6E',
9
+ 500: '#86868A',
10
+ 600: '#A6A6A9',
11
+ 700: '#C5C5C7',
12
+ 800: '#E2E2E3',
13
+ 900: '#F2EFEA',
14
+ 1000: '#FAF8F5',
15
+ },
16
+ vermilion: {
17
+ 100: '#FBEAE7',
18
+ 300: '#F1988C',
19
+ 500: '#E2341D',
20
+ 600: '#C12613',
21
+ 700: '#9A1B0C',
22
+ },
23
+ cobalt: {
24
+ 100: '#E8EEF9',
25
+ 300: '#95AEDD',
26
+ 500: '#4A72CC',
27
+ 600: '#3860B8',
28
+ 700: '#2750A2',
29
+ },
30
+ success: {
31
+ 100: '#E4F1EA',
32
+ 500: '#1F7A48',
33
+ },
34
+ warning: {
35
+ 100: '#FBF0DA',
36
+ 500: '#A6620B',
37
+ },
38
+ danger: {
39
+ 100: '#FBE7E4',
40
+ 500: '#B21A0A',
41
+ },
42
+ alpha: {
43
+ inkHairline: 'rgba(11, 11, 12, 0.12)',
44
+ inkSubtle: 'rgba(11, 11, 12, 0.06)',
45
+ paperHairline: 'rgba(242, 239, 234, 0.14)',
46
+ paperSubtle: 'rgba(242, 239, 234, 0.06)',
47
+ focusRing: 'rgba(74, 114, 204, 0.35)',
48
+ },
49
+ };
50
+ //# sourceMappingURL=color.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/primitive/color.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,GAAG,EAAE;QACH,CAAC,EAAE,SAAS;QACZ,EAAE,EAAE,SAAS;QACb,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,IAAI,EAAE,SAAS;KAChB;IACD,SAAS,EAAE;QACT,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,MAAM,EAAE;QACN,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,OAAO,EAAE;QACP,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,MAAM,EAAE;QACN,GAAG,EAAE,SAAS;QACd,GAAG,EAAE,SAAS;KACf;IACD,KAAK,EAAE;QACL,WAAW,EAAE,wBAAwB;QACrC,SAAS,EAAE,wBAAwB;QACnC,aAAa,EAAE,2BAA2B;QAC1C,WAAW,EAAE,2BAA2B;QACxC,SAAS,EAAE,0BAA0B;KACtC;CACO,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { color, type ColorTokens } from './color.js';
2
+ export { space, size, type SpaceTokens, type SizeTokens } from './spacing.js';
3
+ export { fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, type FontFamilyTokens, type FontSizeTokens, } from './typography.js';
4
+ export { radius, border, shadow, type RadiusTokens, type BorderTokens, type ShadowTokens, } from './shape.js';
5
+ export { duration, easing, type DurationTokens, type EasingTokens } from './motion.js';
6
+ export { breakpoint, container, zIndex, type BreakpointTokens, type ContainerTokens, type ZIndexTokens, } from './breakpoints.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/primitive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC9E,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,cAAc,GACpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,UAAU,EACV,SAAS,EACT,MAAM,EACN,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,YAAY,GAClB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export { color } from './color.js';
2
+ export { space, size } from './spacing.js';
3
+ export { fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, } from './typography.js';
4
+ export { radius, border, shadow, } from './shape.js';
5
+ export { duration, easing } from './motion.js';
6
+ export { breakpoint, container, zIndex, } from './breakpoints.js';
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/primitive/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAoB,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAqC,MAAM,cAAc,CAAC;AAC9E,OAAO,EACL,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EACV,aAAa,GAGd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,MAAM,EACN,MAAM,GAIP,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,MAAM,EAA0C,MAAM,aAAa,CAAC;AACvF,OAAO,EACL,UAAU,EACV,SAAS,EACT,MAAM,GAIP,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,16 @@
1
+ export declare const duration: {
2
+ readonly instant: "80ms";
3
+ readonly fast: "120ms";
4
+ readonly normal: "180ms";
5
+ readonly slow: "240ms";
6
+ readonly slower: "320ms";
7
+ };
8
+ export declare const easing: {
9
+ readonly standard: "cubic-bezier(0.2, 0, 0, 1)";
10
+ readonly emphasized: "cubic-bezier(0.2, 0, 0.1, 1.1)";
11
+ readonly enter: "cubic-bezier(0, 0, 0, 1)";
12
+ readonly exit: "cubic-bezier(0.4, 0, 1, 1)";
13
+ };
14
+ export type DurationTokens = typeof duration;
15
+ export type EasingTokens = typeof easing;
16
+ //# sourceMappingURL=motion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.d.ts","sourceRoot":"","sources":["../../src/primitive/motion.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;CAKT,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,OAAO,QAAQ,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC"}
@@ -0,0 +1,14 @@
1
+ export const duration = {
2
+ instant: '80ms',
3
+ fast: '120ms',
4
+ normal: '180ms',
5
+ slow: '240ms',
6
+ slower: '320ms',
7
+ };
8
+ export const easing = {
9
+ standard: 'cubic-bezier(0.2, 0, 0, 1)',
10
+ emphasized: 'cubic-bezier(0.2, 0, 0.1, 1.1)',
11
+ enter: 'cubic-bezier(0, 0, 0, 1)',
12
+ exit: 'cubic-bezier(0.4, 0, 1, 1)',
13
+ };
14
+ //# sourceMappingURL=motion.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"motion.js","sourceRoot":"","sources":["../../src/primitive/motion.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,MAAM;IACf,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,OAAO;IACf,IAAI,EAAE,OAAO;IACb,MAAM,EAAE,OAAO;CACP,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,4BAA4B;IACtC,UAAU,EAAE,gCAAgC;IAC5C,KAAK,EAAE,0BAA0B;IACjC,IAAI,EAAE,4BAA4B;CAC1B,CAAC"}
@@ -0,0 +1,24 @@
1
+ export declare const radius: {
2
+ readonly none: "0";
3
+ readonly xs: "2px";
4
+ readonly sm: "4px";
5
+ readonly md: "8px";
6
+ readonly lg: "12px";
7
+ readonly full: "9999px";
8
+ };
9
+ export declare const border: {
10
+ readonly hairline: "1px";
11
+ readonly regular: "1.5px";
12
+ readonly heavy: "2px";
13
+ };
14
+ export declare const shadow: {
15
+ readonly none: "none";
16
+ readonly sm: "0 1px 2px rgba(11, 11, 12, 0.06)";
17
+ readonly md: "0 4px 12px rgba(11, 11, 12, 0.08), 0 1px 2px rgba(11, 11, 12, 0.04)";
18
+ readonly lg: "0 12px 32px rgba(11, 11, 12, 0.10), 0 4px 8px rgba(11, 11, 12, 0.06)";
19
+ readonly focus: "0 0 0 3px rgba(74, 114, 204, 0.35)";
20
+ };
21
+ export type RadiusTokens = typeof radius;
22
+ export type BorderTokens = typeof border;
23
+ export type ShadowTokens = typeof shadow;
24
+ //# sourceMappingURL=shape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../src/primitive/shape.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;CAIT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC"}
@@ -0,0 +1,21 @@
1
+ export const radius = {
2
+ none: '0',
3
+ xs: '2px',
4
+ sm: '4px',
5
+ md: '8px',
6
+ lg: '12px',
7
+ full: '9999px',
8
+ };
9
+ export const border = {
10
+ hairline: '1px',
11
+ regular: '1.5px',
12
+ heavy: '2px',
13
+ };
14
+ export const shadow = {
15
+ none: 'none',
16
+ sm: '0 1px 2px rgba(11, 11, 12, 0.06)',
17
+ md: '0 4px 12px rgba(11, 11, 12, 0.08), 0 1px 2px rgba(11, 11, 12, 0.04)',
18
+ lg: '0 12px 32px rgba(11, 11, 12, 0.10), 0 4px 8px rgba(11, 11, 12, 0.06)',
19
+ focus: '0 0 0 3px rgba(74, 114, 204, 0.35)',
20
+ };
21
+ //# sourceMappingURL=shape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape.js","sourceRoot":"","sources":["../../src/primitive/shape.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,GAAG;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,QAAQ;CACN,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,OAAO;IAChB,KAAK,EAAE,KAAK;CACJ,CAAC;AAEX,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,kCAAkC;IACtC,EAAE,EAAE,qEAAqE;IACzE,EAAE,EAAE,sEAAsE;IAC1E,KAAK,EAAE,oCAAoC;CACnC,CAAC"}
@@ -0,0 +1,26 @@
1
+ export declare const space: {
2
+ readonly 0: "0";
3
+ readonly 1: "0.25rem";
4
+ readonly 2: "0.5rem";
5
+ readonly 3: "0.75rem";
6
+ readonly 4: "1rem";
7
+ readonly 5: "1.25rem";
8
+ readonly 6: "1.5rem";
9
+ readonly 8: "2rem";
10
+ readonly 10: "2.5rem";
11
+ readonly 12: "3rem";
12
+ readonly 16: "4rem";
13
+ readonly 20: "5rem";
14
+ readonly 24: "6rem";
15
+ readonly 32: "8rem";
16
+ };
17
+ export declare const size: {
18
+ readonly xs: "1.75rem";
19
+ readonly sm: "2rem";
20
+ readonly md: "2.5rem";
21
+ readonly lg: "3rem";
22
+ readonly xl: "3.5rem";
23
+ };
24
+ export type SpaceTokens = typeof space;
25
+ export type SizeTokens = typeof size;
26
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/primitive/spacing.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;CAeR,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;;CAMP,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,KAAK,CAAC;AACvC,MAAM,MAAM,UAAU,GAAG,OAAO,IAAI,CAAC"}