Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class ScopedRules
extends Rules
import { ScopedRules } from "https://deno.land/x/frugal@0.5.0/packages/loader_style/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