@civitai/theme 0.3.0 → 0.3.1
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 +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -65,9 +65,16 @@ resolves the block's own measured width against this scale.
|
|
|
65
65
|
## Usage
|
|
66
66
|
|
|
67
67
|
```html
|
|
68
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@civitai/theme
|
|
68
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@civitai/theme/styles.css" />
|
|
69
69
|
```
|
|
70
70
|
|
|
71
|
+
Unversioned on purpose: it tracks the `latest` dist-tag, so the tokens you load
|
|
72
|
+
always include the ones documented above. A pinned URL keeps returning **200
|
|
73
|
+
with an old stylesheet** — `@0.2.0`, the version this README shipped until now,
|
|
74
|
+
carries **zero** `--civitai-bp-*` tokens, so every `var(--civitai-bp-md)` on
|
|
75
|
+
this page resolved to nothing. Pin only if you need a reproducible build, and
|
|
76
|
+
re-check the pin when you upgrade.
|
|
77
|
+
|
|
71
78
|
```ts
|
|
72
79
|
import { injectTokens, tokens } from '@civitai/theme';
|
|
73
80
|
injectTokens(); // inject the stylesheet at runtime (JS consumers)
|
package/package.json
CHANGED