@yakad/ui 1.3.169 → 2.0.1

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.
Files changed (43) hide show
  1. package/dist/Input/Input.d.ts +11 -0
  2. package/dist/Input/Input.js +37 -0
  3. package/dist/Theme/color/generator.d.ts +1 -0
  4. package/dist/Theme/color/generator.js +22 -0
  5. package/dist/Theme/color/hct.d.ts +5 -0
  6. package/dist/Theme/color/hct.js +6 -0
  7. package/dist/Theme/color/index.d.ts +0 -0
  8. package/dist/Theme/color/index.js +1 -0
  9. package/dist/Theme/color/palettes.d.ts +0 -0
  10. package/dist/Theme/color/palettes.js +1 -0
  11. package/dist/Theme/color/roles.d.ts +53 -0
  12. package/dist/Theme/color/roles.js +57 -0
  13. package/dist/Theme/color/scheme.d.ts +3 -0
  14. package/dist/Theme/color/scheme.js +4 -0
  15. package/dist/Theme/color/source.d.ts +1 -0
  16. package/dist/Theme/color/source.js +1 -0
  17. package/dist/Theme/color/test.d.ts +1 -0
  18. package/dist/Theme/color/test.js +14 -0
  19. package/dist/Theme/color/tokens.d.ts +52 -0
  20. package/dist/Theme/color/tokens.js +53 -0
  21. package/dist/Theme/color/utils.d.ts +1 -0
  22. package/dist/Theme/color/utils.js +7 -0
  23. package/dist/Theme/index.d.ts +0 -0
  24. package/dist/Theme/index.js +1 -0
  25. package/dist/Theme/theme.d.ts +0 -0
  26. package/dist/Theme/theme.js +1 -0
  27. package/dist/index.d.ts +1 -3
  28. package/dist/index.js +1 -3
  29. package/dist/theme/color/colors.css +103 -0
  30. package/package.json +6 -3
  31. package/dist/InputField/InputField.d.ts +0 -15
  32. package/dist/InputField/InputField.js +0 -82
  33. package/dist/InputField/cn.d.ts +0 -2
  34. package/dist/InputField/cn.js +0 -5
  35. package/dist/InputField/input.d.ts +0 -7
  36. package/dist/InputField/input.js +0 -18
  37. package/dist/Select/Select.d.ts +0 -12
  38. package/dist/Select/Select.js +0 -23
  39. package/dist/Select/Select.module.css +0 -3
  40. package/dist/Theme/Theme.d.ts +0 -12
  41. package/dist/Theme/Theme.js +0 -26
  42. package/dist/Theme/Theme.module.css +0 -398
  43. package/dist/Theme/globals.css +0 -12
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const inputVariants: (props?: ({
4
+ variant?: "filled" | "outlined" | null | undefined;
5
+ boxSize?: "small" | "normal" | null | undefined;
6
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
7
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
8
+ ref?: React.Ref<HTMLInputElement>;
9
+ }
10
+ export declare function Input({ variant, boxSize, className, ref, ...restProps }: InputProps): React.JSX.Element;
11
+ export {};
@@ -0,0 +1,37 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { cva } from "class-variance-authority";
14
+ const inputVariants = cva("flex w-full rounded-md border bg-transparent px-3 text-sm shadow-sm transition-colors outline-none placeholder:text-muted-foreground focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50", {
15
+ variants: {
16
+ variant: {
17
+ outlined: "border-input focus-visible:border-ring focus-visible:ring-ring",
18
+ filled: "border-transparent bg-muted focus-visible:ring-ring",
19
+ },
20
+ boxSize: {
21
+ small: "h-8",
22
+ normal: "h-10",
23
+ },
24
+ },
25
+ defaultVariants: {
26
+ variant: "outlined",
27
+ boxSize: "normal",
28
+ },
29
+ });
30
+ export function Input(_a) {
31
+ var { variant, boxSize, className, ref } = _a, restProps = __rest(_a, ["variant", "boxSize", "className", "ref"]);
32
+ return (_jsx("input", Object.assign({ ref: ref, className: inputVariants({
33
+ variant,
34
+ boxSize,
35
+ className,
36
+ }) }, restProps)));
37
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ import { writeFileSync, mkdirSync } from "node:fs";
2
+ import { dirname, resolve } from "node:path";
3
+ import { createColorTokens } from "./tokens";
4
+ import { darkColorRoles, lightColorRoles } from "./roles";
5
+ function createCssVariables(tokens) {
6
+ return Object.entries(tokens)
7
+ .map(([name, value]) => ` --md-sys-color-${name}: ${value};`)
8
+ .join("\n");
9
+ }
10
+ const lightTokens = createColorTokens(lightColorRoles);
11
+ const darkTokens = createColorTokens(darkColorRoles);
12
+ const css = `:root {
13
+ ${createCssVariables(lightTokens)}
14
+ }
15
+
16
+ .dark {
17
+ ${createCssVariables(darkTokens)}
18
+ }
19
+ `;
20
+ const output = resolve(process.cwd(), "dist/theme/color/colors.css");
21
+ mkdirSync(dirname(output), { recursive: true });
22
+ writeFileSync(output, css);
@@ -0,0 +1,5 @@
1
+ import { Hct } from "@material/material-color-utilities";
2
+ export declare const sourceHct: Hct;
3
+ export declare const hue: number;
4
+ export declare const chroma: number;
5
+ export declare const tone: number;
@@ -0,0 +1,6 @@
1
+ import { argbFromHex, Hct } from "@material/material-color-utilities";
2
+ import { sourceColor } from "./source";
3
+ export const sourceHct = Hct.fromInt(argbFromHex(sourceColor));
4
+ export const hue = sourceHct.hue;
5
+ export const chroma = sourceHct.chroma;
6
+ export const tone = sourceHct.tone;
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,53 @@
1
+ export interface ColorRoles {
2
+ primary: string;
3
+ onPrimary: string;
4
+ primaryContainer: string;
5
+ onPrimaryContainer: string;
6
+ primaryFixed: string;
7
+ primaryFixedDim: string;
8
+ onPrimaryFixed: string;
9
+ onPrimaryFixedVariant: string;
10
+ secondary: string;
11
+ onSecondary: string;
12
+ secondaryContainer: string;
13
+ onSecondaryContainer: string;
14
+ secondaryFixed: string;
15
+ secondaryFixedDim: string;
16
+ onSecondaryFixed: string;
17
+ onSecondaryFixedVariant: string;
18
+ tertiary: string;
19
+ onTertiary: string;
20
+ tertiaryContainer: string;
21
+ onTertiaryContainer: string;
22
+ tertiaryFixed: string;
23
+ tertiaryFixedDim: string;
24
+ onTertiaryFixed: string;
25
+ onTertiaryFixedVariant: string;
26
+ error: string;
27
+ onError: string;
28
+ errorContainer: string;
29
+ onErrorContainer: string;
30
+ background: string;
31
+ onBackground: string;
32
+ surface: string;
33
+ onSurface: string;
34
+ surfaceVariant: string;
35
+ onSurfaceVariant: string;
36
+ surfaceDim: string;
37
+ surfaceBright: string;
38
+ surfaceContainerLowest: string;
39
+ surfaceContainerLow: string;
40
+ surfaceContainer: string;
41
+ surfaceContainerHigh: string;
42
+ surfaceContainerHighest: string;
43
+ outline: string;
44
+ outlineVariant: string;
45
+ inverseSurface: string;
46
+ inverseOnSurface: string;
47
+ inversePrimary: string;
48
+ surfaceTint: string;
49
+ shadow: string;
50
+ scrim: string;
51
+ }
52
+ export declare const lightColorRoles: ColorRoles;
53
+ export declare const darkColorRoles: ColorRoles;
@@ -0,0 +1,57 @@
1
+ import { hexFromArgb } from "@material/material-color-utilities";
2
+ import { darkScheme, lightScheme } from "./scheme";
3
+ function getColorRoles(scheme) {
4
+ return {
5
+ primary: hexFromArgb(scheme.primary),
6
+ onPrimary: hexFromArgb(scheme.onPrimary),
7
+ primaryContainer: hexFromArgb(scheme.primaryContainer),
8
+ onPrimaryContainer: hexFromArgb(scheme.onPrimaryContainer),
9
+ primaryFixed: hexFromArgb(scheme.primaryFixed),
10
+ primaryFixedDim: hexFromArgb(scheme.primaryFixedDim),
11
+ onPrimaryFixed: hexFromArgb(scheme.onPrimaryFixed),
12
+ onPrimaryFixedVariant: hexFromArgb(scheme.onPrimaryFixedVariant),
13
+ secondary: hexFromArgb(scheme.secondary),
14
+ onSecondary: hexFromArgb(scheme.onSecondary),
15
+ secondaryContainer: hexFromArgb(scheme.secondaryContainer),
16
+ onSecondaryContainer: hexFromArgb(scheme.onSecondaryContainer),
17
+ secondaryFixed: hexFromArgb(scheme.secondaryFixed),
18
+ secondaryFixedDim: hexFromArgb(scheme.secondaryFixedDim),
19
+ onSecondaryFixed: hexFromArgb(scheme.onSecondaryFixed),
20
+ onSecondaryFixedVariant: hexFromArgb(scheme.onSecondaryFixedVariant),
21
+ tertiary: hexFromArgb(scheme.tertiary),
22
+ onTertiary: hexFromArgb(scheme.onTertiary),
23
+ tertiaryContainer: hexFromArgb(scheme.tertiaryContainer),
24
+ onTertiaryContainer: hexFromArgb(scheme.onTertiaryContainer),
25
+ tertiaryFixed: hexFromArgb(scheme.tertiaryFixed),
26
+ tertiaryFixedDim: hexFromArgb(scheme.tertiaryFixedDim),
27
+ onTertiaryFixed: hexFromArgb(scheme.onTertiaryFixed),
28
+ onTertiaryFixedVariant: hexFromArgb(scheme.onTertiaryFixedVariant),
29
+ error: hexFromArgb(scheme.error),
30
+ onError: hexFromArgb(scheme.onError),
31
+ errorContainer: hexFromArgb(scheme.errorContainer),
32
+ onErrorContainer: hexFromArgb(scheme.onErrorContainer),
33
+ background: hexFromArgb(scheme.background),
34
+ onBackground: hexFromArgb(scheme.onBackground),
35
+ surface: hexFromArgb(scheme.surface),
36
+ onSurface: hexFromArgb(scheme.onSurface),
37
+ surfaceVariant: hexFromArgb(scheme.surfaceVariant),
38
+ onSurfaceVariant: hexFromArgb(scheme.onSurfaceVariant),
39
+ surfaceDim: hexFromArgb(scheme.surfaceDim),
40
+ surfaceBright: hexFromArgb(scheme.surfaceBright),
41
+ surfaceContainerLowest: hexFromArgb(scheme.surfaceContainerLowest),
42
+ surfaceContainerLow: hexFromArgb(scheme.surfaceContainerLow),
43
+ surfaceContainer: hexFromArgb(scheme.surfaceContainer),
44
+ surfaceContainerHigh: hexFromArgb(scheme.surfaceContainerHigh),
45
+ surfaceContainerHighest: hexFromArgb(scheme.surfaceContainerHighest),
46
+ outline: hexFromArgb(scheme.outline),
47
+ outlineVariant: hexFromArgb(scheme.outlineVariant),
48
+ inverseSurface: hexFromArgb(scheme.inverseSurface),
49
+ inverseOnSurface: hexFromArgb(scheme.inverseOnSurface),
50
+ inversePrimary: hexFromArgb(scheme.inversePrimary),
51
+ surfaceTint: hexFromArgb(scheme.surfaceTint),
52
+ shadow: hexFromArgb(scheme.shadow),
53
+ scrim: hexFromArgb(scheme.scrim),
54
+ };
55
+ }
56
+ export const lightColorRoles = getColorRoles(lightScheme);
57
+ export const darkColorRoles = getColorRoles(darkScheme);
@@ -0,0 +1,3 @@
1
+ import { SchemeExpressive } from "@material/material-color-utilities";
2
+ export declare const lightScheme: SchemeExpressive;
3
+ export declare const darkScheme: SchemeExpressive;
@@ -0,0 +1,4 @@
1
+ import { SchemeExpressive } from "@material/material-color-utilities";
2
+ import { sourceHct } from "./hct";
3
+ export const lightScheme = new SchemeExpressive(sourceHct, false, 0);
4
+ export const darkScheme = new SchemeExpressive(sourceHct, true, 0);
@@ -0,0 +1 @@
1
+ export declare const sourceColor = "#6750A4";
@@ -0,0 +1 @@
1
+ export const sourceColor = "#6750A4";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ import { hexFromArgb } from "@material/material-color-utilities";
2
+ import { lightScheme, darkScheme } from "./scheme";
3
+ console.log("Light");
4
+ console.log("Primary:", hexFromArgb(lightScheme.primary));
5
+ console.log("Secondary:", hexFromArgb(lightScheme.secondary));
6
+ console.log("Tertiary:", hexFromArgb(lightScheme.tertiary));
7
+ console.log("Background:", hexFromArgb(lightScheme.background));
8
+ console.log("Surface:", hexFromArgb(lightScheme.surface));
9
+ console.log("Dark");
10
+ console.log("Primary:", hexFromArgb(darkScheme.primary));
11
+ console.log("Secondary:", hexFromArgb(darkScheme.secondary));
12
+ console.log("Tertiary:", hexFromArgb(darkScheme.tertiary));
13
+ console.log("Background:", hexFromArgb(darkScheme.background));
14
+ console.log("Surface:", hexFromArgb(darkScheme.surface));
@@ -0,0 +1,52 @@
1
+ import type { ColorRoles } from "./roles";
2
+ export declare function createColorTokens(roles: ColorRoles): {
3
+ primary: string;
4
+ "on-primary": string;
5
+ "primary-container": string;
6
+ "on-primary-container": string;
7
+ "primary-fixed": string;
8
+ "primary-fixed-dim": string;
9
+ "on-primary-fixed": string;
10
+ "on-primary-fixed-variant": string;
11
+ secondary: string;
12
+ "on-secondary": string;
13
+ "secondary-container": string;
14
+ "on-secondary-container": string;
15
+ "secondary-fixed": string;
16
+ "secondary-fixed-dim": string;
17
+ "on-secondary-fixed": string;
18
+ "on-secondary-fixed-variant": string;
19
+ tertiary: string;
20
+ "on-tertiary": string;
21
+ "tertiary-container": string;
22
+ "on-tertiary-container": string;
23
+ "tertiary-fixed": string;
24
+ "tertiary-fixed-dim": string;
25
+ "on-tertiary-fixed": string;
26
+ "on-tertiary-fixed-variant": string;
27
+ error: string;
28
+ "on-error": string;
29
+ "error-container": string;
30
+ "on-error-container": string;
31
+ background: string;
32
+ "on-background": string;
33
+ surface: string;
34
+ "on-surface": string;
35
+ "surface-variant": string;
36
+ "on-surface-variant": string;
37
+ "surface-dim": string;
38
+ "surface-bright": string;
39
+ "surface-container-lowest": string;
40
+ "surface-container-low": string;
41
+ "surface-container": string;
42
+ "surface-container-high": string;
43
+ "surface-container-highest": string;
44
+ outline: string;
45
+ "outline-variant": string;
46
+ "inverse-surface": string;
47
+ "inverse-on-surface": string;
48
+ "inverse-primary": string;
49
+ "surface-tint": string;
50
+ shadow: string;
51
+ scrim: string;
52
+ };
@@ -0,0 +1,53 @@
1
+ export function createColorTokens(roles) {
2
+ return {
3
+ "primary": roles.primary,
4
+ "on-primary": roles.onPrimary,
5
+ "primary-container": roles.primaryContainer,
6
+ "on-primary-container": roles.onPrimaryContainer,
7
+ "primary-fixed": roles.primaryFixed,
8
+ "primary-fixed-dim": roles.primaryFixedDim,
9
+ "on-primary-fixed": roles.onPrimaryFixed,
10
+ "on-primary-fixed-variant": roles.onPrimaryFixedVariant,
11
+ "secondary": roles.secondary,
12
+ "on-secondary": roles.onSecondary,
13
+ "secondary-container": roles.secondaryContainer,
14
+ "on-secondary-container": roles.onSecondaryContainer,
15
+ "secondary-fixed": roles.secondaryFixed,
16
+ "secondary-fixed-dim": roles.secondaryFixedDim,
17
+ "on-secondary-fixed": roles.onSecondaryFixed,
18
+ "on-secondary-fixed-variant": roles.onSecondaryFixedVariant,
19
+ "tertiary": roles.tertiary,
20
+ "on-tertiary": roles.onTertiary,
21
+ "tertiary-container": roles.tertiaryContainer,
22
+ "on-tertiary-container": roles.onTertiaryContainer,
23
+ "tertiary-fixed": roles.tertiaryFixed,
24
+ "tertiary-fixed-dim": roles.tertiaryFixedDim,
25
+ "on-tertiary-fixed": roles.onTertiaryFixed,
26
+ "on-tertiary-fixed-variant": roles.onTertiaryFixedVariant,
27
+ "error": roles.error,
28
+ "on-error": roles.onError,
29
+ "error-container": roles.errorContainer,
30
+ "on-error-container": roles.onErrorContainer,
31
+ "background": roles.background,
32
+ "on-background": roles.onBackground,
33
+ "surface": roles.surface,
34
+ "on-surface": roles.onSurface,
35
+ "surface-variant": roles.surfaceVariant,
36
+ "on-surface-variant": roles.onSurfaceVariant,
37
+ "surface-dim": roles.surfaceDim,
38
+ "surface-bright": roles.surfaceBright,
39
+ "surface-container-lowest": roles.surfaceContainerLowest,
40
+ "surface-container-low": roles.surfaceContainerLow,
41
+ "surface-container": roles.surfaceContainer,
42
+ "surface-container-high": roles.surfaceContainerHigh,
43
+ "surface-container-highest": roles.surfaceContainerHighest,
44
+ "outline": roles.outline,
45
+ "outline-variant": roles.outlineVariant,
46
+ "inverse-surface": roles.inverseSurface,
47
+ "inverse-on-surface": roles.inverseOnSurface,
48
+ "inverse-primary": roles.inversePrimary,
49
+ "surface-tint": roles.surfaceTint,
50
+ "shadow": roles.shadow,
51
+ "scrim": roles.scrim,
52
+ };
53
+ }
@@ -0,0 +1 @@
1
+ export declare function hexToArgb(hex: string): number;
@@ -0,0 +1,7 @@
1
+ export function hexToArgb(hex) {
2
+ const normalized = hex.replace("#", "");
3
+ if (normalized.length !== 6) {
4
+ throw new Error("Invalid hex color");
5
+ }
6
+ return parseInt(`ff${normalized}`, 16);
7
+ }
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
package/dist/index.d.ts CHANGED
@@ -9,7 +9,6 @@ export * from "./Stack/Stack";
9
9
  export * from "./GridContainer/GridContainer";
10
10
  export * from "./GridItem/GridItem";
11
11
  export * from "./Card/Card";
12
- export * from "./Theme/Theme";
13
12
  export * from "./Spacer/Spacer";
14
13
  export * from "./Hr/Hr";
15
14
  export * from "./List/List";
@@ -19,8 +18,7 @@ export * from "./Button/Button";
19
18
  export * from "./SvgIcon/SvgIcon";
20
19
  export * from "./Text/Text";
21
20
  export * from "./Form/Form";
22
- export * from "./InputField/InputField";
23
- export * from "./Select/Select";
21
+ export * from "./Input/Input";
24
22
  export * from "./CheckBox/CheckBox";
25
23
  export * from "./CodeField/CodeField";
26
24
  export * from "./RadioGroup/RadioGroup";
package/dist/index.js CHANGED
@@ -11,7 +11,6 @@ export * from "./GridContainer/GridContainer";
11
11
  export * from "./GridItem/GridItem";
12
12
  export * from "./Card/Card"; // Stack Based
13
13
  // Theme & Styling
14
- export * from "./Theme/Theme"; // Stack Based
15
14
  export * from "./Spacer/Spacer";
16
15
  export * from "./Hr/Hr";
17
16
  // UI Components
@@ -23,8 +22,7 @@ export * from "./SvgIcon/SvgIcon";
23
22
  export * from "./Text/Text";
24
23
  // Form Components
25
24
  export * from "./Form/Form";
26
- export * from "./InputField/InputField";
27
- export * from "./Select/Select";
25
+ export * from "./Input/Input";
28
26
  export * from "./CheckBox/CheckBox";
29
27
  export * from "./CodeField/CodeField";
30
28
  export * from "./RadioGroup/RadioGroup";
@@ -0,0 +1,103 @@
1
+ :root {
2
+ --md-sys-color-primary: #006b5a;
3
+ --md-sys-color-on-primary: #ffffff;
4
+ --md-sys-color-primary-container: #95f4dc;
5
+ --md-sys-color-on-primary-container: #005143;
6
+ --md-sys-color-primary-fixed: #95f4dc;
7
+ --md-sys-color-primary-fixed-dim: #79d7c0;
8
+ --md-sys-color-on-primary-fixed: #00201a;
9
+ --md-sys-color-on-primary-fixed-variant: #005143;
10
+ --md-sys-color-secondary: #79536a;
11
+ --md-sys-color-on-secondary: #ffffff;
12
+ --md-sys-color-secondary-container: #ffd8ed;
13
+ --md-sys-color-on-secondary-container: #5f3c52;
14
+ --md-sys-color-secondary-fixed: #ffd8ed;
15
+ --md-sys-color-secondary-fixed-dim: #e8b9d4;
16
+ --md-sys-color-on-secondary-fixed: #2e1125;
17
+ --md-sys-color-on-secondary-fixed-variant: #5f3c52;
18
+ --md-sys-color-tertiary: #735280;
19
+ --md-sys-color-on-tertiary: #ffffff;
20
+ --md-sys-color-tertiary-container: #f7d8ff;
21
+ --md-sys-color-on-tertiary-container: #593b67;
22
+ --md-sys-color-tertiary-fixed: #f7d8ff;
23
+ --md-sys-color-tertiary-fixed-dim: #e0b9ee;
24
+ --md-sys-color-on-tertiary-fixed: #2b0e39;
25
+ --md-sys-color-on-tertiary-fixed-variant: #593b67;
26
+ --md-sys-color-error: #ba1a1a;
27
+ --md-sys-color-on-error: #ffffff;
28
+ --md-sys-color-error-container: #ffdad6;
29
+ --md-sys-color-on-error-container: #93000a;
30
+ --md-sys-color-background: #fff7fd;
31
+ --md-sys-color-on-background: #1f1a21;
32
+ --md-sys-color-surface: #fff7fd;
33
+ --md-sys-color-on-surface: #1f1a21;
34
+ --md-sys-color-surface-variant: #ecdef0;
35
+ --md-sys-color-on-surface-variant: #4d4351;
36
+ --md-sys-color-surface-dim: #e1d7e2;
37
+ --md-sys-color-surface-bright: #fff7fd;
38
+ --md-sys-color-surface-container-lowest: #ffffff;
39
+ --md-sys-color-surface-container-low: #fbf0fb;
40
+ --md-sys-color-surface-container: #f5ebf6;
41
+ --md-sys-color-surface-container-high: #efe5f0;
42
+ --md-sys-color-surface-container-highest: #eadfea;
43
+ --md-sys-color-outline: #7e7383;
44
+ --md-sys-color-outline-variant: #cfc2d3;
45
+ --md-sys-color-inverse-surface: #342e37;
46
+ --md-sys-color-inverse-on-surface: #f8edf9;
47
+ --md-sys-color-inverse-primary: #79d7c0;
48
+ --md-sys-color-surface-tint: #006b5a;
49
+ --md-sys-color-shadow: #000000;
50
+ --md-sys-color-scrim: #000000;
51
+ }
52
+
53
+ .dark {
54
+ --md-sys-color-primary: #79d7c0;
55
+ --md-sys-color-on-primary: #00382e;
56
+ --md-sys-color-primary-container: #005143;
57
+ --md-sys-color-on-primary-container: #95f4dc;
58
+ --md-sys-color-primary-fixed: #95f4dc;
59
+ --md-sys-color-primary-fixed-dim: #79d7c0;
60
+ --md-sys-color-on-primary-fixed: #00201a;
61
+ --md-sys-color-on-primary-fixed-variant: #005143;
62
+ --md-sys-color-secondary: #e8b9d4;
63
+ --md-sys-color-on-secondary: #46263b;
64
+ --md-sys-color-secondary-container: #5f3c52;
65
+ --md-sys-color-on-secondary-container: #ffd8ed;
66
+ --md-sys-color-secondary-fixed: #ffd8ed;
67
+ --md-sys-color-secondary-fixed-dim: #e8b9d4;
68
+ --md-sys-color-on-secondary-fixed: #2e1125;
69
+ --md-sys-color-on-secondary-fixed-variant: #5f3c52;
70
+ --md-sys-color-tertiary: #e0b9ee;
71
+ --md-sys-color-on-tertiary: #41244f;
72
+ --md-sys-color-tertiary-container: #593b67;
73
+ --md-sys-color-on-tertiary-container: #f7d8ff;
74
+ --md-sys-color-tertiary-fixed: #f7d8ff;
75
+ --md-sys-color-tertiary-fixed-dim: #e0b9ee;
76
+ --md-sys-color-on-tertiary-fixed: #2b0e39;
77
+ --md-sys-color-on-tertiary-fixed-variant: #593b67;
78
+ --md-sys-color-error: #ffb4ab;
79
+ --md-sys-color-on-error: #690005;
80
+ --md-sys-color-error-container: #93000a;
81
+ --md-sys-color-on-error-container: #ffdad6;
82
+ --md-sys-color-background: #161219;
83
+ --md-sys-color-on-background: #eadfea;
84
+ --md-sys-color-surface: #161219;
85
+ --md-sys-color-on-surface: #eadfea;
86
+ --md-sys-color-surface-variant: #4d4351;
87
+ --md-sys-color-on-surface-variant: #cfc2d3;
88
+ --md-sys-color-surface-dim: #161219;
89
+ --md-sys-color-surface-bright: #3d373f;
90
+ --md-sys-color-surface-container-lowest: #110d14;
91
+ --md-sys-color-surface-container-low: #1f1a21;
92
+ --md-sys-color-surface-container: #231e25;
93
+ --md-sys-color-surface-container-high: #2d2830;
94
+ --md-sys-color-surface-container-highest: #38333b;
95
+ --md-sys-color-outline: #988d9d;
96
+ --md-sys-color-outline-variant: #4d4351;
97
+ --md-sys-color-inverse-surface: #eadfea;
98
+ --md-sys-color-inverse-on-surface: #342e37;
99
+ --md-sys-color-inverse-primary: #006b5a;
100
+ --md-sys-color-surface-tint: #79d7c0;
101
+ --md-sys-color-shadow: #000000;
102
+ --md-sys-color-scrim: #000000;
103
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yakad/ui",
3
- "version": "1.3.169",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "author": "Natiq",
6
6
  "description": "UI components for NextJS/React",
@@ -23,15 +23,17 @@
23
23
  "homepage": "https://yakad.natiq.net",
24
24
  "scripts": {
25
25
  "clean": "rimraf dist/",
26
+ "generate:color": "tsx src/Theme/color/generator.ts",
26
27
  "copy-files:css": "copyfiles -u 1 src/*.css src/**/*.css dist/",
27
28
  "copy-files:svg": "copyfiles -u 1 src/*.svg src/**/*.svg dist/",
28
- "build": "npm run clean && tsc && npm run copy-files:css && npm run copy-files:svg",
29
+ "build": "npm run clean && tsc && npm run generate:color && npm run copy-files:css && npm run copy-files:svg",
29
30
  "typecheck": "tsc --noEmit",
30
31
  "lint": "eslint src/**/*.{ts,tsx}",
31
32
  "test": "echo \"No tests specified\" && exit 0",
32
33
  "prepublishOnly": "npm run lint && npm run test && npm run build && npm run typecheck"
33
34
  },
34
35
  "dependencies": {
36
+ "@material/material-color-utilities": "^0.4.0",
35
37
  "@yakad/lib": "1.0.23",
36
38
  "@yakad/symbols": "1.0.42",
37
39
  "@yakad/use-interactions": "1.0.0",
@@ -49,6 +51,7 @@
49
51
  "@types/react": "^19.0.0",
50
52
  "@types/react-dom": "^19.0.0",
51
53
  "react": "^19.0.0",
52
- "react-dom": "^19.0.0"
54
+ "react-dom": "^19.0.0",
55
+ "tsx": "^4.23.13"
53
56
  }
54
57
  }
@@ -1,15 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- import { Input } from "./input";
4
- declare const inputFieldVariants: (props?: ({
5
- variant?: "filled" | "outlined" | null | undefined;
6
- boxSize?: "small" | "normal" | null | undefined;
7
- } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
8
- export interface InputFieldProps extends Omit<React.ComponentProps<typeof Input>, "size">, VariantProps<typeof inputFieldVariants> {
9
- ref?: React.Ref<HTMLInputElement>;
10
- }
11
- export declare function InputField({ variant, boxSize, placeholder, className, id, ref, ...restProps }: InputFieldProps): React.JSX.Element;
12
- export declare namespace InputField {
13
- var displayName: string;
14
- }
15
- export { inputFieldVariants };
@@ -1,82 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import * as React from "react";
14
- import { cva } from "class-variance-authority";
15
- import { cn } from "./cn";
16
- import { Input } from "./input";
17
- const inputFieldVariants = cva([
18
- "peer",
19
- "w-full",
20
- "transition-colors",
21
- "placeholder:text-transparent",
22
- "focus-visible:ring-offset-0",
23
- ], {
24
- variants: {
25
- variant: {
26
- outlined: [
27
- "border",
28
- "border-input",
29
- "bg-transparent",
30
- "focus-visible:ring-1",
31
- "focus-visible:ring-ring",
32
- ],
33
- filled: [
34
- "rounded-b-none",
35
- "border-0",
36
- "border-b-2",
37
- "border-input",
38
- "bg-muted",
39
- "focus-visible:ring-0",
40
- "focus-visible:border-primary",
41
- ],
42
- },
43
- boxSize: {
44
- small: "h-8 px-2 text-sm",
45
- normal: "h-10 px-3 text-base",
46
- },
47
- },
48
- defaultVariants: {
49
- variant: "outlined",
50
- boxSize: "normal",
51
- },
52
- });
53
- const labelVariants = cva([
54
- "pointer-events-none",
55
- "absolute",
56
- "left-3",
57
- "top-1/2",
58
- "-translate-y-1/2",
59
- "text-muted-foreground",
60
- "transition-all",
61
- ], {
62
- variants: {
63
- boxSize: {
64
- small: "text-sm",
65
- normal: "text-base",
66
- },
67
- },
68
- defaultVariants: {
69
- boxSize: "normal",
70
- },
71
- });
72
- export function InputField(_a) {
73
- var { variant = "outlined", boxSize = "normal", placeholder, className, id, ref } = _a, restProps = __rest(_a, ["variant", "boxSize", "placeholder", "className", "id", "ref"]);
74
- const generatedId = React.useId();
75
- const inputId = id !== null && id !== void 0 ? id : generatedId;
76
- return (_jsxs("div", { className: "relative w-full", children: [_jsx(Input, Object.assign({ id: inputId, ref: ref, placeholder: " ", className: cn(inputFieldVariants({
77
- variant,
78
- boxSize,
79
- }), className) }, restProps)), placeholder && (_jsx("label", { htmlFor: inputId, className: cn(labelVariants({ boxSize }), "peer-focus:top-0", "peer-focus:-translate-y-1/2", "peer-focus:bg-background", "peer-focus:px-1", "peer-focus:text-xs", "peer-focus:text-primary", "peer-[:not(:placeholder-shown)]:top-0", "peer-[:not(:placeholder-shown)]:-translate-y-1/2", "peer-[:not(:placeholder-shown)]:bg-background", "peer-[:not(:placeholder-shown)]:px-1", "peer-[:not(:placeholder-shown)]:text-xs"), children: placeholder }))] }));
80
- }
81
- InputField.displayName = "InputField";
82
- export { inputFieldVariants };
@@ -1,2 +0,0 @@
1
- import { type ClassValue } from "clsx";
2
- export declare function cn(...inputs: ClassValue[]): string;
@@ -1,5 +0,0 @@
1
- import { clsx } from "clsx";
2
- import { twMerge } from "tailwind-merge";
3
- export function cn(...inputs) {
4
- return twMerge(clsx(inputs));
5
- }
@@ -1,7 +0,0 @@
1
- import * as React from "react";
2
- export interface InputProps extends React.ComponentProps<"input"> {
3
- }
4
- export declare function Input({ className, type, ...props }: InputProps): React.JSX.Element;
5
- export declare namespace Input {
6
- var displayName: string;
7
- }
@@ -1,18 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { cn } from "./cn";
14
- export function Input(_a) {
15
- var { className, type } = _a, props = __rest(_a, ["className", "type"]);
16
- return (_jsx("input", Object.assign({ type: type, "data-slot": "input", className: cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className) }, props)));
17
- }
18
- Input.displayName = "Input";
@@ -1,12 +0,0 @@
1
- import * as React from "react";
2
- export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
3
- variant?: "outlined" | "filled";
4
- boxsize?: "small" | "normal";
5
- placeholder?: string;
6
- children?: React.ReactNode;
7
- ref?: React.Ref<HTMLSelectElement>;
8
- }
9
- export declare function Select({ variant, boxsize, placeholder, className, children, ...restProps }: SelectProps): React.JSX.Element;
10
- export declare namespace Select {
11
- var displayName: string;
12
- }
@@ -1,23 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { cn } from "../InputField/cn";
14
- export function Select(_a) {
15
- var { variant = "outlined", boxsize = "normal", placeholder, className, children } = _a, restProps = __rest(_a, ["variant", "boxsize", "placeholder", "className", "children"]);
16
- return (_jsxs("div", { className: "relative w-full", children: [_jsx("select", Object.assign({}, restProps, { className: cn("peer w-full transition-colors", "border-input bg-background", "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring", {
17
- "h-8 px-2 text-sm": boxsize === "small",
18
- "h-10 px-3 text-base": boxsize === "normal",
19
- "rounded-md border bg-transparent": variant === "outlined",
20
- "rounded-b-none border-0 border-b-2 bg-muted": variant === "filled",
21
- }, className), children: children })), placeholder && (_jsx("label", { className: cn("pointer-events-none absolute left-3 top-1/2", "-translate-y-1/2 text-muted-foreground", "transition-all", "peer-focus:top-0 peer-focus:-translate-y-1/2", "peer-focus:bg-background peer-focus:px-1", "peer-focus:text-xs peer-focus:text-primary"), children: placeholder }))] }));
22
- }
23
- Select.displayName = "Select";
@@ -1,3 +0,0 @@
1
- .select * {
2
- color: initial;
3
- }
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- export type DarkStyle = "light" | "dark" | "system";
3
- export type ThemeColor = "green" | "red" | "yellow" | "blue" | "purple";
4
- export interface ThemeProps extends React.HTMLAttributes<HTMLDivElement> {
5
- align?: "start" | "space" | "center" | "end";
6
- darkStyle?: DarkStyle;
7
- color?: ThemeColor;
8
- zoom?: number;
9
- children?: React.ReactNode;
10
- ref?: React.Ref<HTMLDivElement>;
11
- }
12
- export declare function Theme({ align, darkStyle, color, zoom, className, children, ...restProps }: ThemeProps): import("react").JSX.Element;
@@ -1,26 +0,0 @@
1
- "use client";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- import { jsx as _jsx } from "react/jsx-runtime";
14
- import { useEffect } from "react";
15
- import classNames from "classnames";
16
- import styles from "./Theme.module.css";
17
- import boxingStyles from "../boxing.module.css";
18
- export function Theme(_a) {
19
- var { align, darkStyle = "system", color = "blue", zoom = 100, className, children } = _a, restProps = __rest(_a, ["align", "darkStyle", "color", "zoom", "className", "children"]);
20
- const zoomPercentage = zoom ? (zoom / 100) * 62.5 : 62.5;
21
- useEffect(() => {
22
- document.documentElement.style.setProperty("font-size", zoomPercentage + "%");
23
- }, [zoomPercentage]);
24
- const joinedClassNames = classNames({ portalRoot: true }, boxingStyles.flexColumnBox, { [boxingStyles[align]]: align }, { [boxingStyles.demandChildsToBeFullWidth]: true }, styles.theme, styles[darkStyle], styles[color], className);
25
- return (_jsx("div", Object.assign({}, restProps, { className: joinedClassNames, children: children })));
26
- }
@@ -1,398 +0,0 @@
1
- .blue {
2
- --LightPrimaryColor: 11 87 208;
3
- --LightPrimaryContainerColor: 211 227 253;
4
- --LightSecondaryColor: 98 91 113;
5
- --LightSecondaryContainerColor: 232 222 248;
6
- --LightTertiaryColor: 196 238 208;
7
- --LightSurfaceColor: 34 34 34;
8
- --LightErrorColor: 179 38 30;
9
- --LightErrorContainerColor: 249 222 220;
10
- --LightOnPrimaryColor: 255 255 255;
11
- --LightOnPrimaryContainerColor: 4 30 73;
12
- --LightOnSecondaryColor: 255 255 255;
13
- --LightOnSecondaryContainerColor: 30 25 43;
14
- --LightOnTertiaryColor: 7 39 17;
15
- --LightOnErrorColor: 255 255 255;
16
- --LightOnErrorContainerColor: 65 14 11;
17
- /* neutral colors */
18
- --LightSurfaceColor: 254 247 255;
19
- --LightSurfaceVariantColor: 231 224 236;
20
- --LightSurfaceDimColor: 222 216 225;
21
- --LightSurfaceBrightColor: 254 247 255;
22
- --LightSurfaceContainerLowestColor: 255 255 255;
23
- --LightSurfaceContainerLowColor: 247 242 250;
24
- --LightSurfaceContainerColor: 243 237 247;
25
- --LightSurfaceContainerHighColor: 236 230 240;
26
- --LightSurfaceContainerHighestColor: 230 224 233;
27
- --LightOnSurfaceColor: 28 27 31;
28
- --LightOnSurfaceVariantColor: 73 69 78;
29
- --LightOutlineColor: 121 116 126;
30
- --LightOutlineVariantColor: 196 199 197;
31
-
32
- --DarkPrimaryColor: 168 199 250;
33
- --DarkPrimaryContainerColor: 8 66 160;
34
- --DarkSecondaryColor: 204 194 220;
35
- --DarkSecondaryContainerColor: 232 222 248;
36
- --DarkTertiaryColor: 7 39 17;
37
- --DarkErrorColor: 242 184 181;
38
- --DarkErrorContainerColor: 140 29 24;
39
- --DarkOnPrimaryColor: 6 46 111;
40
- --DarkOnPrimaryContainerColor: 211 227 253;
41
- --DarkOnSecondaryColor: 51 45 65;
42
- --DarkOnSecondaryContainerColor: 232 222 248;
43
- --DarkOnTertiaryColor: 196 238 208;
44
- --DarkOnErrorColor: 96 20 16;
45
- --DarkOnErrorContainerColor: 249 222 220;
46
- /* neutral colors */
47
- --DarkSurfaceColor: 20 18 24;
48
- --DarkSurfaceVariantColor: 73 69 79;
49
- --DarkSurfaceDimColor: 20 18 24;
50
- --DarkSurfaceBrightColor: 59 56 62;
51
- --DarkSurfaceContainerLowestColor: 15 13 19;
52
- --DarkSurfaceContainerLowColor: 29 27 32;
53
- --DarkSurfaceContainerColor: 33 31 38;
54
- --DarkSurfaceContainerHighColor: 43 41 48;
55
- --DarkSurfaceContainerHighestColor: 54 52 59;
56
- --DarkOnSurfaceColor: 230 225 229;
57
- --DarkOnSurfaceVariantColor: 202 196 208;
58
- --DarkOutlineColor: 147 143 153;
59
- --DarkOutlineVariantColor: 68 71 70;
60
- }
61
-
62
- .green {
63
- --LightPrimaryColor: 56 106 32;
64
- --LightPrimaryContainerColor: 184 243 151;
65
- --LightSecondaryColor: 98 91 113;
66
- --LightSecondaryContainerColor: 232 222 248;
67
- --LightTertiaryColor: 187 235 235;
68
- --LightErrorColor: 179 38 30;
69
- --LightErrorContainerColor: 249 222 220;
70
- --LightOnPrimaryColor: 255 255 255;
71
- --LightOnPrimaryContainerColor: 4 33 0;
72
- --LightOnSecondaryColor: 255 255 255;
73
- --LightOnSecondaryContainerColor: 30 25 43;
74
- --LightOnTertiaryColor: 0 32 33;
75
- --LightOnErrorColor: 255 255 255;
76
- --LightOnErrorContainerColor: 65 14 11;
77
- /* neutral colors */
78
- --LightSurfaceColor: 254 247 255;
79
- --LightSurfaceVariantColor: 231 224 236;
80
- --LightSurfaceDimColor: 222 216 225;
81
- --LightSurfaceBrightColor: 254 247 255;
82
- --LightSurfaceContainerLowestColor: 255 255 255;
83
- --LightSurfaceContainerLowColor: 247 242 250;
84
- --LightSurfaceContainerColor: 243 237 247;
85
- --LightSurfaceContainerHighColor: 236 230 240;
86
- --LightSurfaceContainerHighestColor: 230 224 233;
87
- --LightOnSurfaceColor: 28 27 31;
88
- --LightOnSurfaceVariantColor: 73 69 78;
89
- --LightOutlineColor: 121 116 126;
90
- --LightOutlineVariantColor: 196 199 197;
91
-
92
- --DarkPrimaryColor: 156 214 125;
93
- --DarkPrimaryContainerColor: 32 81 7;
94
- --DarkSecondaryColor: 204 194 220;
95
- --DarkSecondaryContainerColor: 232 222 248;
96
- --DarkTertiaryColor: 0 32 33;
97
- --DarkErrorColor: 242 184 181;
98
- --DarkErrorContainerColor: 140 29 24;
99
- --DarkOnPrimaryColor: 12 57 0;
100
- --DarkOnPrimaryContainerColor: 184 243 151;
101
- --DarkOnSecondaryColor: 51 45 65;
102
- --DarkOnSecondaryContainerColor: 232 222 248;
103
- --DarkOnTertiaryColor: 187 235 235;
104
- --DarkOnErrorColor: 96 20 16;
105
- --DarkOnErrorContainerColor: 249 222 220;
106
- /* neutral colors */
107
- --DarkSurfaceColor: 20 18 24;
108
- --DarkSurfaceVariantColor: 73 69 79;
109
- --DarkSurfaceDimColor: 20 18 24;
110
- --DarkSurfaceBrightColor: 59 56 62;
111
- --DarkSurfaceContainerLowestColor: 15 13 19;
112
- --DarkSurfaceContainerLowColor: 29 27 32;
113
- --DarkSurfaceContainerColor: 33 31 38;
114
- --DarkSurfaceContainerHighColor: 43 41 48;
115
- --DarkSurfaceContainerHighestColor: 54 52 59;
116
- --DarkOnSurfaceColor: 230 225 229;
117
- --DarkOnSurfaceVariantColor: 202 196 208;
118
- --DarkOutlineColor: 147 143 153;
119
- --DarkOutlineVariantColor: 68 71 70;
120
- }
121
-
122
- .red {
123
- --LightPrimaryColor: 156 65 70;
124
- --LightPrimaryContainerColor: 255 218 219;
125
- --LightSecondaryColor: 98 91 113;
126
- --LightSecondaryContainerColor: 232 222 248;
127
- --LightTertiaryColor: 255 221 170;
128
- --LightErrorColor: 179 38 30;
129
- --LightErrorContainerColor: 249 222 220;
130
- --LightOnPrimaryColor: 255 255 255;
131
- --LightOnPrimaryContainerColor: 64 0 8;
132
- --LightOnSecondaryColor: 255 255 255;
133
- --LightOnSecondaryContainerColor: 30 25 43;
134
- --LightOnTertiaryColor: 40 24 0;
135
- --LightOnErrorColor: 255 255 255;
136
- --LightOnErrorContainerColor: 65 14 11;
137
- /* neutral colors */
138
- --LightSurfaceColor: 254 247 255;
139
- --LightSurfaceVariantColor: 231 224 236;
140
- --LightSurfaceDimColor: 222 216 225;
141
- --LightSurfaceBrightColor: 254 247 255;
142
- --LightSurfaceContainerLowestColor: 255 255 255;
143
- --LightSurfaceContainerLowColor: 247 242 250;
144
- --LightSurfaceContainerColor: 243 237 247;
145
- --LightSurfaceContainerHighColor: 236 230 240;
146
- --LightSurfaceContainerHighestColor: 230 224 233;
147
- --LightOnSurfaceColor: 28 27 31;
148
- --LightOnSurfaceVariantColor: 73 69 78;
149
- --LightOutlineColor: 121 116 126;
150
- --LightOutlineVariantColor: 196 199 197;
151
-
152
- --DarkPrimaryColor: 255 179 181;
153
- --DarkPrimaryContainerColor: 125 42 48;
154
- --DarkSecondaryColor: 204 194 220;
155
- --DarkSecondaryContainerColor: 232 222 248;
156
- --DarkTertiaryColor: 40 24 0;
157
- --DarkErrorColor: 242 184 181;
158
- --DarkErrorContainerColor: 140 29 24;
159
- --DarkOnPrimaryColor: 95 18 27;
160
- --DarkOnPrimaryContainerColor: 255 218 219;
161
- --DarkOnSecondaryColor: 51 45 65;
162
- --DarkOnSecondaryContainerColor: 232 222 248;
163
- --DarkOnTertiaryColor: 255 221 170;
164
- --DarkOnErrorColor: 96 20 16;
165
- --DarkOnErrorContainerColor: 249 222 220;
166
- /* neutral colors */
167
- --DarkSurfaceColor: 20 18 24;
168
- --DarkSurfaceVariantColor: 73 69 79;
169
- --DarkSurfaceDimColor: 20 18 24;
170
- --DarkSurfaceBrightColor: 59 56 62;
171
- --DarkSurfaceContainerLowestColor: 15 13 19;
172
- --DarkSurfaceContainerLowColor: 29 27 32;
173
- --DarkSurfaceContainerColor: 33 31 38;
174
- --DarkSurfaceContainerHighColor: 43 41 48;
175
- --DarkSurfaceContainerHighestColor: 54 52 59;
176
- --DarkOnSurfaceColor: 230 225 229;
177
- --DarkOnSurfaceVariantColor: 202 196 208;
178
- --DarkOutlineColor: 147 143 153;
179
- --DarkOutlineVariantColor: 68 71 70;
180
- }
181
-
182
- .yellow {
183
- --LightPrimaryColor: 97 98 0;
184
- --LightPrimaryContainerColor: 232 233 113;
185
- --LightSecondaryColor: 98 91 113;
186
- --LightSecondaryContainerColor: 232 222 248;
187
- --LightTertiaryColor: 191 237 217;
188
- --LightErrorColor: 179 38 30;
189
- --LightErrorContainerColor: 249 222 220;
190
- --LightOnPrimaryColor: 255 255 255;
191
- --LightOnPrimaryContainerColor: 29 29 0;
192
- --LightOnSecondaryColor: 255 255 255;
193
- --LightOnSecondaryContainerColor: 30 25 43;
194
- --LightOnTertiaryColor: 0 33 23;
195
- --LightOnErrorColor: 255 255 255;
196
- --LightOnErrorContainerColor: 65 14 11;
197
- /* neutral colors */
198
- --LightSurfaceColor: 254 247 255;
199
- --LightSurfaceVariantColor: 231 224 236;
200
- --LightSurfaceDimColor: 222 216 225;
201
- --LightSurfaceBrightColor: 254 247 255;
202
- --LightSurfaceContainerLowestColor: 255 255 255;
203
- --LightSurfaceContainerLowColor: 247 242 250;
204
- --LightSurfaceContainerColor: 243 237 247;
205
- --LightSurfaceContainerHighColor: 236 230 240;
206
- --LightSurfaceContainerHighestColor: 230 224 233;
207
- --LightOnSurfaceColor: 28 27 31;
208
- --LightOnSurfaceVariantColor: 73 69 78;
209
- --LightOutlineColor: 121 116 126;
210
- --LightOutlineVariantColor: 196 199 197;
211
-
212
- --DarkPrimaryColor: 203 204 88;
213
- --DarkPrimaryContainerColor: 73 74 0;
214
- --DarkSecondaryColor: 204 194 220;
215
- --DarkSecondaryContainerColor: 232 222 248;
216
- --DarkTertiaryColor: 0 33 23;
217
- --DarkErrorColor: 242 184 181;
218
- --DarkErrorContainerColor: 140 29 24;
219
- --DarkOnPrimaryColor: 50 50 0;
220
- --DarkOnPrimaryContainerColor: 232 233 113;
221
- --DarkOnSecondaryColor: 51 45 65;
222
- --DarkOnSecondaryContainerColor: 232 222 248;
223
- --DarkOnTertiaryColor: 191 237 217;
224
- --DarkOnErrorColor: 96 20 16;
225
- --DarkOnErrorContainerColor: 249 222 220;
226
- /* neutral colors */
227
- --DarkSurfaceColor: 20 18 24;
228
- --DarkSurfaceVariantColor: 73 69 79;
229
- --DarkSurfaceDimColor: 20 18 24;
230
- --DarkSurfaceBrightColor: 59 56 62;
231
- --DarkSurfaceContainerLowestColor: 15 13 19;
232
- --DarkSurfaceContainerLowColor: 29 27 32;
233
- --DarkSurfaceContainerColor: 33 31 38;
234
- --DarkSurfaceContainerHighColor: 43 41 48;
235
- --DarkSurfaceContainerHighestColor: 54 52 59;
236
- --DarkOnSurfaceColor: 230 225 229;
237
- --DarkOnSurfaceVariantColor: 202 196 208;
238
- --DarkOutlineColor: 147 143 153;
239
- --DarkOutlineVariantColor: 68 71 70;
240
- }
241
-
242
- .purple {
243
- --LightPrimaryColor: 103 80 164;
244
- --LightPrimaryContainerColor: 234 221 255;
245
- --LightSecondaryColor: 98 91 113;
246
- --LightSecondaryContainerColor: 232 222 248;
247
- --LightTertiaryColor: 125 82 96;
248
- --LightTertiaryContainerColor: 255 216 228;
249
- --LightSurfaceColor: 34 34 34;
250
- --LightErrorColor: 179 38 30;
251
- --LightErrorContainerColor: 249 222 220;
252
- --LightOnPrimaryColor: 255 255 255;
253
- --LightOnPrimaryContainerColor: 33 0 94;
254
- --LightOnSecondaryColor: 255 255 255;
255
- --LightOnSecondaryContainerColor: 30 25 43;
256
- --LightOnTertiaryColor: 255 255 255;
257
- --LightOnTertiaryContainerColor: 55 11 30;
258
- --LightOnErrorColor: 255 255 255;
259
- --LightOnErrorContainerColor: 65 14 11;
260
- /* neutral colors */
261
- --LightSurfaceColor: 254 247 255;
262
- --LightSurfaceVariantColor: 231 224 236;
263
- --LightSurfaceDimColor: 222 216 225;
264
- --LightSurfaceBrightColor: 254 247 255;
265
- --LightSurfaceContainerLowestColor: 255 255 255;
266
- --LightSurfaceContainerLowColor: 247 242 250;
267
- --LightSurfaceContainerColor: 243 237 247;
268
- --LightSurfaceContainerHighColor: 236 230 240;
269
- --LightSurfaceContainerHighestColor: 230 224 233;
270
- --LightOnSurfaceColor: 28 27 31;
271
- --LightOnSurfaceVariantColor: 73 69 78;
272
- --LightOutlineColor: 121 116 126;
273
- --LightOutlineVariantColor: 196 199 197;
274
-
275
- --DarkPrimaryColor: 208 188 255;
276
- --DarkPrimaryContainerColor: 79 55 139;
277
- --DarkSecondaryColor: 204 194 220;
278
- --DarkSecondaryContainerColor: 232 222 248;
279
- --DarkTertiaryColor: 239 184 200;
280
- --DarkTertiaryContainerColor: 99 59 72;
281
- --DarkErrorColor: 242 184 181;
282
- --DarkErrorContainerColor: 140 29 24;
283
- --DarkOnPrimaryColor: 55 30 115;
284
- --DarkOnPrimaryContainerColor: 234 221 255;
285
- --DarkOnSecondaryColor: 51 45 65;
286
- --DarkOnSecondaryContainerColor: 232 222 248;
287
- --DarkOnTertiaryColor: 73 37 50;
288
- --DarkOnTertiaryContainerColor: 255 216 228;
289
- --DarkOnErrorColor: 96 20 16;
290
- --DarkOnErrorContainerColor: 249 222 220;
291
- /* neutral colors */
292
- --DarkSurfaceColor: 20 18 24;
293
- --DarkSurfaceVariantColor: 73 69 79;
294
- --DarkSurfaceDimColor: 20 18 24;
295
- --DarkSurfaceBrightColor: 59 56 62;
296
- --DarkSurfaceContainerLowestColor: 15 13 19;
297
- --DarkSurfaceContainerLowColor: 29 27 32;
298
- --DarkSurfaceContainerColor: 33 31 38;
299
- --DarkSurfaceContainerHighColor: 43 41 48;
300
- --DarkSurfaceContainerHighestColor: 54 52 59;
301
- --DarkOnSurfaceColor: 230 225 229;
302
- --DarkOnSurfaceVariantColor: 202 196 208;
303
- --DarkOutlineColor: 147 143 153;
304
- --DarkOutlineVariantColor: 68 71 70;
305
- }
306
-
307
- .system,
308
- .light {
309
- --primaryColor: var(--LightPrimaryColor);
310
- --primaryContainerColor: var(--LightPrimaryContainerColor);
311
- --secondaryColor: var(--LightSecondaryColor);
312
- --secondaryContainerColor: var(--LightSecondaryContainerColor);
313
- --tertiaryColor: var(--LightTertiaryColor);
314
- --errorColor: var(--LightErrorColor);
315
- --errorContainerColor: var(--LightErrorContainerColor);
316
- --onPrimaryColor: var(--LightOnPrimaryColor);
317
- --onPrimaryContainerColor: var(--LightOnPrimaryContainerColor);
318
- --onSecondaryColor: var(--LightOnSecondaryColor);
319
- --onSecondaryContainerColor: var(--LightOnSecondaryContainerColor);
320
- --onTertiaryColor: var(--LightOnTertiaryColor);
321
- --onErrorColor: var(--LightOnErrorColor);
322
- --onErrorContainerColor: var(--LightOnErrorContainerColor);
323
- --surfaceColor: var(--LightSurfaceColor);
324
- --surfaceVariantColor: var(--LightSurfaceVariantColor);
325
- --surfaceDimColor: var(--LightSurfaceDimColor);
326
- --surfaceBrightColor: var(--LightSurfaceBrightColor);
327
- --surfaceContainerLowestColor: var(--LightSurfaceContainerLowestColor);
328
- --surfaceContainerLowColor: var(--LightSurfaceContainerLowColor);
329
- --surfaceContainerColor: var(--LightSurfaceContainerColor);
330
- --surfaceContainerHighColor: var(--LightSurfaceContainerHighColor);
331
- --surfaceContainerHighestColor: var(--LightSurfaceContainerHighestColor);
332
- --onSurfaceColor: var(--LightOnSurfaceColor);
333
- --onSurfaceVariantColor: var(--LightOnSurfaceVariantColor);
334
- --outlineColor: var(--LightOutlineColor);
335
- --outlineVariantColor: var(--LightOutlineVariantColor);
336
- }
337
-
338
- .dark {
339
- --primaryColor: var(--DarkPrimaryColor);
340
- --primaryContainerColor: var(--DarkPrimaryContainerColor);
341
- --secondaryColor: var(--DarkSecondaryColor);
342
- --secondaryContainerColor: var(--DarkSecondaryContainerColor);
343
- --tertiaryColor: var(--DarkTertiaryColor);
344
- --errorColor: var(--DarkErrorColor);
345
- --errorContainerColor: var(--DarkErrorContainerColor);
346
- --onPrimaryColor: var(--DarkOnPrimaryColor);
347
- --onPrimaryContainerColor: var(--DarkOnPrimaryContainerColor);
348
- --onSecondaryColor: var(--DarkOnSecondaryColor);
349
- --onSecondaryContainerColor: var(--DarkOnSecondaryContainerColor);
350
- --onTertiaryColor: var(--DarkOnTertiaryColor);
351
- --onErrorColor: var(--DarkOnErrorColor);
352
- --onErrorContainerColor: var(--DarkOnErrorContainerColor);
353
- --surfaceColor: var(--DarkSurfaceColor);
354
- --surfaceVariantColor: var(--DarkSurfaceVariantColor);
355
- --surfaceDimColor: var(--DarkSurfaceDimColor);
356
- --surfaceBrightColor: var(--DarkSurfaceBrightColor);
357
- --surfaceContainerLowestColor: var(--DarkSurfaceContainerLowestColor);
358
- --surfaceContainerLowColor: var(--DarkSurfaceContainerLowColor);
359
- --surfaceContainerColor: var(--DarkSurfaceContainerColor);
360
- --surfaceContainerHighColor: var(--DarkSurfaceContainerHighColor);
361
- --surfaceContainerHighestColor: var(--DarkSurfaceContainerHighestColor);
362
- --onSurfaceColor: var(--DarkOnSurfaceColor);
363
- --onSurfaceVariantColor: var(--DarkOnSurfaceVariantColor);
364
- --outlineColor: var(--DarkOutlineColor);
365
- --outlineVariantColor: var(--DarkOutlineVariantColor);
366
- }
367
-
368
- @media (prefers-color-scheme: dark) {
369
- .system {
370
- --primaryColor: var(--DarkPrimaryColor);
371
- --primaryContainerColor: var(--DarkPrimaryContainerColor);
372
- --secondaryColor: var(--DarkSecondaryColor);
373
- --secondaryContainerColor: var(--DarkSecondaryContainerColor);
374
- --tertiaryColor: var(--DarkTertiaryColor);
375
- --errorColor: var(--DarkErrorColor);
376
- --errorContainerColor: var(--DarkErrorContainerColor);
377
- --onPrimaryColor: var(--DarkOnPrimaryColor);
378
- --onPrimaryContainerColor: var(--DarkOnPrimaryContainerColor);
379
- --onSecondaryColor: var(--DarkOnSecondaryColor);
380
- --onSecondaryContainerColor: var(--DarkOnSecondaryContainerColor);
381
- --onTertiaryColor: var(--DarkOnTertiaryColor);
382
- --onErrorColor: var(--DarkOnErrorColor);
383
- --onErrorContainerColor: var(--DarkOnErrorContainerColor);
384
- --surfaceColor: var(--DarkSurfaceColor);
385
- --surfaceVariantColor: var(--DarkSurfaceVariantColor);
386
- --surfaceDimColor: var(--DarkSurfaceDimColor);
387
- --surfaceBrightColor: var(--DarkSurfaceBrightColor);
388
- --surfaceContainerLowestColor: var(--DarkSurfaceContainerLowestColor);
389
- --surfaceContainerLowColor: var(--DarkSurfaceContainerLowColor);
390
- --surfaceContainerColor: var(--DarkSurfaceContainerColor);
391
- --surfaceContainerHighColor: var(--DarkSurfaceContainerHighColor);
392
- --surfaceContainerHighestColor: var(--DarkSurfaceContainerHighestColor);
393
- --onSurfaceColor: var(--DarkOnSurfaceColor);
394
- --onSurfaceVariantColor: var(--DarkOnSurfaceVariantColor);
395
- --outlineColor: var(--DarkOutlineColor);
396
- --outlineVariantColor: var(--DarkOutlineVariantColor);
397
- }
398
- }
@@ -1,12 +0,0 @@
1
- :root {
2
- font-size: 62.5%;
3
- }
4
-
5
- body {
6
- margin: 0;
7
- }
8
-
9
- a {
10
- color: inherit;
11
- text-decoration: none;
12
- }