Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
class ScopedRules
extends Rules
import { ScopedRules } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/styled.ts";

Scoped css rule, garanteed to never clash with another selector.

Constructors

new
ScopedRules(
hint: string,
properties: string,
parents: ScopedRules[],
)

Properties

className: string

the concatenation of the className of this rule and its parents

css: string

the concatenated css of this rules and its parents

parents: ScopedRules[]

list of rules this rule extends