@moodlehq/design-system 0.1.0 → 2.0.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 +102 -52
- package/dist/components/index.d.ts +2 -0
- package/dist/index.css +488 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/package.json +33 -14
- package/tokens/css/borders.css +18 -0
- package/tokens/css/colors.css +68 -0
- package/tokens/css/index.css +11 -0
- package/tokens/css/primitives.css +162 -0
- package/tokens/css/shadows.css +15 -0
- package/tokens/css/sizes.css +13 -0
- package/tokens/css/spacing.css +14 -0
- package/tokens/css/typography.css +47 -0
- package/tokens/scss/_borders.scss +15 -0
- package/tokens/scss/_colors.scss +65 -0
- package/tokens/scss/_index.legacy.scss +11 -0
- package/tokens/scss/_index.scss +10 -0
- package/tokens/scss/_primitives.scss +159 -0
- package/tokens/scss/_shadows.scss +12 -0
- package/tokens/scss/_sizes.scss +10 -0
- package/tokens/scss/_spacing.scss +11 -0
- package/tokens/scss/_typography.scss +44 -0
- package/dist/index.cjs.js +0 -15
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -628
- package/dist/index.es.js.map +0 -1
- package/dist/src/index.d.ts +0 -1
- /package/dist/{src → components}/button/Button.d.ts +0 -0
- /package/dist/{src → components}/button/index.d.ts +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './components';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button as Button$1 } from "react-bootstrap";
|
|
3
|
+
const allowedVariants = [
|
|
4
|
+
"primary",
|
|
5
|
+
"secondary",
|
|
6
|
+
"danger",
|
|
7
|
+
"outline-primary",
|
|
8
|
+
"outline-secondary",
|
|
9
|
+
"outline-danger"
|
|
10
|
+
];
|
|
11
|
+
const Button = ({ label, variant, ...props }) => {
|
|
12
|
+
const resolvedVariant = allowedVariants.includes(variant ?? "") ? variant : "primary";
|
|
13
|
+
return /* @__PURE__ */ jsx(Button$1, { className: "mds-btn", variant: resolvedVariant, ...props, children: label });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
Button
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../components/button/Button.tsx"],"sourcesContent":["import {\n Button as RBButton,\n ButtonProps as RBButtonProps,\n} from 'react-bootstrap';\n\nexport interface ButtonProps extends RBButtonProps {\n label: string;\n variant?: string;\n disabled?: boolean;\n size?: 'sm' | 'lg';\n}\n\nconst allowedVariants = [\n 'primary',\n 'secondary',\n 'danger',\n 'outline-primary',\n 'outline-secondary',\n 'outline-danger',\n];\n\nexport const Button: React.FC<ButtonProps> = ({ label, variant, ...props }) => {\n const resolvedVariant = allowedVariants.includes(variant ?? '')\n ? variant\n : 'primary';\n\n return (\n <RBButton className=\"mds-btn\" variant={resolvedVariant} {...props}>\n {label}\n </RBButton>\n );\n};\n"],"names":["RBButton"],"mappings":";;AAYA,MAAM,kBAAkB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,SAAgC,CAAC,EAAE,OAAO,SAAS,GAAG,YAAY;AAC7E,QAAM,kBAAkB,gBAAgB,SAAS,WAAW,EAAE,IAC1D,UACA;AAEJ,SACE,oBAACA,YAAS,WAAU,WAAU,SAAS,iBAAkB,GAAG,OACzD,UAAA,MAAA,CACH;AAEJ;"}
|
package/package.json
CHANGED
|
@@ -1,24 +1,41 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moodlehq/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "The Moodle Design System",
|
|
5
|
-
"main": "dist/index.cjs.js",
|
|
6
|
-
"module": "dist/index.es.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"style": "dist/index.css",
|
|
9
5
|
"files": [
|
|
10
6
|
"/dist",
|
|
11
|
-
"/
|
|
7
|
+
"/tokens/css",
|
|
8
|
+
"/tokens/scss"
|
|
12
9
|
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./css": {
|
|
16
|
+
"default": "./dist/index.css"
|
|
17
|
+
},
|
|
18
|
+
"./tokens/css": {
|
|
19
|
+
"default": "./tokens/css/index.css"
|
|
20
|
+
},
|
|
21
|
+
"./tokens/scss": {
|
|
22
|
+
"default": "./tokens/scss/_index.scss"
|
|
23
|
+
},
|
|
24
|
+
"./tokens/scss/legacy": {
|
|
25
|
+
"default": "./tokens/scss/_index.legacy.scss"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
13
28
|
"type": "module",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"bootstrap": "^5.3.8"
|
|
31
|
+
},
|
|
14
32
|
"peerDependencies": {
|
|
15
|
-
"
|
|
16
|
-
"react": "^18.3.1",
|
|
33
|
+
"react": "^19.2.4",
|
|
17
34
|
"react-bootstrap": "^2.10.10",
|
|
18
|
-
"react-dom": "^
|
|
35
|
+
"react-dom": "^19.2.4"
|
|
19
36
|
},
|
|
20
37
|
"devDependencies": {
|
|
21
|
-
"@chromatic-com/storybook": "^
|
|
38
|
+
"@chromatic-com/storybook": "^5.0.0",
|
|
22
39
|
"@commitlint/cli": "^20.1.0",
|
|
23
40
|
"@commitlint/config-conventional": "^20.0.0",
|
|
24
41
|
"@eslint/compat": "^2.0.0",
|
|
@@ -46,19 +63,21 @@
|
|
|
46
63
|
"eslint-plugin-prettier": "^5.5.4",
|
|
47
64
|
"eslint-plugin-react": "^7.37.5",
|
|
48
65
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
49
|
-
"eslint-plugin-react-refresh": "^0.
|
|
66
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
50
67
|
"eslint-plugin-storybook": "^10.1.2",
|
|
51
|
-
"fast-check": "^
|
|
52
|
-
"globals": "^
|
|
68
|
+
"fast-check": "^4.5.3",
|
|
69
|
+
"globals": "^17.1.0",
|
|
53
70
|
"husky": "^9.1.7",
|
|
54
|
-
"jsdom": "^
|
|
71
|
+
"jsdom": "^28.0.0",
|
|
55
72
|
"lint-staged": "^16.2.7",
|
|
56
73
|
"playwright": "^1.57.0",
|
|
57
74
|
"prettier": "^3.7.3",
|
|
58
75
|
"prettier-plugin-organize-imports": "^4.3.0",
|
|
76
|
+
"react": "^19.2.4",
|
|
59
77
|
"react-bootstrap": "^2.10.10",
|
|
60
78
|
"react-docgen": "^8.0.2",
|
|
61
79
|
"react-docgen-typescript": "^2.4.0",
|
|
80
|
+
"react-dom": "^19.2.4",
|
|
62
81
|
"sass": "^1.94.2",
|
|
63
82
|
"storybook": "^10.0.5",
|
|
64
83
|
"style-dictionary": "^5.1.1",
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-stroke-weight-lg: 0.1875rem;
|
|
7
|
+
--mds-stroke-weight-md: 0.125rem;
|
|
8
|
+
--mds-stroke-weight-sm: 0.0625rem;
|
|
9
|
+
--mds-stroke-weight-xl: 0.25rem;
|
|
10
|
+
--mds-stroke-weight-xxl: 0.3125rem;
|
|
11
|
+
--mds-border-radius-lg: var(--mds-scale-300);
|
|
12
|
+
--mds-border-radius-md: var(--mds-scale-200);
|
|
13
|
+
--mds-border-radius-none: var(--mds-scale-0);
|
|
14
|
+
--mds-border-radius-pill: var(--mds-scale-1800);
|
|
15
|
+
--mds-border-radius-sm: var(--mds-scale-100);
|
|
16
|
+
--mds-border-radius-xl: var(--mds-scale-600);
|
|
17
|
+
--mds-border-radius-xxl: var(--mds-scale-1000);
|
|
18
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-border-translucent: rgba(0, 0, 0, 0);
|
|
7
|
+
--mds-bg-feedback-danger-subtle: var(--mds-color-red-100);
|
|
8
|
+
--mds-bg-feedback-info-default: var(--mds-color-cyan-500);
|
|
9
|
+
--mds-bg-feedback-info-subtle: var(--mds-color-cyan-100);
|
|
10
|
+
--mds-bg-feedback-primary-default: var(--mds-color-blue-500);
|
|
11
|
+
--mds-bg-feedback-primary-subtle: var(--mds-color-blue-100);
|
|
12
|
+
--mds-bg-feedback-secondary-subtle: var(--mds-color-gray-100);
|
|
13
|
+
--mds-bg-feedback-success-default: var(--mds-color-green-500);
|
|
14
|
+
--mds-bg-feedback-success-subtle: var(--mds-color-green-100);
|
|
15
|
+
--mds-bg-feedback-warning-default: var(--mds-color-yellow-500);
|
|
16
|
+
--mds-bg-feedback-warning-subtle: var(--mds-color-yellow-100);
|
|
17
|
+
--mds-bg-interactive-danger-active: var(--mds-color-red-700);
|
|
18
|
+
--mds-bg-interactive-danger-default: var(--mds-color-red-500);
|
|
19
|
+
--mds-bg-interactive-danger-disabled: var(--mds-color-red-300);
|
|
20
|
+
--mds-bg-interactive-danger-hover: var(--mds-color-red-600);
|
|
21
|
+
--mds-bg-interactive-primary-active: var(--mds-color-blue-700);
|
|
22
|
+
--mds-bg-interactive-primary-default: var(--mds-color-blue-500);
|
|
23
|
+
--mds-bg-interactive-primary-disabled: var(--mds-color-blue-300);
|
|
24
|
+
--mds-bg-interactive-primary-hover: var(--mds-color-blue-600);
|
|
25
|
+
--mds-bg-interactive-secondary-default: var(--mds-color-gray-400);
|
|
26
|
+
--mds-bg-interactive-secondary-disabled: var(--mds-color-gray-200);
|
|
27
|
+
--mds-bg-interactive-secondary-hover: var(--mds-color-gray-300);
|
|
28
|
+
--mds-bg-surface-default: var(--mds-color-gray-white);
|
|
29
|
+
--mds-bg-surface-strong: var(--mds-color-gray-200);
|
|
30
|
+
--mds-bg-surface-subtle: var(--mds-color-gray-100);
|
|
31
|
+
--mds-border-default: var(--mds-color-gray-300);
|
|
32
|
+
--mds-border-feedback-danger: var(--mds-color-red-200);
|
|
33
|
+
--mds-border-feedback-info: var(--mds-color-cyan-200);
|
|
34
|
+
--mds-border-feedback-primary: var(--mds-color-blue-200);
|
|
35
|
+
--mds-border-feedback-secondary: var(--mds-color-gray-200);
|
|
36
|
+
--mds-border-feedback-success: var(--mds-color-green-200);
|
|
37
|
+
--mds-border-feedback-warning: var(--mds-color-yellow-200);
|
|
38
|
+
--mds-border-interactive-danger-active: var(--mds-color-red-600);
|
|
39
|
+
--mds-border-interactive-danger-disabled: var(--mds-color-red-300);
|
|
40
|
+
--mds-border-interactive-primary-active: var(--mds-color-blue-600);
|
|
41
|
+
--mds-border-interactive-primary-disabled: var(--mds-color-blue-300);
|
|
42
|
+
--mds-border-interactive-secondary-active: var(--mds-color-gray-700);
|
|
43
|
+
--mds-border-interactive-secondary-default: var(--mds-color-gray-600);
|
|
44
|
+
--mds-border-interactive-secondary-disabled: var(--mds-color-gray-500);
|
|
45
|
+
--mds-border-interactive-secondary-hover: var(--mds-color-gray-600);
|
|
46
|
+
--mds-border-subtle: var(--mds-color-gray-200);
|
|
47
|
+
--mds-text-danger: var(--mds-color-red-500);
|
|
48
|
+
--mds-text-default: var(--mds-color-gray-900);
|
|
49
|
+
--mds-text-emphasis: var(--mds-color-gray-black);
|
|
50
|
+
--mds-text-feedback-danger: var(--mds-color-red-800);
|
|
51
|
+
--mds-text-feedback-info: var(--mds-color-cyan-800);
|
|
52
|
+
--mds-text-feedback-primary: var(--mds-color-blue-800);
|
|
53
|
+
--mds-text-feedback-secondary: var(--mds-color-gray-800);
|
|
54
|
+
--mds-text-feedback-success: var(--mds-color-green-800);
|
|
55
|
+
--mds-text-feedback-warning: var(--mds-color-yellow-800);
|
|
56
|
+
--mds-text-inverse: var(--mds-color-gray-100);
|
|
57
|
+
--mds-text-muted: var(--mds-color-gray-600);
|
|
58
|
+
--mds-text-subtle: var(--mds-color-gray-700);
|
|
59
|
+
--mds-bg-feedback-danger-default: var(--mds-bg-interactive-danger-default);
|
|
60
|
+
--mds-bg-interactive-secondary-active: var(--mds-bg-interactive-secondary-default);
|
|
61
|
+
--mds-border-interactive-danger-default: var(--mds-bg-interactive-danger-default);
|
|
62
|
+
--mds-border-interactive-danger-hover: var(--mds-bg-interactive-danger-default);
|
|
63
|
+
--mds-border-interactive-primary-default: var(--mds-bg-interactive-primary-default);
|
|
64
|
+
--mds-border-interactive-primary-hover: var(--mds-bg-interactive-primary-default);
|
|
65
|
+
--mds-text-link-primary-default: var(--mds-bg-interactive-primary-default);
|
|
66
|
+
--mds-text-link-primary-hover: var(--mds-bg-interactive-primary-hover);
|
|
67
|
+
--mds-focus-default: var(--mds-border-interactive-primary-default);
|
|
68
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@import "./borders.css";
|
|
6
|
+
@import "./colors.css";
|
|
7
|
+
@import "./primitives.css";
|
|
8
|
+
@import "./shadows.css";
|
|
9
|
+
@import "./sizes.css";
|
|
10
|
+
@import "./spacing.css";
|
|
11
|
+
@import "./typography.css";
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-color-blue-100: #cfe2f2;
|
|
7
|
+
--mds-color-blue-200: #9fc4e5;
|
|
8
|
+
--mds-color-blue-300: #6fa7d9;
|
|
9
|
+
--mds-color-blue-400: #3f89cc;
|
|
10
|
+
--mds-color-blue-500: #0f6cbf;
|
|
11
|
+
--mds-color-blue-600: #0c5699;
|
|
12
|
+
--mds-color-blue-700: #094173;
|
|
13
|
+
--mds-color-blue-800: #062b4c;
|
|
14
|
+
--mds-color-blue-900: #031626;
|
|
15
|
+
--mds-color-cyan-100: #cce6ea;
|
|
16
|
+
--mds-color-cyan-200: #99cdd5;
|
|
17
|
+
--mds-color-cyan-300: #66b3c0;
|
|
18
|
+
--mds-color-cyan-400: #339aab;
|
|
19
|
+
--mds-color-cyan-500: #008196;
|
|
20
|
+
--mds-color-cyan-600: #006778;
|
|
21
|
+
--mds-color-cyan-700: #004d5a;
|
|
22
|
+
--mds-color-cyan-800: #00343c;
|
|
23
|
+
--mds-color-cyan-900: #001a1e;
|
|
24
|
+
--mds-color-gray-100: #f8f9fa;
|
|
25
|
+
--mds-color-gray-200: #e9ecef;
|
|
26
|
+
--mds-color-gray-300: #dee2e6;
|
|
27
|
+
--mds-color-gray-400: #ced4da;
|
|
28
|
+
--mds-color-gray-500: #8f959e;
|
|
29
|
+
--mds-color-gray-600: #6a737b;
|
|
30
|
+
--mds-color-gray-700: #495057;
|
|
31
|
+
--mds-color-gray-800: #343a40;
|
|
32
|
+
--mds-color-gray-900: #1d2125;
|
|
33
|
+
--mds-color-gray-black: #000000;
|
|
34
|
+
--mds-color-gray-white: #ffffff;
|
|
35
|
+
--mds-color-green-100: #d7e4d6;
|
|
36
|
+
--mds-color-green-200: #aecaad;
|
|
37
|
+
--mds-color-green-300: #86af84;
|
|
38
|
+
--mds-color-green-400: #5d955b;
|
|
39
|
+
--mds-color-green-500: #357a32;
|
|
40
|
+
--mds-color-green-600: #2a6228;
|
|
41
|
+
--mds-color-green-700: #20491e;
|
|
42
|
+
--mds-color-green-800: #153114;
|
|
43
|
+
--mds-color-green-900: #0b180a;
|
|
44
|
+
--mds-color-indigo-100: #e0cffc;
|
|
45
|
+
--mds-color-indigo-200: #c29ffa;
|
|
46
|
+
--mds-color-indigo-300: #a370f7;
|
|
47
|
+
--mds-color-indigo-400: #8540f5;
|
|
48
|
+
--mds-color-indigo-500: #6610f2;
|
|
49
|
+
--mds-color-indigo-600: #520dc2;
|
|
50
|
+
--mds-color-indigo-700: #3d0a91;
|
|
51
|
+
--mds-color-indigo-800: #290661;
|
|
52
|
+
--mds-color-indigo-900: #140330;
|
|
53
|
+
--mds-color-orange-100: #ffe3d1;
|
|
54
|
+
--mds-color-orange-200: #ffc8a3;
|
|
55
|
+
--mds-color-orange-300: #ffac74;
|
|
56
|
+
--mds-color-orange-400: #ff9146;
|
|
57
|
+
--mds-color-orange-500: #ff7518;
|
|
58
|
+
--mds-color-orange-600: #cc5e13;
|
|
59
|
+
--mds-color-orange-700: #99460e;
|
|
60
|
+
--mds-color-orange-800: #662f0a;
|
|
61
|
+
--mds-color-orange-900: #331705;
|
|
62
|
+
--mds-color-pink-100: #f8d1e3;
|
|
63
|
+
--mds-color-pink-200: #f1a3c7;
|
|
64
|
+
--mds-color-pink-300: #e976ac;
|
|
65
|
+
--mds-color-pink-400: #e24890;
|
|
66
|
+
--mds-color-pink-500: #db1a74;
|
|
67
|
+
--mds-color-pink-600: #af155d;
|
|
68
|
+
--mds-color-pink-700: #831046;
|
|
69
|
+
--mds-color-pink-800: #580a2e;
|
|
70
|
+
--mds-color-pink-900: #2c0517;
|
|
71
|
+
--mds-color-purple-100: #dfd8e5;
|
|
72
|
+
--mds-color-purple-200: #c0b1cb;
|
|
73
|
+
--mds-color-purple-300: #a08bb0;
|
|
74
|
+
--mds-color-purple-400: #816496;
|
|
75
|
+
--mds-color-purple-500: #613d7c;
|
|
76
|
+
--mds-color-purple-600: #4e3163;
|
|
77
|
+
--mds-color-purple-700: #3a254a;
|
|
78
|
+
--mds-color-purple-800: #271832;
|
|
79
|
+
--mds-color-purple-900: #130c19;
|
|
80
|
+
--mds-color-red-100: #f4d6d2;
|
|
81
|
+
--mds-color-red-200: #eaada6;
|
|
82
|
+
--mds-color-red-300: #df8379;
|
|
83
|
+
--mds-color-red-400: #d55a4d;
|
|
84
|
+
--mds-color-red-500: #ca3120;
|
|
85
|
+
--mds-color-red-600: #a2271a;
|
|
86
|
+
--mds-color-red-700: #791d13;
|
|
87
|
+
--mds-color-red-800: #51140d;
|
|
88
|
+
--mds-color-red-900: #280a06;
|
|
89
|
+
--mds-color-teal-100: #d2f4ea;
|
|
90
|
+
--mds-color-teal-200: #a6e9d5;
|
|
91
|
+
--mds-color-teal-300: #79dfc1;
|
|
92
|
+
--mds-color-teal-400: #4dd4ac;
|
|
93
|
+
--mds-color-teal-500: #20c997;
|
|
94
|
+
--mds-color-teal-600: #1aa179;
|
|
95
|
+
--mds-color-teal-700: #13795b;
|
|
96
|
+
--mds-color-teal-800: #0d503c;
|
|
97
|
+
--mds-color-teal-900: #06281e;
|
|
98
|
+
--mds-color-yellow-100: #fcefdc;
|
|
99
|
+
--mds-color-yellow-200: #f9deb8;
|
|
100
|
+
--mds-color-yellow-300: #f6ce95;
|
|
101
|
+
--mds-color-yellow-400: #f3bd71;
|
|
102
|
+
--mds-color-yellow-500: #f0ad4e;
|
|
103
|
+
--mds-color-yellow-600: #c08a3e;
|
|
104
|
+
--mds-color-yellow-700: #90682f;
|
|
105
|
+
--mds-color-yellow-800: #60451f;
|
|
106
|
+
--mds-color-yellow-900: #302310;
|
|
107
|
+
--mds-scale-0: 0rem;
|
|
108
|
+
--mds-scale-50: 0.125rem;
|
|
109
|
+
--mds-scale-100: 0.25rem;
|
|
110
|
+
--mds-scale-200: 0.375rem;
|
|
111
|
+
--mds-scale-300: 0.5rem;
|
|
112
|
+
--mds-scale-400: 0.75rem;
|
|
113
|
+
--mds-scale-500: 0.875rem;
|
|
114
|
+
--mds-scale-600: 1rem;
|
|
115
|
+
--mds-scale-700: 1.25rem;
|
|
116
|
+
--mds-scale-800: 1.5rem;
|
|
117
|
+
--mds-scale-900: 1.75rem;
|
|
118
|
+
--mds-scale-1000: 2rem;
|
|
119
|
+
--mds-scale-1100: 2.5rem;
|
|
120
|
+
--mds-scale-1200: 3rem;
|
|
121
|
+
--mds-scale-1300: 3.5rem;
|
|
122
|
+
--mds-scale-1400: 4rem;
|
|
123
|
+
--mds-scale-1500: 4.5rem;
|
|
124
|
+
--mds-scale-1600: 5rem;
|
|
125
|
+
--mds-scale-1700: 6rem;
|
|
126
|
+
--mds-scale-1800: 50rem;
|
|
127
|
+
--mds-typography-font-family-monospace: Menlo;
|
|
128
|
+
--mds-typography-font-family-sans-serif: Roboto;
|
|
129
|
+
--mds-typography-font-size-0: 0rem;
|
|
130
|
+
--mds-typography-font-size-1: 1rem;
|
|
131
|
+
--mds-typography-font-size-2: 2rem;
|
|
132
|
+
--mds-typography-font-size-0-875: 0.875rem;
|
|
133
|
+
--mds-typography-font-size-1-25: 1.25rem;
|
|
134
|
+
--mds-typography-font-size-1-5: 1.5rem;
|
|
135
|
+
--mds-typography-font-size-1-75: 1.75rem;
|
|
136
|
+
--mds-typography-font-size-2-5: 2.5rem;
|
|
137
|
+
--mds-typography-font-weight-black: 900;
|
|
138
|
+
--mds-typography-font-weight-bold: 700;
|
|
139
|
+
--mds-typography-font-weight-extrabold: 800;
|
|
140
|
+
--mds-typography-font-weight-extralight: 200;
|
|
141
|
+
--mds-typography-font-weight-light: 300;
|
|
142
|
+
--mds-typography-font-weight-medium: 500;
|
|
143
|
+
--mds-typography-font-weight-regular: 400;
|
|
144
|
+
--mds-typography-font-weight-semibold: 600;
|
|
145
|
+
--mds-typography-font-weight-thin: 100;
|
|
146
|
+
--mds-typography-letter-spacing-none: 0rem; /** Default, no tracking */
|
|
147
|
+
--mds-typography-line-height-displays-d1: 6rem;
|
|
148
|
+
--mds-typography-line-height-displays-d2: 5.4rem;
|
|
149
|
+
--mds-typography-line-height-displays-d3: 4.8rem;
|
|
150
|
+
--mds-typography-line-height-displays-d4: 4.2rem;
|
|
151
|
+
--mds-typography-line-height-displays-d5: 3.6rem;
|
|
152
|
+
--mds-typography-line-height-displays-d6: 3rem;
|
|
153
|
+
--mds-typography-line-height-headings-h1: 3rem;
|
|
154
|
+
--mds-typography-line-height-headings-h2: 2.4rem;
|
|
155
|
+
--mds-typography-line-height-headings-h3: 2.1rem;
|
|
156
|
+
--mds-typography-line-height-headings-h4: 1.8rem;
|
|
157
|
+
--mds-typography-line-height-headings-h5: 1.5rem;
|
|
158
|
+
--mds-typography-line-height-headings-h6: 1.2rem;
|
|
159
|
+
--mds-typography-line-height-paragraph-base: 1.5rem;
|
|
160
|
+
--mds-typography-line-height-paragraph-lg: 2.5rem;
|
|
161
|
+
--mds-typography-line-height-paragraph-sm: 1.0875rem;
|
|
162
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-color-lg: rgba(0, 0, 0, 0.2);
|
|
7
|
+
--mds-color-md: rgba(0, 0, 0, 0.2);
|
|
8
|
+
--mds-color-sm: rgba(0, 0, 0, 0.1);
|
|
9
|
+
--mds-blur-lg: var(--mds-scale-1200);
|
|
10
|
+
--mds-blur-md: var(--mds-scale-600);
|
|
11
|
+
--mds-blur-sm: var(--mds-scale-100);
|
|
12
|
+
--mds-offset-lg: var(--mds-scale-600);
|
|
13
|
+
--mds-offset-md: var(--mds-scale-300);
|
|
14
|
+
--mds-offset-sm: var(--mds-scale-50);
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-icons-lg: var(--mds-scale-700);
|
|
7
|
+
--mds-icons-md: var(--mds-scale-600);
|
|
8
|
+
--mds-icons-sm: var(--mds-scale-400);
|
|
9
|
+
--mds-icons-xl: var(--mds-scale-800);
|
|
10
|
+
--mds-icons-xs: var(--mds-scale-300);
|
|
11
|
+
--mds-icons-xxl: var(--mds-scale-1000);
|
|
12
|
+
--mds-icons-xxxl: var(--mds-scale-1200);
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-spacing-lg: var(--mds-scale-700);
|
|
7
|
+
--mds-spacing-md: var(--mds-scale-600);
|
|
8
|
+
--mds-spacing-none: var(--mds-scale-0);
|
|
9
|
+
--mds-spacing-sm: var(--mds-scale-400);
|
|
10
|
+
--mds-spacing-xl: var(--mds-scale-1000);
|
|
11
|
+
--mds-spacing-xs: var(--mds-scale-300);
|
|
12
|
+
--mds-spacing-xxl: var(--mds-scale-1200);
|
|
13
|
+
--mds-spacing-xxs: var(--mds-scale-100);
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--mds-font-family-base: var(--mds-typography-font-family-sans-serif); /** Default typeface for all UI text. Ensures global consistency. */
|
|
7
|
+
--mds-font-family-code: var(--mds-typography-font-family-monospace); /** Typeface for code, preformatted text, or monospace contexts. */
|
|
8
|
+
--mds-font-size-displays-1: var(--mds-scale-1600); /** Display style, largest. */
|
|
9
|
+
--mds-font-size-displays-2: var(--mds-scale-1500); /** Display style, extra-large. */
|
|
10
|
+
--mds-font-size-displays-3: var(--mds-scale-1400); /** Display style, large. */
|
|
11
|
+
--mds-font-size-displays-4: var(--mds-scale-1300); /** Display style, medium-large. */
|
|
12
|
+
--mds-font-size-displays-5: var(--mds-scale-1200); /** Display style, medium. */
|
|
13
|
+
--mds-font-size-displays-6: var(--mds-scale-1100); /** Display style, smaller display. */
|
|
14
|
+
--mds-font-size-headings-1: var(--mds-typography-font-size-2-5); /** Font size for H1 headings. */
|
|
15
|
+
--mds-font-size-headings-2: var(--mds-typography-font-size-2); /** Font size for H2 headings. */
|
|
16
|
+
--mds-font-size-headings-3: var(--mds-typography-font-size-1-75); /** Font size for H3 headings. */
|
|
17
|
+
--mds-font-size-headings-4: var(--mds-typography-font-size-1-5); /** Font size for H4 headings. */
|
|
18
|
+
--mds-font-size-headings-5: var(--mds-typography-font-size-1-25); /** Font size for H5 headings. */
|
|
19
|
+
--mds-font-size-headings-6: var(--mds-typography-font-size-1); /** Font size for H6 headings. */
|
|
20
|
+
--mds-font-size-paragraph-default: var(--mds-typography-font-size-1); /** Base size for body text. */
|
|
21
|
+
--mds-font-size-paragraph-lead: var(--mds-typography-font-size-1-25); /** Slightly larger body text, for lead paragraphs. */
|
|
22
|
+
--mds-font-size-paragraph-small: var(--mds-typography-font-size-0-875); /** Reduced size for secondary text. */
|
|
23
|
+
--mds-font-weight-bold: var(--mds-typography-font-weight-bold);
|
|
24
|
+
--mds-font-weight-light: var(--mds-typography-font-weight-light);
|
|
25
|
+
--mds-font-weight-medium: var(--mds-typography-font-weight-medium);
|
|
26
|
+
--mds-font-weight-regular: var(--mds-typography-font-weight-regular);
|
|
27
|
+
--mds-font-weight-semibold: var(--mds-typography-font-weight-semibold);
|
|
28
|
+
--mds-letter-spacing-default: var(--mds-typography-letter-spacing-none); /** Standard tracking for all texts. */
|
|
29
|
+
--mds-line-height-displays-1: var(--mds-typography-line-height-displays-d1);
|
|
30
|
+
--mds-line-height-displays-2: var(--mds-typography-line-height-displays-d2);
|
|
31
|
+
--mds-line-height-displays-3: var(--mds-typography-line-height-displays-d3);
|
|
32
|
+
--mds-line-height-displays-4: var(--mds-typography-line-height-displays-d4);
|
|
33
|
+
--mds-line-height-displays-5: var(--mds-typography-line-height-displays-d5);
|
|
34
|
+
--mds-line-height-displays-6: var(--mds-typography-line-height-displays-d6);
|
|
35
|
+
--mds-line-height-headings-1: var(--mds-typography-line-height-headings-h1); /** Tight line height for headings. */
|
|
36
|
+
--mds-line-height-headings-2: var(--mds-typography-line-height-headings-h2); /** Tight line height for headings. */
|
|
37
|
+
--mds-line-height-headings-3: var(--mds-typography-line-height-headings-h3); /** Tight line height for headings. */
|
|
38
|
+
--mds-line-height-headings-4: var(--mds-typography-line-height-headings-h4); /** Tight line height for headings. */
|
|
39
|
+
--mds-line-height-headings-5: var(--mds-typography-line-height-headings-h5); /** Tight line height for headings. */
|
|
40
|
+
--mds-line-height-headings-6: var(--mds-typography-line-height-headings-h6); /** Tight line height for headings. */
|
|
41
|
+
--mds-line-height-paragraph-default: var(--mds-typography-line-height-paragraph-base); /** Comfortable line height for paragraphs. */
|
|
42
|
+
--mds-line-height-paragraph-lead: var(--mds-typography-line-height-paragraph-lg); /** Extended line height for large body text. */
|
|
43
|
+
--mds-line-height-paragraph-small: var(--mds-typography-line-height-paragraph-sm); /** Compact line height for small text. */
|
|
44
|
+
--mds-margin-bottom-display: var(--mds-spacing-none); /** Default margin below a Displays. */
|
|
45
|
+
--mds-margin-bottom-heading: var(--mds-spacing-xs); /** Default margin below a Headings. */
|
|
46
|
+
--mds-margin-bottom-paragraph: var(--mds-spacing-md); /** Default margin below a paragraph. */
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
// THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
|
|
4
|
+
$mds-border-radius-lg: 0.5rem;
|
|
5
|
+
$mds-border-radius-md: 0.375rem;
|
|
6
|
+
$mds-border-radius-none: 0rem;
|
|
7
|
+
$mds-border-radius-pill: 50rem;
|
|
8
|
+
$mds-border-radius-sm: 0.25rem;
|
|
9
|
+
$mds-border-radius-xl: 1rem;
|
|
10
|
+
$mds-border-radius-xxl: 2rem;
|
|
11
|
+
$mds-stroke-weight-lg: 0.1875rem;
|
|
12
|
+
$mds-stroke-weight-md: 0.125rem;
|
|
13
|
+
$mds-stroke-weight-sm: 0.0625rem;
|
|
14
|
+
$mds-stroke-weight-xl: 0.25rem;
|
|
15
|
+
$mds-stroke-weight-xxl: 0.3125rem;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
// THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
|
|
4
|
+
$mds-bg-feedback-danger-default: #ca3120;
|
|
5
|
+
$mds-bg-feedback-danger-subtle: #f4d6d2;
|
|
6
|
+
$mds-bg-feedback-info-default: #008196;
|
|
7
|
+
$mds-bg-feedback-info-subtle: #cce6ea;
|
|
8
|
+
$mds-bg-feedback-primary-default: #0f6cbf;
|
|
9
|
+
$mds-bg-feedback-primary-subtle: #cfe2f2;
|
|
10
|
+
$mds-bg-feedback-secondary-subtle: #f8f9fa;
|
|
11
|
+
$mds-bg-feedback-success-default: #357a32;
|
|
12
|
+
$mds-bg-feedback-success-subtle: #d7e4d6;
|
|
13
|
+
$mds-bg-feedback-warning-default: #f0ad4e;
|
|
14
|
+
$mds-bg-feedback-warning-subtle: #fcefdc;
|
|
15
|
+
$mds-bg-interactive-danger-active: #791d13;
|
|
16
|
+
$mds-bg-interactive-danger-default: #ca3120;
|
|
17
|
+
$mds-bg-interactive-danger-disabled: #df8379;
|
|
18
|
+
$mds-bg-interactive-danger-hover: #a2271a;
|
|
19
|
+
$mds-bg-interactive-primary-active: #094173;
|
|
20
|
+
$mds-bg-interactive-primary-default: #0f6cbf;
|
|
21
|
+
$mds-bg-interactive-primary-disabled: #6fa7d9;
|
|
22
|
+
$mds-bg-interactive-primary-hover: #0c5699;
|
|
23
|
+
$mds-bg-interactive-secondary-active: #ced4da;
|
|
24
|
+
$mds-bg-interactive-secondary-default: #ced4da;
|
|
25
|
+
$mds-bg-interactive-secondary-disabled: #e9ecef;
|
|
26
|
+
$mds-bg-interactive-secondary-hover: #dee2e6;
|
|
27
|
+
$mds-bg-surface-default: #ffffff;
|
|
28
|
+
$mds-bg-surface-strong: #e9ecef;
|
|
29
|
+
$mds-bg-surface-subtle: #f8f9fa;
|
|
30
|
+
$mds-border-default: #dee2e6;
|
|
31
|
+
$mds-border-feedback-danger: #eaada6;
|
|
32
|
+
$mds-border-feedback-info: #99cdd5;
|
|
33
|
+
$mds-border-feedback-primary: #9fc4e5;
|
|
34
|
+
$mds-border-feedback-secondary: #e9ecef;
|
|
35
|
+
$mds-border-feedback-success: #aecaad;
|
|
36
|
+
$mds-border-feedback-warning: #f9deb8;
|
|
37
|
+
$mds-border-interactive-danger-active: #a2271a;
|
|
38
|
+
$mds-border-interactive-danger-default: #ca3120;
|
|
39
|
+
$mds-border-interactive-danger-disabled: #df8379;
|
|
40
|
+
$mds-border-interactive-danger-hover: #ca3120;
|
|
41
|
+
$mds-border-interactive-primary-active: #0c5699;
|
|
42
|
+
$mds-border-interactive-primary-default: #0f6cbf;
|
|
43
|
+
$mds-border-interactive-primary-disabled: #6fa7d9;
|
|
44
|
+
$mds-border-interactive-primary-hover: #0f6cbf;
|
|
45
|
+
$mds-border-interactive-secondary-active: #495057;
|
|
46
|
+
$mds-border-interactive-secondary-default: #6a737b;
|
|
47
|
+
$mds-border-interactive-secondary-disabled: #8f959e;
|
|
48
|
+
$mds-border-interactive-secondary-hover: #6a737b;
|
|
49
|
+
$mds-border-subtle: #e9ecef;
|
|
50
|
+
$mds-border-translucent: rgba(0, 0, 0, 0);
|
|
51
|
+
$mds-focus-default: #0f6cbf;
|
|
52
|
+
$mds-text-danger: #ca3120;
|
|
53
|
+
$mds-text-default: #1d2125;
|
|
54
|
+
$mds-text-emphasis: #000000;
|
|
55
|
+
$mds-text-feedback-danger: #51140d;
|
|
56
|
+
$mds-text-feedback-info: #00343c;
|
|
57
|
+
$mds-text-feedback-primary: #062b4c;
|
|
58
|
+
$mds-text-feedback-secondary: #343a40;
|
|
59
|
+
$mds-text-feedback-success: #153114;
|
|
60
|
+
$mds-text-feedback-warning: #60451f;
|
|
61
|
+
$mds-text-inverse: #f8f9fa;
|
|
62
|
+
$mds-text-link-primary-default: #0f6cbf;
|
|
63
|
+
$mds-text-link-primary-hover: #0c5699;
|
|
64
|
+
$mds-text-muted: #6a737b;
|
|
65
|
+
$mds-text-subtle: #495057;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
|
|
2
|
+
// THIS FILE IS AUTO-GENERATED BY STYLE DICTIONARY — DO NOT EDIT DIRECTLY.
|
|
3
|
+
// Tags: [MDS_LEGACY_SCSSPHP_COMPAT]
|
|
4
|
+
|
|
5
|
+
@import "_borders.scss";
|
|
6
|
+
@import "_colors.scss";
|
|
7
|
+
@import "_primitives.scss";
|
|
8
|
+
@import "_shadows.scss";
|
|
9
|
+
@import "_sizes.scss";
|
|
10
|
+
@import "_spacing.scss";
|
|
11
|
+
@import "_typography.scss";
|