Stile generali

Stile – Utility Reference

Tipografia

.h1 – H1 Heading

.h2 – H2 Heading

.h3 – H3 Heading

.h4 – H4 Heading

.h5 – H5 Heading
.h6 – H6 Heading
.h1-display – Display title
.h1-news-title – H1 news title
.h3-news-title – H3 news title
.h3-news-title2 – H3 news title variant

Paragrafo standard con testo linkato.

.text-paragraph – Default paragraph

.text-paragraph-sm – Paragraph small

.text-paragraph-lg – Paragraph large

.text-btn-label – Button Label

.text-btn-small – Button Small

.text-form-label – Form Label

.typo-btn-label – Font Family per Pulsanti

Colori di Sfondo

.bg-surface
.bg-surface-dim
.bg-surface-fixed-light
.bg-surface-fixed-dark
.bg-brand
.bg-brand-hover
.bg-accent
.bg-accent-hover
.bg-accent2
.bg-accent2-hover

Colori del Testo

.color-on-surface

.color-on-surface-dim

.color-on-surface-fixed-light

.color-on-surface-fixed-dark

.color-on-brand

.color-on-accent

.color-on-accent2

Border Radius

radius-small
radius-base
radius-large
radius-extra-large
radius-giant

Spacing Utility

Size Padding Classes Margin Classes
extra-small.pt-extra-small, .pb-extra-small, .py-extra-small, .px-extra-small.mt-extra-small, .mb-extra-small, .my-extra-small, .mx-extra-small
smaller.pt-smaller, .pb-smaller, .py-smaller, .px-smaller.mt-smaller, .mb-smaller, .my-smaller, .mx-smaller
small.pt-small, .pb-small, .py-small, .px-small.mt-small, .mb-small, .my-small, .mx-small
regular.pt-regular, .pb-regular, .py-regular, .px-regular.mt-regular, .mb-regular, .my-regular, .mx-regular
large.pt-large, .pb-large, .py-large, .px-large.mt-large, .mb-large, .my-large, .mx-large
larger.pt-larger, .pb-larger, .py-larger, .px-larger.mt-larger, .mb-larger, .my-larger, .mx-larger
extra-large.pt-extra-large, .pb-extra-large, .py-extra-large, .px-extra-large.mt-extra-large, .mb-extra-large, .my-extra-large, .mx-extra-large

Classi Utility Extra

  • .transition-default
  • .shadow-default
  • .object-fit-cover
  • .object-fit-contain
  • .alignfull
  • .max-w-860
  • .max-w-1200
  • .rotate-90
  • .rotate-180
  • .text-balance
  • .sticky-navbar
  • .grid-1-col, .grid-2-col, .grid-3-col, .grid-4-col

Griglia – Utility di Layout

.grid-1-col

1

.grid-2-col

1
2

.grid-3-col

1
2
3

.grid-4-col

1
2
3
4

Pulsanti

Categoria Classi
Background Colors .bg-surface, .bg-surface-dim, .bg-surface-fixed-light, .bg-surface-fixed-dark, .bg-surface-hc,
.bg-brand, .bg-brand-hover, .bg-accent, .bg-accent-hover, .bg-accent2, .bg-accent2-hover
Text Colors .color-on-surface, .color-on-surface-dim, .color-on-surface-fixed-light, .color-on-surface-fixed-dark, .color-on-surface-hc,
.color-on-brand, .color-on-accent, .color-on-accent2, .color-text-link, .color-text-link-hover, .color-n3, .color-n4
Font Families .typo-display, .typo-title, .typo-body, .typo-label, .typo-btn-label, .typo-byline
Font Sizes .text-display, .text-h1, .text-h1-news-title, .text-h2, .text-h3, .text-h3-news-title, .text-h3-news-title2,
.text-h4, .text-h5, .text-paragraph, .text-paragraph-lg, .text-paragraph-sm,
.text-byline, .text-btn-label, .text-btn-small, .text-form-label
Font Weights .fw-display, .fw-title, .fw-body, .fw-btn-label, .fw-form-label
Line Heights .lh-sm, .lh-base, .lh-lg, .lh-xl, .lh-xxl
Spacing (Padding) .pt-{size}, .pb-{size}, .py-{size}, .px-{size} – dove {size} = extra-small, smaller, small, regular, large, larger, extra-large
Spacing (Margin) .mt-{size}, .mb-{size}, .my-{size}, .mx-{size} – dove {size} = extra-small, smaller, small, regular, large, larger, extra-large
Border Radius .radius-small, .radius-base, .radius-large, .radius-extra-large, .radius-giant
Extra Utility .transition-default, .shadow-default, .object-fit-cover, .object-fit-contain,
.alignfull, .max-w-860, .max-w-1200, .rotate-90, .rotate-180, .text-balance, .sticky-navbar
Griglia Responsive .grid-1-col, .grid-2-col, .grid-3-col, .grid-4-col

ICONE SVG – Utility .icon-[name]

icon-user-d <span class="icon-user-d"></span>
icon-logout-d <span class="icon-logout-d"></span>
icon-open-link-d <span class="icon-open-link-d"></span>
icon-play-d <span class="icon-play-d"></span>
icon-arrow-right-d <span class="icon-arrow-right-d"></span>
icon-arrow-left-b <span class="icon-arrow-left-b"></span>
icon-arrow-left-d <span class="icon-arrow-left-d"></span>
icon-share-b <span class="icon-share-b"></span>
icon-caret-prev-l <span class="icon-caret-prev-l"></span>
icon-caret-next-l <span class="icon-caret-next-l"></span>

Testing display of HTML elements

This is 2nd level heading

This is a test paragraph with a link.

This is 3rd level heading

This is a test paragraph with bold text.

This is 4th level heading

This is a test paragraph with emphasis text.

This is 5th level heading

This is a test paragraph with bold emphasis text.

This is 6th level heading

This is a test paragraph.

Basic block level elements

This is a normal paragraph (p element). To add some length to it, let us mention that this page was primarily written for testing the effect of user style sheets. You can use it for various other purposes as well, like just checking how your browser displays various HTML elements by default. It can also be useful when testing conversions from HTML format to other formats, since some elements can go wrong then.

This is another paragraph. I think it needs to be added that the set of elements tested is not exhaustive in any sense. I have selected those elements for which it can make sense to write user style sheet rules, in my opionion.

This is a div element. Authors may use such elements instead of paragraph markup for various reasons. (End of div.)

This is a block quotation containing a single paragraph. Well, not quite, since this is not really quoted text, but I hope you understand the point. After all, this page does not use HTML markup very normally anyway.

The following contains address information about the author, in an address element.

Jukka Korpela, jkorpela@cs.tut.fi
Päivänsäteenkuja 4 A, Espoo, Finland

Lists

This is a paragraph before an unnumbered list (ul). Note that the spacing between a paragraph and a list before or after that is hard to tune in a user style sheet. You can’t guess which paragraphs are logically related to a list, e.g. as a “list header”.

  • One.
  • Two.
  • Three. Well, probably this list item should be longer. Note that for short items lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items.
  • Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.

This is a paragraph before a numbered list (ol). Note that the spacing between a paragraph and a list before or after that is hard to tune in a user style sheet. You can’t guess which paragraphs are logically related to a list, e.g. as a “list header”.

  1. One.
  2. Two.
  3. Three. Well, probably this list item should be longer. Note that if items are short, lists look better if they are compactly presented, whereas for long items, it would be better to have more vertical spacing between items.
  4. Four. This is the last item in this list. Let us terminate the list now without making any more fuss about it.