@agent-analytics/shared-ui 0.1.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 +31 -0
- package/dist/astro/Footer.astro +70 -0
- package/dist/eleventy/footer.njk +20 -0
- package/dist/footer.js +54 -0
- package/dist/index.js +4 -0
- package/dist/recipes.css +217 -0
- package/dist/tailwind.css +82 -0
- package/dist/variables.css +48 -0
- package/package.json +51 -0
- package/tokens.json +56 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Agent Analytics
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @agent-analytics/shared-ui
|
|
2
|
+
|
|
3
|
+
Shared UI primitives, design tokens, and site chrome for Agent Analytics properties.
|
|
4
|
+
|
|
5
|
+
## Exports
|
|
6
|
+
|
|
7
|
+
- `@agent-analytics/shared-ui/tokens.json`
|
|
8
|
+
- `@agent-analytics/shared-ui/variables.css`
|
|
9
|
+
- `@agent-analytics/shared-ui/tailwind.css`
|
|
10
|
+
- `@agent-analytics/shared-ui/recipes.css`
|
|
11
|
+
- `@agent-analytics/shared-ui/footer`
|
|
12
|
+
- `@agent-analytics/shared-ui/astro/Footer.astro`
|
|
13
|
+
- `@agent-analytics/shared-ui/eleventy/footer.njk`
|
|
14
|
+
|
|
15
|
+
## Build
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Publish
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm publish --access public
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Consumer usage
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install @agent-analytics/shared-ui@0.1.0
|
|
31
|
+
```
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
const links = [
|
|
3
|
+
{
|
|
4
|
+
"href": "https://github.com/Agent-Analytics/agent-analytics",
|
|
5
|
+
"label": "GitHub",
|
|
6
|
+
"external": true
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"href": "https://docs.agentanalytics.sh",
|
|
10
|
+
"label": "API Docs"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"href": "https://blog.agentanalytics.sh",
|
|
14
|
+
"label": "Blog"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"href": "https://app.agentanalytics.sh",
|
|
18
|
+
"label": "Dashboard"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"href": "https://x.com/analytics_90590",
|
|
22
|
+
"label": "X",
|
|
23
|
+
"external": true
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"href": "mailto:contact@agentanalytics.sh",
|
|
27
|
+
"label": "Contact"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"href": "mailto:support@agentanalytics.sh",
|
|
31
|
+
"label": "Support"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"href": "https://agentanalytics.sh/privacy",
|
|
35
|
+
"label": "Privacy"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"href": "https://agentanalytics.sh/terms",
|
|
39
|
+
"label": "Terms"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"href": "https://agentanalytics.sh/dpa",
|
|
43
|
+
"label": "DPA"
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
const copy = "Built for builders who ship fast. Open source under MIT.";
|
|
47
|
+
const logoSrc = "/favicon.png";
|
|
48
|
+
const logoAlt = "Agent Analytics";
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
<footer class="aa-footer" data-aa-impression="footer">
|
|
52
|
+
<div class="aa-footer__inner">
|
|
53
|
+
<div class="aa-footer__mark">
|
|
54
|
+
<img src={logoSrc} alt={logoAlt} />
|
|
55
|
+
</div>
|
|
56
|
+
<nav class="aa-footer__links" aria-label="Footer">
|
|
57
|
+
<a href="https://github.com/Agent-Analytics/agent-analytics" class="aa-footer__link" target="_blank" rel="noopener noreferrer">GitHub</a>
|
|
58
|
+
<a href="https://docs.agentanalytics.sh" class="aa-footer__link">API Docs</a>
|
|
59
|
+
<a href="https://blog.agentanalytics.sh" class="aa-footer__link">Blog</a>
|
|
60
|
+
<a href="https://app.agentanalytics.sh" class="aa-footer__link">Dashboard</a>
|
|
61
|
+
<a href="https://x.com/analytics_90590" class="aa-footer__link" target="_blank" rel="noopener noreferrer">X</a>
|
|
62
|
+
<a href="mailto:contact@agentanalytics.sh" class="aa-footer__link">Contact</a>
|
|
63
|
+
<a href="mailto:support@agentanalytics.sh" class="aa-footer__link">Support</a>
|
|
64
|
+
<a href="https://agentanalytics.sh/privacy" class="aa-footer__link">Privacy</a>
|
|
65
|
+
<a href="https://agentanalytics.sh/terms" class="aa-footer__link">Terms</a>
|
|
66
|
+
<a href="https://agentanalytics.sh/dpa" class="aa-footer__link">DPA</a>
|
|
67
|
+
</nav>
|
|
68
|
+
<p class="aa-footer__copy">{copy}</p>
|
|
69
|
+
</div>
|
|
70
|
+
</footer>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<footer class="aa-footer" data-aa-impression="footer">
|
|
2
|
+
<div class="aa-footer__inner">
|
|
3
|
+
<div class="aa-footer__mark">
|
|
4
|
+
<img src="/favicon.png" alt="Agent Analytics">
|
|
5
|
+
</div>
|
|
6
|
+
<nav class="aa-footer__links" aria-label="Footer">
|
|
7
|
+
<a href="https://github.com/Agent-Analytics/agent-analytics" class="aa-footer__link" target="_blank" rel="noopener noreferrer">GitHub</a>
|
|
8
|
+
<a href="https://docs.agentanalytics.sh" class="aa-footer__link">API Docs</a>
|
|
9
|
+
<a href="https://blog.agentanalytics.sh" class="aa-footer__link">Blog</a>
|
|
10
|
+
<a href="https://app.agentanalytics.sh" class="aa-footer__link">Dashboard</a>
|
|
11
|
+
<a href="https://x.com/analytics_90590" class="aa-footer__link" target="_blank" rel="noopener noreferrer">X</a>
|
|
12
|
+
<a href="mailto:contact@agentanalytics.sh" class="aa-footer__link">Contact</a>
|
|
13
|
+
<a href="mailto:support@agentanalytics.sh" class="aa-footer__link">Support</a>
|
|
14
|
+
<a href="https://agentanalytics.sh/privacy" class="aa-footer__link">Privacy</a>
|
|
15
|
+
<a href="https://agentanalytics.sh/terms" class="aa-footer__link">Terms</a>
|
|
16
|
+
<a href="https://agentanalytics.sh/dpa" class="aa-footer__link">DPA</a>
|
|
17
|
+
</nav>
|
|
18
|
+
<p class="aa-footer__copy">Built for builders who ship fast. Open source under MIT.</p>
|
|
19
|
+
</div>
|
|
20
|
+
</footer>
|
package/dist/footer.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export const footerLinks = [
|
|
2
|
+
{
|
|
3
|
+
"href": "https://github.com/Agent-Analytics/agent-analytics",
|
|
4
|
+
"label": "GitHub",
|
|
5
|
+
"external": true
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"href": "https://docs.agentanalytics.sh",
|
|
9
|
+
"label": "API Docs"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"href": "https://blog.agentanalytics.sh",
|
|
13
|
+
"label": "Blog"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"href": "https://app.agentanalytics.sh",
|
|
17
|
+
"label": "Dashboard"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"href": "https://x.com/analytics_90590",
|
|
21
|
+
"label": "X",
|
|
22
|
+
"external": true
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"href": "mailto:contact@agentanalytics.sh",
|
|
26
|
+
"label": "Contact"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"href": "mailto:support@agentanalytics.sh",
|
|
30
|
+
"label": "Support"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"href": "https://agentanalytics.sh/privacy",
|
|
34
|
+
"label": "Privacy"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"href": "https://agentanalytics.sh/terms",
|
|
38
|
+
"label": "Terms"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"href": "https://agentanalytics.sh/dpa",
|
|
42
|
+
"label": "DPA"
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
export const footerCopy = "Built for builders who ship fast. Open source under MIT.";
|
|
46
|
+
export const footerLogoSrc = "/favicon.png";
|
|
47
|
+
export const footerLogoAlt = "Agent Analytics";
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
copy: footerCopy,
|
|
51
|
+
links: footerLinks,
|
|
52
|
+
logoAlt: footerLogoAlt,
|
|
53
|
+
logoSrc: footerLogoSrc,
|
|
54
|
+
};
|
package/dist/index.js
ADDED
package/dist/recipes.css
ADDED
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--surface-border: rgba(16, 19, 19, 0.1);
|
|
3
|
+
--surface-border-soft: rgba(16, 19, 19, 0.08);
|
|
4
|
+
--surface-border-faint: rgba(16, 19, 19, 0.06);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.aa-page-theme {
|
|
8
|
+
min-height: 100vh;
|
|
9
|
+
position: relative;
|
|
10
|
+
background: var(--page-background);
|
|
11
|
+
color: var(--text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.aa-page-theme::before {
|
|
15
|
+
content: "";
|
|
16
|
+
position: fixed;
|
|
17
|
+
inset: 0;
|
|
18
|
+
pointer-events: none;
|
|
19
|
+
background-image: var(--grid-overlay-image);
|
|
20
|
+
background-size: var(--grid-overlay-size);
|
|
21
|
+
mask-image: var(--grid-overlay-mask);
|
|
22
|
+
opacity: var(--grid-overlay-opacity);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aa-site-shell {
|
|
26
|
+
position: relative;
|
|
27
|
+
z-index: 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.aa-site-header {
|
|
31
|
+
position: sticky;
|
|
32
|
+
top: 0;
|
|
33
|
+
z-index: 20;
|
|
34
|
+
backdrop-filter: blur(18px);
|
|
35
|
+
background: var(--header-backdrop);
|
|
36
|
+
border-bottom: 1px solid var(--header-border);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aa-paper-card,
|
|
40
|
+
.aa-paper-panel {
|
|
41
|
+
background: var(--surface-glass);
|
|
42
|
+
border: 1px solid var(--surface-border);
|
|
43
|
+
border-radius: var(--radius-lg);
|
|
44
|
+
box-shadow: var(--paper-shadow);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.aa-paper-card-strong {
|
|
48
|
+
background: var(--surface-strong);
|
|
49
|
+
border: 1px solid var(--surface-border-soft);
|
|
50
|
+
border-radius: var(--radius-md);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.aa-paper-panel {
|
|
54
|
+
background: var(--surface-panel);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.aa-paper-green {
|
|
58
|
+
background: var(--surface-green);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.aa-soft-pill {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: 8px;
|
|
65
|
+
padding: 8px 12px;
|
|
66
|
+
border-radius: 999px;
|
|
67
|
+
border: 1px solid var(--chip-border);
|
|
68
|
+
background: var(--chip-background);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aa-chip-mark {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
min-width: 22px;
|
|
76
|
+
min-height: 22px;
|
|
77
|
+
border-radius: 999px;
|
|
78
|
+
background: var(--chip-background-strong);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.aa-button-dark {
|
|
82
|
+
background: var(--button-dark-background);
|
|
83
|
+
color: var(--button-dark-text);
|
|
84
|
+
border: 1px solid var(--button-dark-background);
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.aa-button-dark:hover {
|
|
89
|
+
background: var(--button-dark-hover);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.aa-link-muted {
|
|
93
|
+
color: var(--text-dim);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.aa-link-muted:hover {
|
|
97
|
+
color: var(--text);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.aa-category-guide,
|
|
101
|
+
.aa-category-announcement,
|
|
102
|
+
.aa-category-engineering,
|
|
103
|
+
.aa-category-story,
|
|
104
|
+
.aa-category-default {
|
|
105
|
+
display: inline-flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
padding: 6px 11px;
|
|
108
|
+
border-radius: 999px;
|
|
109
|
+
font-family: var(--font-mono);
|
|
110
|
+
font-size: 11px;
|
|
111
|
+
letter-spacing: 0.08em;
|
|
112
|
+
text-transform: uppercase;
|
|
113
|
+
border: 1px solid transparent;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.aa-category-guide {
|
|
117
|
+
background: var(--guide-soft);
|
|
118
|
+
border-color: var(--guide-border);
|
|
119
|
+
color: var(--accent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.aa-category-announcement,
|
|
123
|
+
.aa-category-story {
|
|
124
|
+
background: var(--announcement-soft);
|
|
125
|
+
border-color: var(--announcement-border);
|
|
126
|
+
color: var(--accent-warm);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.aa-category-engineering {
|
|
130
|
+
background: var(--engineering-soft);
|
|
131
|
+
border-color: var(--engineering-border);
|
|
132
|
+
color: var(--accent-blue);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.aa-category-default {
|
|
136
|
+
background: rgba(16, 19, 19, 0.05);
|
|
137
|
+
border-color: rgba(16, 19, 19, 0.08);
|
|
138
|
+
color: var(--text-dim);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.aa-footer {
|
|
142
|
+
margin-top: clamp(4rem, 8vw, 6rem);
|
|
143
|
+
padding: 3.5rem 0 4rem;
|
|
144
|
+
border-top: 1px solid var(--aa-footer-border, var(--sl-color-hairline, rgba(16, 19, 19, 0.08)));
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.aa-footer__inner {
|
|
148
|
+
width: min(72rem, calc(100% - 3rem));
|
|
149
|
+
margin: 0 auto;
|
|
150
|
+
text-align: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.aa-footer__mark {
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
justify-content: center;
|
|
157
|
+
width: 5rem;
|
|
158
|
+
height: 5rem;
|
|
159
|
+
margin-bottom: 1.5rem;
|
|
160
|
+
border-radius: 1.75rem;
|
|
161
|
+
border: 1px solid var(--aa-footer-mark-border, var(--sl-color-hairline, rgba(16, 19, 19, 0.08)));
|
|
162
|
+
background: var(--aa-footer-mark-bg, var(--sl-color-bg-sidebar, var(--surface-strong, rgba(255, 255, 255, 0.6))));
|
|
163
|
+
box-shadow: var(--aa-footer-mark-shadow, var(--shadow-soft, 0 12px 30px rgba(70, 58, 30, 0.08)));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.aa-footer__mark img {
|
|
167
|
+
width: 3rem;
|
|
168
|
+
height: 3rem;
|
|
169
|
+
border-radius: 1rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.aa-footer__links {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-wrap: wrap;
|
|
175
|
+
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
|
+
gap: 0.9rem 2rem;
|
|
178
|
+
margin-bottom: 1.25rem;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.aa-footer__link {
|
|
182
|
+
color: var(--aa-footer-text, var(--sl-color-text, var(--text-dim)));
|
|
183
|
+
text-decoration: none;
|
|
184
|
+
font-size: 1rem;
|
|
185
|
+
line-height: 1.4;
|
|
186
|
+
transition: color 0.18s ease;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.aa-footer__link:hover {
|
|
190
|
+
color: var(--aa-footer-hover, var(--sl-color-white, var(--text)));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.aa-footer__copy {
|
|
194
|
+
margin: 0;
|
|
195
|
+
color: var(--aa-footer-copy, var(--sl-color-gray-3, var(--text-muted)));
|
|
196
|
+
font-size: 1rem;
|
|
197
|
+
line-height: 1.6;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
@media (max-width: 720px) {
|
|
201
|
+
.aa-footer {
|
|
202
|
+
padding-top: 3rem;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.aa-footer__inner {
|
|
206
|
+
width: min(100%, calc(100% - 2rem));
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.aa-footer__links {
|
|
210
|
+
gap: 0.75rem 1.25rem;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.aa-footer__link,
|
|
214
|
+
.aa-footer__copy {
|
|
215
|
+
font-size: 0.95rem;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f3efe4;
|
|
3
|
+
--bg-warm: #ebe4d3;
|
|
4
|
+
--bg-card: #fbf8f1;
|
|
5
|
+
--bg-card-hover: #f1ecdf;
|
|
6
|
+
--text: #101313;
|
|
7
|
+
--text-dim: #505757;
|
|
8
|
+
--text-muted: #7d847d;
|
|
9
|
+
--accent: #0f9f5b;
|
|
10
|
+
--accent-warm: #f06a19;
|
|
11
|
+
--accent-blue: #3f6df6;
|
|
12
|
+
--border: #d8cfbd;
|
|
13
|
+
--border-light: #c8beac;
|
|
14
|
+
--paper-shadow: 0 24px 70px rgba(70, 58, 30, 0.08);
|
|
15
|
+
--shadow-soft: 0 12px 30px rgba(70, 58, 30, 0.08);
|
|
16
|
+
--radius-md: 16px;
|
|
17
|
+
--radius-lg: 24px;
|
|
18
|
+
--radius-xl: 34px;
|
|
19
|
+
--page-background: radial-gradient(circle at 12% 0%, rgba(15, 159, 91, 0.08), transparent 28%), radial-gradient(circle at 100% 10%, rgba(63, 109, 246, 0.07), transparent 30%), linear-gradient(180deg, #f7f2e6 0%, #efe8d8 45%, #f5f1e7 100%);
|
|
20
|
+
--grid-overlay-image: linear-gradient(rgba(16, 19, 19, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 19, 19, 0.025) 1px, transparent 1px);
|
|
21
|
+
--grid-overlay-size: 108px 108px;
|
|
22
|
+
--grid-overlay-mask: radial-gradient(circle at 50% 18%, black 20%, transparent 72%);
|
|
23
|
+
--grid-overlay-opacity: 0.32;
|
|
24
|
+
--header-backdrop: rgba(247, 242, 230, 0.84);
|
|
25
|
+
--header-border: rgba(16, 19, 19, 0.08);
|
|
26
|
+
--surface-soft: rgba(255, 255, 255, 0.5);
|
|
27
|
+
--surface-glass: rgba(255, 255, 255, 0.56);
|
|
28
|
+
--surface-strong: rgba(255, 255, 255, 0.72);
|
|
29
|
+
--surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 242, 230, 0.74)), rgba(255, 255, 255, 0.7);
|
|
30
|
+
--surface-green: linear-gradient(180deg, rgba(15, 159, 91, 0.04), rgba(255, 255, 255, 0.58)), rgba(255, 255, 255, 0.56);
|
|
31
|
+
--chip-background: rgba(255, 255, 255, 0.5);
|
|
32
|
+
--chip-background-strong: rgba(16, 19, 19, 0.04);
|
|
33
|
+
--chip-border: rgba(16, 19, 19, 0.1);
|
|
34
|
+
--button-dark-background: #101313;
|
|
35
|
+
--button-dark-hover: #1d2323;
|
|
36
|
+
--button-dark-text: #f7f2e6;
|
|
37
|
+
--guide-soft: rgba(15, 159, 91, 0.12);
|
|
38
|
+
--guide-border: rgba(15, 159, 91, 0.18);
|
|
39
|
+
--announcement-soft: rgba(240, 106, 25, 0.12);
|
|
40
|
+
--announcement-border: rgba(240, 106, 25, 0.22);
|
|
41
|
+
--engineering-soft: rgba(63, 109, 246, 0.12);
|
|
42
|
+
--engineering-border: rgba(63, 109, 246, 0.18);
|
|
43
|
+
--story-soft: rgba(240, 106, 25, 0.1);
|
|
44
|
+
--story-border: rgba(240, 106, 25, 0.18);
|
|
45
|
+
--font-body: 'Outfit', sans-serif;
|
|
46
|
+
--font-serif: 'Bitter', serif;
|
|
47
|
+
--font-mono: 'IBM Plex Mono', monospace;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@theme {
|
|
51
|
+
--color-bg: #f3efe4;
|
|
52
|
+
--color-bg-warm: #ebe4d3;
|
|
53
|
+
--color-bg-card: #fbf8f1;
|
|
54
|
+
--color-bg-card-hover: #f1ecdf;
|
|
55
|
+
--color-bg-hover: #f1ecdf;
|
|
56
|
+
--color-bg-input: #fbf8f1;
|
|
57
|
+
--color-bg-subtle: rgba(255, 255, 255, 0.5);
|
|
58
|
+
--color-bg-strong: rgba(255, 255, 255, 0.72);
|
|
59
|
+
--color-text: #101313;
|
|
60
|
+
--color-text-bright: #101313;
|
|
61
|
+
--color-text-dim: #505757;
|
|
62
|
+
--color-text-muted: #7d847d;
|
|
63
|
+
--color-accent: #0f9f5b;
|
|
64
|
+
--color-accent-dim: #0c8f52;
|
|
65
|
+
--color-accent-warm: #f06a19;
|
|
66
|
+
--color-accent-blue: #3f6df6;
|
|
67
|
+
--color-green: #0f9f5b;
|
|
68
|
+
--color-red: #b44b32;
|
|
69
|
+
--color-warning: #c9751f;
|
|
70
|
+
--color-border: #d8cfbd;
|
|
71
|
+
--color-border-light: #c8beac;
|
|
72
|
+
--color-border-hover: #c8beac;
|
|
73
|
+
--color-badge-muted: rgba(16, 19, 19, 0.06);
|
|
74
|
+
--shadow-paper: 0 24px 70px rgba(70, 58, 30, 0.08);
|
|
75
|
+
--shadow-soft: 0 12px 30px rgba(70, 58, 30, 0.08);
|
|
76
|
+
--radius-card: 16px;
|
|
77
|
+
--radius-panel: 24px;
|
|
78
|
+
--radius-hero: 34px;
|
|
79
|
+
--font-sans: 'Outfit', sans-serif;
|
|
80
|
+
--font-serif: 'Bitter', serif;
|
|
81
|
+
--font-mono: 'IBM Plex Mono', monospace;
|
|
82
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--bg: #f3efe4;
|
|
3
|
+
--bg-warm: #ebe4d3;
|
|
4
|
+
--bg-card: #fbf8f1;
|
|
5
|
+
--bg-card-hover: #f1ecdf;
|
|
6
|
+
--text: #101313;
|
|
7
|
+
--text-dim: #505757;
|
|
8
|
+
--text-muted: #7d847d;
|
|
9
|
+
--accent: #0f9f5b;
|
|
10
|
+
--accent-warm: #f06a19;
|
|
11
|
+
--accent-blue: #3f6df6;
|
|
12
|
+
--border: #d8cfbd;
|
|
13
|
+
--border-light: #c8beac;
|
|
14
|
+
--paper-shadow: 0 24px 70px rgba(70, 58, 30, 0.08);
|
|
15
|
+
--shadow-soft: 0 12px 30px rgba(70, 58, 30, 0.08);
|
|
16
|
+
--radius-md: 16px;
|
|
17
|
+
--radius-lg: 24px;
|
|
18
|
+
--radius-xl: 34px;
|
|
19
|
+
--page-background: radial-gradient(circle at 12% 0%, rgba(15, 159, 91, 0.08), transparent 28%), radial-gradient(circle at 100% 10%, rgba(63, 109, 246, 0.07), transparent 30%), linear-gradient(180deg, #f7f2e6 0%, #efe8d8 45%, #f5f1e7 100%);
|
|
20
|
+
--grid-overlay-image: linear-gradient(rgba(16, 19, 19, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 19, 19, 0.025) 1px, transparent 1px);
|
|
21
|
+
--grid-overlay-size: 108px 108px;
|
|
22
|
+
--grid-overlay-mask: radial-gradient(circle at 50% 18%, black 20%, transparent 72%);
|
|
23
|
+
--grid-overlay-opacity: 0.32;
|
|
24
|
+
--header-backdrop: rgba(247, 242, 230, 0.84);
|
|
25
|
+
--header-border: rgba(16, 19, 19, 0.08);
|
|
26
|
+
--surface-soft: rgba(255, 255, 255, 0.5);
|
|
27
|
+
--surface-glass: rgba(255, 255, 255, 0.56);
|
|
28
|
+
--surface-strong: rgba(255, 255, 255, 0.72);
|
|
29
|
+
--surface-panel: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 242, 230, 0.74)), rgba(255, 255, 255, 0.7);
|
|
30
|
+
--surface-green: linear-gradient(180deg, rgba(15, 159, 91, 0.04), rgba(255, 255, 255, 0.58)), rgba(255, 255, 255, 0.56);
|
|
31
|
+
--chip-background: rgba(255, 255, 255, 0.5);
|
|
32
|
+
--chip-background-strong: rgba(16, 19, 19, 0.04);
|
|
33
|
+
--chip-border: rgba(16, 19, 19, 0.1);
|
|
34
|
+
--button-dark-background: #101313;
|
|
35
|
+
--button-dark-hover: #1d2323;
|
|
36
|
+
--button-dark-text: #f7f2e6;
|
|
37
|
+
--guide-soft: rgba(15, 159, 91, 0.12);
|
|
38
|
+
--guide-border: rgba(15, 159, 91, 0.18);
|
|
39
|
+
--announcement-soft: rgba(240, 106, 25, 0.12);
|
|
40
|
+
--announcement-border: rgba(240, 106, 25, 0.22);
|
|
41
|
+
--engineering-soft: rgba(63, 109, 246, 0.12);
|
|
42
|
+
--engineering-border: rgba(63, 109, 246, 0.18);
|
|
43
|
+
--story-soft: rgba(240, 106, 25, 0.1);
|
|
44
|
+
--story-border: rgba(240, 106, 25, 0.18);
|
|
45
|
+
--font-body: 'Outfit', sans-serif;
|
|
46
|
+
--font-serif: 'Bitter', serif;
|
|
47
|
+
--font-mono: 'IBM Plex Mono', monospace;
|
|
48
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agent-analytics/shared-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"description": "Shared UI primitives, tokens, and marketing chrome for Agent Analytics properties.",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"design-system",
|
|
9
|
+
"shared-ui",
|
|
10
|
+
"theme",
|
|
11
|
+
"css",
|
|
12
|
+
"tailwind",
|
|
13
|
+
"agent-analytics"
|
|
14
|
+
],
|
|
15
|
+
"author": "Agent Analytics <danny@animaapp.com>",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/Agent-Analytics/agent-analytics"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://agentanalytics.sh",
|
|
22
|
+
"engines": {
|
|
23
|
+
"node": ">=18"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"tokens.json",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": "./dist/index.js",
|
|
33
|
+
"./footer": "./dist/footer.js",
|
|
34
|
+
"./astro/Footer.astro": "./dist/astro/Footer.astro",
|
|
35
|
+
"./eleventy/footer.njk": "./dist/eleventy/footer.njk",
|
|
36
|
+
"./tokens.json": "./tokens.json",
|
|
37
|
+
"./variables.css": "./dist/variables.css",
|
|
38
|
+
"./tailwind.css": "./dist/tailwind.css",
|
|
39
|
+
"./recipes.css": "./dist/recipes.css"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"astro": "^5.0.0 || ^6.0.0"
|
|
43
|
+
},
|
|
44
|
+
"publishConfig": {
|
|
45
|
+
"access": "public"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "node scripts/build.mjs",
|
|
49
|
+
"prepack": "npm run build"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/tokens.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"colors": {
|
|
3
|
+
"bg": "#f3efe4",
|
|
4
|
+
"bg-warm": "#ebe4d3",
|
|
5
|
+
"bg-card": "#fbf8f1",
|
|
6
|
+
"bg-card-hover": "#f1ecdf",
|
|
7
|
+
"text": "#101313",
|
|
8
|
+
"text-dim": "#505757",
|
|
9
|
+
"text-muted": "#7d847d",
|
|
10
|
+
"accent": "#0f9f5b",
|
|
11
|
+
"accent-warm": "#f06a19",
|
|
12
|
+
"accent-blue": "#3f6df6",
|
|
13
|
+
"border": "#d8cfbd",
|
|
14
|
+
"border-light": "#c8beac"
|
|
15
|
+
},
|
|
16
|
+
"effects": {
|
|
17
|
+
"paper-shadow": "0 24px 70px rgba(70, 58, 30, 0.08)",
|
|
18
|
+
"shadow-soft": "0 12px 30px rgba(70, 58, 30, 0.08)",
|
|
19
|
+
"radius-md": "16px",
|
|
20
|
+
"radius-lg": "24px",
|
|
21
|
+
"radius-xl": "34px"
|
|
22
|
+
},
|
|
23
|
+
"fonts": {
|
|
24
|
+
"body": "'Outfit', sans-serif",
|
|
25
|
+
"serif": "'Bitter', serif",
|
|
26
|
+
"mono": "'IBM Plex Mono', monospace"
|
|
27
|
+
},
|
|
28
|
+
"recipes": {
|
|
29
|
+
"page-background": "radial-gradient(circle at 12% 0%, rgba(15, 159, 91, 0.08), transparent 28%), radial-gradient(circle at 100% 10%, rgba(63, 109, 246, 0.07), transparent 30%), linear-gradient(180deg, #f7f2e6 0%, #efe8d8 45%, #f5f1e7 100%)",
|
|
30
|
+
"grid-overlay-image": "linear-gradient(rgba(16, 19, 19, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 19, 19, 0.025) 1px, transparent 1px)",
|
|
31
|
+
"grid-overlay-size": "108px 108px",
|
|
32
|
+
"grid-overlay-mask": "radial-gradient(circle at 50% 18%, black 20%, transparent 72%)",
|
|
33
|
+
"grid-overlay-opacity": "0.32",
|
|
34
|
+
"header-backdrop": "rgba(247, 242, 230, 0.84)",
|
|
35
|
+
"header-border": "rgba(16, 19, 19, 0.08)",
|
|
36
|
+
"surface-soft": "rgba(255, 255, 255, 0.5)",
|
|
37
|
+
"surface-glass": "rgba(255, 255, 255, 0.56)",
|
|
38
|
+
"surface-strong": "rgba(255, 255, 255, 0.72)",
|
|
39
|
+
"surface-panel": "linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 242, 230, 0.74)), rgba(255, 255, 255, 0.7)",
|
|
40
|
+
"surface-green": "linear-gradient(180deg, rgba(15, 159, 91, 0.04), rgba(255, 255, 255, 0.58)), rgba(255, 255, 255, 0.56)",
|
|
41
|
+
"chip-background": "rgba(255, 255, 255, 0.5)",
|
|
42
|
+
"chip-background-strong": "rgba(16, 19, 19, 0.04)",
|
|
43
|
+
"chip-border": "rgba(16, 19, 19, 0.1)",
|
|
44
|
+
"button-dark-background": "#101313",
|
|
45
|
+
"button-dark-hover": "#1d2323",
|
|
46
|
+
"button-dark-text": "#f7f2e6",
|
|
47
|
+
"guide-soft": "rgba(15, 159, 91, 0.12)",
|
|
48
|
+
"guide-border": "rgba(15, 159, 91, 0.18)",
|
|
49
|
+
"announcement-soft": "rgba(240, 106, 25, 0.12)",
|
|
50
|
+
"announcement-border": "rgba(240, 106, 25, 0.22)",
|
|
51
|
+
"engineering-soft": "rgba(63, 109, 246, 0.12)",
|
|
52
|
+
"engineering-border": "rgba(63, 109, 246, 0.18)",
|
|
53
|
+
"story-soft": "rgba(240, 106, 25, 0.1)",
|
|
54
|
+
"story-border": "rgba(240, 106, 25, 0.18)"
|
|
55
|
+
}
|
|
56
|
+
}
|