Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class Rules
import { Rules } from "https://deno.land/x/frugal@0.5.0/packages/loader_style/styled.ts";

Base class for a css rules

Constructors

new
Rules(className: string, properties: string)

Properties

className: string

the className of this rule

properties: string

the css of this rule

selector: string

the selector of this rule (derived from className)

Methods

generates the string css of the rule