@facto-to/design-system 0.1.0-beta.1 → 0.1.0-beta.2

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.
@@ -0,0 +1,143 @@
1
+ /* Dashboard defaults. Namespaced custom properties keep theme overrides
2
+ separate from the host application's design tokens. */
3
+ :root {
4
+ --facto-font-sans:
5
+ 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI',
6
+ Roboto, 'Helvetica Neue', Arial, sans-serif;
7
+ --facto-font-size: 14px;
8
+ --facto-line-height: 21px;
9
+ --facto-tracking: -0.006em;
10
+ --facto-font-size-label: 12px;
11
+ --facto-line-height-label: 16px;
12
+ --facto-font-size-heading-sm: 16px;
13
+ --facto-font-size-heading-md: 19px;
14
+ --facto-font-size-heading-lg: 28px;
15
+ --facto-line-height-heading-sm: 24px;
16
+ --facto-line-height-heading-md: 26px;
17
+ --facto-line-height-heading-lg: 36px;
18
+ --facto-font-size-amount: 24px;
19
+ --facto-line-height-amount: 30px;
20
+ --facto-font-weight-regular: 400;
21
+ --facto-font-weight-medium: 500;
22
+ --facto-font-weight-semibold: 600;
23
+ --facto-font-weight-bold: 700;
24
+ --facto-tracking-heading: -0.035em;
25
+ --facto-tracking-heading-tight: -0.02em;
26
+ --facto-tracking-heading-lg: -0.588px;
27
+ --facto-canvas: #f5f5f4;
28
+ --facto-surface: #fff;
29
+ --facto-subtle: #f3f3f2;
30
+ --facto-text: #121411;
31
+ --facto-control-text: #171717;
32
+ --facto-muted: #757575;
33
+ /* Accessible secondary copy on the existing tinted surfaces. */
34
+ --facto-muted-on-subtle: #6c6c67;
35
+ --facto-line: #e7e7e5;
36
+ --facto-accent: #00d64f;
37
+ --facto-accent-strong: #0b6b4b;
38
+ --facto-accent-soft: #e7fbf2;
39
+ --facto-success: #0b6b4b;
40
+ --facto-success-strong: #0b6b4b;
41
+ --facto-success-soft: #e7fbf2;
42
+ --facto-danger: #b42336;
43
+ --facto-danger-soft: #fff0f2;
44
+ /* #956207 intentionally replaces the user-app's #9f6a08 for AA text contrast
45
+ on warning-soft; it is the only accessibility normalization in this palette. */
46
+ --facto-warning: #956207;
47
+ --facto-warning-soft: #fff7df;
48
+ --facto-action-primary: #171717;
49
+ --facto-action-primary-hover: #2b2f2a;
50
+ --facto-action-primary-foreground: #fff;
51
+ --facto-action-disabled: #e7e7e4;
52
+ --facto-action-disabled-text: #9a9a95;
53
+ --facto-surface-border: rgba(0, 0, 0, 0.12);
54
+ --facto-radius-control: 10px;
55
+ --facto-radius-input: 14px;
56
+ --facto-radius-card: 24px;
57
+ --facto-radius-dialog: 18px;
58
+ --facto-radius-sheet: 30px;
59
+ --facto-radius-sheet-mobile: 26px;
60
+ --facto-surface-padding: 26px;
61
+ --facto-widget-padding: 20px;
62
+ --facto-input-padding: 10px 16px;
63
+ --facto-button-padding: 12px 18px;
64
+ --facto-button-padding-sm: 8px 12px;
65
+ --facto-button-padding-lg: 14px 20px;
66
+ --facto-button-danger-padding: 11px 16px;
67
+ --facto-button-text-padding: 4px;
68
+ --facto-button-font-size: 14px;
69
+ --facto-button-line-height: 21px;
70
+ --facto-radius-control-sm: 8px;
71
+ --facto-radius-control-lg: 12px;
72
+ --facto-radius-danger: 12px;
73
+ --facto-input-height: 52px;
74
+ --facto-input-background: #f5f5f5;
75
+ --facto-input-placeholder: #8a8a86;
76
+ --facto-input-font-size: 15px;
77
+ --facto-input-line-height: 20px;
78
+ --facto-badge-padding: 5px 8px;
79
+ --facto-icon-button-size: 38px;
80
+ --facto-layer-overlay: 1000;
81
+ --facto-layer-dialog: 1001;
82
+ --facto-layer-select: 1100;
83
+ --facto-layer-tooltip: 1200;
84
+ --facto-layer-toast: 1300;
85
+ --facto-toast-radius: 13px;
86
+ --facto-toast-padding: 13px 17px;
87
+ --facto-toast-gap: 10px;
88
+ --facto-toast-offset: 24px;
89
+ --facto-toast-offset-mobile: 16px;
90
+ --facto-toast-max-width: 520px;
91
+ --facto-toast-default-foreground: #fff;
92
+ --facto-toast-default-description: rgba(255, 255, 255, 0.76);
93
+ --facto-toast-error-accent: #d94b5d;
94
+ --facto-toast-error-description: #70706d;
95
+ --facto-toast-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
96
+ --facto-toast-error-shadow: 0 12px 32px rgba(23, 23, 23, 0.14);
97
+ --facto-tooltip-font-size: 12px;
98
+ --facto-tooltip-line-height: 19.5px;
99
+ --facto-tooltip-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
100
+ --facto-tooltip-content-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
101
+ --facto-tooltip-default-background: oklch(21% 0.006 285.885);
102
+ --facto-tooltip-default-foreground: oklch(98.5% 0 0);
103
+ --facto-tooltip-radius: 6px;
104
+ --facto-tooltip-padding: 6px 10px;
105
+ --facto-search-placeholder: #9d9d9b;
106
+ --facto-shadow-card: 0 10px 20px rgba(0, 0, 0, 0.04);
107
+ --facto-shadow-select: 0 12px 32px rgba(0, 0, 0, 0.12);
108
+ --facto-shadow-switch-thumb: 0 1px 2px rgba(0, 0, 0, 0.15);
109
+ --facto-shadow-tabs-trigger-active: 0 1px 3px rgba(0, 0, 0, 0.08);
110
+ --facto-shadow-dialog: 0 24px 64px rgba(0, 0, 0, 0.16);
111
+ --facto-shadow-sheet: 0 24px 64px rgba(0, 0, 0, 0.16);
112
+ --facto-shadow-sheet-bottom: 0 -12px 32px rgba(0, 0, 0, 0.12);
113
+ --facto-dashboard-gap: 8px;
114
+ --facto-widget-heading: #171717;
115
+ --facto-widget-muted: #707070;
116
+ --facto-widget-action-background: #f5f5f5;
117
+ --facto-widget-action-hover: #ececec;
118
+ --facto-focus: rgba(0, 214, 79, 0.38);
119
+ --facto-widget-focus: rgba(0, 229, 139, 0.38);
120
+ --facto-switch-track: #d8d8d6;
121
+ --facto-switch-track-checked: #00d66f;
122
+ --facto-switch-thumb: #fff;
123
+ --facto-checkbox-border: #c9c9c7;
124
+ --facto-checkbox-foreground: #fff;
125
+ --facto-tabs-list-background: #f2f2f1;
126
+ --facto-overlay-background: rgba(12, 16, 13, 0.34);
127
+ --facto-skeleton-background: linear-gradient(
128
+ 90deg,
129
+ #ececea 20%,
130
+ #f8f8f7 50%,
131
+ #ececea 80%
132
+ );
133
+ --facto-notice-info-border: #d8d8d6;
134
+ --facto-notice-success-border: #b7efd0;
135
+ --facto-notice-warning-border: #efd796;
136
+ --facto-notice-danger-border: #f3b8c0;
137
+ --facto-space-1: 4px;
138
+ --facto-space-2: 8px;
139
+ --facto-space-3: 12px;
140
+ --facto-space-4: 16px;
141
+ --facto-space-5: 20px;
142
+ --facto-space-6: 24px;
143
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@facto-to/design-system",
4
+ "packageVersion": "0.1.0-beta.2",
5
+ "peerDependencies": {
6
+ "react": "^19.0.0",
7
+ "react-dom": "^19.0.0"
8
+ },
9
+ "apiSha256": "2a6e05182497fec8cad25377c6d11fdd7b5bc59cdd39f5916aca13180a7dfa62",
10
+ "tokensSha256": "b5f6d9f83357aecf08d4f7e55eb514a2b4e3ebb2e2f7c1a317a4cd5ff1add49b"
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@facto-to/design-system",
3
- "version": "0.1.0-beta.1",
3
+ "version": "0.1.0-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/index.js",
@@ -9,7 +9,10 @@
9
9
  "dist/tokens.css",
10
10
  "dist/fonts.css",
11
11
  "dist/fonts/*.woff2",
12
- "dist/fonts/OFL.txt"
12
+ "dist/fonts/OFL.txt",
13
+ "AI.md",
14
+ "bin/*.mjs",
15
+ "dist/ai/**"
13
16
  ],
14
17
  "exports": {
15
18
  ".": {
@@ -18,12 +21,15 @@
18
21
  },
19
22
  "./styles.css": "./dist/styles.css",
20
23
  "./tokens.css": "./dist/tokens.css",
21
- "./fonts.css": "./dist/fonts.css"
24
+ "./fonts.css": "./dist/fonts.css",
25
+ "./ai": "./AI.md",
26
+ "./ai/*": "./dist/ai/*"
22
27
  },
23
28
  "scripts": {
24
- "build": "vite build && tsc -p tsconfig.build.json && cp src/tokens.css dist/tokens.css && cp src/fonts.css dist/fonts.css && cp -R src/fonts dist/fonts",
29
+ "build": "npm run build:code && node ../../scripts/sync-skill.mjs --check && node ../../scripts/bundle-skill.mjs",
25
30
  "prepack": "npm run build",
26
- "typecheck": "tsc --noEmit"
31
+ "typecheck": "tsc --noEmit",
32
+ "build:code": "vite build && tsc -p tsconfig.build.json && cp src/tokens.css dist/tokens.css && cp src/fonts.css dist/fonts.css && cp -R src/fonts dist/fonts"
27
33
  },
28
34
  "peerDependencies": {
29
35
  "react": "^19.0.0",
@@ -59,5 +65,17 @@
59
65
  "access": "public",
60
66
  "tag": "beta"
61
67
  },
62
- "license": "Apache-2.0"
68
+ "license": "Apache-2.0",
69
+ "repository": {
70
+ "type": "git",
71
+ "url": "git+https://github.com/Facto-to/design-system.git",
72
+ "directory": "packages/design-system"
73
+ },
74
+ "homepage": "https://github.com/Facto-to/design-system#readme",
75
+ "bugs": {
76
+ "url": "https://github.com/Facto-to/design-system/issues"
77
+ },
78
+ "bin": {
79
+ "facto-ui-skill": "./bin/facto-ui-skill.mjs"
80
+ }
63
81
  }