CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/recommended

recommended package

Easily configure an opinionated set of hooks

Functions

Function

Description

recommended(config)

Based on your settings, produces a hook configuration with an opinionated set of hooks to address the most common use cases.

Type Aliases

Type Alias

Description

BreakpointsToMediaQueries

This utility type converts a list of breakpoints into a list of media queries.

BreakpointsToMediaQueriesImpl

This utility type helps convert a list of breakpoints into a list of media queries.

ColorSchemeMediaQueries

This type adds media queries to a hook configuration when color schemes are specified.

PseudoClassSelectors

This type adds selectors to a hook configuration when pseudo-classes are specified.

RecommendedConfig

The format of the configuration object passed to the recommended() function

StringToHook

This utility type converts a hook implementation to an entry.

UnionToIntersection

This utility type turns a union type into an intersection type.

WidthMediaQueries

This type adds media queries to a hook configuration when breakpoints are specified.