@bubbasfw/ui 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +94 -2
- package/dist/index.cjs +1202 -0
- package/dist/index.d.cts +376 -0
- package/dist/index.d.ts +376 -0
- package/dist/index.js +1165 -0
- package/dist/tokens.cjs +116 -0
- package/dist/tokens.d.cts +139 -0
- package/dist/tokens.d.ts +139 -0
- package/dist/tokens.js +114 -0
- package/package.json +85 -4
- package/src/components/Button.tsx +105 -0
- package/src/components/actions.tsx +39 -0
- package/src/components/content.tsx +55 -0
- package/src/components/disclosure.tsx +33 -0
- package/src/components/feedback.tsx +68 -0
- package/src/components/forms/Choice.tsx +112 -0
- package/src/components/forms/FormField.tsx +58 -0
- package/src/components/forms/Input.tsx +55 -0
- package/src/components/forms/RadioGroup.tsx +87 -0
- package/src/components/forms/Select.tsx +102 -0
- package/src/components/forms/Tabs.tsx +70 -0
- package/src/components/forms/index.ts +6 -0
- package/src/components/forms/selection.ts +48 -0
- package/src/components/layout.tsx +35 -0
- package/src/components/navigation.tsx +27 -0
- package/src/components/overlays.tsx +64 -0
- package/src/components/typography.tsx +31 -0
- package/src/index.ts +25 -0
- package/src/internal/scroll-lock.ts +101 -0
- package/src/internal/utils.ts +32 -0
- package/src/theme.tsx +56 -0
- package/src/tokens.ts +114 -0
- package/tailwind-preset.cjs +24 -0
package/dist/tokens.cjs
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/tokens.ts
|
|
4
|
+
var tokens = {
|
|
5
|
+
brandVersion: "1.0.0",
|
|
6
|
+
systemVersion: "0.3.0",
|
|
7
|
+
colors: {
|
|
8
|
+
blue: "#007CE8",
|
|
9
|
+
red: "#CC0000",
|
|
10
|
+
redHover: "#A80000",
|
|
11
|
+
navy: "#03256C",
|
|
12
|
+
night: "#001845",
|
|
13
|
+
ink: "#131B23",
|
|
14
|
+
muted: "#526075",
|
|
15
|
+
line: "#D9E8FB",
|
|
16
|
+
white: "#FFFFFF",
|
|
17
|
+
gold: "#FED766",
|
|
18
|
+
disabled: "#F0F2F5",
|
|
19
|
+
disabledText: "#6B727E"
|
|
20
|
+
},
|
|
21
|
+
spacing: { 1: 4, 2: 8, 3: 12, 4: 16, 6: 24, 8: 32, 12: 48, 16: 64 },
|
|
22
|
+
radius: { control: 4, panel: 12 },
|
|
23
|
+
touchTarget: { minimum: 44, default: 48 },
|
|
24
|
+
layout: { maxWidth: 1200, readingWidth: 720, breakpoints: { compact: 640, wide: 960 } },
|
|
25
|
+
motion: { feedback: 140 },
|
|
26
|
+
themes: {
|
|
27
|
+
"light": {
|
|
28
|
+
"canvas": "#F7F8FA",
|
|
29
|
+
"surface": "#FFFFFF",
|
|
30
|
+
"raised": "#FFFFFF",
|
|
31
|
+
"hover": "#F6F7F9",
|
|
32
|
+
"selected": "#ECEEF1",
|
|
33
|
+
"text": "#131B23",
|
|
34
|
+
"heading": "#03256C",
|
|
35
|
+
"muted": "#526075",
|
|
36
|
+
"line": "#E4E6EA",
|
|
37
|
+
"border": "#637086",
|
|
38
|
+
"link": "#03256C",
|
|
39
|
+
"link-hover": "#A80000",
|
|
40
|
+
"focus": "#03256C",
|
|
41
|
+
"focus-inner": "#FFFFFF",
|
|
42
|
+
"accent": "#CC0000",
|
|
43
|
+
"action-text": "#FFFFFF",
|
|
44
|
+
"action-border": "#A80000",
|
|
45
|
+
"disabled-surface": "#F0F2F5",
|
|
46
|
+
"disabled-text": "#6B727E",
|
|
47
|
+
"info": "#03256C",
|
|
48
|
+
"info-surface": "#F1F5FC",
|
|
49
|
+
"info-border": "#03256C",
|
|
50
|
+
"success": "#23633F",
|
|
51
|
+
"success-surface": "#EAF5EF",
|
|
52
|
+
"success-border": "#23633F",
|
|
53
|
+
"warning": "#805500",
|
|
54
|
+
"warning-surface": "#FFF4D6",
|
|
55
|
+
"warning-border": "#805500",
|
|
56
|
+
"error": "#B42318",
|
|
57
|
+
"error-surface": "#FFF0EF",
|
|
58
|
+
"error-border": "#B42318",
|
|
59
|
+
"code-surface": "#171717",
|
|
60
|
+
"code-text": "#FFFFFF",
|
|
61
|
+
"code-muted": "#B4B4B4",
|
|
62
|
+
"selection": "#D9E8FB",
|
|
63
|
+
"selection-text": "#131B23",
|
|
64
|
+
"scrollbar": "#637086",
|
|
65
|
+
"scrollbar-track": "#F7F8FA",
|
|
66
|
+
"shadow-action": "0 3px 8px #CC000024",
|
|
67
|
+
"shadow-panel": "0 2px 12px #131B2308",
|
|
68
|
+
"shadow-dialog": "0 20px 100px #00133345"
|
|
69
|
+
},
|
|
70
|
+
"dark": {
|
|
71
|
+
"canvas": "#171717",
|
|
72
|
+
"surface": "#202020",
|
|
73
|
+
"raised": "#292929",
|
|
74
|
+
"hover": "#303030",
|
|
75
|
+
"selected": "#383838",
|
|
76
|
+
"text": "#FFFFFF",
|
|
77
|
+
"heading": "#FFFFFF",
|
|
78
|
+
"muted": "#B4B4B4",
|
|
79
|
+
"line": "#3D3D3D",
|
|
80
|
+
"border": "#858585",
|
|
81
|
+
"link": "#8DC7FF",
|
|
82
|
+
"link-hover": "#B8DEFF",
|
|
83
|
+
"focus": "#FFFFFF",
|
|
84
|
+
"focus-inner": "#202020",
|
|
85
|
+
"accent": "#FF9F99",
|
|
86
|
+
"action-text": "#FFFFFF",
|
|
87
|
+
"action-border": "#EF817A",
|
|
88
|
+
"disabled-surface": "#242424",
|
|
89
|
+
"disabled-text": "#9A9A9A",
|
|
90
|
+
"info": "#8DC7FF",
|
|
91
|
+
"info-surface": "#1D2D3D",
|
|
92
|
+
"info-border": "#8DC7FF",
|
|
93
|
+
"success": "#8DDBA9",
|
|
94
|
+
"success-surface": "#183323",
|
|
95
|
+
"success-border": "#8DDBA9",
|
|
96
|
+
"warning": "#FED766",
|
|
97
|
+
"warning-surface": "#3A2E12",
|
|
98
|
+
"warning-border": "#FED766",
|
|
99
|
+
"error": "#FFAEA8",
|
|
100
|
+
"error-surface": "#3D2020",
|
|
101
|
+
"error-border": "#FFAEA8",
|
|
102
|
+
"code-surface": "#171717",
|
|
103
|
+
"code-text": "#FFFFFF",
|
|
104
|
+
"code-muted": "#B4B4B4",
|
|
105
|
+
"selection": "#383838",
|
|
106
|
+
"selection-text": "#FFFFFF",
|
|
107
|
+
"scrollbar": "#858585",
|
|
108
|
+
"scrollbar-track": "#171717",
|
|
109
|
+
"shadow-action": "0 3px 8px #00000040",
|
|
110
|
+
"shadow-panel": "0 2px 12px #00000020",
|
|
111
|
+
"shadow-dialog": "0 20px 100px #00000080"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
exports.tokens = tokens;
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/** Pinned foundations from Bubba's Brand Studio brand release 1.0.0. */
|
|
2
|
+
declare const tokens: {
|
|
3
|
+
readonly brandVersion: "1.0.0";
|
|
4
|
+
readonly systemVersion: "0.3.0";
|
|
5
|
+
readonly colors: {
|
|
6
|
+
readonly blue: "#007CE8";
|
|
7
|
+
readonly red: "#CC0000";
|
|
8
|
+
readonly redHover: "#A80000";
|
|
9
|
+
readonly navy: "#03256C";
|
|
10
|
+
readonly night: "#001845";
|
|
11
|
+
readonly ink: "#131B23";
|
|
12
|
+
readonly muted: "#526075";
|
|
13
|
+
readonly line: "#D9E8FB";
|
|
14
|
+
readonly white: "#FFFFFF";
|
|
15
|
+
readonly gold: "#FED766";
|
|
16
|
+
readonly disabled: "#F0F2F5";
|
|
17
|
+
readonly disabledText: "#6B727E";
|
|
18
|
+
};
|
|
19
|
+
readonly spacing: {
|
|
20
|
+
readonly 1: 4;
|
|
21
|
+
readonly 2: 8;
|
|
22
|
+
readonly 3: 12;
|
|
23
|
+
readonly 4: 16;
|
|
24
|
+
readonly 6: 24;
|
|
25
|
+
readonly 8: 32;
|
|
26
|
+
readonly 12: 48;
|
|
27
|
+
readonly 16: 64;
|
|
28
|
+
};
|
|
29
|
+
readonly radius: {
|
|
30
|
+
readonly control: 4;
|
|
31
|
+
readonly panel: 12;
|
|
32
|
+
};
|
|
33
|
+
readonly touchTarget: {
|
|
34
|
+
readonly minimum: 44;
|
|
35
|
+
readonly default: 48;
|
|
36
|
+
};
|
|
37
|
+
readonly layout: {
|
|
38
|
+
readonly maxWidth: 1200;
|
|
39
|
+
readonly readingWidth: 720;
|
|
40
|
+
readonly breakpoints: {
|
|
41
|
+
readonly compact: 640;
|
|
42
|
+
readonly wide: 960;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly motion: {
|
|
46
|
+
readonly feedback: 140;
|
|
47
|
+
};
|
|
48
|
+
readonly themes: {
|
|
49
|
+
readonly light: {
|
|
50
|
+
readonly canvas: "#F7F8FA";
|
|
51
|
+
readonly surface: "#FFFFFF";
|
|
52
|
+
readonly raised: "#FFFFFF";
|
|
53
|
+
readonly hover: "#F6F7F9";
|
|
54
|
+
readonly selected: "#ECEEF1";
|
|
55
|
+
readonly text: "#131B23";
|
|
56
|
+
readonly heading: "#03256C";
|
|
57
|
+
readonly muted: "#526075";
|
|
58
|
+
readonly line: "#E4E6EA";
|
|
59
|
+
readonly border: "#637086";
|
|
60
|
+
readonly link: "#03256C";
|
|
61
|
+
readonly 'link-hover': "#A80000";
|
|
62
|
+
readonly focus: "#03256C";
|
|
63
|
+
readonly 'focus-inner': "#FFFFFF";
|
|
64
|
+
readonly accent: "#CC0000";
|
|
65
|
+
readonly 'action-text': "#FFFFFF";
|
|
66
|
+
readonly 'action-border': "#A80000";
|
|
67
|
+
readonly 'disabled-surface': "#F0F2F5";
|
|
68
|
+
readonly 'disabled-text': "#6B727E";
|
|
69
|
+
readonly info: "#03256C";
|
|
70
|
+
readonly 'info-surface': "#F1F5FC";
|
|
71
|
+
readonly 'info-border': "#03256C";
|
|
72
|
+
readonly success: "#23633F";
|
|
73
|
+
readonly 'success-surface': "#EAF5EF";
|
|
74
|
+
readonly 'success-border': "#23633F";
|
|
75
|
+
readonly warning: "#805500";
|
|
76
|
+
readonly 'warning-surface': "#FFF4D6";
|
|
77
|
+
readonly 'warning-border': "#805500";
|
|
78
|
+
readonly error: "#B42318";
|
|
79
|
+
readonly 'error-surface': "#FFF0EF";
|
|
80
|
+
readonly 'error-border': "#B42318";
|
|
81
|
+
readonly 'code-surface': "#171717";
|
|
82
|
+
readonly 'code-text': "#FFFFFF";
|
|
83
|
+
readonly 'code-muted': "#B4B4B4";
|
|
84
|
+
readonly selection: "#D9E8FB";
|
|
85
|
+
readonly 'selection-text': "#131B23";
|
|
86
|
+
readonly scrollbar: "#637086";
|
|
87
|
+
readonly 'scrollbar-track': "#F7F8FA";
|
|
88
|
+
readonly 'shadow-action': "0 3px 8px #CC000024";
|
|
89
|
+
readonly 'shadow-panel': "0 2px 12px #131B2308";
|
|
90
|
+
readonly 'shadow-dialog': "0 20px 100px #00133345";
|
|
91
|
+
};
|
|
92
|
+
readonly dark: {
|
|
93
|
+
readonly canvas: "#171717";
|
|
94
|
+
readonly surface: "#202020";
|
|
95
|
+
readonly raised: "#292929";
|
|
96
|
+
readonly hover: "#303030";
|
|
97
|
+
readonly selected: "#383838";
|
|
98
|
+
readonly text: "#FFFFFF";
|
|
99
|
+
readonly heading: "#FFFFFF";
|
|
100
|
+
readonly muted: "#B4B4B4";
|
|
101
|
+
readonly line: "#3D3D3D";
|
|
102
|
+
readonly border: "#858585";
|
|
103
|
+
readonly link: "#8DC7FF";
|
|
104
|
+
readonly 'link-hover': "#B8DEFF";
|
|
105
|
+
readonly focus: "#FFFFFF";
|
|
106
|
+
readonly 'focus-inner': "#202020";
|
|
107
|
+
readonly accent: "#FF9F99";
|
|
108
|
+
readonly 'action-text': "#FFFFFF";
|
|
109
|
+
readonly 'action-border': "#EF817A";
|
|
110
|
+
readonly 'disabled-surface': "#242424";
|
|
111
|
+
readonly 'disabled-text': "#9A9A9A";
|
|
112
|
+
readonly info: "#8DC7FF";
|
|
113
|
+
readonly 'info-surface': "#1D2D3D";
|
|
114
|
+
readonly 'info-border': "#8DC7FF";
|
|
115
|
+
readonly success: "#8DDBA9";
|
|
116
|
+
readonly 'success-surface': "#183323";
|
|
117
|
+
readonly 'success-border': "#8DDBA9";
|
|
118
|
+
readonly warning: "#FED766";
|
|
119
|
+
readonly 'warning-surface': "#3A2E12";
|
|
120
|
+
readonly 'warning-border': "#FED766";
|
|
121
|
+
readonly error: "#FFAEA8";
|
|
122
|
+
readonly 'error-surface': "#3D2020";
|
|
123
|
+
readonly 'error-border': "#FFAEA8";
|
|
124
|
+
readonly 'code-surface': "#171717";
|
|
125
|
+
readonly 'code-text': "#FFFFFF";
|
|
126
|
+
readonly 'code-muted': "#B4B4B4";
|
|
127
|
+
readonly selection: "#383838";
|
|
128
|
+
readonly 'selection-text': "#FFFFFF";
|
|
129
|
+
readonly scrollbar: "#858585";
|
|
130
|
+
readonly 'scrollbar-track': "#171717";
|
|
131
|
+
readonly 'shadow-action': "0 3px 8px #00000040";
|
|
132
|
+
readonly 'shadow-panel': "0 2px 12px #00000020";
|
|
133
|
+
readonly 'shadow-dialog': "0 20px 100px #00000080";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
type BubbaTokens = typeof tokens;
|
|
138
|
+
|
|
139
|
+
export { type BubbaTokens, tokens };
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/** Pinned foundations from Bubba's Brand Studio brand release 1.0.0. */
|
|
2
|
+
declare const tokens: {
|
|
3
|
+
readonly brandVersion: "1.0.0";
|
|
4
|
+
readonly systemVersion: "0.3.0";
|
|
5
|
+
readonly colors: {
|
|
6
|
+
readonly blue: "#007CE8";
|
|
7
|
+
readonly red: "#CC0000";
|
|
8
|
+
readonly redHover: "#A80000";
|
|
9
|
+
readonly navy: "#03256C";
|
|
10
|
+
readonly night: "#001845";
|
|
11
|
+
readonly ink: "#131B23";
|
|
12
|
+
readonly muted: "#526075";
|
|
13
|
+
readonly line: "#D9E8FB";
|
|
14
|
+
readonly white: "#FFFFFF";
|
|
15
|
+
readonly gold: "#FED766";
|
|
16
|
+
readonly disabled: "#F0F2F5";
|
|
17
|
+
readonly disabledText: "#6B727E";
|
|
18
|
+
};
|
|
19
|
+
readonly spacing: {
|
|
20
|
+
readonly 1: 4;
|
|
21
|
+
readonly 2: 8;
|
|
22
|
+
readonly 3: 12;
|
|
23
|
+
readonly 4: 16;
|
|
24
|
+
readonly 6: 24;
|
|
25
|
+
readonly 8: 32;
|
|
26
|
+
readonly 12: 48;
|
|
27
|
+
readonly 16: 64;
|
|
28
|
+
};
|
|
29
|
+
readonly radius: {
|
|
30
|
+
readonly control: 4;
|
|
31
|
+
readonly panel: 12;
|
|
32
|
+
};
|
|
33
|
+
readonly touchTarget: {
|
|
34
|
+
readonly minimum: 44;
|
|
35
|
+
readonly default: 48;
|
|
36
|
+
};
|
|
37
|
+
readonly layout: {
|
|
38
|
+
readonly maxWidth: 1200;
|
|
39
|
+
readonly readingWidth: 720;
|
|
40
|
+
readonly breakpoints: {
|
|
41
|
+
readonly compact: 640;
|
|
42
|
+
readonly wide: 960;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
readonly motion: {
|
|
46
|
+
readonly feedback: 140;
|
|
47
|
+
};
|
|
48
|
+
readonly themes: {
|
|
49
|
+
readonly light: {
|
|
50
|
+
readonly canvas: "#F7F8FA";
|
|
51
|
+
readonly surface: "#FFFFFF";
|
|
52
|
+
readonly raised: "#FFFFFF";
|
|
53
|
+
readonly hover: "#F6F7F9";
|
|
54
|
+
readonly selected: "#ECEEF1";
|
|
55
|
+
readonly text: "#131B23";
|
|
56
|
+
readonly heading: "#03256C";
|
|
57
|
+
readonly muted: "#526075";
|
|
58
|
+
readonly line: "#E4E6EA";
|
|
59
|
+
readonly border: "#637086";
|
|
60
|
+
readonly link: "#03256C";
|
|
61
|
+
readonly 'link-hover': "#A80000";
|
|
62
|
+
readonly focus: "#03256C";
|
|
63
|
+
readonly 'focus-inner': "#FFFFFF";
|
|
64
|
+
readonly accent: "#CC0000";
|
|
65
|
+
readonly 'action-text': "#FFFFFF";
|
|
66
|
+
readonly 'action-border': "#A80000";
|
|
67
|
+
readonly 'disabled-surface': "#F0F2F5";
|
|
68
|
+
readonly 'disabled-text': "#6B727E";
|
|
69
|
+
readonly info: "#03256C";
|
|
70
|
+
readonly 'info-surface': "#F1F5FC";
|
|
71
|
+
readonly 'info-border': "#03256C";
|
|
72
|
+
readonly success: "#23633F";
|
|
73
|
+
readonly 'success-surface': "#EAF5EF";
|
|
74
|
+
readonly 'success-border': "#23633F";
|
|
75
|
+
readonly warning: "#805500";
|
|
76
|
+
readonly 'warning-surface': "#FFF4D6";
|
|
77
|
+
readonly 'warning-border': "#805500";
|
|
78
|
+
readonly error: "#B42318";
|
|
79
|
+
readonly 'error-surface': "#FFF0EF";
|
|
80
|
+
readonly 'error-border': "#B42318";
|
|
81
|
+
readonly 'code-surface': "#171717";
|
|
82
|
+
readonly 'code-text': "#FFFFFF";
|
|
83
|
+
readonly 'code-muted': "#B4B4B4";
|
|
84
|
+
readonly selection: "#D9E8FB";
|
|
85
|
+
readonly 'selection-text': "#131B23";
|
|
86
|
+
readonly scrollbar: "#637086";
|
|
87
|
+
readonly 'scrollbar-track': "#F7F8FA";
|
|
88
|
+
readonly 'shadow-action': "0 3px 8px #CC000024";
|
|
89
|
+
readonly 'shadow-panel': "0 2px 12px #131B2308";
|
|
90
|
+
readonly 'shadow-dialog': "0 20px 100px #00133345";
|
|
91
|
+
};
|
|
92
|
+
readonly dark: {
|
|
93
|
+
readonly canvas: "#171717";
|
|
94
|
+
readonly surface: "#202020";
|
|
95
|
+
readonly raised: "#292929";
|
|
96
|
+
readonly hover: "#303030";
|
|
97
|
+
readonly selected: "#383838";
|
|
98
|
+
readonly text: "#FFFFFF";
|
|
99
|
+
readonly heading: "#FFFFFF";
|
|
100
|
+
readonly muted: "#B4B4B4";
|
|
101
|
+
readonly line: "#3D3D3D";
|
|
102
|
+
readonly border: "#858585";
|
|
103
|
+
readonly link: "#8DC7FF";
|
|
104
|
+
readonly 'link-hover': "#B8DEFF";
|
|
105
|
+
readonly focus: "#FFFFFF";
|
|
106
|
+
readonly 'focus-inner': "#202020";
|
|
107
|
+
readonly accent: "#FF9F99";
|
|
108
|
+
readonly 'action-text': "#FFFFFF";
|
|
109
|
+
readonly 'action-border': "#EF817A";
|
|
110
|
+
readonly 'disabled-surface': "#242424";
|
|
111
|
+
readonly 'disabled-text': "#9A9A9A";
|
|
112
|
+
readonly info: "#8DC7FF";
|
|
113
|
+
readonly 'info-surface': "#1D2D3D";
|
|
114
|
+
readonly 'info-border': "#8DC7FF";
|
|
115
|
+
readonly success: "#8DDBA9";
|
|
116
|
+
readonly 'success-surface': "#183323";
|
|
117
|
+
readonly 'success-border': "#8DDBA9";
|
|
118
|
+
readonly warning: "#FED766";
|
|
119
|
+
readonly 'warning-surface': "#3A2E12";
|
|
120
|
+
readonly 'warning-border': "#FED766";
|
|
121
|
+
readonly error: "#FFAEA8";
|
|
122
|
+
readonly 'error-surface': "#3D2020";
|
|
123
|
+
readonly 'error-border': "#FFAEA8";
|
|
124
|
+
readonly 'code-surface': "#171717";
|
|
125
|
+
readonly 'code-text': "#FFFFFF";
|
|
126
|
+
readonly 'code-muted': "#B4B4B4";
|
|
127
|
+
readonly selection: "#383838";
|
|
128
|
+
readonly 'selection-text': "#FFFFFF";
|
|
129
|
+
readonly scrollbar: "#858585";
|
|
130
|
+
readonly 'scrollbar-track': "#171717";
|
|
131
|
+
readonly 'shadow-action': "0 3px 8px #00000040";
|
|
132
|
+
readonly 'shadow-panel': "0 2px 12px #00000020";
|
|
133
|
+
readonly 'shadow-dialog': "0 20px 100px #00000080";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
type BubbaTokens = typeof tokens;
|
|
138
|
+
|
|
139
|
+
export { type BubbaTokens, tokens };
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// src/tokens.ts
|
|
2
|
+
var tokens = {
|
|
3
|
+
brandVersion: "1.0.0",
|
|
4
|
+
systemVersion: "0.3.0",
|
|
5
|
+
colors: {
|
|
6
|
+
blue: "#007CE8",
|
|
7
|
+
red: "#CC0000",
|
|
8
|
+
redHover: "#A80000",
|
|
9
|
+
navy: "#03256C",
|
|
10
|
+
night: "#001845",
|
|
11
|
+
ink: "#131B23",
|
|
12
|
+
muted: "#526075",
|
|
13
|
+
line: "#D9E8FB",
|
|
14
|
+
white: "#FFFFFF",
|
|
15
|
+
gold: "#FED766",
|
|
16
|
+
disabled: "#F0F2F5",
|
|
17
|
+
disabledText: "#6B727E"
|
|
18
|
+
},
|
|
19
|
+
spacing: { 1: 4, 2: 8, 3: 12, 4: 16, 6: 24, 8: 32, 12: 48, 16: 64 },
|
|
20
|
+
radius: { control: 4, panel: 12 },
|
|
21
|
+
touchTarget: { minimum: 44, default: 48 },
|
|
22
|
+
layout: { maxWidth: 1200, readingWidth: 720, breakpoints: { compact: 640, wide: 960 } },
|
|
23
|
+
motion: { feedback: 140 },
|
|
24
|
+
themes: {
|
|
25
|
+
"light": {
|
|
26
|
+
"canvas": "#F7F8FA",
|
|
27
|
+
"surface": "#FFFFFF",
|
|
28
|
+
"raised": "#FFFFFF",
|
|
29
|
+
"hover": "#F6F7F9",
|
|
30
|
+
"selected": "#ECEEF1",
|
|
31
|
+
"text": "#131B23",
|
|
32
|
+
"heading": "#03256C",
|
|
33
|
+
"muted": "#526075",
|
|
34
|
+
"line": "#E4E6EA",
|
|
35
|
+
"border": "#637086",
|
|
36
|
+
"link": "#03256C",
|
|
37
|
+
"link-hover": "#A80000",
|
|
38
|
+
"focus": "#03256C",
|
|
39
|
+
"focus-inner": "#FFFFFF",
|
|
40
|
+
"accent": "#CC0000",
|
|
41
|
+
"action-text": "#FFFFFF",
|
|
42
|
+
"action-border": "#A80000",
|
|
43
|
+
"disabled-surface": "#F0F2F5",
|
|
44
|
+
"disabled-text": "#6B727E",
|
|
45
|
+
"info": "#03256C",
|
|
46
|
+
"info-surface": "#F1F5FC",
|
|
47
|
+
"info-border": "#03256C",
|
|
48
|
+
"success": "#23633F",
|
|
49
|
+
"success-surface": "#EAF5EF",
|
|
50
|
+
"success-border": "#23633F",
|
|
51
|
+
"warning": "#805500",
|
|
52
|
+
"warning-surface": "#FFF4D6",
|
|
53
|
+
"warning-border": "#805500",
|
|
54
|
+
"error": "#B42318",
|
|
55
|
+
"error-surface": "#FFF0EF",
|
|
56
|
+
"error-border": "#B42318",
|
|
57
|
+
"code-surface": "#171717",
|
|
58
|
+
"code-text": "#FFFFFF",
|
|
59
|
+
"code-muted": "#B4B4B4",
|
|
60
|
+
"selection": "#D9E8FB",
|
|
61
|
+
"selection-text": "#131B23",
|
|
62
|
+
"scrollbar": "#637086",
|
|
63
|
+
"scrollbar-track": "#F7F8FA",
|
|
64
|
+
"shadow-action": "0 3px 8px #CC000024",
|
|
65
|
+
"shadow-panel": "0 2px 12px #131B2308",
|
|
66
|
+
"shadow-dialog": "0 20px 100px #00133345"
|
|
67
|
+
},
|
|
68
|
+
"dark": {
|
|
69
|
+
"canvas": "#171717",
|
|
70
|
+
"surface": "#202020",
|
|
71
|
+
"raised": "#292929",
|
|
72
|
+
"hover": "#303030",
|
|
73
|
+
"selected": "#383838",
|
|
74
|
+
"text": "#FFFFFF",
|
|
75
|
+
"heading": "#FFFFFF",
|
|
76
|
+
"muted": "#B4B4B4",
|
|
77
|
+
"line": "#3D3D3D",
|
|
78
|
+
"border": "#858585",
|
|
79
|
+
"link": "#8DC7FF",
|
|
80
|
+
"link-hover": "#B8DEFF",
|
|
81
|
+
"focus": "#FFFFFF",
|
|
82
|
+
"focus-inner": "#202020",
|
|
83
|
+
"accent": "#FF9F99",
|
|
84
|
+
"action-text": "#FFFFFF",
|
|
85
|
+
"action-border": "#EF817A",
|
|
86
|
+
"disabled-surface": "#242424",
|
|
87
|
+
"disabled-text": "#9A9A9A",
|
|
88
|
+
"info": "#8DC7FF",
|
|
89
|
+
"info-surface": "#1D2D3D",
|
|
90
|
+
"info-border": "#8DC7FF",
|
|
91
|
+
"success": "#8DDBA9",
|
|
92
|
+
"success-surface": "#183323",
|
|
93
|
+
"success-border": "#8DDBA9",
|
|
94
|
+
"warning": "#FED766",
|
|
95
|
+
"warning-surface": "#3A2E12",
|
|
96
|
+
"warning-border": "#FED766",
|
|
97
|
+
"error": "#FFAEA8",
|
|
98
|
+
"error-surface": "#3D2020",
|
|
99
|
+
"error-border": "#FFAEA8",
|
|
100
|
+
"code-surface": "#171717",
|
|
101
|
+
"code-text": "#FFFFFF",
|
|
102
|
+
"code-muted": "#B4B4B4",
|
|
103
|
+
"selection": "#383838",
|
|
104
|
+
"selection-text": "#FFFFFF",
|
|
105
|
+
"scrollbar": "#858585",
|
|
106
|
+
"scrollbar-track": "#171717",
|
|
107
|
+
"shadow-action": "0 3px 8px #00000040",
|
|
108
|
+
"shadow-panel": "0 2px 12px #00000020",
|
|
109
|
+
"shadow-dialog": "0 20px 100px #00000080"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export { tokens };
|
package/package.json
CHANGED
|
@@ -1,6 +1,87 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubbasfw/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Bubba\u2019s universal React Native and web design system, styled with NativeWind.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.cjs",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"react-native": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"react-native": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"import": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"require": {
|
|
22
|
+
"types": "./dist/index.d.cts",
|
|
23
|
+
"default": "./dist/index.cjs"
|
|
24
|
+
},
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./tokens": {
|
|
28
|
+
"import": {
|
|
29
|
+
"types": "./dist/tokens.d.ts",
|
|
30
|
+
"default": "./dist/tokens.js"
|
|
31
|
+
},
|
|
32
|
+
"require": {
|
|
33
|
+
"types": "./dist/tokens.d.cts",
|
|
34
|
+
"default": "./dist/tokens.cjs"
|
|
35
|
+
},
|
|
36
|
+
"default": "./dist/tokens.js"
|
|
37
|
+
},
|
|
38
|
+
"./tailwind-preset": "./tailwind-preset.cjs",
|
|
39
|
+
"./package.json": "./package.json"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"src",
|
|
44
|
+
"tailwind-preset.cjs",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE"
|
|
47
|
+
],
|
|
48
|
+
"sideEffects": false,
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public"
|
|
51
|
+
},
|
|
52
|
+
"repository": {
|
|
53
|
+
"type": "git",
|
|
54
|
+
"url": "https://github.com/handh-dev/bubbas-ui.git",
|
|
55
|
+
"directory": "packages/ui"
|
|
56
|
+
},
|
|
57
|
+
"homepage": "https://handh-dev.github.io/bubbas-ui/",
|
|
58
|
+
"keywords": [
|
|
59
|
+
"react-native",
|
|
60
|
+
"react-native-web",
|
|
61
|
+
"expo",
|
|
62
|
+
"nextjs",
|
|
63
|
+
"nativewind",
|
|
64
|
+
"design-system",
|
|
65
|
+
"bubbas"
|
|
66
|
+
],
|
|
67
|
+
"scripts": {
|
|
68
|
+
"build": "tsup",
|
|
69
|
+
"typecheck": "tsc --noEmit",
|
|
70
|
+
"prepack": "pnpm build"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"tailwind-merge": "^2.6.1"
|
|
74
|
+
},
|
|
75
|
+
"peerDependencies": {
|
|
76
|
+
"react": "^19.2.3",
|
|
77
|
+
"react-native": "^0.86.3",
|
|
78
|
+
"react-native-web": "^0.21.4",
|
|
79
|
+
"nativewind": "^4.2.7",
|
|
80
|
+
"tailwindcss": "^3.4.17"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"react-native-web": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|