{
  "api": "css-units",
  "title": "CSS Units",
  "description": "CSS units for length, angle, time, and viewport measurements.",
  "emoji": "📐",
  "license": "GPL-2.0-or-later",
  "count": 21,
  "self": "https://gratisapi.com/api/css-units/index",
  "endpoints": {
    "list": "https://gratisapi.com/api/css-units/index",
    "item": "https://gratisapi.com/api/css-units/{id}"
  },
  "fields": [
    "description",
    "id",
    "type",
    "unit"
  ],
  "results": [
    {
      "id": "px",
      "unit": "px",
      "type": "Absolute",
      "description": "Pixels; one device-independent pixel, the most common absolute unit.",
      "url": "https://gratisapi.com/api/css-units/px"
    },
    {
      "id": "cm",
      "unit": "cm",
      "type": "Absolute",
      "description": "Centimeters; a physical length unit.",
      "url": "https://gratisapi.com/api/css-units/cm"
    },
    {
      "id": "mm",
      "unit": "mm",
      "type": "Absolute",
      "description": "Millimeters; one tenth of a centimeter.",
      "url": "https://gratisapi.com/api/css-units/mm"
    },
    {
      "id": "in",
      "unit": "in",
      "type": "Absolute",
      "description": "Inches; equal to 96px.",
      "url": "https://gratisapi.com/api/css-units/in"
    },
    {
      "id": "pt",
      "unit": "pt",
      "type": "Absolute",
      "description": "Points; equal to 1/72 of an inch, common in print.",
      "url": "https://gratisapi.com/api/css-units/pt"
    },
    {
      "id": "pc",
      "unit": "pc",
      "type": "Absolute",
      "description": "Picas; equal to 12 points or 1/6 of an inch.",
      "url": "https://gratisapi.com/api/css-units/pc"
    },
    {
      "id": "em",
      "unit": "em",
      "type": "Relative",
      "description": "Relative to the font size of the current element.",
      "url": "https://gratisapi.com/api/css-units/em"
    },
    {
      "id": "rem",
      "unit": "rem",
      "type": "Relative",
      "description": "Relative to the font size of the root (html) element.",
      "url": "https://gratisapi.com/api/css-units/rem"
    },
    {
      "id": "ex",
      "unit": "ex",
      "type": "Relative",
      "description": "Relative to the x-height of the current font.",
      "url": "https://gratisapi.com/api/css-units/ex"
    },
    {
      "id": "ch",
      "unit": "ch",
      "type": "Relative",
      "description": "Relative to the width of the '0' glyph in the current font.",
      "url": "https://gratisapi.com/api/css-units/ch"
    },
    {
      "id": "percent",
      "unit": "%",
      "type": "Relative",
      "description": "Relative to the parent element's corresponding value.",
      "url": "https://gratisapi.com/api/css-units/percent"
    },
    {
      "id": "vw",
      "unit": "vw",
      "type": "Viewport",
      "description": "One percent of the viewport's width.",
      "url": "https://gratisapi.com/api/css-units/vw"
    },
    {
      "id": "vh",
      "unit": "vh",
      "type": "Viewport",
      "description": "One percent of the viewport's height.",
      "url": "https://gratisapi.com/api/css-units/vh"
    },
    {
      "id": "vmin",
      "unit": "vmin",
      "type": "Viewport",
      "description": "One percent of the viewport's smaller dimension.",
      "url": "https://gratisapi.com/api/css-units/vmin"
    },
    {
      "id": "vmax",
      "unit": "vmax",
      "type": "Viewport",
      "description": "One percent of the viewport's larger dimension.",
      "url": "https://gratisapi.com/api/css-units/vmax"
    },
    {
      "id": "deg",
      "unit": "deg",
      "type": "Angle",
      "description": "Degrees; a full circle is 360deg.",
      "url": "https://gratisapi.com/api/css-units/deg"
    },
    {
      "id": "rad",
      "unit": "rad",
      "type": "Angle",
      "description": "Radians; a full circle is 2π radians.",
      "url": "https://gratisapi.com/api/css-units/rad"
    },
    {
      "id": "grad",
      "unit": "grad",
      "type": "Angle",
      "description": "Gradians; a full circle is 400grad.",
      "url": "https://gratisapi.com/api/css-units/grad"
    },
    {
      "id": "turn",
      "unit": "turn",
      "type": "Angle",
      "description": "Turns; one turn equals a full 360-degree circle.",
      "url": "https://gratisapi.com/api/css-units/turn"
    },
    {
      "id": "s",
      "unit": "s",
      "type": "Time",
      "description": "Seconds; used for animation and transition durations.",
      "url": "https://gratisapi.com/api/css-units/s"
    },
    {
      "id": "ms",
      "unit": "ms",
      "type": "Time",
      "description": "Milliseconds; one thousandth of a second.",
      "url": "https://gratisapi.com/api/css-units/ms"
    }
  ]
}
