@girumtech/gs-design-system-native 0.1.5 → 0.1.7
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 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -76,13 +76,23 @@ export function ProfileForm() {
|
|
|
76
76
|
}
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
Buttons
|
|
79
|
+
Buttons use the active theme accent for their border. `Input` / `Field` rest on the
|
|
80
|
+
neutral `borderSubtle` token (a soft grey in light themes, near-white in dark ones),
|
|
81
|
+
switch to the accent on focus, and to `danger` when `errorText` is set. Override any
|
|
82
|
+
of these with the standard Tamagui `borderColor` prop:
|
|
80
83
|
|
|
81
84
|
```tsx
|
|
82
85
|
<Button borderColor="#7C3AED">Custom border</Button>
|
|
83
86
|
<Field id="code" label="Code" borderColor="#7C3AED" />
|
|
84
87
|
```
|
|
85
88
|
|
|
89
|
+
### Neutral tokens
|
|
90
|
+
|
|
91
|
+
Every theme also carries brand-neutral tokens for chrome that should not read as
|
|
92
|
+
accent: `borderSubtle` (hairlines), `surfaceMuted` (filled/pressed surfaces),
|
|
93
|
+
`iconMuted` and `textMuted` (de-emphasized icons and text). Reach for these instead
|
|
94
|
+
of hard-coding greys.
|
|
95
|
+
|
|
86
96
|
## Switching themes
|
|
87
97
|
|
|
88
98
|
Use the exported `Theme` component when the selected theme changes at runtime:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girumtech/gs-design-system-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "React Native entry point for GsDesignSystem",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"typecheck": "tsc -p tsconfig.json"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@girumtech/gs-design-system-core": "0.1.
|
|
28
|
+
"@girumtech/gs-design-system-core": "0.1.7"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=19",
|