Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Commit 73b3443

Browse files
committed
docs(palette): update mixin clarification docs
1 parent 234349e commit 73b3443

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

en/components/themes/palettes.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,10 @@ All primary color variants come from a single base variable: `--ig-primary-500`.
7979
The contrast colors are CSS runtime generated, based on the the provided color's luminance and the chosen contrast-level to calculate the best contrast color for it. If we change the main color variant(`500`), the contrast colors will also be updated.
8080

8181
> [!NOTE]
82-
> The contrast-level is specified by the `palette` or the `adaptive-contrast` mixin by passing one of the predefined values: `a`, `aa` or `aaa`.
82+
> You could specify the contrast-level globally by using the `palette` mixin, or if you'd like to set it specifically in the scope of your element, you could use the `adaptive-contrast` mixin. They both accept one of the predefined values: `a`, `aa` or `aaa`.
8383
8484
```scss
8585
@include palette($palette, $contrast-level: 'aaa');
86-
87-
OR
88-
89-
@include adaptive-contrast('aaa');
9086
```
9187

9288
## Defining Palettes

0 commit comments

Comments
 (0)