@kenlo/kdls-design-system 2.28.3 → 2.29.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/Theme/Theme.d.ts +12 -0
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +209 -201
- package/foundations/tokens.css +27 -0
- package/kdls-manifest.json +22 -3
- package/package.json +1 -1
|
@@ -6,6 +6,8 @@ export type StrokeScheme = 1 | 2 | 3 | 4;
|
|
|
6
6
|
/** 'smooth' = blurred shadows (default); 'hard' = offset shadows with no blur. */
|
|
7
7
|
export type ShadowScheme = 'smooth' | 'hard';
|
|
8
8
|
export type ThemeMode = 'light' | 'dark' | 'system';
|
|
9
|
+
/** 'default' = the kit as it always was; 'rede' = the Kenlo Rede look (see KENLO_REDE). */
|
|
10
|
+
export type LookScheme = 'default' | 'rede';
|
|
9
11
|
export interface KdlsConfig {
|
|
10
12
|
theme?: ThemeMode;
|
|
11
13
|
colorScheme?: ColorScheme;
|
|
@@ -15,5 +17,15 @@ export interface KdlsConfig {
|
|
|
15
17
|
fontDisplay?: FontScheme;
|
|
16
18
|
stroke?: StrokeScheme;
|
|
17
19
|
shadow?: ShadowScheme;
|
|
20
|
+
/** 'rede' fills the primary Button with the darker Kenlo blue, so its white label passes
|
|
21
|
+
* WCAG AA (4.5:1) in both themes. Only the Kenlo blue scheme; other schemes keep their own. */
|
|
22
|
+
look?: LookScheme;
|
|
18
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Kenlo Rede: the look of the new Kenlo site, built only from switches the kit already has.
|
|
26
|
+
* Archivo for titles, Manrope for text, hard shadows, soft corners, and the primary Button on
|
|
27
|
+
* the darker Kenlo blue. Spread it and override what a product needs:
|
|
28
|
+
* `configureKdls({ ...KENLO_REDE, theme: 'system' })`.
|
|
29
|
+
*/
|
|
30
|
+
export declare const KENLO_REDE: Readonly<KdlsConfig>;
|
|
19
31
|
export declare function configureKdls(config: KdlsConfig, root?: HTMLElement): void;
|