Skip to content

Commit bfbcd28

Browse files
shanerbaner82claude
andcommitted
docs(mobile/v4): use theme tokens in the new Text examples
Swap raw palette classes (text-slate-*/text-blue-*) for theme tokens (text-theme-on-surface/-primary/-on-surface-variant) in the inline-runs and text-selection examples. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 09a5b22 commit bfbcd28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • resources/views/docs/mobile/4/edge-components

‎resources/views/docs/mobile/4/edge-components/text.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ its own classes (weight, color, size):
4747

4848
@verbatim
4949
```blade
50-
<native:text class="text-base text-slate-700">
50+
<native:text class="text-base text-theme-on-surface">
5151
Use <native:text class="font-bold">bold</native:text> and
52-
<native:text class="text-blue-500 font-semibold">color</native:text> inline.
52+
<native:text class="text-theme-primary font-semibold">color</native:text> inline.
5353
</native:text>
5454
```
5555
@endverbatim
@@ -69,7 +69,7 @@ whole region selectable. Use `select-none` to opt a nested subtree back out:
6969
<native:text class="text-lg font-bold">Selectable heading</native:text>
7070
<native:text class="text-base">This body copy can be selected and copied.</native:text>
7171
72-
<native:text class="select-none text-xs text-slate-400">Not selectable</native:text>
72+
<native:text class="select-none text-xs text-theme-on-surface-variant">Not selectable</native:text>
7373
</native:column>
7474
```
7575
@endverbatim

0 commit comments

Comments
 (0)