@astryx-vue/themes 0.2.4 → 0.2.6
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 +44 -5
- package/neutral/avatar.css +4 -3
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,17 +1,56 @@
|
|
|
1
1
|
# @astryx-vue/themes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
CSS themes for [astryx-vue](https://github.com/astryx-vue/astryx-vue), an unofficial Vue 3 port of Astryx. Not affiliated with Meta.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
One package ships every theme. Structural styles stay in `@astryx-vue/core`. A theme sets color, type, radius, shadow, and motion through CSS variables and cascade layers. There is no StyleX build step.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
8
10
|
pnpm add @astryx-vue/core @astryx-vue/themes
|
|
9
11
|
```
|
|
10
12
|
|
|
13
|
+
A theme does not render components by itself. Install `@astryx-vue/core` with it. Peer dependency of core: `vue` `^3.5.0`.
|
|
14
|
+
|
|
15
|
+
## Use
|
|
16
|
+
|
|
11
17
|
```ts
|
|
12
18
|
import '@astryx-vue/themes/neutral.css'
|
|
13
19
|
```
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
```html
|
|
22
|
+
<html data-astryx-theme="neutral">
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Put `data-astryx-theme` on the element that should take the theme. On `html`, that is the whole app. On a smaller element, only that subtree. Neutral also writes the same variables on `:root`, so a single-theme app can import `neutral.css` without the attribute. The other themes do not touch `:root`.
|
|
26
|
+
|
|
27
|
+
Every theme loads Figtree and JetBrains Mono (400, 500, 600, 700, and 400 italic; Figtree also includes 600 italic). Butter, Chocolate, Gothic, Matcha, Stone, and Y2K also load their own text faces.
|
|
28
|
+
|
|
29
|
+
## Entries
|
|
30
|
+
|
|
31
|
+
| Entry | What it is |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| `@astryx-vue/themes/neutral.css` | Default look. Also applies on `:root`. |
|
|
34
|
+
| `@astryx-vue/themes/butter.css` | Golden surfaces, blue accents. |
|
|
35
|
+
| `@astryx-vue/themes/chocolate.css` | Warm brown and beige. |
|
|
36
|
+
| `@astryx-vue/themes/gothic.css` | Dark only. Deep blue-gray surfaces. |
|
|
37
|
+
| `@astryx-vue/themes/matcha.css` | Earthy greens. |
|
|
38
|
+
| `@astryx-vue/themes/stone.css` | Warm stone and slate. |
|
|
39
|
+
| `@astryx-vue/themes/y2k.css` | Periwinkle, cream, and sharp corners. |
|
|
40
|
+
|
|
41
|
+
## Related packages
|
|
42
|
+
|
|
43
|
+
| Package | What it is |
|
|
44
|
+
| --- | --- |
|
|
45
|
+
| `@astryx-vue/core` | The Vue components these variables style |
|
|
46
|
+
| `@astryx-vue/cli` | `astryx-vue search theme` and the rest of the docs lookup |
|
|
47
|
+
|
|
48
|
+
## Resources
|
|
49
|
+
|
|
50
|
+
- [Themes](https://astryx-vue.pages.dev/en/themes/)
|
|
51
|
+
- [CSS variables](https://astryx-vue.pages.dev/en/themes/css-variables)
|
|
52
|
+
- [Repository](https://github.com/astryx-vue/astryx-vue)
|
|
53
|
+
|
|
54
|
+
## License
|
|
16
55
|
|
|
17
|
-
|
|
56
|
+
MIT. Astryx is copyright Meta Platforms, Inc. This package is an unofficial port and is not affiliated with or endorsed by Meta.
|
package/neutral/avatar.css
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
@layer astryx.tokens {
|
|
4
4
|
:root,
|
|
5
5
|
[data-astryx-theme='neutral'] {
|
|
6
|
-
--astryx-avatar-fallback-background: light-dark(
|
|
7
|
-
--astryx-avatar-fallback-foreground: light-dark(#
|
|
6
|
+
--astryx-avatar-fallback-background: light-dark(rgba(0, 0, 0, 0.06), rgba(255, 255, 255, 0.1));
|
|
7
|
+
--astryx-avatar-fallback-foreground: light-dark(#474747, #9e9e9e);
|
|
8
8
|
--astryx-avatar-status-dot-border-color: light-dark(#fff, #171717);
|
|
9
9
|
|
|
10
|
-
--astryx-avatar-status-dot-neutral-background: light-dark(#
|
|
10
|
+
--astryx-avatar-status-dot-neutral-background: light-dark(#fff, #171717);
|
|
11
|
+
--astryx-avatar-status-dot-neutral-foreground: light-dark(#737373, #9e9e9e);
|
|
11
12
|
--astryx-avatar-status-dot-info-background: light-dark(#0074e2, #6d9cfe);
|
|
12
13
|
--astryx-avatar-status-dot-success-background: light-dark(#198100, #64af4c);
|
|
13
14
|
--astryx-avatar-status-dot-warning-background: #ffce2f;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryx-vue/themes",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "0.2.6",
|
|
5
|
+
"description": "CSS themes for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
|
|
6
6
|
"author": "ShenQingchuan",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"homepage": "https://astryx-vue.pages.dev",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"vue3",
|
|
18
18
|
"design-system",
|
|
19
19
|
"astryx",
|
|
20
|
-
"
|
|
20
|
+
"css",
|
|
21
|
+
"themes",
|
|
21
22
|
"ui"
|
|
22
23
|
],
|
|
23
24
|
"sideEffects": [
|