Skip to content

Question: Can we add custom color names to $color variables? #72

Description

@zainab-amir

I am new to theming and trying to add some custom color names to mytheme but those don't get compiled. A

In the _variables.scss file, I updated the $colors variable to include a "custom" color [see below]

$colors: (
    "custom": #303748,
    "blue": #2196F3,
    ....
);

But when I try to use it in my react component like text-custom or bg-custom-500 it doesn't work.

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