@flatwork-ui/react 0.0.0-stage → 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/README.md +79 -2
- package/dist/index.cjs +1261 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +598 -0
- package/dist/index.d.ts +598 -0
- package/dist/index.js +1166 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/flatwork-saas/flatwork-saas.css +454 -0
- package/dist/styles/flatwork-saas/fonts/geist-400.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/geist-500.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/geist-600.woff2 +0 -0
- package/dist/styles/flatwork-saas/fonts/plex-mono-400.woff2 +0 -0
- package/dist/styles/flatwork-saas/tokens.css +126 -0
- package/dist/styles/flatwork-saas/tokens.json +124 -0
- package/package.json +54 -4
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "flatwork-saas",
|
|
3
|
+
"description": "Calm, flat, precise SaaS interface: Geist and IBM Plex Mono, one muted blue accent, 1px borders, shadows only on floating layers.",
|
|
4
|
+
"prefix": "fw",
|
|
5
|
+
"defaultMode": "dark",
|
|
6
|
+
"modes": {
|
|
7
|
+
"dark": {
|
|
8
|
+
"bg": "#1b1818",
|
|
9
|
+
"surface": "#221e1e",
|
|
10
|
+
"surface-2": "#2a2525",
|
|
11
|
+
"input": "#1b1818",
|
|
12
|
+
"border": "#3a3434",
|
|
13
|
+
"border-strong": "#4a4444",
|
|
14
|
+
"heading": "#ece9e9",
|
|
15
|
+
"text": "#c4c1c1",
|
|
16
|
+
"muted": "#9a9595",
|
|
17
|
+
"accent": "#8aa1a8",
|
|
18
|
+
"accent-hover": "#9bb2b9",
|
|
19
|
+
"on-accent": "#141212",
|
|
20
|
+
"link": "#a5bbc2",
|
|
21
|
+
"focus": "#a5bbc2",
|
|
22
|
+
"danger": "#c97070",
|
|
23
|
+
"on-danger": "#141212",
|
|
24
|
+
"error": "#d88a8a",
|
|
25
|
+
"error-bg": "#2a1e1e",
|
|
26
|
+
"error-border": "#5c3434",
|
|
27
|
+
"success": "#9dbca8",
|
|
28
|
+
"success-bg": "#1d2520",
|
|
29
|
+
"success-border": "#384c3f",
|
|
30
|
+
"warning": "#cdae88",
|
|
31
|
+
"warning-bg": "#28221b",
|
|
32
|
+
"warning-border": "#54452f",
|
|
33
|
+
"info": "#a5bbc2",
|
|
34
|
+
"info-bg": "#1d2326",
|
|
35
|
+
"info-border": "#3b494e",
|
|
36
|
+
"overlay": "rgb(10 8 8 / .62)",
|
|
37
|
+
"shadow-pop": "0 12px 32px rgb(0 0 0 / .35)",
|
|
38
|
+
"border-hover": "#5a5353",
|
|
39
|
+
"mark": "rgb(138 161 168 / .28)"
|
|
40
|
+
},
|
|
41
|
+
"light": {
|
|
42
|
+
"bg": "#f6f5f5",
|
|
43
|
+
"surface": "#ffffff",
|
|
44
|
+
"surface-2": "#f1efef",
|
|
45
|
+
"input": "#ffffff",
|
|
46
|
+
"border": "#e4e0e0",
|
|
47
|
+
"border-strong": "#d3cdcd",
|
|
48
|
+
"heading": "#1b1818",
|
|
49
|
+
"text": "#3a3535",
|
|
50
|
+
"muted": "#625c5c",
|
|
51
|
+
"accent": "#4b6670",
|
|
52
|
+
"accent-hover": "#3f5961",
|
|
53
|
+
"on-accent": "#ffffff",
|
|
54
|
+
"link": "#3f5961",
|
|
55
|
+
"focus": "#4b6670",
|
|
56
|
+
"danger": "#a33b3b",
|
|
57
|
+
"on-danger": "#ffffff",
|
|
58
|
+
"error": "#a33b3b",
|
|
59
|
+
"error-bg": "#fbf0f0",
|
|
60
|
+
"error-border": "#efcaca",
|
|
61
|
+
"success": "#3c6a4b",
|
|
62
|
+
"success-bg": "#eef5f0",
|
|
63
|
+
"success-border": "#c9dfd0",
|
|
64
|
+
"warning": "#7a5626",
|
|
65
|
+
"warning-bg": "#faf4ea",
|
|
66
|
+
"warning-border": "#ead8bb",
|
|
67
|
+
"info": "#3f5961",
|
|
68
|
+
"info-bg": "#eef3f5",
|
|
69
|
+
"info-border": "#cbd9de",
|
|
70
|
+
"overlay": "rgb(27 24 24 / .38)",
|
|
71
|
+
"shadow-pop": "0 12px 32px rgb(27 24 24 / .12)",
|
|
72
|
+
"border-hover": "#bdb6b6",
|
|
73
|
+
"mark": "rgb(75 102 112 / .2)"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"font": {
|
|
77
|
+
"font": "'Geist', ui-sans-serif, system-ui, sans-serif",
|
|
78
|
+
"mono": "'IBM Plex Mono', ui-monospace, monospace"
|
|
79
|
+
},
|
|
80
|
+
"radius": {
|
|
81
|
+
"r-xs": "4px",
|
|
82
|
+
"r-sm": "6px",
|
|
83
|
+
"r-md": "9px",
|
|
84
|
+
"r-lg": "12px",
|
|
85
|
+
"r-full": "999px"
|
|
86
|
+
},
|
|
87
|
+
"space": {
|
|
88
|
+
"space-1": "4px",
|
|
89
|
+
"space-2": "8px",
|
|
90
|
+
"space-3": "12px",
|
|
91
|
+
"space-4": "16px",
|
|
92
|
+
"space-5": "20px",
|
|
93
|
+
"space-6": "24px",
|
|
94
|
+
"space-8": "32px",
|
|
95
|
+
"space-12": "48px"
|
|
96
|
+
},
|
|
97
|
+
"motion": {
|
|
98
|
+
"motion-fast": "120ms",
|
|
99
|
+
"motion-normal": "220ms",
|
|
100
|
+
"easing": "ease-out"
|
|
101
|
+
},
|
|
102
|
+
"fontFaces": [
|
|
103
|
+
{
|
|
104
|
+
"family": "Geist",
|
|
105
|
+
"weight": 400,
|
|
106
|
+
"file": "fonts/geist-400.woff2"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"family": "Geist",
|
|
110
|
+
"weight": 500,
|
|
111
|
+
"file": "fonts/geist-500.woff2"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"family": "Geist",
|
|
115
|
+
"weight": 600,
|
|
116
|
+
"file": "fonts/geist-600.woff2"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"family": "IBM Plex Mono",
|
|
120
|
+
"weight": 400,
|
|
121
|
+
"file": "fonts/plex-mono-400.woff2"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flatwork-ui/react",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "React components for the Flatwork design system",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/jurrebuunk/flatwork-ui.git",
|
|
9
|
+
"directory": "packages/react"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"*.css"
|
|
14
|
+
],
|
|
15
|
+
"main": "./dist/index.cjs",
|
|
16
|
+
"module": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"import": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
|
+
},
|
|
24
|
+
"require": {
|
|
25
|
+
"types": "./dist/index.d.cts",
|
|
26
|
+
"default": "./dist/index.cjs"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"./styles/*.css": "./dist/styles/*/*.css",
|
|
30
|
+
"./tokens/*.json": "./dist/styles/*/tokens.json",
|
|
31
|
+
"./package.json": "./package.json"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"build": "tsup && node scripts/build-styles.mjs",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"dev": "node scripts/build-styles.mjs && vite showcase",
|
|
40
|
+
"prepack": "npm run build"
|
|
41
|
+
},
|
|
42
|
+
"peerDependencies": {
|
|
43
|
+
"react": ">=18",
|
|
44
|
+
"react-dom": ">=18"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@types/react": "^19.0.0",
|
|
48
|
+
"@types/react-dom": "^19.0.0",
|
|
49
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
50
|
+
"react": "^19.0.0",
|
|
51
|
+
"react-dom": "^19.0.0",
|
|
52
|
+
"tsup": "^8.3.0",
|
|
53
|
+
"typescript": "^5.6.0",
|
|
54
|
+
"vite": "^7.0.0"
|
|
55
|
+
}
|
|
56
|
+
}
|