Skip to content
Gelatin UIAlpha

Materials

Free

48 CSS surfaces: metal, glass, stone, and cloth. One class paints a bevelled rim, a layered fill, a shadow, and the ink for the text on top.

Tailwind CSS 4MIT + Commons Clause · 1 CSS file · 0 KB JavaScript
Brushed aluminumSilver and light · Hero and stat cards.
LightDark
material-brushed-aluminum

Install

Add the utility's CSS with the CLI, your coding agent, or by hand. It has no JavaScript.

Usage

Put the class on the element. Add text-material-ink to a part that sets its own text color, such as a Button or a Badge.

pro-upgrade-card.tsx

Classes

48 materials in 11 groups. Each class sets its own ink, so text on it reads with no more classes. Use one material per screen.

Silver and light

  • brushed-aluminumHero and stat cards.
  • spun-silverApp icon, round controls.
  • polished-chromeSmall accents only.
  • bead-blastedQuiet panels and trays.
  • satin-nickelWarm, quiet light cards.
  • liquid-silverOne launch hero.
  • knurled-steelDials and handles.
  • pearl-ceramicSoft light tiles.

Warm metals and foil

  • champagne-goldLifetime badge.
  • rose-goldTeam plan, gifts.
  • copperOne hero object.
  • holographic-foilRare badge, sticker.

Dark metals

  • anodized-graphiteDark hero and stats.
  • satin-titaniumWarm dark moments.
  • space-greyDark panels on light.
  • black-mirrorScreens, a pro key.
  • carbon-fiberSport and speed.
  • ink-enamelOne accent object.

Anodized colors

  • anodized-blueInfo moments, links in metal.
  • anodized-redOne alert object.
  • anodized-sageCalm success states.
  • anodized-violetAI and magic moments.

Alloys and heat tints

  • heat-tinted-titaniumA launch or a rare drop.
  • brassWarm, vintage tools.
  • bronzeAwards and third place.
  • gunmetalTools and dev panels.

Textures

  • hammered-steelHandmade, crafted feel.
  • damascusPremium knife-edge look.
  • sandblasted-blackQuiet black hardware.
  • linenEditorial, letters, books.

Stone and glaze

  • carrara-marbleLuxury and calm.
  • celadon-glazeSoft ceramic buttons.
  • mother-of-pearlGift cards and invites.
  • frosted-acrylicClear, cool light panels.

Precious metals

  • platinumThe top plan, quietly.
  • polished-goldFounder and lifetime marks.
  • black-goldMember cards, black tier.
  • obsidianDark luxury, a faint sheen.

Atelier finishes

  • piano-blackDeep gloss, two reflections.
  • saffiano-leatherWallets, passes, folios.
  • cashmereSoft, warm, tactile.
  • onyx-goldStatement panels, once.

Gems

  • sapphire-crystalCrystal icons and keys.
  • opalGifts and rare rewards.
  • moonstoneCalm, blue inner glow.
  • aurora-glassA night launch hero.

Glass

  • milk-glassOur brand glass, light.
  • smoked-glassOverlays on a dark page.

Dark mode

A material does not change in dark mode. Pick a pair with dark:, so each theme gets its own surface.

Light page
Dark page
material-brushed-aluminum dark:material-anodized-graphite

Options

The variables and the ink classes of the utility. Set a variable with an arbitrary property, such as [--material-shadow:none].

NameKindDefaultDescription
--material-rimvariableper materialThe 1.5px edge, painted on the border box. Set it to change the rim and keep the surface.
--material-inkvariableper materialThe text color that reads on this material. The class sets the color of the element to it.
--material-ink-mutedvariableper materialA quieter ink for labels and captions on the same material.
--material-shadowvariableper materialThe drop shadow under the element. Set it to none for a flat look.
text-material-inkclass—Sets the ink on a part that has its own text color, such as a Button or a Badge.
text-material-ink-mutedclass—Sets the muted ink on a child of the material.