@nuee/registry 0.3.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 +201 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.js +43 -0
- package/dist/items/accordion.json +20 -0
- package/dist/items/alert-dialog.json +17 -0
- package/dist/items/aspect-ratio.json +14 -0
- package/dist/items/attachment.json +16 -0
- package/dist/items/avatar.json +15 -0
- package/dist/items/badge.json +14 -0
- package/dist/items/banner.json +14 -0
- package/dist/items/breadcrumb.json +19 -0
- package/dist/items/bubble.json +14 -0
- package/dist/items/button-group.json +16 -0
- package/dist/items/button.json +15 -0
- package/dist/items/card.json +14 -0
- package/dist/items/checkbox.json +20 -0
- package/dist/items/collapsible.json +20 -0
- package/dist/items/combobox.json +20 -0
- package/dist/items/content-row.json +14 -0
- package/dist/items/context-menu.json +16 -0
- package/dist/items/dialog.json +20 -0
- package/dist/items/drawer.json +19 -0
- package/dist/items/dropdown-menu.json +20 -0
- package/dist/items/empty.json +14 -0
- package/dist/items/field.json +15 -0
- package/dist/items/hover-card.json +15 -0
- package/dist/items/input-group.json +18 -0
- package/dist/items/input-otp.json +15 -0
- package/dist/items/input.json +15 -0
- package/dist/items/kbd.json +14 -0
- package/dist/items/label.json +14 -0
- package/dist/items/link.json +20 -0
- package/dist/items/marker.json +14 -0
- package/dist/items/menubar.json +17 -0
- package/dist/items/message-scroller.json +21 -0
- package/dist/items/message.json +14 -0
- package/dist/items/native-select.json +19 -0
- package/dist/items/navigation-menu.json +20 -0
- package/dist/items/pagination.json +19 -0
- package/dist/items/popover.json +15 -0
- package/dist/items/progress.json +15 -0
- package/dist/items/radio-group.json +15 -0
- package/dist/items/scroll-area.json +15 -0
- package/dist/items/select.json +20 -0
- package/dist/items/separator.json +15 -0
- package/dist/items/skeleton.json +14 -0
- package/dist/items/slider.json +15 -0
- package/dist/items/spinner.json +14 -0
- package/dist/items/switch.json +15 -0
- package/dist/items/table.json +14 -0
- package/dist/items/tabs.json +15 -0
- package/dist/items/textarea.json +14 -0
- package/dist/items/toast.json +24 -0
- package/dist/items/toggle-group.json +17 -0
- package/dist/items/toggle.json +15 -0
- package/dist/items/tooltip.json +15 -0
- package/dist/items/typography.json +14 -0
- package/dist/items.d.ts +272 -0
- package/dist/items.js +272 -0
- package/dist/tokens/color-palette.stylex.ts +190 -0
- package/dist/tokens/semantic.stylex.ts +112 -0
- package/dist/tokens/themes.stylex.ts +102 -0
- package/package.json +28 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
|
|
3
|
+
export const colorPalette = stylex.defineVars({
|
|
4
|
+
neutral0: "oklch(100% 0 0)",
|
|
5
|
+
neutral50: "oklch(98.510% 0 0)",
|
|
6
|
+
neutral100: "oklch(97.015% 0 0)",
|
|
7
|
+
neutral150: "oklch(95.815% 0 0)",
|
|
8
|
+
neutral175: "oklch(94.007% 0 0)",
|
|
9
|
+
neutral200: "oklch(92.191% 0 0)",
|
|
10
|
+
neutral300: "oklch(86.994% 0 0)",
|
|
11
|
+
neutral400: "oklch(71.547% 0 0)",
|
|
12
|
+
neutral500: "oklch(55.553% 0 0)",
|
|
13
|
+
neutral600: "oklch(43.860% 0 0)",
|
|
14
|
+
neutral700: "oklch(37.149% 0 0)",
|
|
15
|
+
neutral800: "oklch(26.862% 0 0)",
|
|
16
|
+
neutral850: "oklch(22.213% 0 0)",
|
|
17
|
+
neutral900: "oklch(20.463% 0 0)",
|
|
18
|
+
neutral950: "oklch(14.479% 0 0)",
|
|
19
|
+
neutral1000: "oklch(0% 0 0)",
|
|
20
|
+
primaryWeak: "oklch(24.353% 0 0 / 20%)",
|
|
21
|
+
primaryWeakDark: "oklch(93.846% 0.0041 121.56 / 20%)",
|
|
22
|
+
primaryMuted: "oklch(24.353% 0 0 / 60%)",
|
|
23
|
+
primaryMutedDark: "oklch(93.846% 0.0041 121.56 / 60%)",
|
|
24
|
+
primarySolid: "oklch(24.353% 0 0)",
|
|
25
|
+
primarySolidDark: "oklch(93.846% 0.0041 121.56)",
|
|
26
|
+
primaryContrast: "oklch(24.353% 0 0)",
|
|
27
|
+
primaryContrastDark: "oklch(93.846% 0.0041 121.56)",
|
|
28
|
+
redWeak: "oklch(88.842% 0.0501 22.71)",
|
|
29
|
+
redWeakDark: "oklch(79.615% 0.1170 24.47 / 24%)",
|
|
30
|
+
redMuted: "oklch(82.720% 0.0510 21.28)",
|
|
31
|
+
redMutedDark: "oklch(71.697% 0.1767 23.77)",
|
|
32
|
+
redSolid: "oklch(39.780% 0.1604 22.34)",
|
|
33
|
+
redSolidDark: "oklch(79.615% 0.1170 24.47)",
|
|
34
|
+
redContrast: "oklch(39.780% 0.1604 22.34)",
|
|
35
|
+
redContrastDark: "oklch(87.589% 0.0659 24.27)",
|
|
36
|
+
redFeedback: "oklch(46.019% 0.1794 22.12)",
|
|
37
|
+
redBadge: "oklch(55.251% 0.1888 22.83)",
|
|
38
|
+
redBadgeDark: "oklch(71.578% 0.1783 29.77)",
|
|
39
|
+
orangeWeak: "oklch(88.680% 0.0597 54.50)",
|
|
40
|
+
orangeWeakDark: "oklch(79.232% 0.1420 57.20 / 24%)",
|
|
41
|
+
orangeMuted: "oklch(82.749% 0.0598 55.08)",
|
|
42
|
+
orangeMutedDark: "oklch(70.938% 0.1405 56.89)",
|
|
43
|
+
orangeSolid: "oklch(39.668% 0.0989 54.41)",
|
|
44
|
+
orangeSolidDark: "oklch(79.232% 0.1420 57.20)",
|
|
45
|
+
orangeContrast: "oklch(39.668% 0.0989 54.41)",
|
|
46
|
+
orangeContrastDark: "oklch(87.437% 0.0803 57.28)",
|
|
47
|
+
yellowWeak: "oklch(89.932% 0.0846 84.60)",
|
|
48
|
+
yellowWeakDark: "oklch(78.635% 0.1457 89.67 / 24%)",
|
|
49
|
+
yellowMuted: "oklch(82.759% 0.0996 85.33)",
|
|
50
|
+
yellowMutedDark: "oklch(69.931% 0.1403 90)",
|
|
51
|
+
yellowSolid: "oklch(39.679% 0.0811 89.57)",
|
|
52
|
+
yellowSolidDark: "oklch(78.635% 0.1457 89.67)",
|
|
53
|
+
yellowContrast: "oklch(39.679% 0.0811 89.57)",
|
|
54
|
+
yellowContrastDark: "oklch(87.227% 0.1502 88.76)",
|
|
55
|
+
yellowFeedback: "oklch(48.284% 0.0987 90.04)",
|
|
56
|
+
yellowBadge: "oklch(87.026% 0.1672 89.94)",
|
|
57
|
+
greenWeak: "oklch(88.883% 0.0603 141.35)",
|
|
58
|
+
greenWeakDark: "oklch(77.164% 0.1234 143.03 / 24%)",
|
|
59
|
+
greenMuted: "oklch(82.794% 0.0607 140.55)",
|
|
60
|
+
greenMutedDark: "oklch(68.460% 0.1219 143.49)",
|
|
61
|
+
greenSolid: "oklch(39.780% 0.1319 141.35)",
|
|
62
|
+
greenSolidDark: "oklch(77.164% 0.1234 143.03)",
|
|
63
|
+
greenContrast: "oklch(39.780% 0.1319 141.35)",
|
|
64
|
+
greenContrastDark: "oklch(85.701% 0.1228 143.15)",
|
|
65
|
+
greenFeedback: "oklch(47.252% 0.1593 142.77)",
|
|
66
|
+
greenBadge: "oklch(52.575% 0.1736 141.18)",
|
|
67
|
+
greenBadgeDark: "oklch(68.292% 0.1540 138.71)",
|
|
68
|
+
cyanWeak: "oklch(87.036% 0.0651 214.63)",
|
|
69
|
+
cyanWeakDark: "oklch(77.776% 0.0691 217.66 / 24%)",
|
|
70
|
+
cyanMuted: "oklch(82.814% 0.0701 214.56)",
|
|
71
|
+
cyanMutedDark: "oklch(69.157% 0.0701 216.58)",
|
|
72
|
+
cyanSolid: "oklch(39.727% 0.0705 215.91)",
|
|
73
|
+
cyanSolidDark: "oklch(77.776% 0.0691 217.66)",
|
|
74
|
+
cyanContrast: "oklch(39.727% 0.0705 215.91)",
|
|
75
|
+
cyanContrastDark: "oklch(86.361% 0.0691 217.16)",
|
|
76
|
+
blueWeak: "oklch(88.873% 0.0494 253.08)",
|
|
77
|
+
blueWeakDark: "oklch(78.788% 0.1067 269.17 / 24%)",
|
|
78
|
+
blueMuted: "oklch(82.782% 0.0497 254.11)",
|
|
79
|
+
blueMutedDark: "oklch(70.325% 0.1529 263.59)",
|
|
80
|
+
blueSolid: "oklch(39.777% 0.1328 255.38)",
|
|
81
|
+
blueSolidDark: "oklch(78.788% 0.1067 269.17)",
|
|
82
|
+
blueContrast: "oklch(39.777% 0.1328 255.38)",
|
|
83
|
+
blueContrastDark: "oklch(87.221% 0.0624 273.09)",
|
|
84
|
+
blueBadge: "oklch(56.862% 0.1886 255.20)",
|
|
85
|
+
purpleWeak: "oklch(88.776% 0.0594 319.84)",
|
|
86
|
+
purpleWeakDark: "oklch(80.457% 0.1702 322.40 / 24%)",
|
|
87
|
+
purpleMuted: "oklch(82.803% 0.0587 319.66)",
|
|
88
|
+
purpleMutedDark: "oklch(72.362% 0.2005 321.31)",
|
|
89
|
+
purpleSolid: "oklch(39.712% 0.1906 319.94)",
|
|
90
|
+
purpleSolidDark: "oklch(80.457% 0.1702 322.40)",
|
|
91
|
+
purpleContrast: "oklch(39.712% 0.1906 319.94)",
|
|
92
|
+
purpleContrastDark: "oklch(88.122% 0.1033 323.74)",
|
|
93
|
+
pinkWeak: "oklch(88.765% 0.0609 354.86)",
|
|
94
|
+
pinkWeakDark: "oklch(79.985% 0.1308 354.26 / 24%)",
|
|
95
|
+
pinkMuted: "oklch(82.709% 0.0594 355.30)",
|
|
96
|
+
pinkMutedDark: "oklch(71.991% 0.1660 354.87)",
|
|
97
|
+
pinkSolid: "oklch(39.812% 0.1633 355.32)",
|
|
98
|
+
pinkSolidDark: "oklch(79.985% 0.1308 354.26)",
|
|
99
|
+
pinkContrast: "oklch(39.812% 0.1633 355.32)",
|
|
100
|
+
pinkContrastDark: "oklch(87.736% 0.0742 353.89)",
|
|
101
|
+
alphaBlack4: "oklch(0% 0 0 / 5%)",
|
|
102
|
+
alphaBlack6: "oklch(0% 0 0 / 6%)",
|
|
103
|
+
alphaBlack8: "oklch(0% 0 0 / 8%)",
|
|
104
|
+
alphaBlack10: "oklch(0% 0 0 / 10%)",
|
|
105
|
+
alphaBlack20: "oklch(0% 0 0 / 20%)",
|
|
106
|
+
alphaBlack30: "oklch(0% 0 0 / 30%)",
|
|
107
|
+
alphaBlack50: "oklch(0% 0 0 / 50%)",
|
|
108
|
+
alphaBlack80: "oklch(0% 0 0 / 80%)",
|
|
109
|
+
alphaWhite5: "oklch(100% 0 0 / 5%)",
|
|
110
|
+
alphaWhite8: "oklch(100% 0 0 / 8%)",
|
|
111
|
+
alphaWhite10: "oklch(100% 0 0 / 10%)",
|
|
112
|
+
alphaWhite12: "oklch(100% 0 0 / 12%)",
|
|
113
|
+
alphaWhite20: "oklch(100% 0 0 / 20%)",
|
|
114
|
+
alphaWhite50: "oklch(100% 0 0 / 50%)",
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export const colorPaletteGroups = {
|
|
118
|
+
neutral: {
|
|
119
|
+
0: colorPalette.neutral0,
|
|
120
|
+
50: colorPalette.neutral50,
|
|
121
|
+
100: colorPalette.neutral100,
|
|
122
|
+
150: colorPalette.neutral150,
|
|
123
|
+
175: colorPalette.neutral175,
|
|
124
|
+
200: colorPalette.neutral200,
|
|
125
|
+
300: colorPalette.neutral300,
|
|
126
|
+
400: colorPalette.neutral400,
|
|
127
|
+
500: colorPalette.neutral500,
|
|
128
|
+
600: colorPalette.neutral600,
|
|
129
|
+
700: colorPalette.neutral700,
|
|
130
|
+
800: colorPalette.neutral800,
|
|
131
|
+
850: colorPalette.neutral850,
|
|
132
|
+
900: colorPalette.neutral900,
|
|
133
|
+
950: colorPalette.neutral950,
|
|
134
|
+
1000: colorPalette.neutral1000,
|
|
135
|
+
},
|
|
136
|
+
primary: {
|
|
137
|
+
weak: colorPalette.primaryWeak,
|
|
138
|
+
muted: colorPalette.primaryMuted,
|
|
139
|
+
solid: colorPalette.primarySolid,
|
|
140
|
+
contrast: colorPalette.primaryContrast,
|
|
141
|
+
},
|
|
142
|
+
red: {
|
|
143
|
+
weak: colorPalette.redWeak,
|
|
144
|
+
muted: colorPalette.redMuted,
|
|
145
|
+
solid: colorPalette.redSolid,
|
|
146
|
+
contrast: colorPalette.redContrast,
|
|
147
|
+
},
|
|
148
|
+
orange: {
|
|
149
|
+
weak: colorPalette.orangeWeak,
|
|
150
|
+
muted: colorPalette.orangeMuted,
|
|
151
|
+
solid: colorPalette.orangeSolid,
|
|
152
|
+
contrast: colorPalette.orangeContrast,
|
|
153
|
+
},
|
|
154
|
+
yellow: {
|
|
155
|
+
weak: colorPalette.yellowWeak,
|
|
156
|
+
muted: colorPalette.yellowMuted,
|
|
157
|
+
solid: colorPalette.yellowSolid,
|
|
158
|
+
contrast: colorPalette.yellowContrast,
|
|
159
|
+
},
|
|
160
|
+
green: {
|
|
161
|
+
weak: colorPalette.greenWeak,
|
|
162
|
+
muted: colorPalette.greenMuted,
|
|
163
|
+
solid: colorPalette.greenSolid,
|
|
164
|
+
contrast: colorPalette.greenContrast,
|
|
165
|
+
},
|
|
166
|
+
cyan: {
|
|
167
|
+
weak: colorPalette.cyanWeak,
|
|
168
|
+
muted: colorPalette.cyanMuted,
|
|
169
|
+
solid: colorPalette.cyanSolid,
|
|
170
|
+
contrast: colorPalette.cyanContrast,
|
|
171
|
+
},
|
|
172
|
+
blue: {
|
|
173
|
+
weak: colorPalette.blueWeak,
|
|
174
|
+
muted: colorPalette.blueMuted,
|
|
175
|
+
solid: colorPalette.blueSolid,
|
|
176
|
+
contrast: colorPalette.blueContrast,
|
|
177
|
+
},
|
|
178
|
+
purple: {
|
|
179
|
+
weak: colorPalette.purpleWeak,
|
|
180
|
+
muted: colorPalette.purpleMuted,
|
|
181
|
+
solid: colorPalette.purpleSolid,
|
|
182
|
+
contrast: colorPalette.purpleContrast,
|
|
183
|
+
},
|
|
184
|
+
pink: {
|
|
185
|
+
weak: colorPalette.pinkWeak,
|
|
186
|
+
muted: colorPalette.pinkMuted,
|
|
187
|
+
solid: colorPalette.pinkSolid,
|
|
188
|
+
contrast: colorPalette.pinkContrast,
|
|
189
|
+
},
|
|
190
|
+
} as const;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
|
|
3
|
+
import { colorPalette } from "./color-palette.stylex";
|
|
4
|
+
|
|
5
|
+
export const colorVars = stylex.defineVars({
|
|
6
|
+
bgCanvas: colorPalette.neutral100,
|
|
7
|
+
bgSurface: colorPalette.neutral0,
|
|
8
|
+
bgSurfacePressed: "oklch(97% 0 0)",
|
|
9
|
+
bgSubtle: colorPalette.neutral50,
|
|
10
|
+
bgRaised: colorPalette.neutral0,
|
|
11
|
+
bgRaisedPressed: "oklch(97% 0 0)",
|
|
12
|
+
bgActionPrimary: colorPalette.primarySolid,
|
|
13
|
+
bgActionDestructive: colorPalette.redFeedback,
|
|
14
|
+
bgFeedbackInfo: colorPalette.blueWeak,
|
|
15
|
+
bgFeedbackSuccess: colorPalette.greenWeak,
|
|
16
|
+
bgFeedbackWarning: colorPalette.yellowWeak,
|
|
17
|
+
bgFeedbackError: colorPalette.redWeak,
|
|
18
|
+
fgPrimary: colorPalette.neutral950,
|
|
19
|
+
fgSecondary: colorPalette.neutral600,
|
|
20
|
+
fgTertiary: colorPalette.neutral500,
|
|
21
|
+
fgDisabled: colorPalette.alphaBlack50,
|
|
22
|
+
fgInverse: colorPalette.neutral0,
|
|
23
|
+
fgOnActionPrimary: colorPalette.neutral0,
|
|
24
|
+
fgOnActionDestructive: colorPalette.neutral0,
|
|
25
|
+
fgAction: colorPalette.primarySolid,
|
|
26
|
+
fgFeedbackInfo: colorPalette.blueSolid,
|
|
27
|
+
fgFeedbackSuccess: colorPalette.greenFeedback,
|
|
28
|
+
fgFeedbackWarning: colorPalette.yellowFeedback,
|
|
29
|
+
fgFeedbackError: colorPalette.redFeedback,
|
|
30
|
+
strokeDefault: colorPalette.neutral200,
|
|
31
|
+
strokeStrong: colorPalette.neutral300,
|
|
32
|
+
strokeFocus: colorPalette.blueBadge,
|
|
33
|
+
strokeAction: colorPalette.primarySolid,
|
|
34
|
+
strokeFeedbackInfo: colorPalette.blueMuted,
|
|
35
|
+
strokeFeedbackSuccess: colorPalette.greenMuted,
|
|
36
|
+
strokeFeedbackWarning: colorPalette.yellowMuted,
|
|
37
|
+
strokeFeedbackError: colorPalette.redMuted,
|
|
38
|
+
interactionDefault: "transparent",
|
|
39
|
+
interactionHover: colorPalette.alphaBlack6,
|
|
40
|
+
interactionPressed: "oklch(97% 0 0)",
|
|
41
|
+
interactionSolidHover: colorPalette.alphaWhite10,
|
|
42
|
+
interactionSolidPressed: colorPalette.alphaWhite20,
|
|
43
|
+
interactionSelected: "oklch(97% 0 0)",
|
|
44
|
+
interactionDisabled: colorPalette.alphaBlack8,
|
|
45
|
+
interactionFocus: colorPalette.blueBadge,
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const spacingVars = stylex.defineVars({
|
|
49
|
+
space0: "0",
|
|
50
|
+
space1: "0.25rem",
|
|
51
|
+
space2: "0.5rem",
|
|
52
|
+
space3: "0.75rem",
|
|
53
|
+
space4: "1rem",
|
|
54
|
+
space5: "1.25rem",
|
|
55
|
+
space6: "1.5rem",
|
|
56
|
+
space8: "2rem",
|
|
57
|
+
space10: "2.5rem",
|
|
58
|
+
space12: "3rem",
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export const sizeVars = stylex.defineVars({
|
|
62
|
+
controlSm: "2rem",
|
|
63
|
+
controlMd: "2.25rem",
|
|
64
|
+
controlLg: "2.5rem",
|
|
65
|
+
iconSm: "0.875rem",
|
|
66
|
+
iconMd: "1rem",
|
|
67
|
+
contentSm: "24rem",
|
|
68
|
+
contentMd: "32rem",
|
|
69
|
+
touchTarget: "2.75rem",
|
|
70
|
+
stroke: "0.0625rem",
|
|
71
|
+
focusRing: "0.125rem",
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export const radiusVars = stylex.defineVars({
|
|
75
|
+
sm: "0.375rem",
|
|
76
|
+
md: "0.5rem",
|
|
77
|
+
lg: "0.75rem",
|
|
78
|
+
full: "9999px",
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const shadowVars = stylex.defineVars({
|
|
82
|
+
subtle: "0 1px 4px oklch(0% 0 0 / 8%)",
|
|
83
|
+
floating: "0 2px 10px oklch(0% 0 0 / 10%)",
|
|
84
|
+
overlay: "0 4px 16px oklch(0% 0 0 / 12%)",
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
export const typographyVars = stylex.defineVars({
|
|
88
|
+
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
|
|
89
|
+
fontSizeXs: "0.75rem",
|
|
90
|
+
fontSizeSm: "0.875rem",
|
|
91
|
+
fontSizeMd: "1rem",
|
|
92
|
+
fontSizeLg: "1.125rem",
|
|
93
|
+
fontSizeXl: "1.5rem",
|
|
94
|
+
lineHeightTight: "1.25",
|
|
95
|
+
lineHeightNormal: "1.5",
|
|
96
|
+
fontWeightRegular: "400",
|
|
97
|
+
fontWeightMedium: "500",
|
|
98
|
+
fontWeightSemibold: "600",
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
export const opacityVars = stylex.defineVars({
|
|
102
|
+
disabled: "0.8",
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
export const motionVars = stylex.defineVars({
|
|
106
|
+
durationFast: "120ms",
|
|
107
|
+
durationNormal: "180ms",
|
|
108
|
+
durationSlow: "240ms",
|
|
109
|
+
easingStandard: "cubic-bezier(0.2, 0, 0, 1)",
|
|
110
|
+
easingEnter: "cubic-bezier(0.16, 1, 0.3, 1)",
|
|
111
|
+
easingExit: "cubic-bezier(0.4, 0, 1, 1)",
|
|
112
|
+
});
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as stylex from "@stylexjs/stylex";
|
|
2
|
+
|
|
3
|
+
import { colorPalette } from "./color-palette.stylex";
|
|
4
|
+
import { colorVars, shadowVars } from "./semantic.stylex";
|
|
5
|
+
|
|
6
|
+
export const lightColorTheme = stylex.createTheme(colorVars, {
|
|
7
|
+
bgCanvas: colorPalette.neutral100,
|
|
8
|
+
bgSurface: colorPalette.neutral0,
|
|
9
|
+
bgSurfacePressed: "oklch(97% 0 0)",
|
|
10
|
+
bgSubtle: colorPalette.neutral50,
|
|
11
|
+
bgRaised: colorPalette.neutral0,
|
|
12
|
+
bgRaisedPressed: "oklch(97% 0 0)",
|
|
13
|
+
bgActionPrimary: colorPalette.primarySolid,
|
|
14
|
+
bgActionDestructive: colorPalette.redFeedback,
|
|
15
|
+
bgFeedbackInfo: colorPalette.blueWeak,
|
|
16
|
+
bgFeedbackSuccess: colorPalette.greenWeak,
|
|
17
|
+
bgFeedbackWarning: colorPalette.yellowWeak,
|
|
18
|
+
bgFeedbackError: colorPalette.redWeak,
|
|
19
|
+
fgPrimary: colorPalette.neutral950,
|
|
20
|
+
fgSecondary: colorPalette.neutral600,
|
|
21
|
+
fgTertiary: colorPalette.neutral500,
|
|
22
|
+
fgDisabled: colorPalette.alphaBlack50,
|
|
23
|
+
fgInverse: colorPalette.neutral0,
|
|
24
|
+
fgOnActionPrimary: colorPalette.neutral0,
|
|
25
|
+
fgOnActionDestructive: colorPalette.neutral0,
|
|
26
|
+
fgAction: colorPalette.primarySolid,
|
|
27
|
+
fgFeedbackInfo: colorPalette.blueSolid,
|
|
28
|
+
fgFeedbackSuccess: colorPalette.greenFeedback,
|
|
29
|
+
fgFeedbackWarning: colorPalette.yellowFeedback,
|
|
30
|
+
fgFeedbackError: colorPalette.redFeedback,
|
|
31
|
+
strokeDefault: colorPalette.neutral200,
|
|
32
|
+
strokeStrong: colorPalette.neutral300,
|
|
33
|
+
strokeFocus: colorPalette.blueBadge,
|
|
34
|
+
strokeAction: colorPalette.primarySolid,
|
|
35
|
+
strokeFeedbackInfo: colorPalette.blueMuted,
|
|
36
|
+
strokeFeedbackSuccess: colorPalette.greenMuted,
|
|
37
|
+
strokeFeedbackWarning: colorPalette.yellowMuted,
|
|
38
|
+
strokeFeedbackError: colorPalette.redMuted,
|
|
39
|
+
interactionDefault: "transparent",
|
|
40
|
+
interactionHover: colorPalette.alphaBlack6,
|
|
41
|
+
interactionPressed: "oklch(97% 0 0)",
|
|
42
|
+
interactionSolidHover: colorPalette.alphaWhite10,
|
|
43
|
+
interactionSolidPressed: colorPalette.alphaWhite20,
|
|
44
|
+
interactionSelected: "oklch(97% 0 0)",
|
|
45
|
+
interactionDisabled: colorPalette.alphaBlack8,
|
|
46
|
+
interactionFocus: colorPalette.blueBadge,
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export const darkColorTheme = stylex.createTheme(colorVars, {
|
|
50
|
+
bgCanvas: colorPalette.neutral950,
|
|
51
|
+
bgSurface: colorPalette.alphaWhite5,
|
|
52
|
+
bgSurfacePressed: colorPalette.alphaWhite10,
|
|
53
|
+
bgSubtle: colorPalette.alphaWhite8,
|
|
54
|
+
bgRaised: colorPalette.neutral850,
|
|
55
|
+
bgRaisedPressed: colorPalette.neutral800,
|
|
56
|
+
bgActionPrimary: colorPalette.primarySolidDark,
|
|
57
|
+
bgActionDestructive: colorPalette.redFeedback,
|
|
58
|
+
bgFeedbackInfo: colorPalette.blueWeakDark,
|
|
59
|
+
bgFeedbackSuccess: colorPalette.greenWeakDark,
|
|
60
|
+
bgFeedbackWarning: colorPalette.yellowWeakDark,
|
|
61
|
+
bgFeedbackError: colorPalette.redWeakDark,
|
|
62
|
+
fgPrimary: colorPalette.neutral50,
|
|
63
|
+
fgSecondary: colorPalette.neutral300,
|
|
64
|
+
fgTertiary: colorPalette.neutral400,
|
|
65
|
+
fgDisabled: colorPalette.alphaWhite50,
|
|
66
|
+
fgInverse: colorPalette.neutral950,
|
|
67
|
+
fgOnActionPrimary: colorPalette.neutral950,
|
|
68
|
+
fgOnActionDestructive: colorPalette.neutral0,
|
|
69
|
+
fgAction: colorPalette.primaryContrastDark,
|
|
70
|
+
fgFeedbackInfo: colorPalette.blueContrastDark,
|
|
71
|
+
fgFeedbackSuccess: colorPalette.greenContrastDark,
|
|
72
|
+
fgFeedbackWarning: colorPalette.yellowContrastDark,
|
|
73
|
+
fgFeedbackError: colorPalette.redContrastDark,
|
|
74
|
+
strokeDefault: colorPalette.neutral700,
|
|
75
|
+
strokeStrong: colorPalette.neutral600,
|
|
76
|
+
strokeFocus: colorPalette.blueSolidDark,
|
|
77
|
+
strokeAction: colorPalette.primarySolidDark,
|
|
78
|
+
strokeFeedbackInfo: colorPalette.blueMutedDark,
|
|
79
|
+
strokeFeedbackSuccess: colorPalette.greenMutedDark,
|
|
80
|
+
strokeFeedbackWarning: colorPalette.yellowMutedDark,
|
|
81
|
+
strokeFeedbackError: colorPalette.redMutedDark,
|
|
82
|
+
interactionDefault: "transparent",
|
|
83
|
+
interactionHover: colorPalette.alphaWhite5,
|
|
84
|
+
interactionPressed: colorPalette.alphaWhite10,
|
|
85
|
+
interactionSolidHover: colorPalette.alphaBlack10,
|
|
86
|
+
interactionSolidPressed: colorPalette.alphaBlack20,
|
|
87
|
+
interactionSelected: colorPalette.primaryWeakDark,
|
|
88
|
+
interactionDisabled: colorPalette.alphaWhite10,
|
|
89
|
+
interactionFocus: colorPalette.blueSolidDark,
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
export const lightShadowTheme = stylex.createTheme(shadowVars, {
|
|
93
|
+
subtle: "0 1px 4px oklch(0% 0 0 / 8%)",
|
|
94
|
+
floating: "0 2px 10px oklch(0% 0 0 / 10%)",
|
|
95
|
+
overlay: "0 4px 16px oklch(0% 0 0 / 12%)",
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export const darkShadowTheme = stylex.createTheme(shadowVars, {
|
|
99
|
+
subtle: "0 1px 4px oklch(0% 0 0 / 50%)",
|
|
100
|
+
floating: "0 2px 10px oklch(0% 0 0 / 68%)",
|
|
101
|
+
overlay: "0 4px 16px oklch(0% 0 0 / 80%)",
|
|
102
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nuee/registry",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/nueexyz/ui.git"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"exports": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^22.20.1",
|
|
22
|
+
"typescript": "7.0.2"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc -p tsconfig.build.json && node --experimental-strip-types scripts/build.ts",
|
|
26
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit"
|
|
27
|
+
}
|
|
28
|
+
}
|