Font Style
@include('_partials.class-table', [ 'rows' => [ [ '.italic', 'font-style: italic;', 'Italicizes the text within an element.', ], [ '.not-italic', 'font-style: normal;', 'Remove italics within an element.', ], ] ])
No Italics
Use the .not-italic
utility to display text normally. This is typically used to reset italic text at different breakpoints.
@component('_partials.code-sample')
The quick brown fox jumped over the lazy dog.
@slot('code')The quick brown fox ...
@endslot @endcomponentItalics
Use the .italic
utility to make text italic.
@component('_partials.code-sample')
The quick brown fox jumped over the lazy dog.
@slot('code')The quick brown fox ...
@endslot @endcomponentResponsive
To control the font style of an element at a specific breakpoint, add a {screen}:
prefix to any existing font style utility. For example, use md:italic
to apply the italic
utility at only medium screen sizes and above.
For more information about Tailwind's responsive design features, check out the Responsive Design documentation.
@component('_partials.responsive-code-sample') @slot('none')
The quick brown fox jumped over the lazy dog.
@endslot @slot('sm')The quick brown fox jumped over the lazy dog.
@endslot @slot('md')The quick brown fox jumped over the lazy dog.
@endslot @slot('lg')The quick brown fox jumped over the lazy dog.
@endslot @slot('xl')The quick brown fox jumped over the lazy dog.
@endslot @slot('code')The quick brown fox jumped over the lazy dog.
@endslot @endcomponentCustomizing
@include('_partials.variants-and-disabling', [ 'utility' => [ 'name' => 'font style', 'property' => 'fontStyle', ], 'variants' => [ 'responsive', ], ])