@ankhorage/zora 0.13.1 → 0.13.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/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -99,13 +99,19 @@ colors for light and dark mode internally.
|
|
|
99
99
|
id: 'studio',
|
|
100
100
|
primaryColor: '#0f766e',
|
|
101
101
|
harmony: 'analogous',
|
|
102
|
-
|
|
102
|
+
colorTone: 'jewel',
|
|
103
103
|
}}
|
|
104
104
|
>
|
|
105
105
|
<App />
|
|
106
106
|
</ZoraProvider>
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
+
> **`colorTone` vs component `tone`** — `colorTone` is a theme-seed field that
|
|
110
|
+
> selects the color-world / palette tone for the whole theme (e.g. `'jewel'`,
|
|
111
|
+
> `'pastel'`). Component `tone` props (e.g. `<Text tone="muted" />`,
|
|
112
|
+
> `<Button tone="primary" />`) express semantic color intent inside that theme
|
|
113
|
+
> and are independent of `colorTone`.
|
|
114
|
+
|
|
109
115
|
`mode` and `themeId` are available on public ZORA components through `ZoraBaseProps`.
|
|
110
116
|
Use component props for local component/subtree overrides.
|
|
111
117
|
|
|
@@ -1382,7 +1388,7 @@ Pass a theme seed to define your app theme:
|
|
|
1382
1388
|
name: 'Studio',
|
|
1383
1389
|
primaryColor: '#0f766e',
|
|
1384
1390
|
harmony: 'analogous',
|
|
1385
|
-
|
|
1391
|
+
colorTone: 'jewel',
|
|
1386
1392
|
}}
|
|
1387
1393
|
>
|
|
1388
1394
|
<App />
|
|
@@ -1416,7 +1422,7 @@ const themeConfig = createZoraThemeConfig({
|
|
|
1416
1422
|
name: 'Studio',
|
|
1417
1423
|
primaryColor: '#0f766e',
|
|
1418
1424
|
harmony: 'analogous',
|
|
1419
|
-
|
|
1425
|
+
colorTone: 'jewel',
|
|
1420
1426
|
});
|
|
1421
1427
|
```
|
|
1422
1428
|
|
|
@@ -1442,7 +1448,7 @@ const zoraDefaultTheme: ZoraTheme = {
|
|
|
1442
1448
|
name: 'ZORA',
|
|
1443
1449
|
primaryColor: '#0f766e',
|
|
1444
1450
|
harmony: 'analogous',
|
|
1445
|
-
|
|
1451
|
+
colorTone: 'jewel',
|
|
1446
1452
|
};
|
|
1447
1453
|
```
|
|
1448
1454
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ankhorage/zora",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.13.
|
|
4
|
+
"version": "0.13.2",
|
|
5
5
|
"description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
|
|
6
6
|
"homepage": "https://github.com/ankhorage/zora#readme",
|
|
7
7
|
"bugs": {
|
|
@@ -52,12 +52,12 @@ function createTestTheme(): AnkhTheme {
|
|
|
52
52
|
light: {
|
|
53
53
|
primaryColor: '#0f766e',
|
|
54
54
|
harmony: 'analogous',
|
|
55
|
-
|
|
55
|
+
colorTone: 'jewel',
|
|
56
56
|
},
|
|
57
57
|
dark: {
|
|
58
58
|
primaryColor: '#2dd4bf',
|
|
59
59
|
harmony: 'analogous',
|
|
60
|
-
|
|
60
|
+
colorTone: 'jewel',
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
radii: {
|
|
@@ -86,12 +86,12 @@ function createTestTheme(): AnkhTheme {
|
|
|
86
86
|
light: {
|
|
87
87
|
primaryColor: '#0f766e',
|
|
88
88
|
harmony: 'analogous',
|
|
89
|
-
|
|
89
|
+
colorTone: 'jewel',
|
|
90
90
|
},
|
|
91
91
|
dark: {
|
|
92
92
|
primaryColor: '#2dd4bf',
|
|
93
93
|
harmony: 'analogous',
|
|
94
|
-
|
|
94
|
+
colorTone: 'jewel',
|
|
95
95
|
},
|
|
96
96
|
},
|
|
97
97
|
radii: {
|