@ryanhelsing/ry-ui 1.0.0 → 1.0.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.
- package/README.md +2 -0
- package/USING_CDN.md +591 -0
- package/dist/components/ry-dropdown.d.ts.map +1 -1
- package/dist/components/ry-example.d.ts +7 -0
- package/dist/components/ry-example.d.ts.map +1 -1
- package/dist/components/ry-gradient-picker.d.ts +39 -0
- package/dist/components/ry-gradient-picker.d.ts.map +1 -0
- package/dist/components/ry-number-select.d.ts +30 -0
- package/dist/components/ry-number-select.d.ts.map +1 -0
- package/dist/components/ry-tree.d.ts +41 -0
- package/dist/components/ry-tree.d.ts.map +1 -0
- package/dist/core/ry-icons.d.ts.map +1 -1
- package/dist/core/ry-transform.d.ts.map +1 -1
- package/dist/css/ry-structure.css +484 -1
- package/dist/css/ry-theme.css +365 -0
- package/dist/css/ry-ui.css +151 -6
- package/dist/ry-ui.d.ts +5 -0
- package/dist/ry-ui.d.ts.map +1 -1
- package/dist/ry-ui.js +1391 -441
- package/dist/ry-ui.js.map +1 -1
- package/dist/themes/dark.css +92 -0
- package/dist/themes/light.css +38 -0
- package/dist/themes/ocean.css +48 -0
- package/package.json +6 -4
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ry-ui Dark Theme
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
[data-ry-theme="dark"] {
|
|
6
|
+
/* Colors */
|
|
7
|
+
--ry-color-primary: #60a5fa;
|
|
8
|
+
--ry-color-primary-hover: #3b82f6;
|
|
9
|
+
--ry-color-primary-active: #2563eb;
|
|
10
|
+
|
|
11
|
+
--ry-color-secondary: #94a3b8;
|
|
12
|
+
--ry-color-secondary-hover: #cbd5e1;
|
|
13
|
+
--ry-color-secondary-active: #e2e8f0;
|
|
14
|
+
|
|
15
|
+
/* Text */
|
|
16
|
+
--ry-color-text: #f1f5f9;
|
|
17
|
+
--ry-color-text-muted: #94a3b8;
|
|
18
|
+
--ry-color-text-inverse: #0f172a;
|
|
19
|
+
|
|
20
|
+
/* Background */
|
|
21
|
+
--ry-color-bg: #0f172a;
|
|
22
|
+
--ry-color-bg-subtle: #1e293b;
|
|
23
|
+
--ry-color-bg-muted: #334155;
|
|
24
|
+
|
|
25
|
+
/* Border */
|
|
26
|
+
--ry-color-border: #334155;
|
|
27
|
+
--ry-color-border-strong: #475569;
|
|
28
|
+
|
|
29
|
+
/* Overlay */
|
|
30
|
+
--ry-color-overlay: rgba(0, 0, 0, 0.7);
|
|
31
|
+
|
|
32
|
+
/* Shadows (more subtle in dark mode) */
|
|
33
|
+
--ry-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
|
34
|
+
--ry-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
|
35
|
+
--ry-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
|
|
36
|
+
--ry-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
|
|
37
|
+
|
|
38
|
+
/* Focus */
|
|
39
|
+
--ry-focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.5);
|
|
40
|
+
|
|
41
|
+
/* Code block - Vibrant (using theme colors) */
|
|
42
|
+
--ry-code-bg: #0f172a;
|
|
43
|
+
--ry-code-header-bg: #1e293b;
|
|
44
|
+
--ry-code-text-color: #f1f5f9;
|
|
45
|
+
--ry-code-title-color: #94a3b8;
|
|
46
|
+
--ry-code-icon-color: #64748b;
|
|
47
|
+
--ry-code-icon-hover-bg: #334155;
|
|
48
|
+
--ry-code-icon-hover-color: #f1f5f9;
|
|
49
|
+
--ry-code-line-number-color: rgba(71, 85, 105, 0.6);
|
|
50
|
+
--ry-code-line-border-color: #334155;
|
|
51
|
+
--ry-code-color-preview-border: rgba(241, 245, 249, 0.3);
|
|
52
|
+
/* Syntax - theme button colors */
|
|
53
|
+
--ry-code-keyword: #ef4444;
|
|
54
|
+
--ry-code-property: #60a5fa;
|
|
55
|
+
--ry-code-value: #f59e0b;
|
|
56
|
+
--ry-code-string: #22c55e;
|
|
57
|
+
--ry-code-number: #f59e0b;
|
|
58
|
+
--ry-code-comment: #94a3b8;
|
|
59
|
+
--ry-code-selector: #06b6d4;
|
|
60
|
+
--ry-code-punctuation: #94a3b8;
|
|
61
|
+
--ry-code-tag: #06b6d4;
|
|
62
|
+
--ry-code-attribute: #60a5fa;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Alert overrides for dark mode */
|
|
66
|
+
[data-ry-theme="dark"] .ry-alert--info,
|
|
67
|
+
[data-ry-theme="dark"] ry-alert[type="info"] {
|
|
68
|
+
background-color: #164e63;
|
|
69
|
+
border-color: #06b6d4;
|
|
70
|
+
color: #a5f3fc;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-ry-theme="dark"] .ry-alert--success,
|
|
74
|
+
[data-ry-theme="dark"] ry-alert[type="success"] {
|
|
75
|
+
background-color: #14532d;
|
|
76
|
+
border-color: #22c55e;
|
|
77
|
+
color: #bbf7d0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-ry-theme="dark"] .ry-alert--warning,
|
|
81
|
+
[data-ry-theme="dark"] ry-alert[type="warning"] {
|
|
82
|
+
background-color: #78350f;
|
|
83
|
+
border-color: #f59e0b;
|
|
84
|
+
color: #fef3c7;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[data-ry-theme="dark"] .ry-alert--danger,
|
|
88
|
+
[data-ry-theme="dark"] ry-alert[type="danger"] {
|
|
89
|
+
background-color: #7f1d1d;
|
|
90
|
+
border-color: #ef4444;
|
|
91
|
+
color: #fecaca;
|
|
92
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ry-ui Light Theme
|
|
3
|
+
*
|
|
4
|
+
* This is the default theme.
|
|
5
|
+
* Most values inherit from ry-tokens.css.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
[data-ry-theme="light"] {
|
|
9
|
+
/* Light theme is the default, so minimal overrides needed */
|
|
10
|
+
--ry-color-bg: #ffffff;
|
|
11
|
+
--ry-color-bg-subtle: #f8fafc;
|
|
12
|
+
--ry-color-bg-muted: #f1f5f9;
|
|
13
|
+
--ry-color-text: #1e293b;
|
|
14
|
+
--ry-color-text-muted: #64748b;
|
|
15
|
+
|
|
16
|
+
/* Code block - Cool/Minimal (GitHub style) */
|
|
17
|
+
--ry-code-bg: #f6f8fa;
|
|
18
|
+
--ry-code-header-bg: #eaeef2;
|
|
19
|
+
--ry-code-text-color: #24292f;
|
|
20
|
+
--ry-code-title-color: #57606a;
|
|
21
|
+
--ry-code-icon-color: #8c959f;
|
|
22
|
+
--ry-code-icon-hover-bg: #d0d7de;
|
|
23
|
+
--ry-code-icon-hover-color: #24292f;
|
|
24
|
+
--ry-code-line-number-color: rgba(140, 149, 159, 0.6);
|
|
25
|
+
--ry-code-line-border-color: #d0d7de;
|
|
26
|
+
--ry-code-color-preview-border: rgba(36, 41, 47, 0.3);
|
|
27
|
+
/* Syntax */
|
|
28
|
+
--ry-code-keyword: #cf222e;
|
|
29
|
+
--ry-code-property: #0550ae;
|
|
30
|
+
--ry-code-value: #0a3069;
|
|
31
|
+
--ry-code-string: #0a3069;
|
|
32
|
+
--ry-code-number: #0550ae;
|
|
33
|
+
--ry-code-comment: #6e7781;
|
|
34
|
+
--ry-code-selector: #116329;
|
|
35
|
+
--ry-code-punctuation: #24292f;
|
|
36
|
+
--ry-code-tag: #116329;
|
|
37
|
+
--ry-code-attribute: #0550ae;
|
|
38
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ry-ui Ocean Theme
|
|
3
|
+
*
|
|
4
|
+
* Deep blue oceanic vibes.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
[data-ry-theme="ocean"] {
|
|
8
|
+
/* Primary - ocean blues */
|
|
9
|
+
--ry-color-primary: #0ea5e9;
|
|
10
|
+
--ry-color-primary-hover: #0284c7;
|
|
11
|
+
--ry-color-primary-active: #0369a1;
|
|
12
|
+
|
|
13
|
+
/* Secondary - teal */
|
|
14
|
+
--ry-color-secondary: #06b6d4;
|
|
15
|
+
--ry-color-secondary-hover: #0891b2;
|
|
16
|
+
--ry-color-secondary-active: #0e7490;
|
|
17
|
+
|
|
18
|
+
/* Text */
|
|
19
|
+
--ry-color-text: #0c4a6e;
|
|
20
|
+
--ry-color-text-muted: #64748b;
|
|
21
|
+
--ry-color-text-inverse: #ffffff;
|
|
22
|
+
|
|
23
|
+
/* Background - light blues */
|
|
24
|
+
--ry-color-bg: #f0f9ff;
|
|
25
|
+
--ry-color-bg-subtle: #e0f2fe;
|
|
26
|
+
--ry-color-bg-muted: #bae6fd;
|
|
27
|
+
|
|
28
|
+
/* Border */
|
|
29
|
+
--ry-color-border: #7dd3fc;
|
|
30
|
+
--ry-color-border-strong: #38bdf8;
|
|
31
|
+
|
|
32
|
+
/* Shadows with blue tint */
|
|
33
|
+
--ry-shadow-sm: 0 1px 2px 0 rgba(14, 165, 233, 0.1);
|
|
34
|
+
--ry-shadow-md: 0 4px 6px -1px rgba(14, 165, 233, 0.15);
|
|
35
|
+
--ry-shadow-lg: 0 10px 15px -3px rgba(14, 165, 233, 0.15);
|
|
36
|
+
--ry-shadow-xl: 0 20px 25px -5px rgba(14, 165, 233, 0.2);
|
|
37
|
+
|
|
38
|
+
/* Focus */
|
|
39
|
+
--ry-focus-ring: 0 0 0 3px rgba(14, 165, 233, 0.5);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Alert overrides */
|
|
43
|
+
[data-ry-theme="ocean"] .ry-alert--info,
|
|
44
|
+
[data-ry-theme="ocean"] ry-alert[type="info"] {
|
|
45
|
+
background-color: #e0f2fe;
|
|
46
|
+
border-color: #0ea5e9;
|
|
47
|
+
color: #0369a1;
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanhelsing/ry-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Framework-agnostic, Light DOM web components. CSS is the source of truth.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ry-ui.js",
|
|
@@ -11,16 +11,18 @@
|
|
|
11
11
|
"types": "./dist/ry-ui.d.ts",
|
|
12
12
|
"import": "./dist/ry-ui.js"
|
|
13
13
|
},
|
|
14
|
-
"./css/*": "./dist/css/*"
|
|
14
|
+
"./css/*": "./dist/css/*",
|
|
15
|
+
"./themes/*": "./dist/themes/*"
|
|
15
16
|
},
|
|
16
17
|
"files": [
|
|
17
|
-
"dist"
|
|
18
|
+
"dist",
|
|
19
|
+
"USING_CDN.md"
|
|
18
20
|
],
|
|
19
21
|
"scripts": {
|
|
20
22
|
"dev": "vite",
|
|
21
23
|
"build": "vite build && npm run build:types && npm run build:css",
|
|
22
24
|
"build:types": "tsc --emitDeclarationOnly",
|
|
23
|
-
"build:css": "mkdir -p dist/css && cp src/css/*.css dist/css/",
|
|
25
|
+
"build:css": "mkdir -p dist/css && cp src/css/*.css dist/css/ && mkdir -p dist/themes && cp src/themes/*.css dist/themes/",
|
|
24
26
|
"preview": "vite preview",
|
|
25
27
|
"typecheck": "tsc --noEmit"
|
|
26
28
|
},
|