CSS-apuluokat
Tältä sivulta löydät Kela Design Systemin tarjoamat apuluokat.
Tältä sivulta löydät Kela Design Systemin tarjoamat apuluokat.
KDS:n komponentteja voi muokata kevyesti käyttökontekstin mukaan välittämällä niille KDS:n apuluokkia (tai omia CSS-luokkia). Tyypillisimpiä muokattavia asioita ovat komponenttien margin
-, padding
-, display
-arvot, asemointi flexboxilla ja värit.
Voit lukea lisää CSS-apuluokkien käytöstä Tietoa apuluokista-sivulta.
breakpoint-merkinnällä ilmoitetut CSS-luokat ovat saatavilla myös responsiivina. Esimerkiksi sm:kds-block.
CSS-luokka | Arvo |
---|---|
kds-ratio | --kds-aspect-ratio: 100%; position: relative; width: 100%; |
kds-ratio--16x9 | --kds-aspect-ratio: calc(9 / 16 * 100%); |
CSS-luokka | Arvo |
---|---|
kds-border-0 | border-width: 0; |
kds-border | border-width: 1px; |
kds-border-t | border-top-width: 1px; |
kds-border-b | border-bottom-width: 1px; |
CSS-luokka | Arvo |
---|---|
kds-border-none | border-style: none; |
kds-border-solid | border-style: solid; |
CSS-luokka | Arvo |
---|---|
kds-border-default | border-color: var(--kds-base-border-color); |
kds-border-primary | border-color: var(--kds-color-primary); |
kds-border-brand-primary | border-color: var(--kds-color-brand-primary); |
kds-border-success | border-color: var(--kds-color-success); |
kds-border-warning | border-color: var(--kds-color-warning); |
kds-border-danger | border-color: var(--kds-color-danger); |
kds-border-light | border-color: var(--kds-color-light); |
kds-border-dark | border-color: var(--kds-color-dark); |
CSS-luokka | Arvo |
---|---|
kds-rounded-sm | border-radius: 0.25rem; |
kds-rounded-md | border-radius: 0.5rem; |
kds-rounded-t-md | border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; |
kds-rounded-lg | border-radius: 1rem; |
kds-rounded-xl | border-radius: 1.5rem; |
kds-rounded-pill | border-radius: 10rem; |
kds-rounded-circle | border-radius: 50%; |
CSS-luokka | Arvo |
---|---|
kds-shadow-sm | box-shadow: 0 2px 4px rgba(0,0,0,0.15) |
kds-shadow-md | box-shadow: 0 4px 8px rgba(0,0,0,0.15) |
kds-shadow-lg | box-shadow: 0 8px 16px rgba(0,0,0,0.15) |
CSS-luokka | Arvo |
---|---|
kds-brand-border | border-top: 4px solid var(--kds-color-brand-secondary); |
CSS-luokka | Arvo |
---|---|
kds-text-body | color: var(--kds-base-text-color); |
kds-text-muted | color: var(--kds-base-text-color-muted); |
kds-text-primary | color: var(--kds-color-primary); |
kds-text-brand-primary | color: var(--kds-color-brand-primary); |
kds-text-success | color: var(--kds-color-success); |
kds-text-warning | color: var(--kds-color-warning); |
kds-text-danger | color: var(--kds-color-danger); |
kds-text-light | color: var(--kds-color-light); |
kds-text-dark | color: var(--kds-color-dark); |
kds-text-white | color: var(--kds-color-white); |
CSS-luokka | Arvo |
---|---|
kds-cursor-pointer | cursor: pointer; |
CSS-luokka | Arvo |
---|---|
kds-bg-white | background-color: var(--kds-color-white); |
kds-bg-primary | background-color: var(--kds-color-primary); |
kds-bg-brand-primary | background-color: var(--kds-color-brand-primary); |
kds-bg-success | background-color: var(--kds-color-success); |
kds-bg-warning | background-color: var(--kds-color-warning); |
kds-bg-danger | background-color: var(--kds-color-danger); |
kds-bg-light | background-color: var(--kds-color-light); |
kds-bg-dark | background-color: var(--kds-color-dark); |
CSS-luokka | Arvo |
---|---|
kds-hidden xssmmdlgxl2xl3xl | display: none; |
kds-block xssmmdlgxl2xl3xl | display: block; |
kds-inline-block xssmmdlgxl2xl3xl | display: inline-block; |
kds-inline xssmmdlgxl2xl3xl | display: inline; |
kds-flex xssmmdlgxl2xl3xl | display: flex; |
CSS-luokka | Arvo |
---|---|
kds-self-start | align-self: flex-start; |
kds-self-end | align-self: flex-end; |
kds-self-center | align-self: center; |
CSS-luokka | Arvo |
---|---|
kds-items-start | align-items: flex-start; |
kds-items-end | align-items: flex-end; |
kds-items-center | align-items: center; |
CSS-luokka | Arvo |
---|---|
kds-flex-row | flex-direction: row; |
kds-flex-row-reverse | flex-direction: row-reverse; |
kds-flex-col | flex-direction: column; |
kds-flex-col-reverse | flex-direction: column-reverse; |
CSS-luokka | Arvo |
---|---|
kds-justify-start | justify-content: flex-start; |
kds-justify-end | justify-content: flex-end; |
kds-justify-center | justify-content: center; |
kds-justify-between | justify-content: space-between; |
kds-justify-around | justify-content: space-around; |
kds-justify-evenly | justify-content: space-evenly; |
CSS-luokka | Arvo |
---|---|
kds-grow | flex-grow: 1; |
kds-grow-0 | flex-grow: 0; |
CSS-luokka | Arvo |
---|---|
kds-shrink | flex-shrink: 1; |
kds-shrink-0 | flex-shrink: 0; |
CSS-luokka | Arvo |
---|---|
kds-flex-wrap | flex-wrap: wrap; |
kds-flex-nowrap | flex-wrap: nowrap; |
CSS-luokka | Arvo |
---|---|
kds-no-focus-ring | --kds-base-focus: none; --kds-base-focus-visible: none; outline: 0; box-shadow: none; |
kds-focus-ring-inset-dark | --kds-base-focus: var(--kds-focus-ring-inset-dark); --kds-base-focus-visible: var(--kds-focus-ring-inset-dark); |
kds-focus-ring-inset-light | --kds-base-focus: var(--kds-focus-ring-inset-light); --kds-base-focus-visible: var(--kds-focus-ring-inset-light); |
kds-focus-ring-offset-dark | --kds-base-focus: var(--kds-focus-ring-offset-dark); --kds-base-focus-visible: var(--kds-focus-ring-offset-dark); |
kds-focus-ring-offset-light | --kds-base-focus: var(--kds-focus-ring-offset-light); --kds-base-focus-visible: var(--kds-focus-ring-offset-light); |
focus-visible:kds-focus-ring-inset-dark | --kds-base-focus: none; --kds-base-focus-visible: var(--kds-focus-ring-inset-dark); |
focus-visible:kds-focus-ring-inset-light | --kds-base-focus: none; --kds-base-focus-visible: var(--kds-focus-ring-inset-light); |
focus-visible:kds-focus-ring-offset-dark | --kds-base-focus: none; --kds-base-focus-visible: var(--kds-focus-ring-offset-dark); |
focus-visible:kds-focus-ring-offset-light | --kds-base-focus: none; --kds-base-focus-visible: var(--kds-focus-ring-offset-light); |
CSS-luokka | Arvo |
---|---|
kds-gx-0 smmdlgxl2xl3xl | --kds-gap-x: 0rem; |
kds-gx-2 smmdlgxl2xl3xl | --kds-gap-x: 0.5rem; |
kds-gx-4 smmdlgxl2xl3xl | --kds-gap-x: 1rem; |
kds-gx-6 smmdlgxl2xl3xl | --kds-gap-x: 1.5rem; |
kds-gx-8 smmdlgxl2xl3xl | --kds-gap-x: 2rem; |
kds-gy-0 smmdlgxl2xl3xl | --kds-gap-y: 0rem; |
kds-gy-2 smmdlgxl2xl3xl | --kds-gap-y: 0.5rem; |
kds-gy-4 smmdlgxl2xl3xl | --kds-gap-y: 1rem; |
kds-gy-6 smmdlgxl2xl3xl | --kds-gap-y: 1.5rem; |
kds-gy-8 smmdlgxl2xl3xl | --kds-gap-y: 2rem; |
CSS-luokka | Arvo |
---|---|
kds-overflow-hidden | overflow: hidden; |
kds-overflow-auto | overflow: auto; |
CSS-luokka | Arvo |
---|---|
kds-static | position: static; |
kds-fixed | position: fixed; |
kds-absolute | position: absolute; |
kds-relative | position: relative; |
kds-sticky | position: sticky; |
CSS-luokka | Arvo |
---|---|
kds-sr-only | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; |
kds-sr-focusable | position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; |
CSS-luokka | Arvo |
---|---|
kds-h-0 | height: 0; |
kds-h-1/4 | height: 25%; |
kds-h-2/4 | height: 50%; |
kds-h-3/4 | height: 75%; |
kds-h-auto | height: auto; |
kds-h-full | height: 100%; |
kds-h-screen | height: 100vh; |
CSS-luokka | Arvo |
---|---|
kds-w-0 | width: 0; |
kds-w-2 | width: 0.5rem; |
kds-w-4 | width: 1rem; |
kds-w-6 | width: 1.5rem; |
kds-w-8 | width: 2rem; |
kds-w-10 | width: 2.5rem; |
kds-w-12 | width: 3rem; |
kds-w-14 | width: 3.5rem; |
kds-w-16 | width: 4rem; |
kds-w-18 | width: 4.5rem; |
kds-w-20 | width: 5rem; |
kds-w-24 | width: 6rem; |
kds-w-28 | width: 7rem; |
kds-w-32 | width: 8rem; |
kds-w-auto | width: auto; |
kds-w-1/4 | width: 25%; |
kds-w-2/4 | width: 50%; |
kds-w-3/4 | width: 75%; |
kds-w-full | width: 100%; |
kds-w-screen | width: 100vw; |
CSS-luokka | Arvo |
---|---|
kds-max-w-screen-sm | max-width: 34rem |
kds-max-w-screen-md | max-width: 45rem |
kds-max-w-screen-lg | max-width: 60rem |
kds-max-w-screen-xl | max-width: 72rem |
kds-max-w-screen-2xl | max-width: 83rem |
kds-max-w-screen-3xl | max-width: 96rem |
CSS-luokka | Arvo |
---|---|
kds-m-0 smmd | margin: 0; |
kds-m-1 | margin: 0.25rem; |
kds-m-2 smmd | margin: 0.5rem; |
kds-m-3 | margin: 0.75rem; |
kds-m-4 smmd | margin: 1rem; |
kds-m-5 | margin: 1.25rem; |
kds-m-6 smmd | margin: 1.5rem; |
kds-m-7 | margin: 1.75rem; |
kds-m-8 | margin: 2rem; |
kds-m-9 | margin: 2.25rem; |
kds-m-10 | margin: 2.5rem; |
kds-m-12 | margin: 3rem; |
kds-m-14 | margin: 3.5rem; |
kds-m-16 | margin: 4rem; |
kds-m-18 | margin: 4.5rem; |
kds-m-20 | margin: 5rem; |
kds-m-24 | margin: 6rem; |
kds-m-28 | margin: 7rem; |
kds-m-32 | margin: 8rem; |
kds-m-px | margin: 1px; |
kds-m-auto | margin: auto; |
kds-mx-0 smmd | margin-left: 0; margin-right: 0; |
kds-mx-1 | margin-left: 0.25rem; margin-right: 0.25rem; |
kds-mx-2 smmd | margin-left: 0.5rem; margin-right: 0.5rem; |
kds-mx-3 | margin-left: 0.75rem; margin-right: 0.75rem; |
kds-mx-4 smmd | margin-left: 1rem; margin-right: 1rem; |
kds-mx-5 | margin-left: 1.25rem; margin-right: 1.25rem; |
kds-mx-6 smmd | margin-left: 1.5rem; margin-right: 1.5rem; |
kds-mx-7 | margin-left: 1.75rem; margin-right: 1.75rem; |
kds-mx-8 | margin-left: 2rem; margin-right: 2rem; |
kds-mx-9 | margin-left: 2.25rem; margin-right: 2.25rem; |
kds-mx-10 | margin-left: 2.5rem; margin-right: 2.5rem; |
kds-mx-12 | margin-left: 3rem; margin-right: 3rem; |
kds-mx-14 | margin-left: 3.5rem; margin-right: 3.5rem; |
kds-mx-16 | margin-left: 4rem; margin-right: 4rem; |
kds-mx-18 | margin-left: 4.5rem; margin-right: 4.5rem; |
kds-mx-20 | margin-left: 5rem; margin-right: 5rem; |
kds-mx-24 | margin-left: 6rem; margin-right: 6rem; |
kds-mx-28 | margin-left: 7rem; margin-right: 7rem; |
kds-mx-32 | margin-left: 8rem; margin-right: 8rem; |
kds-mx-px | margin-left: 1px; margin-right: 1px; |
kds-mx-auto | margin-left: auto; margin-right: auto; |
kds-my-0 smmd | margin-top: 0; margin-bottom: 0; |
kds-my-1 | margin-top: 0.25rem; margin-bottom: 0.25rem; |
kds-my-2 smmd | margin-top: 0.5rem; margin-bottom: 0.5rem; |
kds-my-3 | margin-top: 0.75rem; margin-bottom: 0.75rem; |
kds-my-4 smmd | margin-top: 1rem; margin-bottom: 1rem; |
kds-my-5 | margin-top: 1.25rem; margin-bottom: 1.25rem; |
kds-my-6 smmd | margin-top: 1.5rem; margin-bottom: 1.5rem; |
kds-my-7 | margin-top: 1.75rem; margin-bottom: 1.75rem; |
kds-my-8 | margin-top: 2rem; margin-bottom: 2rem; |
kds-my-9 | margin-top: 2.25rem; margin-bottom: 2.25rem; |
kds-my-10 | margin-top: 2.5rem; margin-bottom: 2.5rem; |
kds-my-12 | margin-top: 3rem; margin-bottom: 3rem; |
kds-my-14 | margin-top: 3.5rem; margin-bottom: 3.5rem; |
kds-my-16 | margin-top: 4rem; margin-bottom: 4rem; |
kds-my-18 | margin-top: 4.5rem; margin-bottom: 4.5rem; |
kds-my-20 | margin-top: 5rem; margin-bottom: 5rem; |
kds-my-24 | margin-top: 6rem; margin-bottom: 6rem; |
kds-my-28 | margin-top: 7rem; margin-bottom: 7rem; |
kds-my-32 | margin-top: 8rem; margin-bottom: 8rem; |
kds-my-px | margin-top: 1px; margin-bottom: 1px; |
kds-my-auto | margin-top: auto; margin-bottom: auto; |
kds-ml-0 smmd | margin-left: 0; |
kds-ml-1 | margin-left: 0.25rem; |
kds-ml-2 smmd | margin-left: 0.5rem; |
kds-ml-3 | margin-left: 0.75rem; |
kds-ml-4 smmd | margin-left: 1rem; |
kds-ml-5 | margin-left: 1.25rem; |
kds-ml-6 smmd | margin-left: 1.5rem; |
kds-ml-7 | margin-left: 1.75rem; |
kds-ml-8 | margin-left: 2rem; |
kds-ml-9 | margin-left: 2.25rem; |
kds-ml-10 | margin-left: 2.5rem; |
kds-ml-12 | margin-left: 3rem; |
kds-ml-14 | margin-left: 3.5rem; |
kds-ml-16 | margin-left: 4rem; |
kds-ml-18 | margin-left: 4.5rem; |
kds-ml-20 | margin-left: 5rem; |
kds-ml-24 | margin-left: 6rem; |
kds-ml-28 | margin-left: 7rem; |
kds-ml-32 | margin-left: 8rem; |
kds-ml-px | margin-left: 1px; |
kds-ml-auto | margin-left: auto; |
kds-mr-0 smmd | margin-right: 0; |
kds-mr-1 | margin-right: 0.25rem; |
kds-mr-2 smmd | margin-right: 0.5rem; |
kds-mr-3 | margin-right: 0.75rem; |
kds-mr-4 smmd | margin-right: 1rem; |
kds-mr-5 | margin-right: 1.25rem; |
kds-mr-6 smmd | margin-right: 1.5rem; |
kds-mr-7 | margin-right: 1.75rem; |
kds-mr-8 | margin-right: 2rem; |
kds-mr-9 | margin-right: 2.25rem; |
kds-mr-10 | margin-right: 2.5rem; |
kds-mr-12 | margin-right: 3rem; |
kds-mr-14 | margin-right: 3.5rem; |
kds-mr-16 | margin-right: 4rem; |
kds-mr-18 | margin-right: 4.5rem; |
kds-mr-20 | margin-right: 5rem; |
kds-mr-24 | margin-right: 6rem; |
kds-mr-28 | margin-right: 7rem; |
kds-mr-32 | margin-right: 8rem; |
kds-mr-px | margin-right: 1px; |
kds-mr-auto | margin-right: auto; |
kds-mt-0 smmd | margin-top: 0; |
kds-mt-1 | margin-top: 0.25rem; |
kds-mt-2 smmd | margin-top: 0.5rem; |
kds-mt-3 | margin-top: 0.75rem; |
kds-mt-4 smmd | margin-top: 1rem; |
kds-mt-5 | margin-top: 1.25rem; |
kds-mt-6 smmd | margin-top: 1.5rem; |
kds-mt-7 | margin-top: 1.75rem; |
kds-mt-8 | margin-top: 2rem; |
kds-mt-9 | margin-top: 2.25rem; |
kds-mt-10 | margin-top: 2.5rem; |
kds-mt-12 | margin-top: 3rem; |
kds-mt-14 | margin-top: 3.5rem; |
kds-mt-16 | margin-top: 4rem; |
kds-mt-18 | margin-top: 4.5rem; |
kds-mt-20 | margin-top: 5rem; |
kds-mt-24 | margin-top: 6rem; |
kds-mt-28 | margin-top: 7rem; |
kds-mt-32 | margin-top: 8rem; |
kds-mt-px | margin-top: 1px; |
kds-mt-auto | margin-top: auto; |
kds-mb-0 smmd | margin-bottom: 0; |
kds-mb-1 | margin-bottom: 0.25rem; |
kds-mb-2 smmd | margin-bottom: 0.5rem; |
kds-mb-3 | margin-bottom: 0.75rem; |
kds-mb-4 smmd | margin-bottom: 1rem; |
kds-mb-5 | margin-bottom: 1.25rem; |
kds-mb-6 smmd | margin-bottom: 1.5rem; |
kds-mb-7 | margin-bottom: 1.75rem; |
kds-mb-8 | margin-bottom: 2rem; |
kds-mb-9 | margin-bottom: 2.25rem; |
kds-mb-10 | margin-bottom: 2.5rem; |
kds-mb-12 | margin-bottom: 3rem; |
kds-mb-14 | margin-bottom: 3.5rem; |
kds-mb-16 | margin-bottom: 4rem; |
kds-mb-18 | margin-bottom: 4.5rem; |
kds-mb-20 | margin-bottom: 5rem; |
kds-mb-24 | margin-bottom: 6rem; |
kds-mb-28 | margin-bottom: 7rem; |
kds-mb-32 | margin-bottom: 8rem; |
kds-mb-px | margin-bottom: 1px; |
kds-mb-auto | margin-bottom: auto; |
kds--m-px | margin: -1px; |
kds--m-1 | margin: -0.25rem; |
kds--m-2 smmd | margin: -0.5rem; |
kds--m-3 | margin: -0.75rem; |
kds--m-4 smmd | margin: -1rem; |
kds--m-5 | margin: -1.25rem; |
kds--m-6 smmd | margin: -1.5rem; |
kds--m-7 | margin: -1.75rem; |
kds--m-8 | margin: -2rem; |
kds--mx-px | margin-left: -1px; margin-right: -1px; |
kds--mx-1 | margin-left: -0.25rem; margin-right: -0.25rem; |
kds--mx-2 smmd | margin-left: -0.5rem; margin-right: -0.5rem; |
kds--mx-3 | margin-left: -0.75rem; margin-right: -0.75rem; |
kds--mx-4 smmd | margin-left: -1rem; margin-right: -1rem; |
kds--mx-5 | margin-left: -1.25rem; margin-right: -1.25rem; |
kds--mx-6 smmd | margin-left: -1.5rem; margin-right: -1.5rem; |
kds--mx-7 | margin-left: -1.75rem; margin-right: -1.75rem; |
kds--mx-8 | margin-left: -2rem; margin-right: -2rem; |
kds--my-px | margin-top: -1px; margin-bottom: -1px; |
kds--my-1 | margin-top: -0.25rem; margin-bottom: -0.25rem; |
kds--my-2 smmd | margin-top: -0.5rem; margin-bottom: -0.5rem; |
kds--my-3 | margin-top: -0.75rem; margin-bottom: -0.75rem; |
kds--my-4 smmd | margin-top: -1rem; margin-bottom: -1rem; |
kds--my-5 | margin-top: -1.25rem; margin-bottom: -1.25rem; |
kds--my-6 smmd | margin-top: -1.5rem; margin-bottom: -1.5rem; |
kds--my-7 | margin-top: -1.75rem; margin-bottom: -1.75rem; |
kds--my-8 | margin-top: -2rem; margin-bottom: -2rem; |
kds--ml-px | margin-left: -1px; |
kds--ml-1 | margin-left: -0.25rem; |
kds--ml-2 smmd | margin-left: -0.5rem; |
kds--ml-3 | margin-left: -0.75rem; |
kds--ml-4 smmd | margin-left: -1rem; |
kds--ml-5 | margin-left: -1.25rem; |
kds--ml-6 smmd | margin-left: -1.5rem; |
kds--ml-7 | margin-left: -1.75rem; |
kds--ml-8 | margin-left: -2rem; |
kds--mr-px | margin-right: -1px; |
kds--mr-1 | margin-right: -0.25rem; |
kds--mr-2 smmd | margin-right: -0.5rem; |
kds--mr-3 | margin-right: -0.75rem; |
kds--mr-4 smmd | margin-right: -1rem; |
kds--mr-5 | margin-right: -1.25rem; |
kds--mr-6 smmd | margin-right: -1.5rem; |
kds--mr-7 | margin-right: -1.75rem; |
kds--mr-8 | margin-right: -2rem; |
kds--mt-px | margin-top: -1px; |
kds--mt-1 | margin-top: -0.25rem; |
kds--mt-2 smmd | margin-top: -0.5rem; |
kds--mt-3 | margin-top: -0.75rem; |
kds--mt-4 smmd | margin-top: -1rem; |
kds--mt-5 | margin-top: -1.25rem; |
kds--mt-6 smmd | margin-top: -1.5rem; |
kds--mt-7 | margin-top: -1.75rem; |
kds--mt-8 | margin-top: -2rem; |
kds--mb-px | margin-bottom: -1px; |
kds--mb-1 | margin-bottom: -0.25rem; |
kds--mb-2 smmd | margin-bottom: -0.5rem; |
kds--mb-3 | margin-bottom: -0.75rem; |
kds--mb-4 smmd | margin-bottom: -1rem; |
kds--mb-5 | margin-bottom: -1.25rem; |
kds--mb-6 smmd | margin-bottom: -1.5rem; |
kds--mb-7 | margin-bottom: -1.75rem; |
kds--mb-8 | margin-bottom: -2rem; |
CSS-luokka | Arvo |
---|---|
kds-p-0 smmd | padding: 0; |
kds-p-1 | padding: 0.25rem; |
kds-p-2 smmd | padding: 0.5rem; |
kds-p-3 | padding: 0.75rem; |
kds-p-4 smmd | padding: 1rem; |
kds-p-5 | padding: 1.25rem; |
kds-p-6 smmd | padding: 1.5rem; |
kds-p-7 | padding: 1.75rem; |
kds-p-8 | padding: 2rem; |
kds-p-9 | padding: 2.25rem; |
kds-p-10 | padding: 2.5rem; |
kds-p-12 | padding: 3rem; |
kds-p-14 | padding: 3.5rem; |
kds-p-16 | padding: 4rem; |
kds-p-18 | padding: 4.5rem; |
kds-p-20 | padding: 5rem; |
kds-p-24 | padding: 6rem; |
kds-p-28 | padding: 7rem; |
kds-p-32 | padding: 8rem; |
kds-p-px | padding: 1px; |
kds-px-0 smmd | padding-left: 0; padding-right: 0; |
kds-px-1 | padding-left: 0.25rem; padding-right: 0.25rem; |
kds-px-2 smmd | padding-left: 0.5rem; padding-right: 0.5rem; |
kds-px-3 | padding-left: 0.75rem; padding-right: 0.75rem; |
kds-px-4 smmd | padding-left: 1rem; padding-right: 1rem; |
kds-px-5 | padding-left: 1.25rem; padding-right: 1.25rem; |
kds-px-6 smmd | padding-left: 1.5rem; padding-right: 1.5rem; |
kds-px-7 | padding-left: 1.75rem; padding-right: 1.75rem; |
kds-px-8 | padding-left: 2rem; padding-right: 2rem; |
kds-px-9 | padding-left: 2.25rem; padding-right: 2.25rem; |
kds-px-10 | padding-left: 2.5rem; padding-right: 2.5rem; |
kds-px-12 | padding-left: 3rem; padding-right: 3rem; |
kds-px-14 | padding-left: 3.5rem; padding-right: 3.5rem; |
kds-px-16 | padding-left: 4rem; padding-right: 4rem; |
kds-px-18 | padding-left: 4.5rem; padding-right: 4.5rem; |
kds-px-20 | padding-left: 5rem; padding-right: 5rem; |
kds-px-24 | padding-left: 6rem; padding-right: 6rem; |
kds-px-28 | padding-left: 7rem; padding-right: 7rem; |
kds-px-32 | padding-left: 8rem; padding-right: 8rem; |
kds-px-px | padding-left: 1px; padding-right: 1px; |
kds-py-0 smmd | padding-top: 0; padding-bottom: 0; |
kds-py-1 | padding-top: 0.25rem; padding-bottom: 0.25rem; |
kds-py-2 smmd | padding-top: 0.5rem; padding-bottom: 0.5rem; |
kds-py-3 | padding-top: 0.75rem; padding-bottom: 0.75rem; |
kds-py-4 smmd | padding-top: 1rem; padding-bottom: 1rem; |
kds-py-5 | padding-top: 1.25rem; padding-bottom: 1.25rem; |
kds-py-6 smmd | padding-top: 1.5rem; padding-bottom: 1.5rem; |
kds-py-7 | padding-top: 1.75rem; padding-bottom: 1.75rem; |
kds-py-8 | padding-top: 2rem; padding-bottom: 2rem; |
kds-py-9 | padding-top: 2.25rem; padding-bottom: 2.25rem; |
kds-py-10 | padding-top: 2.5rem; padding-bottom: 2.5rem; |
kds-py-12 | padding-top: 3rem; padding-bottom: 3rem; |
kds-py-14 | padding-top: 3.5rem; padding-bottom: 3.5rem; |
kds-py-16 | padding-top: 4rem; padding-bottom: 4rem; |
kds-py-18 | padding-top: 4.5rem; padding-bottom: 4.5rem; |
kds-py-20 | padding-top: 5rem; padding-bottom: 5rem; |
kds-py-24 | padding-top: 6rem; padding-bottom: 6rem; |
kds-py-28 | padding-top: 7rem; padding-bottom: 7rem; |
kds-py-32 | padding-top: 8rem; padding-bottom: 8rem; |
kds-py-px | padding-top: 1px; padding-bottom: 1px; |
kds-pl-0 smmd | padding-left: 0; |
kds-pl-1 | padding-left: 0.25rem; |
kds-pl-2 smmd | padding-left: 0.5rem; |
kds-pl-3 | padding-left: 0.75rem; |
kds-pl-4 smmd | padding-left: 1rem; |
kds-pl-5 | padding-left: 1.25rem; |
kds-pl-6 smmd | padding-left: 1.5rem; |
kds-pl-7 | padding-left: 1.75rem; |
kds-pl-8 | padding-left: 2rem; |
kds-pl-9 | padding-left: 2.25rem; |
kds-pl-10 | padding-left: 2.5rem; |
kds-pl-12 | padding-left: 3rem; |
kds-pl-14 | padding-left: 3.5rem; |
kds-pl-16 | padding-left: 4rem; |
kds-pl-18 | padding-left: 4.5rem; |
kds-pl-20 | padding-left: 5rem; |
kds-pl-24 | padding-left: 6rem; |
kds-pl-28 | padding-left: 7rem; |
kds-pl-32 | padding-left: 8rem; |
kds-pl-px | padding-left: 1px; |
kds-pr-0 smmd | padding-right: 0; |
kds-pr-1 | padding-right: 0.25rem; |
kds-pr-2 smmd | padding-right: 0.5rem; |
kds-pr-3 | padding-right: 0.75rem; |
kds-pr-4 smmd | padding-right: 1rem; |
kds-pr-5 | padding-right: 1.25rem; |
kds-pr-6 smmd | padding-right: 1.5rem; |
kds-pr-7 | padding-right: 1.75rem; |
kds-pr-8 | padding-right: 2rem; |
kds-pr-9 | padding-right: 2.25rem; |
kds-pr-10 | padding-right: 2.5rem; |
kds-pr-12 | padding-right: 3rem; |
kds-pr-14 | padding-right: 3.5rem; |
kds-pr-16 | padding-right: 4rem; |
kds-pr-18 | padding-right: 4.5rem; |
kds-pr-20 | padding-right: 5rem; |
kds-pr-24 | padding-right: 6rem; |
kds-pr-28 | padding-right: 7rem; |
kds-pr-32 | padding-right: 8rem; |
kds-pr-px | padding-right: 1px; |
kds-pt-0 smmd | padding-top: 0; |
kds-pt-1 | padding-top: 0.25rem; |
kds-pt-2 smmd | padding-top: 0.5rem; |
kds-pt-3 | padding-top: 0.75rem; |
kds-pt-4 smmd | padding-top: 1rem; |
kds-pt-5 | padding-top: 1.25rem; |
kds-pt-6 smmd | padding-top: 1.5rem; |
kds-pt-7 | padding-top: 1.75rem; |
kds-pt-8 | padding-top: 2rem; |
kds-pt-9 | padding-top: 2.25rem; |
kds-pt-10 | padding-top: 2.5rem; |
kds-pt-12 | padding-top: 3rem; |
kds-pt-14 | padding-top: 3.5rem; |
kds-pt-16 | padding-top: 4rem; |
kds-pt-18 | padding-top: 4.5rem; |
kds-pt-20 | padding-top: 5rem; |
kds-pt-24 | padding-top: 6rem; |
kds-pt-28 | padding-top: 7rem; |
kds-pt-32 | padding-top: 8rem; |
kds-pt-px | padding-top: 1px; |
kds-pb-0 smmd | padding-bottom: 0; |
kds-pb-1 | padding-bottom: 0.25rem; |
kds-pb-2 smmd | padding-bottom: 0.5rem; |
kds-pb-3 | padding-bottom: 0.75rem; |
kds-pb-4 smmd | padding-bottom: 1rem; |
kds-pb-5 | padding-bottom: 1.25rem; |
kds-pb-6 smmd | padding-bottom: 1.5rem; |
kds-pb-7 | padding-bottom: 1.75rem; |
kds-pb-8 | padding-bottom: 2rem; |
kds-pb-9 | padding-bottom: 2.25rem; |
kds-pb-10 | padding-bottom: 2.5rem; |
kds-pb-12 | padding-bottom: 3rem; |
kds-pb-14 | padding-bottom: 3.5rem; |
kds-pb-16 | padding-bottom: 4rem; |
kds-pb-18 | padding-bottom: 4.5rem; |
kds-pb-20 | padding-bottom: 5rem; |
kds-pb-24 | padding-bottom: 6rem; |
kds-pb-28 | padding-bottom: 7rem; |
kds-pb-32 | padding-bottom: 8rem; |
kds-pb-px | padding-bottom: 1px; |
CSS-luokka | Arvo |
---|---|
kds-text-left | text-align: left; |
kds-text-center | text-align: center; |
kds-text-right | text-align: right; |
kds-text-justify | text-align: justify; |
kds-text-start | text-align: start; |
kds-text-end | text-align: end; |
CSS-luokka | Arvo |
---|---|
kds-font-heading | font-family: var(--kds-base-font-family-heading); |
kds-font-body | font-family: var(--kds-base-font-family-body); |
CSS-luokka | Arvo |
---|---|
kds-font-normal | font-weight: var(--kds-font-weight-normal); |
kds-font-semibold | font-weight: var(--kds-font-weight-semibold); |
kds-font-bold | font-weight: var(--kds-font-weight-bold); |
CSS-luokka | Arvo |
---|---|
kds-leading-reset | line-height: var(--kds-line-height-reset); |
kds-leading-sm | line-height: var(--kds-line-height-sm); |
kds-leading-md | line-height: var(--kds-line-height-md); |
kds-leading-lg | line-height: var(--kds-line-height-lg); |
CSS-luokka | Arvo |
---|---|
kds-tracking-sm | letter-spacing: var(--kds-letter-spacing-sm); |
kds-tracking-md | letter-spacing: var(--kds-letter-spacing-md); |
kds-tracking-lg | letter-spacing: var(--kds-letter-spacing-lg); |
CSS-luokka | Arvo |
---|---|
kds-whitespace-nowrap | white-space: nowrap; |
CSS-luokka | Arvo |
---|---|
kds-truncate | overflow: hidden; text-overflow: ellipsis; white-space: nowrap; |
CSS-luokka | Arvo |
---|---|
kds-text-sm | font-size: var(--kds-font-size-sm); line-height: var(--kds-line-height-lg); |
kds-text-base | font-size: var(--kds-font-size-base); line-height: var(--kds-line-height-lg); |
kds-text-lg | font-size: var(--kds-font-size-lg); line-height: var(--kds-line-height-lg); |
kds-text-xl | font-size: var(--kds-font-size-xl); line-height: var(--kds-line-height-lg); |
kds-text-2xl | font-size: var(--kds-font-size-2xl); line-height: var(--kds-line-height-md); |
kds-text-3xl | font-size: var(--kds-font-size-3xl); line-height: var(--kds-line-height-md); |
kds-text-4xl | font-size: var(--kds-font-size-4xl); line-height: var(--kds-line-height-md); |
kds-text-5xl | font-size: var(--kds-font-size-5xl); line-height: var(--kds-line-height-md); |
kds-text-6xl | font-size: var(--kds-font-size-6xl); line-height: var(--kds-line-height-md); |
kds-text-7xl | font-size: var(--kds-font-size-7xl); line-height: var(--kds-line-height-md); |
kds-text-8xl | font-size: var(--kds-font-size-8xl); line-height: var(--kds-line-height-md); |
kds-text-9xl | font-size: var(--kds-font-size-9xl); line-height: var(--kds-line-height-md); |
CSS-luokka | Arvo |
---|---|
kds-uppercase | text-transform: uppercase |
kds-lowercase | text-transform: lowercase |
kds-capitalize | text-transform: capitalize |
kds-normal-case | text-transform: none |
CSS-luokka | Arvo |
---|---|
kds-visible | visibility: visible; |
kds-invisible | visibility: hidden; |
CSS-luokka | Arvo |
---|---|
kds-z-deep | z-index: var(--kds-z-deep); |
kds-z-default | z-index: var(--kds-z-default); |
kds-z-dropdown | z-index: var(--kds-z-dropdown); |
kds-z-header | z-index: var(--kds-z-header); |
kds-z-sidebar | z-index: var(--kds-z-sidebar); |
kds-z-toast | z-index: var(--kds-z-toast); |
kds-z-modal-backdrop | z-index: var(--kds-z-modal-backdrop); |
kds-z-modal | z-index: var(--kds-z-modal); |
kds-z-tooltip | z-index: var(--kds-z-tooltip); |
kds-z-infinite | z-index: var(--kds-z-infinite); |