Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Choosing between rem, px and relative units v1.0.0

Use this resource to choose units for spacing and sizing tokens and media queries

New

  • 363 downloads
  • 187 likes
  • 249 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install choose-css-sizing-units

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent matches each value to its unit: rem for text, px for the screen, relative units for available space. It checks behaviour when text is enlarged and in media queries. You get a size scale that holds when text grows.

Mostly picked by

Updated November 2, 2026

Card for the “Choosing between rem, px and relative units” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: role of each unit: rem, px and relative units
  • SKILL.md: media queries, root and checklist

Good fit for

  • You are defining spacing tokens for a design system
  • A layout breaks when text is enlarged

Not for

    Tags

    • units
    • rem
    • responsive
    • tokens

    About

    You say

    “Define the spacing and sizing tokens of our site in rem or px depending on their role.”

    Card for the “Choosing between rem, px and relative units” skill

    Skill published by dembrandt under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to choose units for spacing and sizing tokens and media queries
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md6.3 KB

    Origin and licence

    Listed unmodified

    Author
    dembrandt
    Source
    github.com/dembrandt/dembrandt-skills/tree/c4ad177dea5b864f779f8c722f28cf04f760cb22/skills/sizing-units
    Licence
    MIT

    Notice

    « sizing-units » (dembrandt, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.