Export groups: cssints/widely-available, cssints/css-grid-2, …

A group is a subpath of cssints that exports the members of cssints which a set of CSS features has, and refuses a value that holds a feature outside the set. It is the same import (with { type: "cssints" }), the same members, the same classes:

import { const color: P<"color">color, const display: P<"display">display, const media: GCondition<B, "media", QueryWrap>media } from "cssints/widely-available" with { type: "cssints" };

export const const card: Style[]card = [
  display<readonly ["grid"]>(parts_0: "grid"): Styledisplay("grid"),
  color<readonly ["rebeccapurple"]>(parts_0: "rebeccapurple"): Stylecolor("rebeccapurple"),
  media<"(width >= 40rem)">(query: "(width >= 40rem)"): QueryWrap (+2 overloads)media("(width >= 40rem)")(color<readonly ["black"]>(parts_0: "black"): Stylecolor("black")),
];

display<readonly ["grid-lanes"]>(parts_0: "display: \"grid-lanes\" is not in cssints/widely-available"): Styledisplay("grid-lanes"); // error: display: "grid-lanes" is not in cssints/widely-available
Argument of type '"grid-lanes"' is not assignable to parameter of type '"display: \"grid-lanes\" is not in cssints/widely-available"'.
color<readonly ["light-dark(white, black)"]>(parts_0: "color: \"light-dark()\" is not in cssints/widely-available"): Stylecolor("light-dark(white, black)"); // error: color: "light-dark()" is not in cssints/widely-available
Argument of type '"light-dark(white, black)"' is not assignable to parameter of type '"color: \"light-dark()\" is not in cssints/widely-available"'.
media<Record<string, string>>(queries: {
    [x: string]: string;
}): {
    [x: string]: QueryWrap;
} (+2 overloads)
media
("(prefers-reduced-data: reduce)"); // error: @media: "prefers-reduced-data" is not in cssints/widely-available
No overload matches this call. Overload 1 of 3, '(queries: { [x: string]: string; }): { [x: string]: QueryWrap; }', gave the following error. Argument of type 'string' is not assignable to parameter of type '{ [x: string]: string; }'. Overload 2 of 3, '(query: "@media: \"prefers-reduced-data\" is not in cssints/widely-available"): QueryWrap', gave the following error. Argument of type '"(prefers-reduced-data: reduce)"' is not assignable to parameter of type '"@media: \"prefers-reduced-data\" is not in cssints/widely-available"'.
import { const inlineSize: P<"inline-size">inlineSize } from "cssints/widely-available/with-downstream" with { type: "cssints" };
import { const color: P<"color">color } from "cssints/baseline-2022" with { type: "cssints" };

inlineSize<readonly ["10rem"]>(parts_0: "10rem"): StyleinlineSize("10rem");
inlineSize<readonly ["fit-content"]>(parts_0: "inline-size: \"fit-content\" is not in cssints/widely-available/with-downstream"): StyleinlineSize("fit-content"); // error: inline-size: "fit-content" is not in cssints/widely-available/with-downstream
Argument of type '"fit-content"' is not assignable to parameter of type '"inline-size: \"fit-content\" is not in cssints/widely-available/with-downstream"'.
color<readonly ["rebeccapurple"]>(parts_0: "rebeccapurple"): Stylecolor("rebeccapurple"); color<readonly ["color-mix(in oklab, red, blue)"]>(parts_0: "color: \"color-mix()\" is not in cssints/baseline-2022"): Stylecolor("color-mix(in oklab, red, blue)"); // error: color: "color-mix()" is not in cssints/baseline-2022
Argument of type '"color-mix(in oklab, red, blue)"' is not assignable to parameter of type '"color: \"color-mix()\" is not in cssints/baseline-2022"'.

bun run groups (in packages/cssints) regenerates src/groups/<id>.ts and src/groups-data.ts from web-features, @webref/css 6 (one file per level; 8 keeps the latest level of a series only) and BCD. Research and numbers: research/groups.md.