@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Service that opens a standalone Theme Studio window.

    The studio lets developers live-edit every CSS custom property defined in the @theredhead design-token manifest. Changes are applied in real time to the opener window via document.documentElement.style.setProperty(). The studio supports:

    • Searching / filtering tokens by name, description, type, scope, namespace
    • Exporting an override CSS stylesheet
    • Importing / exporting overrides as JSON

    The popup uses its own self-contained styles so it is never affected by the app's theme changes.

    import { ThemeStudioService } from '@theredhead/lucid-theme';

    export class DevToolbarComponent {
    private readonly studio = inject(ThemeStudioService);

    openStudio(): void {
    this.studio.open();
    }
    }
    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get isOpen(): boolean

      Whether the studio popup is currently open.

      Returns boolean

    Methods

    • Close the studio window if it is currently open.

      Returns void

    • Open the Theme Studio in a popup window.

      If the studio is already open and not closed, it will be focused instead of opening a duplicate.

      Parameters

      Returns Promise<void>