Skip to content

Consider trumpeting apply + headlessΒ #30

@michaellenaghan

Description

@michaellenaghan

When I first saw what your framework was capable of, this is what I immediately thought of: that I could use it to very efficiently write traditional CSS β€” like the examples on your Extracting Components and Helper Mixins pages:

.parent {
  @include apply('p-40 shadow-2xs radius-2xl');
  &__child {
    @include apply('hover.opacity-50 p-24 md.p-64');
  }
}

That is remarkably concise. And maintainable. Combine it with your headless mode, and β€” holy cow.

That's something special.

(Maybe Tailwind can be used that way, but if it can, I missed it. Well β€” I know it can almost be used that way. I just don't remember seeing examples as terse and complex as yours.)

As an extra bonus, I even discovered that I could still "include" reset and standard with headless output, e.g.:

@use "uniform" as * with (
  $config: (
    output: headless,
    includes: (
        reset,
        standard
    ),
  ),
);

So with UniformCSS I can be far more productive; I can produce only the CSS I want; and all I need is a SASS compiler.

🀯

At the moment you document this, but in pieces; I think headless is only mentioned on the build settings page, and apply on the two pages I gave above.

I think you should consider pulling the all of those pieces together in one spot, to tell this story. Because this feels like something I haven't really seen before.

I should say: I'm mostly a mobile developer rather than a web developer. But when I do web development I tend to start with a CSS framework. No matter how good the framework is, I always end up having to eventually work around hard-coded assumptions. It seems like your framework β€” library? β€” might give me another option.

It's almost like a CSS framework construction kit.

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