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

Wrapper around ScopedRules to expose a styled tagged template

Constructors

new
ScopedClassName(hint?: string)

Properties

hint: string
parents: ScopedRules[]

Methods

extends(...parents: ScopedRules[])

declare that the current ScopedRules extends some other ScopedRules

styled(template: TemplateStringsArray, ...interpolations: Interpolable[])

a Rules and KeyFrames aware tagged template returning a ScopedRules. The generated className is garanteed to be unique.