@med-o/design-tokens 0.16.0 → 0.18.0

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
@@ -1,5 +1,22 @@
1
1
  # @med-o/design-tokens
2
2
 
3
+ ## 0.18.0
4
+
5
+ _Released 2026-11-13_
6
+
7
+ No changes in this release.
8
+
9
+ ## 0.17.0
10
+
11
+ _Released 2026-11-13_
12
+
13
+ ### Minor Changes
14
+
15
+ - 949bb49: New: text color classes and `medo-prose` for long text.
16
+
17
+ - `@med-o/design-tokens`: one class per `text/*` color token in `css/typography.css`, such as `medo-text-secondary` or `medo-text-brand`. Combine it with a text style: `class="medo-text-body-sm medo-text-secondary"`. Hover and pressed tones get no class.
18
+ - `@med-o/ui`: `medo-prose` styles long text from plain HTML or MDX – docs pages, legal texts, help articles. Headings, paragraphs and lists get their text styles and the spacing rules; plain lists, links and inline code look like List, Link and Code. Elements with a class keep their own look.
19
+
3
20
  ## 0.16.0
4
21
 
5
22
  _Released 2026-11-13_
@@ -1,6 +1,7 @@
1
1
  /**
2
- * med.o Design System – text styles
2
+ * med.o Design System – text styles and text colors
3
3
  * Generated by the token build. Do not edit.
4
+ * Combine a style and a color: class="medo-text-body-sm medo-text-secondary".
4
5
  */
5
6
 
6
7
  /* display/xl */
@@ -254,3 +255,53 @@
254
255
  line-height: 1;
255
256
  letter-spacing: var(--medo-font-tracking-normal);
256
257
  }
258
+
259
+ /* ---------- Text colors (follow Light and Dark) ---------- */
260
+
261
+ .medo-text-primary {
262
+ color: var(--medo-color-text-primary);
263
+ }
264
+
265
+ .medo-text-secondary {
266
+ color: var(--medo-color-text-secondary);
267
+ }
268
+
269
+ .medo-text-disabled {
270
+ color: var(--medo-color-text-disabled);
271
+ }
272
+
273
+ .medo-text-on-brand {
274
+ color: var(--medo-color-text-on-brand);
275
+ }
276
+
277
+ .medo-text-on-brand-secondary {
278
+ color: var(--medo-color-text-on-brand-secondary);
279
+ }
280
+
281
+ .medo-text-on-action {
282
+ color: var(--medo-color-text-on-action);
283
+ }
284
+
285
+ .medo-text-on-danger {
286
+ color: var(--medo-color-text-on-danger);
287
+ }
288
+
289
+ .medo-text-brand {
290
+ color: var(--medo-color-text-brand);
291
+ }
292
+
293
+ .medo-text-danger {
294
+ color: var(--medo-color-text-danger);
295
+ }
296
+
297
+ .medo-text-inverse {
298
+ color: var(--medo-color-text-inverse);
299
+ }
300
+
301
+ .medo-text-inverse-secondary {
302
+ color: var(--medo-color-text-inverse-secondary);
303
+ }
304
+
305
+ .medo-text-on-media {
306
+ color: var(--medo-color-text-on-media);
307
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@med-o/design-tokens",
3
- "version": "0.16.0",
3
+ "version": "0.18.0",
4
4
  "description": "Design tokens of the med.o Design System (DTCG source, CSS variables, Tailwind v4 theme, JS).",
5
5
  "type": "module",
6
6
  "license": "MIT",