Skip to content

Media Types

Media types handle formatted content and visual data.

TypeExpands To
col.color()string(7) - hex format #RRGGBB
col.markdown()text + markdown format hint
col.html()text + HTML format hint
schemas/blog/post.js
export default table({
id: col.id(),
content: col.markdown(),
rendered_html: col.html(),
theme_color: col.color(),
});

Colors use 7-character hex format:

#FF5733 ✓
#fff ✗ (use #FFFFFF)
rgb() ✗

The markdown and html format hints inform API clients and admin UIs to render appropriate editors. OpenAPI exports include format metadata for these fields.