Skip to content

refacto: Create method to get Token value instead of repeating findΒ #3282

@vprothais

Description

@vprothais

The following code is used very often : allTokens.find((token) => token.name === '$ouds-xxx').compiledValue.

We could enhance the readability by defining a function getTokenValue(tokenName) or equivalent in the sass-variables file, that just get the token name as a parameter and return the compiledValue.

Originally posted by @vprothais in #3181 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions