Configuration
All native-mate settings live in native-mate.json at your project root. The CLI reads and writes this file automatically.
Full config reference
native-mate.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
"preset": "zinc",
"componentsDir": "components/ui",
"registry": "https://registry.native-mate.dev",
"tokens": {
"colors": {
"primary": "#6366f1",
"primaryForeground": "#ffffff"
},
"spacing": {
"lg": 20
},
"radius": {
"md": 8
}
}
}Fields
| Field | Type | Default | Description |
|---|---|---|---|
| preset | string | "zinc" | Active theme preset: zinc | slate | rose | midnight |
| componentsDir | string | "components/ui" | Directory where components are installed |
| registry | string | registry.native-mate.dev | Custom registry URL for private component libraries |
| tokens.colors | object | — | Override specific colour tokens |
| tokens.spacing | object | — | Override spacing scale values |
| tokens.radius | object | — | Override border radius values |