Skip to content

State namespace alias #97

@chriseppstein

Description

@chriseppstein

The state namespace should be something that can be aliased according to dev/team preferences as an authoring convenience.

@namespace s url(http://css-blocks.com/state);
:scope[s|active] { font-weight: bold; }

We should also allow states from a block (which are element names in selectors) to have a namespace declared:

@block-reference theme|button from "design-system/button.block.scss";
@namespace s url(http://css-blocks.com/state);
:scope[s|active] { font-weight: bold; font-weight: resolve("theme|button[s|clicked]")}

In reference to https://github.com/css-blocks/css-blocks/issues/96, this would allow us to have a way of making a reference to a collection of blocks:

@block-reference theme|* from "design-system/all.block.scss";

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions