Skip to content

Make the create buttons' Tailwind utilities self-contained #26

Closed

Description

@gnacho

The two create buttons (SidebarNav New category and NoteList New note) rely on unprefixed Tailwind utilities: shadow-md, duration-150, ease-out, hover:brightness-110, w-full, bg-gradient-to-r, from-role-secondary, to-role-primary and the dark -container variants. Those only work because the host ships them compiled; if the host changes its Tailwind build they would silently stop applying.

The extension build already generates the same utilities with the ext: prefix from the SDK tailwind.css (verified: adding ext:flex to a template emits .ext\:flex{display:flex} in the bundle).

Prefix those utilities with ext: so our own build emits them, and verify the computed styles are unchanged in light and dark mode.

Activity

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