Skip to content

Extending (adding or overriding) colours isn't working  #174

@rickysullivan

Description

@rickysullivan

I stumbled across Cirrus UI framework in my search for a scss based utility framework that I could use in Astro projects.

I wasn't able to add a new colour as described in the docs: https://www.cirrus-ui.com/fundamentals/colors#extending-colors

Here is my config:

@use 'cirrus-ui/src/cirrus-ext' as * with
  (
    $config: (
      extend: (
        colors: (
          // Will not override
          'blue': ('500': #ff6600),
          // Will not extend
          'magenta':
            (
              '100': #fef7f4,
              '200': #fbe0dd,
              '300': #f2afb3,
              '400': #ec798b,
              '500': #dc5472,
              '600': #bc3263,
              '700': #98184d,
              '800': #73123f,
              '900': #560e39
            ),
        ),
      ),
    )
  );

And a reproducible demo: https://stackblitz.com/edit/github-clzbm4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions