Default Text Size for Captions #1583
-
Hi, I'm using Vidstack and would like to set a default text size for captions. I couldn't find a clear way to do this in the documentation. Is there a built-in option to define the default caption size, or do I need to apply custom styles via CSS or JavaScript? Any guidance would be appreciated! Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
felipehertzer
Feb 16, 2025
Replies: 1 comment
-
I was able to set the default size, but only using css ['.vds-captions']: {
'--media-cue-font-size': 'clamp(14px, calc(var(--media-height) / 100 * 6), 48px)',
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
felipehertzer
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was able to set the default size, but only using css