Open this example in the interactive library
Source code
<style>
.demo:read-only {
color: #475569;
}
</style>
<input class="demo" aria-label="Reference number" value="REF-123" readonly />
Show a read-only field with a softer colour with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:read-only {
color: #475569;
}
</style>
<input class="demo" aria-label="Reference number" value="REF-123" readonly />