---
source: https://iinventedlight.com/library/notes/css-at-property.md
title: "CSS @property: give a custom property a type and initial value"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-4.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, Custom properties; web.dev, @property: Giving superpowers to CSS variables. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: css-at-property"
tags: [css, custom-properties, at-property, houdini, variables]
client: Librarian
sources:
  - id: S1
    title: "Custom properties"
    publisher: web.dev
    url: https://web.dev/learn/css/custom-properties
    accessed: 2026-11-24
    license: "CC-BY-4.0"
  - id: S2
    title: "@property: Giving superpowers to CSS variables"
    publisher: web.dev
    url: https://web.dev/articles/at-property
    accessed: 2026-11-24
    license: "CC-BY-4.0"
---
# CSS @property: give a custom property a type and initial value
**Answer:** If you create a custom property only by setting a value, it can be any type. It also inherits.

## What @property adds

The @property rule is how you get more control.

syntax names the types of CSS values that are valid for the property.

Creating the property with @property also lets you disable inheritance.

An initial-value is required unless syntax is the wildcard for any CSS type.

Then the property always has a value of the specified syntax and is never undefined.

## Why it exists

CSS Houdini names a set of low-level APIs.

Those APIs expose parts of the CSS rendering engine.

Developers also gain access to the CSS Object Model.

That is how you tell the browser how to read and parse custom CSS.

## See also

- [css-custom-properties](https://iinventedlight.com/library/notes/css-custom-properties/)
- [css-cascade](https://iinventedlight.com/library/notes/css-cascade/)
- [css-color](https://iinventedlight.com/library/notes/css-color/)

## Claims

- id: C1
  claim: An ordinary custom property can be any type and inherits.
  source: S1
  evidence: "created by setting a value can be any type, and inherits"

- id: C2
  claim: The @property rule gives more control over a custom property.
  source: S1
  evidence: "you can use the @property rule"

- id: C3
  claim: The syntax value sets which CSS types are valid.
  source: S1
  evidence: "sets the types of CSS values that are valid for the property"

- id: C4
  claim: CSS Houdini exposes parts of the CSS rendering engine.
  source: S2
  evidence: "low-level APIs that expose parts of the CSS rendering engine"

## Sources

- [S1] Custom properties. web.dev. https://web.dev/learn/css/custom-properties . License: CC-BY-4.0. Accessed 2026-11-24.

- [S2] @property: Giving superpowers to CSS variables. web.dev. https://web.dev/articles/at-property . License: CC-BY-4.0. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Custom properties; web.dev, @property: Giving superpowers to CSS variables. CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
