@kenlo/kdls-design-system 2.26.0 → 2.28.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.
@@ -15,5 +15,25 @@ export declare function generatePalette(hex: string): CustomPalette;
15
15
  export declare function generateGradientPalette(hexes: GradientStops): CustomPalette;
16
16
  export declare function applyCustomScheme(hex: string): void;
17
17
  export declare function applyCustomGradient(hexes: GradientStops): void;
18
+ /**
19
+ * The complementary colour: the second of the two colours a brand has ("2 sólidas"),
20
+ * ported from SDS applyComplementColor (18 Nov 2026).
21
+ *
22
+ * It is a layer on top of the custom colour, not a third mode:
23
+ *
24
+ * applyCustomScheme(highlight) one solid
25
+ * applyCustomScheme(highlight) + this two solids
26
+ * applyCustomGradient([start, end]) gradient (the complement is not used)
27
+ *
28
+ * The highlight fills the primary slot and paints everything; the complement paints one
29
+ * thing, the ghost button. Button.css reads `var(--color-complement-…, <primary token>)`,
30
+ * so with no complement set the ghost button is exactly what it always was.
31
+ *
32
+ * Its label and border are text and an outline on the component background, so they get
33
+ * the same WCAG AA walk as the primary's: --color-complement-text, -stroke, -text-hover,
34
+ * -text-active, per theme. No -solid twins: this slot never holds a gradient.
35
+ */
36
+ export declare function applyComplementColor(hex: string): void;
37
+ export declare function clearComplementColor(): void;
18
38
  export declare function clearCustomScheme(): void;
19
39
  export declare function useCustomScheme(hex: string | null | undefined): void;
@@ -1,11 +1,19 @@
1
1
  export type ColorScheme = 'primary' | 'neutral' | 'secondary' | 'tertiary' | 'lya' | 'leaf' | 'sand' | 'wood' | 'clay' | 'flower' | 'dusk' | 'sky' | 'sea' | 'lake';
2
- export type RadiusScheme = 'default' | 'soft' | 'flat' | 'rounded';
3
- export type FontScheme = 'manrope' | 'inter' | 'helvetica' | 'source-sans' | 'nunito' | 'montserrat';
2
+ export type RadiusScheme = 'default' | 'flat' | 'soft' | 'medium' | 'rounded';
3
+ export type FontScheme = 'manrope' | 'inter' | 'helvetica' | 'source-sans' | 'nunito' | 'montserrat' | 'archivo-expanded' | 'unbounded' | 'red-hat-display' | 'red-hat-text';
4
+ /** Thickness of every UI stroke, in px. 1 is the default. */
5
+ export type StrokeScheme = 1 | 2 | 3 | 4;
6
+ /** 'smooth' = blurred shadows (default); 'hard' = offset shadows with no blur. */
7
+ export type ShadowScheme = 'smooth' | 'hard';
4
8
  export type ThemeMode = 'light' | 'dark' | 'system';
5
9
  export interface KdlsConfig {
6
10
  theme?: ThemeMode;
7
11
  colorScheme?: ColorScheme;
8
12
  radius?: RadiusScheme;
9
13
  font?: FontScheme;
14
+ /** Optional second font for title small (16px) and up. Unset = one font for everything. */
15
+ fontDisplay?: FontScheme;
16
+ stroke?: StrokeScheme;
17
+ shadow?: ShadowScheme;
10
18
  }
11
19
  export declare function configureKdls(config: KdlsConfig, root?: HTMLElement): void;