Textures - nt1m/CSS-Texture-Specification GitHub Wiki

@texture at-rule

Usage

Defines a texture

Allowed properties

All except animation (to avoid flashing text, ...). Usage of content is to specify the content to add in the texture.

Example

@texture name {
    content: "Hello !";
    background-color: red;
    color: white;
}

The texture() function

Usage

Target a defined texture

Syntax

texture(name, fallback)
name
The name of the texture you want to use.
fallback
The texture to use in case a property in first texture isn't supported, or in case of error

Example

p {
    font-fill: texture(name);
}

Supported properties

⚠️ **GitHub.com Fallback** ⚠️