Additional Utilities

A collection of Wedges design system utility classes.

Font Size

The following font size utilities are available with Wedges.

ClassValues
text-xxs
font-size: 0.625remline-height: 1rem
text-xs
font-size: 0.75remline-height: 1rem
text-sm
font-size: 0.875remline-height: 1.25rem
text-base
font-size: 1remline-height: 1.5rem
text-lg
font-size: 1.125remline-height: 1.75rem
text-xl
font-size: 1.25remline-height: 1.75rem
text-2xl
font-size: 1.5remline-height: 2rem
text-3xl
font-size: 1.875remline-height: 2.25rem
text-4xl
font-size: 2.25remline-height: 2.5rem
text-5xl
font-size: 3remline-height: 3.5remletter-spacing: -0.075rem
text-6xl
font-size: 3.75remline-height: 4.5remletter-spacing: -0.09375rem
text-7xl
font-size: 4.5remline-height: 5remletter-spacing: -0.1125rem
text-8xl
font-size: 6remline-height: 6.5remletter-spacing: -0.15rem
text-9xl
font-size: 8remline-height: 8remletter-spacing: -0.2rem

Box Shadow

The additional box shadow utilities are available with the shadow-wg-{scale} classes.

ClassValues
shadow-wg-xs
box-shadow: "0 1px 2px 0 rgba(18, 18, 23, 0.05)"
shadow-wg-sm
box-shadow: "0 1px 3px 0 rgba(18, 18, 23, 0.1), 0 1px 2px 0 rgba(18, 18, 23, 0.06)"
shadow-wg-md
box-shadow: "0px 2px 4px -1px rgba(18, 18, 23, 0.06), 0px 4px 6px -1px rgba(18, 18, 23, 0.08)"
shadow-wg-lg
box-shadow: "0px 4px 6px -2px rgba(18, 18, 23, 0.05), 0px 10px 15px -3px rgba(18, 18, 23, 0.08)"
shadow-wg-xl
box-shadow: "0px 10px 10px -5px rgba(18, 18, 23, 0.04), 0px 20px 25px -5px rgba(18, 18, 23, 0.10)"
shadow-wg-2xl
box-shadow: "0px 25px 50px -12px rgba(18, 18, 23, 0.25)"
shadow-wg-overlay
box-shadow: "0px 2px 4px 0px rgba(18, 18, 23, 0.04), 0px 5px 8px 0px rgba(18, 18, 23, 0.04), 0px 10px 18px 0px rgba(18, 18, 23, 0.03), 0px 24px 48px 0px rgba(18, 18, 23, 0.03), 0px 0px 0px 1px rgba(18, 18, 23, 0.10)"

Animations

Wedges introduces a set of simple fade animation utilities. These animations are used across Wedges components, making them smoother and more visually appealing. Use them with the animation-wg-{name} utility.

  • Fade in up: wg-fade-in-up
  • Fade in down: wg-fade-in-down
  • Fade in left: wg-fade-in-left
  • Fade in right: wg-fade-in-right
  • Fade out: wg-fade-out

Keyframes for these animations are defined as follows:

 keyframes: {
    fadeInUp: {
        "0%": {
            opacity: "0",
            transform: "translateY(5px) scale(.97)",
        },
        "100%": {
            opacity: "1",
            transform: "translateY(0px) scale(1)",
        },
    },
    fadeInDown: {
        "0%": {
            opacity: "0",
            transform: "translateY(-5px) scale(.97)",
        },
        "100%": {
            opacity: "1",
            transform: "translateY(0px) scale(1)",
        },
    },
    fadeInLeft: {
        "0%": {
            opacity: "0",
            transform: "translateX(5px) scale(.97)",
        },
        "100%": {
            opacity: "1",
            transform: "translateX(0px) scale(1)",
        },
    },
    fadeInRight: {
        "0%": {
            opacity: "0",
            transform: "translateX(-5px) scale(.97)",
        },
        "100%": {
            opacity: "1",
            transform: "translateX(0px) scale(1)",
        },
    },
    fadeOut: {
        "0%": {
            opacity: "1",
            transform: "scale(1)",
        },
        "100%": {
            opacity: "0",
            transform: "scale(.97)",
        },
    },
},
Edit this page