sx(): one style without cn()

sx() builds one style by chaining properties. Every property is a method, the methods return the chain, and the build merges the declarations as cn() does. cn() stays the tool for merging runtime values, and for cv() variants.

import { function sx(): ChainStyle
`sx().flex().bg("red").p(4)`: one style, one class string, no `cn()`. Every property is a method; `.flex()` and `.grid()` with no argument set `display`, with parts they are the property. A chain sets each property once: a second `bg` makes the method `never`, a type error. Merge two chains with `cn()`, which is still the tool for runtime values and variants.
sx
, function cn(...styles: Style[]): Style (+1 overload)
Merges styles into one class string. What is known at build time merges (the later property wins); a runtime value (`on && p(4)`, `props.class`, a state call) is joined when the code runs, and a style in it replaces the classes it overrides while it is active.
cn
, const hover: StateWrap
Chrome 1, Edge 12, Firefox 1, Safari 2, iOS 1, Android 18. [MDN](https://developer.mozilla.org/docs/Web/CSS/:hover)
hover
} from "cssints" with { type: "cssints" };
export const
const card: string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly flexDirection: never;
} & {
    readonly gap: never;
} & {
    readonly p: never;
    readonly padding: never;
} & {
    readonly backgroundColor: never;
    readonly bg: never;
}
card
= function sx(): ChainStyle
`sx().flex().bg("red").p(4)`: one style, one class string, no `cn()`. Every property is a method; `.flex()` and `.grid()` with no argument set `display`, with parts they are the property. A chain sets each property once: a second `bg` makes the method `never`, a type error. Merge two chains with `cn()`, which is still the tool for runtime values and variants.
sx
().
ChainMembers.flex<[]>(): string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} (+1 overload)
`none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]`. Chrome 29, Edge 12, Firefox 22, Safari 9, iOS 9, Android 29. [MDN](https://developer.mozilla.org/docs/Web/CSS/flex)
flex
().
ChainMembers.flexDirection: <readonly ["column"]>(parts_0: "column") => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly flexDirection: never;
}
flexDirection
("column").
ChainMembers.gap: <readonly [2]>(parts_0: 2) => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly flexDirection: never;
} & {
    readonly gap: never;
}
gap
(2).
ChainMembers.p: <readonly [4]>(parts_0: 4) => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly flexDirection: never;
} & {
    readonly gap: never;
} & {
    readonly p: never;
    readonly padding: never;
}
p
(4).
ChainMembers.bg: <readonly ["white"]>(parts_0: "white") => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly flexDirection: never;
} & {
    readonly gap: never;
} & {
    readonly p: never;
    readonly padding: never;
} & {
    readonly backgroundColor: never;
    readonly bg: never;
}
bg
("white");
export const
const row: string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly gridTemplateColumns: never;
} & {
    readonly gap: never;
}
row
= function sx(): ChainStyle
`sx().flex().bg("red").p(4)`: one style, one class string, no `cn()`. Every property is a method; `.flex()` and `.grid()` with no argument set `display`, with parts they are the property. A chain sets each property once: a second `bg` makes the method `never`, a type error. Merge two chains with `cn()`, which is still the tool for runtime values and variants.
sx
().
ChainMembers.grid<[]>(): string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} (+1 overload)
`<'grid-template'> | <'grid-template-rows'> / [ auto-flow && dense? ] <'grid-auto-columns'>? | [ auto-flow && dense? ] <'grid-auto-rows'>? / <'grid-template-columns'>`. Chrome 57, Edge 16, Firefox 52, Safari 10.1, iOS 10.3, Android 57. [MDN](https://developer.mozilla.org/docs/Web/CSS/grid)
grid
().
ChainMembers.gridTemplateColumns: <readonly ["1fr 2fr"]>(parts_0: "1fr 2fr") => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly gridTemplateColumns: never;
}
gridTemplateColumns
("1fr 2fr").
ChainMembers.gap: <readonly [1]>(parts_0: 1) => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly display: never;
} & {
    readonly gridTemplateColumns: never;
} & {
    readonly gap: never;
}
gap
(1);
export const const box: Stylebox = function cn(...styles: Style[]): Style (+1 overload)
Merges styles into one class string. What is known at build time merges (the later property wins); a runtime value (`on && p(4)`, `props.class`, a state call) is joined when the code runs, and a style in it replaces the classes it overrides while it is active.
cn
(function sx(): ChainStyle
`sx().flex().bg("red").p(4)`: one style, one class string, no `cn()`. Every property is a method; `.flex()` and `.grid()` with no argument set `display`, with parts they are the property. A chain sets each property once: a second `bg` makes the method `never`, a type error. Merge two chains with `cn()`, which is still the tool for runtime values and variants.
sx
().
ChainMembers.p: <readonly [2]>(parts_0: 2) => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly p: never;
    readonly padding: never;
}
p
(2), function hover(...styles: Style[]): Style
Chrome 1, Edge 12, Firefox 1, Safari 2, iOS 1, Android 18. [MDN](https://developer.mozilla.org/docs/Web/CSS/:hover)
hover
(function sx(): ChainStyle
`sx().flex().bg("red").p(4)`: one style, one class string, no `cn()`. Every property is a method; `.flex()` and `.grid()` with no argument set `display`, with parts they are the property. A chain sets each property once: a second `bg` makes the method `never`, a type error. Merge two chains with `cn()`, which is still the tool for runtime values and variants.
sx
().
ChainMembers.bg: <readonly ["blue"]>(parts_0: "blue") => string & {
    readonly __cssints: "style";
} & ChainMembers & {
    readonly backgroundColor: never;
    readonly bg: never;
}
bg
("blue")));

card is "_1s47490 _1njigwa _g2iyum _lwugp7 _1ebepn0": one class per declaration, one string, no cn().