silva-ui 1.1.0 → 1.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/README.md +11 -0
- package/dist/library/previews/index.html +1 -1
- package/dist/library/silva-ui.js +1930 -1835
- package/dist/types/core/gradient.d.ts +24 -0
- package/dist/types/core/projection.d.ts +16 -0
- package/dist/types/core/sprinkles.css.d.ts +10 -0
- package/dist/types/core/types.d.ts +2 -2
- package/dist/types/core/utils.d.ts +3 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/layout/Box.d.ts +4 -1
- package/package.json +69 -69
package/README.md
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/silva-ui-logo-dark.svg">
|
|
4
|
+
<img src="docs/assets/silva-ui-logo-light.svg" alt="Silva UI" width="360">
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
1
8
|
# silva-ui Component Library
|
|
2
9
|
|
|
3
10
|
[](https://github.com/black-silva/silva-ui/actions/workflows/publish-npm.yml)
|
|
4
11
|
[](https://bundlejs.com/?q=silva-ui)
|
|
5
12
|
[](https://www.typescriptlang.org/)
|
|
6
13
|
[](./LICENSE)
|
|
14
|
+
[](https://www.reddit.com/user/black_silva/)
|
|
15
|
+
[](https://github.com/black-silva)
|
|
16
|
+
[](https://discord.gg/KjkmHYpSec)
|
|
17
|
+
[](https://www.patreon.com/c/BlackSilva)
|
|
7
18
|
|
|
8
19
|
A Hono JSX UI component library with framework-neutral styling and Tamagui-inspired theming, built on `@vanilla-extract/css` and `@vanilla-extract/sprinkles`.
|
|
9
20
|
|
|
@@ -36,7 +36,7 @@ const previews={
|
|
|
36
36
|
'typography-3':()=>title('Paragraph')+`<p class="muted">A readable paragraph with semantic colour and comfortable line height.</p>`+end,
|
|
37
37
|
'intro-1':()=>title('Quick start')+card(`<div class="stack"><h3>Welcome to Silva UI</h3><p class="muted">Theme-aware components ready for composition.</p>${button('Get started')}</div>`)+end,
|
|
38
38
|
'install-1':()=>title('Style import','Bundled stylesheet ready')+`<div class="server"><b>✓</b> Silva UI styles loaded successfully</div>`+end,
|
|
39
|
-
'install-2':()
|
|
39
|
+
'install-2':()=>`<div class="stack" style="max-width:400px;gap:16px"><h1 style="font-size:30px;line-height:1.2">Hello, Silva</h1><p class="muted">Your UI is ready to grow.</p>${button('Get started')}</div>`,
|
|
40
40
|
'recipes-1':()=>title('Settings row')+card(`<div class="row between"><div><b>Email notifications</b><div class="muted small">Receive a summary of account activity.</div></div><input type="checkbox" checked aria-label="Email notifications"></div>`)+end,
|
|
41
41
|
'recipes-2':()=>title('Empty state')+card(`<div class="stack" style="text-align:center;justify-items:center"><h3>No projects yet</h3><p class="muted">Create your first project to get started.</p>${button('Create project')}</div>`)+end,
|
|
42
42
|
'recipes-3':()=>title('Toast')+`<div class="panel toast"><b>Changes saved</b><div class="muted">Your profile is up to date.</div></div>`+end,
|