CSS Hooks
Documentation
Source on GitHub

Home > @css-hooks/core

core package

CSS Hooks core library

Functions

Function

Description

buildHooksSystem(stringify)

Creates a flavor of CSS Hooks tailored to a specific app framework.

Interfaces

Interface

Description

ConditionHelpers

Helper functions used to construct advanced conditions.

Config

Represents the configuration used to set up hooks.

Hooks

Contains the css function used to define enhanced styles, along with the style sheet required to support it.

Type Aliases

Type Alias

Description

Condition

Represents the conditions under which a given hook or declaration applies.

ConditionalStyleFn

Callback to construct a conditional style group.

CreateHooksFn

Represents the function used to define hooks and related configuration.

CssFn

Represents the type of the css function, used to transform a Rule into a flat style object.

GetHookNames

A utility type used to extract hook names from configuration

HookImpl

Represents a basic hook implementation, using CSS syntax to define a selector or at-rule.

OnFn

Provides a way to declare conditional styles within a Rule.

Rule

Represents a style object, optionally enhanced with inline styles.

StringifyFn

Function to convert a value into a string.