Jellyfish provides default styling for all standard typography tags.
For easy spacing, Jellyfish removes the top margin and applies a bottom margin to block elements which can be defined with the $element-margin variable. Text sizing is set with em, cascading from the root. You can use the grid breakpoint settings to alter the root font size and line-height at different breakpoints.
Ordered List <ol>
Unordered List <ul>
Definition List <dl>
Text hyperlinks are styled with a simple hover animation for accessibility. The animation uses the smooth(color) mixin for a consistent transition to the text color. See mixins for more information.
A journey of a thousand miles begins with a single step.
Lao Tzu
console.log("JellyFish is Awesome!");
Element | Example |
---|---|
<strong> or .bold |
This text is important however the .bold class can be applied for the same effect without the implied semantics. |
<em> or .italic |
This text has emphasis however the .italic class can be applied for the same effect without the implied semantics. |
<u> |
This is underlined text |
<s> |
|
<a> |
This is an anchor |
<small> or .small |
This text has been defined via .small but you can also use the |
<sup> |
This issuperscript text |
<sub> |
This issubscript text |
<code> |
This is code text |
<samp> |
This is sample text |
<var> |
This is variable text |
<kbd> |
This is keyboard text |
<abbr> |
This is abbreviation text |
<del> |
|
<ins> |
This is inserted text |
<mark> |
This is marked text |
You can use modifier classes to simulate heading hierarchy on a non-heading level element.
CSS Tag | Example |
---|---|
.h1 | I'm the same font-size and line-height as a h1 tag |
.h2 | I'm the same font-size and line-height as a h2 tag |
.h3 | I'm the same font-size and line-height as a h3 tag |
.h4 | I'm the same font-size and line-height as a h4 tag |
.h5 | I'm the same font-size and line-height as a h5 tag |
.h6 |
I'm the same font-size and line-height as a h6 tag - even though I'm semantically a h3! |
Providing your typeface supports these weights, you can use weight-* modifiers to change text weight.
If you need to keep certain words together (e.g. brand names), wrap them in a span with the utility class .nowrap.
Note: This may cause elements to break out of their container and for paragraphs to be ragged - you have been warned!
Since the early 1980's, Jellyfish stingers inc. have been producing high-quality replacement stingers for injured jellyfish.