Skip to content

Dogfood scoped styles: migrate CoreApiDemo's :global-heavy styles to nested scopes and apply #936

Closed

Description

@leonidaz

Follow-up to RFC tsrx-org/RFCs#1 (Octane branch feat/scoped-styles-apply). website/src/components/CoreApiDemo.tsrx (demoStyles, 63 :global escapes) and other :global-heavy website components predate lexical scopes and themes. With nested @{ … } scopes, control-flow scopes, and <style apply={theme} /> most of those escapes can go away.

Migrate them as a dogfooding pass after the release and use it to check the docs on website/src/content/docs/styling.mdx against real usage.

Plan reference: S8.7.

Activity

  1. jonkwheeler commented on Sep 4, 2026

    @jonkwheeler
    Contributor

    Working on this in #958

    @leonidaz CoreApiDemo dogfood removed 63 :global escapes and shares chrome via apply.

  2. leonidaz commented on Sep 6, 2026

    @leonidaz
    CollaboratorAuthor

    closed by #958

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions