@kenlo/kdls-design-system 2.24.4 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ColorScheme/ColorScheme.d.ts +4 -0
- package/dist/components/Icon/Icon.d.ts +4 -2
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +2013 -1945
- package/foundations/tokens.css +102 -0
- package/kdls-manifest.json +165 -5
- package/package.json +1 -1
|
@@ -9,7 +9,11 @@ export interface CustomPalette {
|
|
|
9
9
|
80: string;
|
|
10
10
|
90: string;
|
|
11
11
|
}
|
|
12
|
+
/** The two colours of a custom gradient, start to end. */
|
|
13
|
+
export type GradientStops = [string, string];
|
|
12
14
|
export declare function generatePalette(hex: string): CustomPalette;
|
|
15
|
+
export declare function generateGradientPalette(hexes: GradientStops): CustomPalette;
|
|
13
16
|
export declare function applyCustomScheme(hex: string): void;
|
|
17
|
+
export declare function applyCustomGradient(hexes: GradientStops): void;
|
|
14
18
|
export declare function clearCustomScheme(): void;
|
|
15
19
|
export declare function useCustomScheme(hex: string | null | undefined): void;
|
|
@@ -12,8 +12,10 @@ export interface IconProps {
|
|
|
12
12
|
/** Size: 'sm' 16px · 'md' 24px (default) · 'lg' 32px */
|
|
13
13
|
size?: 'sm' | 'md' | 'lg';
|
|
14
14
|
/** Solid color from any scheme color-family token (e.g. "dusk", "error") — resolves to that
|
|
15
|
-
* family's -50 step. `color="lya"`
|
|
16
|
-
*
|
|
15
|
+
* family's -50 step. `color="lya"` activates the Lya gradient instead of a solid fill.
|
|
16
|
+
* `color="primary"` follows the active scheme at 3:1 on the component background, and
|
|
17
|
+
* paints its gradient under Lya or a custom gradient. For anything outside these families,
|
|
18
|
+
* use `style` instead. */
|
|
17
19
|
color?: IconColor;
|
|
18
20
|
/** Accessible label — use when the icon carries meaning with no visible text next to it */
|
|
19
21
|
'aria-label'?: string;
|