Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

UtilityAtRuleDeclarations

interfaz Since 1.3.0

Declaraciones del cuerpo de una at-rule creada con UtilityHelpers.atRule: las propiedades de UtilityDeclarations y los descriptores de @font-face (src, fontDisplay, unicodeRange…), @property (syntax, inherits, initialValue), @page, @counter-style, @font-palette-values y @view-transition, tipados con csstype. Es un subtipo de UtilityDeclarations.

ts
import type { UtilityAtRuleDeclarations } from "@meekojs/meeko/postcss";

Source code src/compiler/css/utilities.ts:99

Declaración #

ts
interface UtilityAtRuleDeclarations extends UtilityDeclarations, DeclaredProperties<Omit<AtRuleDescriptors, keyof UtilityDeclarations>> {}

Example #

ts
import { defineUtilities, type UtilityAtRuleDeclarations } from "@meekojs/meeko/postcss";

const inter: UtilityAtRuleDeclarations = {
  fontFamily: "Inter",
  src: "url('/fonts/inter.woff2') format('woff2')",
  fontDisplay: "swap",
};
export default defineUtilities(({ atRule }) => [
  atRule("font-face", "", inter),
  atRule("property", "--angle", { syntax: "'<angle>'", inherits: "false", initialValue: "0deg" }),
]);

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/compiler/css/utilities.ts