Skip to content

Commit

Permalink
chore: regen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoomFX committed May 20, 2024
1 parent bbab3f7 commit b734937
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion packages/core/docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ k-generate-color-variations($name, $color, $theme) // => Map
#### Source

```scss
// Location https://github.com/telerik/kendo-themes/blob/develop/packages/core/scss/functions/_color-variations.import.scss#L8-L122
// Location https://github.com/telerik/kendo-themes/blob/develop/packages/core/scss/functions/_color-system.import.scss#L8-L122
@function k-generate-color-variations($name, $color, $theme) {
$result: ();

Expand Down Expand Up @@ -606,6 +606,42 @@ k-generate-color-variations($name, $color, $theme) // => Map
}
```

### `k-color`

Takes a color name from the $kendo-colors map as a parameter
and returns a CSS variable with the actual color as a fallback


#### Syntax

```scss
k-color($key) // => String
```

#### Parameters


`<String> $key`
: The name of a color/key in the $kendo-colors map




#### Source

```scss
// Location https://github.com/telerik/kendo-themes/blob/develop/packages/core/scss/functions/_color-system.import.scss#L130-L138
@function k-color($key) {
$_color: k-map-get($kendo-colors, $key);

@if ($_color) {
@return var(--kendo-color-#{$key}, $_color);
} @else {
@error "Color Variable \`#{$key}\` does not exists in the color collection.";
}
}
```

### `k-color-alpha`

Returns the alpha channel of a color.
Expand Down

0 comments on commit b734937

Please sign in to comment.