Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Implement a mixin system for easy overrides #736

@HurricaneInteractive

Description

@HurricaneInteractive

Feature Request

  • I’ve read and understood the Contributing guidelines and have done my best effort to follow them.
  • I’ve read and agree to the Code of Conduct.
  • I’ve searched for any related issues and avoided creating a duplicate issue.
  • I've searched the community forums to check for related issues or feature requests

Other request?

This feature is currently in uikit. It provides scss mixins for component classes which makes overriding the defaults a lot easier and speeds up development of websites quite a bit (I've found it faster personally). This would require a bit of refactoring and discussion around the mixin naming convention but I think it will provide a lot of benefits. Taking a button for example;

.au-btn {
  /* current button styling */
  @if mixin-exists(AU-btn) {
    @include AU-btn();
  }
}

/* custom scss */
@mixin AU-btn() {
  font-size: 21px;
  /* other override styling */
}

Additional context

This comes after I raised a discussion on the community forum about how overriding the design system styling was a little frustrating, the discussion can be found here

Metadata

Metadata

Assignees

Labels

2.0Issues related to new versions or updates.submitted by userIssues on behalf of users.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions