@noey-17/yearn-ui 0.7.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/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@noey-17/yearn-ui",
3
+ "version": "0.7.0",
4
+ "type": "module",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.js",
7
+ "exports": {
8
+ ".": "./dist/index.js",
9
+ "./style.css": "./dist/index.css",
10
+ "./theme.css": "./src/styles/theme.css",
11
+ "./theme-dark.css": "./src/styles/theme-dark.css"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "src/styles/theme.css",
16
+ "src/styles/theme-dark.css"
17
+ ],
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "scripts": {
22
+ "build": "vite build",
23
+ "storybook": "storybook dev -p 6006 --no-open",
24
+ "build-storybook": "storybook build"
25
+ },
26
+ "peerDependencies": {
27
+ "react": ">=19",
28
+ "react-dom": ">=19",
29
+ "tailwindcss": ">=4"
30
+ },
31
+ "dependencies": {
32
+ "prop-types": "^15.8.1",
33
+ "tailwind-merge": "^3.5.0"
34
+ },
35
+ "devDependencies": {
36
+ "@chromatic-com/storybook": "^5.1.1",
37
+ "@fontsource-variable/geist": "^5.2.8",
38
+ "@fontsource-variable/geist-mono": "^5.2.7",
39
+ "@storybook/addon-a11y": "^10.3.5",
40
+ "@storybook/addon-docs": "^10.3.5",
41
+ "@storybook/addon-themes": "^10.3.5",
42
+ "@storybook/react-vite": "^10.3.5",
43
+ "@tailwindcss/vite": "^4.2.2",
44
+ "@untitledui/icons": "^0.0.22",
45
+ "@vitejs/plugin-react": "^6.0.1",
46
+ "chromatic": "^16.1.0",
47
+ "storybook": "^10.3.5",
48
+ "tailwindcss": "^4.2.2",
49
+ "tailwindcss-animate": "^1.0.7",
50
+ "vite": "^8.0.4"
51
+ }
52
+ }
@@ -0,0 +1,41 @@
1
+ /* Dark mode semantic token overrides — sourced from Figma variables */
2
+ [data-theme="dark"] {
3
+
4
+ /* Text */
5
+ --color-text-primary: #fafafa;
6
+ --color-text-secondary: #d4d4d4;
7
+ --color-text-tertiary: #a3a3a3;
8
+ --color-text-placeholder: #737373;
9
+ --color-text-brand-primary: #fafafa;
10
+ --color-text-brand-secondary: #d4d4d4;
11
+ --color-text-white: #ffffff;
12
+
13
+ /* Border */
14
+ --color-border-primary: #404040;
15
+ --color-border-secondary: #262626;
16
+ --color-border-brand: #fb7039;
17
+ --color-border-error: #f87171;
18
+
19
+ /* Foreground */
20
+ --color-fg-primary: #ffffff;
21
+ --color-fg-secondary: #d4d4d4;
22
+ --color-fg-tertiary: #a3a3a3;
23
+ --color-fg-brand-primary: #fb7039;
24
+ --color-fg-brand-secondary: #fb7039;
25
+ --color-fg-error-primary: #ef4444;
26
+ --color-fg-white: #ffffff;
27
+
28
+ /* Background */
29
+ --color-bg-primary: #171717;
30
+ --color-bg-secondary: #171717;
31
+ --color-bg-tertiary: #262626;
32
+ --color-bg-brand-primary: #4a1404;
33
+ --color-bg-brand-secondary: #882c0e;
34
+ --color-bg-brand-solid: rgb(232 74 14);
35
+ --color-bg-brand-solid_hover: #fb7039;
36
+ --color-bg-error-primary: #450a0a;
37
+ --color-bg-error-solid: #dc2626;
38
+
39
+ /* Focus */
40
+ --color-focus-ring: #fb7039;
41
+ }
@@ -0,0 +1,91 @@
1
+ @theme {
2
+ /* FONT FAMILY */
3
+ --font-body: "Geist Variable", "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
4
+ --font-display: "Geist Variable", "Geist", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
5
+ --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "Roboto Mono", Menlo, Monaco, Consolas, monospace;
6
+
7
+ --text-xs: calc(var(--spacing) * 3);
8
+ --text-xs--line-height: calc(var(--spacing) * 4.5);
9
+ --text-sm: calc(var(--spacing) * 3.5);
10
+ --text-sm--line-height: calc(var(--spacing) * 5);
11
+ --text-md: calc(var(--spacing) * 4);
12
+ --text-md--line-height: calc(var(--spacing) * 6);
13
+ --text-lg: calc(var(--spacing) * 4.5);
14
+ --text-lg--line-height: calc(var(--spacing) * 7);
15
+ --text-xl: calc(var(--spacing) * 5);
16
+ --text-xl--line-height: calc(var(--spacing) * 7.5);
17
+
18
+ --radius-none: 0px;
19
+ --radius-xs: 0.125rem;
20
+ --radius-sm: 0.25rem;
21
+ --radius-DEFAULT: 0.25rem;
22
+ --radius-md: 0.375rem;
23
+ --radius-lg: 0.5rem;
24
+ --radius-xl: 0.75rem;
25
+ --radius-2xl: 1rem;
26
+ --radius-3xl: 1.5rem;
27
+ --radius-full: 9999px;
28
+
29
+ --shadow-xs: 0px 1px 2px rgba(0, 0, 0, 0.05);
30
+ --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px -1px rgba(0, 0, 0, 0.1);
31
+ --shadow-md: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.06);
32
+ --shadow-lg: 0px 12px 16px -4px rgba(0, 0, 0, 0.08), 0px 4px 6px -2px rgba(0, 0, 0, 0.03);
33
+ --shadow-xl: 0px 20px 24px -4px rgba(0, 0, 0, 0.08), 0px 8px 8px -4px rgba(0, 0, 0, 0.03);
34
+
35
+ /* Brand: Yearn Orange — #F95B1C */
36
+ --color-brand-50: rgb(255 242 235);
37
+ --color-brand-100: rgb(255 224 206);
38
+ --color-brand-200: rgb(255 194 163);
39
+ --color-brand-300: rgb(255 158 109);
40
+ --color-brand-400: rgb(251 112 57);
41
+ --color-brand-500: rgb(249 91 28);
42
+ --color-brand-600: rgb(232 74 14);
43
+ --color-brand-700: rgb(214 67 8);
44
+ --color-brand-800: rgb(170 52 10);
45
+ --color-brand-900: rgb(136 44 14);
46
+ --color-brand-950: rgb(74 20 4);
47
+
48
+ --color-text-primary: var(--color-neutral-900);
49
+ --color-text-secondary: var(--color-neutral-700);
50
+ --color-text-tertiary: var(--color-neutral-600);
51
+ --color-text-placeholder: var(--color-neutral-500);
52
+ --color-text-brand-primary: var(--color-brand-900);
53
+ --color-text-brand-secondary: var(--color-brand-700);
54
+ --color-text-white: var(--color-white);
55
+
56
+ --color-border-primary: var(--color-neutral-300);
57
+ --color-border-secondary: var(--color-neutral-200);
58
+ --color-border-brand: var(--color-brand-500);
59
+ --color-border-error: var(--color-red-500);
60
+
61
+ --color-fg-primary: var(--color-neutral-900);
62
+ --color-fg-secondary: var(--color-neutral-700);
63
+ --color-fg-tertiary: var(--color-neutral-600);
64
+ --color-fg-brand-primary: var(--color-brand-600);
65
+ --color-fg-brand-secondary: var(--color-brand-500);
66
+ --color-fg-error-primary: var(--color-red-600);
67
+ --color-fg-white: var(--color-white);
68
+
69
+ --color-bg-primary: var(--color-white);
70
+ --color-bg-secondary: var(--color-neutral-50);
71
+ --color-bg-tertiary: var(--color-neutral-100);
72
+ --color-bg-brand-primary: var(--color-brand-50);
73
+ --color-bg-brand-secondary: var(--color-brand-100);
74
+ --color-bg-brand-solid: var(--color-brand-600);
75
+ --color-bg-brand-solid_hover: var(--color-brand-700);
76
+ --color-bg-error-primary: var(--color-red-50);
77
+ --color-bg-error-solid: var(--color-red-600);
78
+ --color-focus-ring: var(--color-brand-500);
79
+ }
80
+
81
+ /* Runtime-overridable style tokens */
82
+ :root {
83
+ --radius-control: var(--radius-xl); /* 0.75rem */
84
+ --button-inset-shadow: inset 0px 0px 0px 1px rgba(0,0,0,0.20), inset 0px -3px 0px 0px rgba(0,0,0,0.16);
85
+ }
86
+
87
+ /* Simple style — fully rounded controls, no skeuomorphic shadows */
88
+ [data-style="simple"] {
89
+ --radius-control: var(--radius-full);
90
+ --button-inset-shadow: none;
91
+ }