# Web

Declare global rules, cascade layers, and at-rules, and compile web CSS with the `zyzz/web` entrypoint.

## Stylesheets

[global](/docs/api/web/global)

Emit global selector rules and their grouping rules into the shared
stylesheet.

[layers](/docs/api/web/layers)

Declare the order of cascade layers once for every module in the project.

[fontFace](/docs/api/web/fontFace)

Emit an @font-face rule from typed font descriptors, with relative font
assets.

[keyframes](/docs/api/web/keyframes)

Emit an @keyframes rule and return its generated animation name for styles.

## At-Rules

[importCss](/docs/api/web/importCss)

Emit an @import rule for an external stylesheet, with layer and media
conditions.

[page](/docs/api/web/page)

Emit an @page rule with page descriptors and page-margin boxes for print.

[viewTransition](/docs/api/web/viewTransition)

Emit an @view-transition rule that opts documents into navigation
transitions.

[positionTry](/docs/api/web/positionTry)

Emit an @position-try rule and return a reference for anchored fallbacks.

[counterStyle](/docs/api/web/counterStyle)

Emit an @counter-style rule and return a reference for list markers.

[customMedia](/docs/api/web/customMedia)

Emit an @custom-media rule and return a key that groups declarations.

[property](/docs/api/web/property)

Register a custom property with a syntax, inheritance, and initial value.

[fontFeatureValues](/docs/api/web/fontFeatureValues)

Emit an @font-feature-values rule that names OpenType feature indices.

[fontPaletteValues](/docs/api/web/fontPaletteValues)

Emit an @font-palette-values rule and return a reference for color fonts.

[cssFunction](/docs/api/web/cssFunction)

Emit an @function rule and return a callable that writes calls to it.

[colorProfile](/docs/api/web/colorProfile)

Emit an @color-profile rule and return a reference for color() values.

[namespace](/docs/api/web/namespace)

Emit an @namespace rule that binds a selector prefix for one module.

## Namespaces

[Css](/docs/api/web/namespaces/Css)

Compile ordered style data into CSS text, class names, and variable set
scopes.

## Reference

[At-Rule Contract](/docs/api/web/at-rules)

Which API owns each CSS at-rule, and the rules every stylesheet helper
follows.
