gyeol 0.1.1 → 0.1.3
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 +128 -99
- package/gyeol.css +151 -136
- package/index.cjs +22 -22
- package/index.d.ts +31 -29
- package/index.mjs +618 -23
- package/package.json +1 -1
- package/tokens.json +595 -0
package/index.d.ts
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
export type Palette =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
export declare
|
|
27
|
-
export declare
|
|
28
|
-
export declare function
|
|
29
|
-
export
|
|
1
|
+
export type Palette =
|
|
2
|
+
| "meok" | "jjok" | "cheongja" | "songhwa" | "yeonji" | "jaju"
|
|
3
|
+
| "chija" | "hwangto" | "oksaek" | "haneul" | "odi";
|
|
4
|
+
export type Theme = "dark" | "light" | "system";
|
|
5
|
+
export type ColorMode = "light" | "dark";
|
|
6
|
+
export type ColorRole =
|
|
7
|
+
| "bg" | "bg-2" | "ink" | "ink-2" | "ink-3" | "line" | "paper"
|
|
8
|
+
| "accent" | "accent-soft" | "on-accent" | "stain" | "ok" | "warn" | "err";
|
|
9
|
+
|
|
10
|
+
interface Token<T> { $type: string; $value: T; $description?: string }
|
|
11
|
+
|
|
12
|
+
export interface GyeolTokens {
|
|
13
|
+
gyeol: {
|
|
14
|
+
color: Record<Palette, { $description: string } & Record<ColorMode, Record<ColorRole, Token<string>>>>;
|
|
15
|
+
font: Record<"display" | "body" | "mono", Token<string[]>>;
|
|
16
|
+
type: Record<"display" | "h1" | "h2" | "h3" | "body" | "label", Token<{ fontFamily: string; fontSize: string; fontWeight: number; lineHeight: number }>>;
|
|
17
|
+
space: Record<"pun-1" | "pun-2" | "pun-3" | "pun-4" | "pun-6" | "pun-8" | "pun-12" | "pun-16", Token<string>>;
|
|
18
|
+
radius: Record<"r-1" | "r-2" | "r-3" | "r-4" | "pill", Token<string>>;
|
|
19
|
+
duration: Record<"t-1" | "t-2" | "t-3", Token<string>>;
|
|
20
|
+
easing: { bleed: Token<[number, number, number, number]> };
|
|
21
|
+
material: Record<"hol" | "du" | "se", { thickness: Token<number>; blur: Token<string> }>;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const tokens: GyeolTokens;
|
|
26
|
+
export declare const palettes: Palette[];
|
|
27
|
+
export declare const themes: Theme[];
|
|
28
|
+
export declare function setPalette(palette: Palette, el?: HTMLElement): void;
|
|
29
|
+
export declare function setTheme(theme: Theme, el?: HTMLElement): void;
|
|
30
|
+
export declare function color(palette: Palette, theme: ColorMode, role: ColorRole): string;
|
|
31
|
+
export default tokens;
|