@crowdstrike/tailwind-toucan-base 3.0.5 → 3.2.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/README.md +20 -0
- package/index.css +38949 -0
- package/package.json +38 -21
- package/{plugins → src/plugins}/form-fields.js +0 -0
- package/{plugins → src/plugins}/index.js +0 -0
- package/{plugins → src/plugins}/interaction.js +0 -0
- package/{plugins → src/plugins}/line-clamp.js +0 -0
- package/{plugins → src/plugins}/theme-plugin.js +0 -0
- package/{plugins → src/plugins}/typography.js +0 -0
- package/{plugins → src/plugins}/variables.js +0 -0
- package/{index.js → src/tailwind.config.js} +0 -0
- package/src/theme-data.d.ts +2710 -0
- package/src/theme-data.js +2708 -0
- package/{themes.json → src/themes.json} +0 -0
- package/src/types.d.ts +48 -0
- package/toucan.css +38949 -0
File without changes
|
package/src/types.d.ts
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
/**
|
2
|
+
* Generic loosley typed version of the strict types provided by
|
3
|
+
* ```ts
|
4
|
+
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
5
|
+
* ```
|
6
|
+
*/
|
7
|
+
export interface ColorInfo {
|
8
|
+
category: string[];
|
9
|
+
hasAlpha: boolean;
|
10
|
+
rgbFill: string;
|
11
|
+
fill: {
|
12
|
+
r: number;
|
13
|
+
g: number;
|
14
|
+
b: number;
|
15
|
+
a: number;
|
16
|
+
};
|
17
|
+
name: string;
|
18
|
+
value: string;
|
19
|
+
}
|
20
|
+
|
21
|
+
/**
|
22
|
+
* Generic loosley typed version of the strict types provided by
|
23
|
+
* ```ts
|
24
|
+
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
25
|
+
* ```
|
26
|
+
*/
|
27
|
+
export interface Theme {
|
28
|
+
colors: ColorInfo[];
|
29
|
+
cssSelector: string;
|
30
|
+
shadows: Array<{
|
31
|
+
name: string;
|
32
|
+
effects: string[];
|
33
|
+
}>;
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Generic loosley typed version of the strict types provided by
|
38
|
+
* ```ts
|
39
|
+
* import type ThemeData from '@crowdstrike/tailwind-toucan-base/theme-data';
|
40
|
+
* ```
|
41
|
+
*/
|
42
|
+
export interface ThemeData {
|
43
|
+
aliases: { name: string; value: string }[];
|
44
|
+
themes: {
|
45
|
+
dark: Theme;
|
46
|
+
light: Theme;
|
47
|
+
};
|
48
|
+
}
|