@amsterdam/design-system-tokens 0.9.0 → 0.11.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/CHANGELOG.md +34 -0
- package/build.js +15 -14
- package/dist/compact.css +13 -9
- package/dist/compact.d.ts +10 -12
- package/dist/compact.json +12 -7
- package/dist/compact.mjs +13 -9
- package/dist/compact.scss +13 -9
- package/dist/compact.theme.css +13 -9
- package/dist/index.css +145 -108
- package/dist/index.d.ts +96 -41
- package/dist/index.json +254 -192
- package/dist/index.mjs +223 -186
- package/dist/index.scss +145 -108
- package/dist/index.theme.css +145 -108
- package/package.json +3 -2
- package/src/brand/ams/proportion.tokens.json +3 -3
- package/src/brand/ams/space.compact.tokens.json +5 -0
- package/src/brand/ams/space.tokens.json +10 -19
- package/src/brand/ams/text.compact.tokens.json +7 -7
- package/src/brand/ams/text.tokens.json +7 -7
- package/src/components/ams/accordion.tokens.json +4 -4
- package/src/components/ams/alert.tokens.json +6 -3
- package/src/components/ams/avatar.tokens.json +26 -6
- package/src/components/ams/badge.tokens.json +1 -1
- package/src/components/ams/breadcrumb.tokens.json +4 -1
- package/src/components/ams/button.tokens.json +3 -3
- package/src/components/ams/card.tokens.json +4 -0
- package/src/components/ams/{form-field-character-counter.tokens.json → character-count.tokens.json} +1 -1
- package/src/components/ams/checkbox.tokens.json +1 -0
- package/src/components/ams/column.tokens.json +6 -5
- package/src/components/ams/date-input.tokens.json +2 -2
- package/src/components/ams/description-list.tokens.json +3 -3
- package/src/components/ams/dialog.tokens.json +8 -7
- package/src/components/ams/field-set.tokens.json +3 -7
- package/src/components/ams/field.tokens.json +3 -9
- package/src/components/ams/file-input.tokens.json +5 -5
- package/src/components/ams/form-error-list.tokens.json +7 -0
- package/src/components/ams/header.tokens.json +1 -1
- package/src/components/ams/link-list.tokens.json +2 -2
- package/src/components/ams/mega-menu.tokens.json +1 -1
- package/src/components/ams/ordered-list.tokens.json +1 -1
- package/src/components/ams/page-menu.tokens.json +1 -1
- package/src/components/ams/pagination.tokens.json +2 -1
- package/src/components/ams/radio.tokens.json +1 -0
- package/src/components/ams/row.tokens.json +6 -5
- package/src/components/ams/search-field.tokens.json +4 -4
- package/src/components/ams/select.tokens.json +3 -3
- package/src/components/ams/skip-link.tokens.json +2 -2
- package/src/components/ams/table-of-contents.tokens.json +34 -0
- package/src/components/ams/table.tokens.json +2 -2
- package/src/components/ams/tabs.tokens.json +3 -2
- package/src/components/ams/text-area.tokens.json +2 -2
- package/src/components/ams/text-input.tokens.json +2 -2
- package/src/components/ams/time-input.tokens.json +2 -2
- package/src/components/ams/top-task-link.tokens.json +1 -0
- package/src/components/ams/unordered-list.tokens.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,40 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.11.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.10.0...design-system-tokens-v0.11.0) (2024-07-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* Rename Form Field Character Counter to Character Count ([#1363](https://github.com/Amsterdam/design-system/issues/1363))
|
|
12
|
+
* Improve sizing behaviour of Dialog ([#1329](https://github.com/Amsterdam/design-system/issues/1329))
|
|
13
|
+
* Merge ‘stack’ and ‘inside’ space categories and update components ([#1267](https://github.com/Amsterdam/design-system/issues/1267))
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* Add focus on initial render to Form Error List ([#1328](https://github.com/Amsterdam/design-system/issues/1328)) ([09387b7](https://github.com/Amsterdam/design-system/commit/09387b7b7d5f03a7422910314de4ae4d0ccbb983))
|
|
18
|
+
* Apply default gap in Row and Column without extra class ([#1422](https://github.com/Amsterdam/design-system/issues/1422)) ([3af0b1f](https://github.com/Amsterdam/design-system/commit/3af0b1fb40ca941fd3966d08e6afe18995e6d02f))
|
|
19
|
+
* Decrease space length in Compact Mode ([#1307](https://github.com/Amsterdam/design-system/issues/1307)) ([27af2a6](https://github.com/Amsterdam/design-system/commit/27af2a62df5304bb5d80324b235463a4409071b5))
|
|
20
|
+
* Decrease text size in Compact Mode ([#1306](https://github.com/Amsterdam/design-system/issues/1306)) ([991efda](https://github.com/Amsterdam/design-system/commit/991efdafe7a19fa32049687a700ae7a5a2806f98))
|
|
21
|
+
* Improve sizing behaviour of Dialog ([#1329](https://github.com/Amsterdam/design-system/issues/1329)) ([a54d239](https://github.com/Amsterdam/design-system/commit/a54d239e2aff832bc15f8f90ea8880c02fa0d6ce))
|
|
22
|
+
* Merge ‘stack’ and ‘inside’ space categories and update components ([#1267](https://github.com/Amsterdam/design-system/issues/1267)) ([a0de626](https://github.com/Amsterdam/design-system/commit/a0de626d4fbdc9e0eac71492d544d35ad4dc8769))
|
|
23
|
+
* Remove fluidity from body text and spacing in Compact Mode ([#1389](https://github.com/Amsterdam/design-system/issues/1389)) ([050b063](https://github.com/Amsterdam/design-system/commit/050b063ba968d4c4657611293f3d3798f0fd02de))
|
|
24
|
+
* Rename Form Field Character Counter to Character Count ([#1363](https://github.com/Amsterdam/design-system/issues/1363)) ([a5299db](https://github.com/Amsterdam/design-system/commit/a5299dbfb3659bada5565893be63f615b511c0ee))
|
|
25
|
+
* Use flexbox and regular space in Column as we do in Row ([#1388](https://github.com/Amsterdam/design-system/issues/1388)) ([86d693c](https://github.com/Amsterdam/design-system/commit/86d693cf75be205cd096abe339cdd3f97e9b1a2f))
|
|
26
|
+
|
|
27
|
+
## [0.10.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.9.0...design-system-tokens-v0.10.0) (2024-06-28)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### ⚠ BREAKING CHANGES
|
|
31
|
+
|
|
32
|
+
* Allow additional background colours for Avatar and remove dark blue option ([#1257](https://github.com/Amsterdam/design-system/issues/1257))
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* Add Table of Contents component ([#1248](https://github.com/Amsterdam/design-system/issues/1248)) ([1f4c09a](https://github.com/Amsterdam/design-system/commit/1f4c09a08d2aa96d1c584eceb498d33c31aa52ad))
|
|
37
|
+
* Allow additional background colours for Avatar and remove dark blue option ([#1257](https://github.com/Amsterdam/design-system/issues/1257)) ([a1a3c8f](https://github.com/Amsterdam/design-system/commit/a1a3c8fc58f249f0cd9c7d8bd09cc46f3f48cb5c))
|
|
38
|
+
* Change values for tall, wide, and extra wide aspect ratios ([#1254](https://github.com/Amsterdam/design-system/issues/1254)) ([478508a](https://github.com/Amsterdam/design-system/commit/478508a758f311b89dfb8214813b25e50d875ff0))
|
|
39
|
+
|
|
6
40
|
## [0.9.0](https://github.com/Amsterdam/design-system/compare/design-system-tokens-v0.8.0...design-system-tokens-v0.9.0) (2024-06-05)
|
|
7
41
|
|
|
8
42
|
|
package/build.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import StyleDictionary from 'style-dictionary'
|
|
2
2
|
|
|
3
3
|
const modes = ['compact']
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ function generateSharedConfig(mode) {
|
|
|
7
7
|
|
|
8
8
|
return {
|
|
9
9
|
css: {
|
|
10
|
-
transforms: ['attribute/cti', 'name/
|
|
10
|
+
transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
|
|
11
11
|
transformGroup: 'css',
|
|
12
12
|
buildPath: 'dist/',
|
|
13
13
|
files: [
|
|
@@ -21,7 +21,7 @@ function generateSharedConfig(mode) {
|
|
|
21
21
|
],
|
|
22
22
|
},
|
|
23
23
|
cssTheme: {
|
|
24
|
-
transforms: ['attribute/cti', 'name/
|
|
24
|
+
transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
|
|
25
25
|
buildPath: 'dist/',
|
|
26
26
|
files: [
|
|
27
27
|
{
|
|
@@ -35,7 +35,7 @@ function generateSharedConfig(mode) {
|
|
|
35
35
|
],
|
|
36
36
|
},
|
|
37
37
|
js: {
|
|
38
|
-
transforms: ['attribute/cti', 'name/
|
|
38
|
+
transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
|
|
39
39
|
buildPath: 'dist/',
|
|
40
40
|
files: [
|
|
41
41
|
{
|
|
@@ -45,7 +45,7 @@ function generateSharedConfig(mode) {
|
|
|
45
45
|
],
|
|
46
46
|
},
|
|
47
47
|
json: {
|
|
48
|
-
transforms: ['attribute/cti', 'name/
|
|
48
|
+
transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
|
|
49
49
|
buildPath: 'dist/',
|
|
50
50
|
files: [
|
|
51
51
|
{
|
|
@@ -55,7 +55,7 @@ function generateSharedConfig(mode) {
|
|
|
55
55
|
],
|
|
56
56
|
},
|
|
57
57
|
scss: {
|
|
58
|
-
transforms: ['attribute/cti', 'name/
|
|
58
|
+
transforms: ['attribute/cti', 'name/kebab', 'color/hsl-4'],
|
|
59
59
|
buildPath: 'dist/',
|
|
60
60
|
files: [
|
|
61
61
|
{
|
|
@@ -68,7 +68,7 @@ function generateSharedConfig(mode) {
|
|
|
68
68
|
],
|
|
69
69
|
},
|
|
70
70
|
typescript: {
|
|
71
|
-
transforms: ['attribute/cti', 'name/
|
|
71
|
+
transforms: ['attribute/cti', 'name/camel', 'color/hsl-4'],
|
|
72
72
|
transformGroup: 'js',
|
|
73
73
|
buildPath: 'dist/',
|
|
74
74
|
files: [
|
|
@@ -81,19 +81,20 @@ function generateSharedConfig(mode) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
StyleDictionary.extend({
|
|
84
|
+
const defaultMode = new StyleDictionary({
|
|
86
85
|
source: [
|
|
87
86
|
// exclude non-default modes from source
|
|
88
87
|
`./src/**/!(*.${modes.join(`|*.`)}).tokens.json`,
|
|
89
88
|
],
|
|
90
89
|
platforms: generateSharedConfig(),
|
|
91
|
-
})
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
defaultMode.buildAllPlatforms()
|
|
92
93
|
|
|
93
|
-
modes.
|
|
94
|
-
|
|
95
|
-
StyleDictionary.extend({
|
|
94
|
+
modes.map((mode) => {
|
|
95
|
+
const styleDictionary = new StyleDictionary({
|
|
96
96
|
source: [`./src/**/*.${mode}.tokens.json`],
|
|
97
97
|
platforms: generateSharedConfig(mode),
|
|
98
|
-
})
|
|
98
|
+
})
|
|
99
|
+
return styleDictionary.buildAllPlatforms()
|
|
99
100
|
})
|
package/dist/compact.css
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 05 Jun 2024 11:22:11 GMT
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
:root {
|
|
7
|
-
--ams-text-level-6-font-size: clamp(0.
|
|
8
|
-
--ams-text-level-5-font-size:
|
|
9
|
-
--ams-text-level-4-font-size: clamp(1.
|
|
10
|
-
--ams-text-level-3-font-size: clamp(1.
|
|
11
|
-
--ams-text-level-2-font-size: clamp(1.
|
|
12
|
-
--ams-text-level-1-font-size: clamp(1.
|
|
13
|
-
--ams-text-level-0-font-size: clamp(1.
|
|
6
|
+
--ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
7
|
+
--ams-text-level-5-font-size: 1rem;
|
|
8
|
+
--ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
9
|
+
--ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
10
|
+
--ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
11
|
+
--ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
12
|
+
--ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
14
13
|
--ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
15
14
|
--ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
16
15
|
--ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
|
|
17
16
|
--ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
18
17
|
--ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
18
|
+
--ams-space-xl: 2rem;
|
|
19
|
+
--ams-space-lg: 1.5rem;
|
|
20
|
+
--ams-space-md: 1rem;
|
|
21
|
+
--ams-space-sm: 0.5rem;
|
|
22
|
+
--ams-space-xs: 0.25rem;
|
|
19
23
|
--ams-grid-padding-inline: var(--ams-space-grid-md);
|
|
20
24
|
}
|
package/dist/compact.d.ts
CHANGED
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 05 Jun 2024 11:22:11 GMT
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
export default tokens;
|
|
7
6
|
|
|
8
7
|
declare interface DesignToken {
|
|
9
|
-
value
|
|
10
|
-
|
|
8
|
+
value?: any;
|
|
9
|
+
type?: string;
|
|
11
10
|
comment?: string;
|
|
11
|
+
name?: string;
|
|
12
12
|
themeable?: boolean;
|
|
13
|
-
attributes?:
|
|
14
|
-
category?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
item?: string;
|
|
17
|
-
subitem?: string;
|
|
18
|
-
state?: string;
|
|
19
|
-
[key: string]: any;
|
|
20
|
-
};
|
|
13
|
+
attributes?: Record<string, unknown>;
|
|
21
14
|
[key: string]: any;
|
|
22
15
|
}
|
|
23
16
|
|
|
24
17
|
declare const tokens: {
|
|
25
18
|
"ams": {
|
|
26
19
|
"space": {
|
|
20
|
+
"xs": DesignToken,
|
|
21
|
+
"sm": DesignToken,
|
|
22
|
+
"md": DesignToken,
|
|
23
|
+
"lg": DesignToken,
|
|
24
|
+
"xl": DesignToken,
|
|
27
25
|
"grid": {
|
|
28
26
|
"xs": DesignToken,
|
|
29
27
|
"sm": DesignToken,
|
package/dist/compact.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"ams": {
|
|
3
3
|
"space": {
|
|
4
|
+
"xs": "0.25rem",
|
|
5
|
+
"sm": "0.5rem",
|
|
6
|
+
"md": "1rem",
|
|
7
|
+
"lg": "1.5rem",
|
|
8
|
+
"xl": "2rem",
|
|
4
9
|
"grid": {
|
|
5
10
|
"xs": "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)",
|
|
6
11
|
"sm": "clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem)",
|
|
@@ -12,25 +17,25 @@
|
|
|
12
17
|
"text": {
|
|
13
18
|
"level": {
|
|
14
19
|
"0": {
|
|
15
|
-
"font-size": "clamp(1.
|
|
20
|
+
"font-size": "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)"
|
|
16
21
|
},
|
|
17
22
|
"1": {
|
|
18
|
-
"font-size": "clamp(1.
|
|
23
|
+
"font-size": "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)"
|
|
19
24
|
},
|
|
20
25
|
"2": {
|
|
21
|
-
"font-size": "clamp(1.
|
|
26
|
+
"font-size": "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)"
|
|
22
27
|
},
|
|
23
28
|
"3": {
|
|
24
|
-
"font-size": "clamp(1.
|
|
29
|
+
"font-size": "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)"
|
|
25
30
|
},
|
|
26
31
|
"4": {
|
|
27
|
-
"font-size": "clamp(1.
|
|
32
|
+
"font-size": "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)"
|
|
28
33
|
},
|
|
29
34
|
"5": {
|
|
30
|
-
"font-size": "
|
|
35
|
+
"font-size": "1rem"
|
|
31
36
|
},
|
|
32
37
|
"6": {
|
|
33
|
-
"font-size": "clamp(0.
|
|
38
|
+
"font-size": "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)"
|
|
34
39
|
}
|
|
35
40
|
}
|
|
36
41
|
},
|
package/dist/compact.mjs
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 05 Jun 2024 11:22:11 GMT
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
3
|
*/
|
|
5
4
|
|
|
5
|
+
export const amsSpaceXs = "0.25rem";
|
|
6
|
+
export const amsSpaceSm = "0.5rem";
|
|
7
|
+
export const amsSpaceMd = "1rem";
|
|
8
|
+
export const amsSpaceLg = "1.5rem";
|
|
9
|
+
export const amsSpaceXl = "2rem";
|
|
6
10
|
export const amsSpaceGridXs = "clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem)";
|
|
7
11
|
export const amsSpaceGridSm = "clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem)";
|
|
8
12
|
export const amsSpaceGridMd = "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)"; // Grows from 16px at 1088px wide to 40px at 2624px wide.
|
|
9
13
|
export const amsSpaceGridLg = "clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem)";
|
|
10
14
|
export const amsSpaceGridXl = "clamp(2rem, calc(3.125vw - 0.125rem), 5rem)";
|
|
11
|
-
export const amsTextLevel0FontSize = "clamp(1.
|
|
12
|
-
export const amsTextLevel1FontSize = "clamp(1.
|
|
13
|
-
export const amsTextLevel2FontSize = "clamp(1.
|
|
14
|
-
export const amsTextLevel3FontSize = "clamp(1.
|
|
15
|
-
export const amsTextLevel4FontSize = "clamp(1.
|
|
16
|
-
export const amsTextLevel5FontSize = "
|
|
17
|
-
export const amsTextLevel6FontSize = "clamp(0.
|
|
15
|
+
export const amsTextLevel0FontSize = "clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem)";
|
|
16
|
+
export const amsTextLevel1FontSize = "clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem)";
|
|
17
|
+
export const amsTextLevel2FontSize = "clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem)";
|
|
18
|
+
export const amsTextLevel3FontSize = "clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem)";
|
|
19
|
+
export const amsTextLevel4FontSize = "clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem)";
|
|
20
|
+
export const amsTextLevel5FontSize = "1rem";
|
|
21
|
+
export const amsTextLevel6FontSize = "clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem)";
|
|
18
22
|
export const amsGridPaddingInline = "clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem)";
|
package/dist/compact.scss
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
// Do not edit directly
|
|
3
|
-
// Generated on Wed, 05 Jun 2024 11:22:11 GMT
|
|
2
|
+
// Do not edit directly, this file was auto-generated.
|
|
4
3
|
|
|
5
|
-
$ams-text-level-6-font-size: clamp(0.
|
|
6
|
-
$ams-text-level-5-font-size:
|
|
7
|
-
$ams-text-level-4-font-size: clamp(1.
|
|
8
|
-
$ams-text-level-3-font-size: clamp(1.
|
|
9
|
-
$ams-text-level-2-font-size: clamp(1.
|
|
10
|
-
$ams-text-level-1-font-size: clamp(1.
|
|
11
|
-
$ams-text-level-0-font-size: clamp(1.
|
|
4
|
+
$ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
5
|
+
$ams-text-level-5-font-size: 1rem;
|
|
6
|
+
$ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
7
|
+
$ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
8
|
+
$ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
9
|
+
$ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
10
|
+
$ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
12
11
|
$ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
13
12
|
$ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
14
13
|
$ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); // Grows from 16px at 1088px wide to 40px at 2624px wide.
|
|
15
14
|
$ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
16
15
|
$ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
16
|
+
$ams-space-xl: 2rem;
|
|
17
|
+
$ams-space-lg: 1.5rem;
|
|
18
|
+
$ams-space-md: 1rem;
|
|
19
|
+
$ams-space-sm: 0.5rem;
|
|
20
|
+
$ams-space-xs: 0.25rem;
|
|
17
21
|
$ams-grid-padding-inline: $ams-space-grid-md;
|
package/dist/compact.theme.css
CHANGED
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Do not edit directly
|
|
3
|
-
* Generated on Wed, 05 Jun 2024 11:22:11 GMT
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
4
3
|
*/
|
|
5
4
|
|
|
6
5
|
.ams-theme--compact {
|
|
7
|
-
--ams-text-level-6-font-size: clamp(0.
|
|
8
|
-
--ams-text-level-5-font-size:
|
|
9
|
-
--ams-text-level-4-font-size: clamp(1.
|
|
10
|
-
--ams-text-level-3-font-size: clamp(1.
|
|
11
|
-
--ams-text-level-2-font-size: clamp(1.
|
|
12
|
-
--ams-text-level-1-font-size: clamp(1.
|
|
13
|
-
--ams-text-level-0-font-size: clamp(1.
|
|
6
|
+
--ams-text-level-6-font-size: clamp(0.8889rem, calc(0.9141rem + -0.0253vw), 0.9091rem);
|
|
7
|
+
--ams-text-level-5-font-size: 1rem;
|
|
8
|
+
--ams-text-level-4-font-size: clamp(1.1rem, calc(1.0938rem + 0.0313vw), 1.125rem);
|
|
9
|
+
--ams-text-level-3-font-size: clamp(1.21rem, calc(1.1961rem + 0.0695vw), 1.2656rem);
|
|
10
|
+
--ams-text-level-2-font-size: clamp(1.331rem, calc(1.3078rem + 0.116vw), 1.4238rem);
|
|
11
|
+
--ams-text-level-1-font-size: clamp(1.4641rem, calc(1.4297rem + 0.1721vw), 1.6018rem);
|
|
12
|
+
--ams-text-level-0-font-size: clamp(1.6105rem, calc(1.5626rem + 0.2394vw), 1.802rem);
|
|
14
13
|
--ams-space-grid-xl: clamp(2rem, calc(3.125vw - 0.125rem), 5rem);
|
|
15
14
|
--ams-space-grid-lg: clamp(1.5rem, calc(2.34375vw - 0.09375rem), 3.75rem);
|
|
16
15
|
--ams-space-grid-md: clamp(1rem, calc(1.5625vw - 0.0625rem), 2.5rem); /* Grows from 16px at 1088px wide to 40px at 2624px wide. */
|
|
17
16
|
--ams-space-grid-sm: clamp(0.5rem, calc(0.78125vw - 0.03125rem), 1.25rem);
|
|
18
17
|
--ams-space-grid-xs: clamp(0.25rem, calc(0.390625vw - 0.015625rem), 0.625rem);
|
|
18
|
+
--ams-space-xl: 2rem;
|
|
19
|
+
--ams-space-lg: 1.5rem;
|
|
20
|
+
--ams-space-md: 1rem;
|
|
21
|
+
--ams-space-sm: 0.5rem;
|
|
22
|
+
--ams-space-xs: 0.25rem;
|
|
19
23
|
--ams-grid-padding-inline: var(--ams-space-grid-md);
|
|
20
24
|
}
|