@canonical/design-tokens 0.0.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/terrazzo-lsp.mjs +2 -0
- package/dist/tokens.json +23 -23
- package/package.json +44 -7
- package/tokens/canonical/global/semantic/dimension/large.tokens.json +2 -1
- package/tokens/canonical/global/semantic/dimension/medium.tokens.json +2 -1
- package/tokens/canonical/global/semantic/modifier/anticipation/caution.tokens.json +8 -44
- package/tokens/canonical/global/semantic/modifier/anticipation/constructive.tokens.json +10 -55
- package/tokens/canonical/global/semantic/modifier/anticipation/destructive.tokens.json +10 -55
- package/tokens/canonical/global/semantic/modifier/criticality/error.tokens.json +12 -66
- package/tokens/canonical/global/semantic/modifier/criticality/information.tokens.json +8 -44
- package/tokens/canonical/global/semantic/modifier/criticality/success.tokens.json +12 -66
- package/tokens/canonical/global/semantic/modifier/criticality/warning.tokens.json +12 -66
- package/tokens/canonical/global/semantic/modifier/emphasis/branded.tokens.json +12 -66
- package/tokens/canonical/global/semantic/modifier/emphasis/muted.tokens.json +6 -33
- package/tokens/canonical/global/semantic/modifier/surface/layer1.tokens.json +30 -165
- package/tokens/canonical/global/semantic/modifier/surface/layer2.tokens.json +30 -165
- package/tokens/canonical/global/semantic/modifier/surface/layer3.tokens.json +30 -165
package/dist/tokens.json
CHANGED
|
@@ -21407,7 +21407,7 @@
|
|
|
21407
21407
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21408
21408
|
"derivedFrom": "--color-border-branded",
|
|
21409
21409
|
"derivation": "channel-modifier",
|
|
21410
|
-
"description": "Border color for
|
|
21410
|
+
"description": "Border color for elements that need to reflect the brand identity",
|
|
21411
21411
|
"declarations": [
|
|
21412
21412
|
{
|
|
21413
21413
|
"selector": ".constructive",
|
|
@@ -21519,7 +21519,7 @@
|
|
|
21519
21519
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21520
21520
|
"derivedFrom": "--color-foreground-ghost-branded",
|
|
21521
21521
|
"derivation": "channel-modifier",
|
|
21522
|
-
"description": "
|
|
21522
|
+
"description": "Fill color for branded ghost-style interactive elements that match the background in their default state",
|
|
21523
21523
|
"declarations": [
|
|
21524
21524
|
{
|
|
21525
21525
|
"selector": ".constructive",
|
|
@@ -21565,7 +21565,7 @@
|
|
|
21565
21565
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21566
21566
|
"derivedFrom": "--color-foreground-primary-branded",
|
|
21567
21567
|
"derivation": "channel-modifier",
|
|
21568
|
-
"description": "
|
|
21568
|
+
"description": "Fill color for primary interactive elements that need to reflect the brand identity",
|
|
21569
21569
|
"declarations": [
|
|
21570
21570
|
{
|
|
21571
21571
|
"selector": ".constructive",
|
|
@@ -21611,7 +21611,7 @@
|
|
|
21611
21611
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21612
21612
|
"derivedFrom": "--color-icon-branded",
|
|
21613
21613
|
"derivation": "channel-modifier",
|
|
21614
|
-
"description": "Icon
|
|
21614
|
+
"description": "Icon color for branded elements that need to reflect the brand identity",
|
|
21615
21615
|
"declarations": [
|
|
21616
21616
|
{
|
|
21617
21617
|
"selector": ".constructive",
|
|
@@ -21723,7 +21723,7 @@
|
|
|
21723
21723
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21724
21724
|
"derivedFrom": "--color-text-branded",
|
|
21725
21725
|
"derivation": "channel-modifier",
|
|
21726
|
-
"description": "
|
|
21726
|
+
"description": "Text color for branded elements that need to reflect the brand identity",
|
|
21727
21727
|
"declarations": [
|
|
21728
21728
|
{
|
|
21729
21729
|
"selector": ".constructive",
|
|
@@ -21835,7 +21835,7 @@
|
|
|
21835
21835
|
"cssOutputFile": "modifiers.emphasis.css",
|
|
21836
21836
|
"derivedFrom": "--color-foreground-secondary-branded",
|
|
21837
21837
|
"derivation": "channel-modifier",
|
|
21838
|
-
"description": "
|
|
21838
|
+
"description": "Fill color for secondary interactive elements that need to reflect the brand identity",
|
|
21839
21839
|
"declarations": [
|
|
21840
21840
|
{
|
|
21841
21841
|
"selector": ".caution",
|
|
@@ -21914,7 +21914,7 @@
|
|
|
21914
21914
|
"cssOutputFile": "modifiers.criticality.css",
|
|
21915
21915
|
"derivedFrom": "--color-focusRing-warning",
|
|
21916
21916
|
"derivation": "channel-modifier",
|
|
21917
|
-
"description": "
|
|
21917
|
+
"description": "Focus ring color for elements in a warning state",
|
|
21918
21918
|
"declarations": [
|
|
21919
21919
|
{
|
|
21920
21920
|
"selector": ".success",
|
|
@@ -21960,7 +21960,7 @@
|
|
|
21960
21960
|
"cssOutputFile": "modifiers.criticality.css",
|
|
21961
21961
|
"derivedFrom": "--color-foreground-input-warning",
|
|
21962
21962
|
"derivation": "channel-modifier",
|
|
21963
|
-
"description": "
|
|
21963
|
+
"description": "Fill color for input elements in a warning validation state",
|
|
21964
21964
|
"declarations": [
|
|
21965
21965
|
{
|
|
21966
21966
|
"selector": ".success",
|
|
@@ -22006,7 +22006,7 @@
|
|
|
22006
22006
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22007
22007
|
"derivedFrom": "--color-background-layer3",
|
|
22008
22008
|
"derivation": "channel-surface",
|
|
22009
|
-
"description": "Background
|
|
22009
|
+
"description": "Background color for surfaces nested within layer 2 (e.g., content sections within cards)",
|
|
22010
22010
|
"declarations": [
|
|
22011
22011
|
{
|
|
22012
22012
|
"selector": ".surface",
|
|
@@ -22052,7 +22052,7 @@
|
|
|
22052
22052
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22053
22053
|
"derivedFrom": "--color-foreground-checkbox-checkmark-layer3",
|
|
22054
22054
|
"derivation": "channel-surface",
|
|
22055
|
-
"description": "
|
|
22055
|
+
"description": "Fill color for the checkmark icon inside checkbox components placed on layer 3 backgrounds",
|
|
22056
22056
|
"declarations": [
|
|
22057
22057
|
{
|
|
22058
22058
|
"selector": ".surface",
|
|
@@ -22098,7 +22098,7 @@
|
|
|
22098
22098
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22099
22099
|
"derivedFrom": "--color-foreground-checkbox-unselected-layer3",
|
|
22100
22100
|
"derivation": "channel-surface",
|
|
22101
|
-
"description": "
|
|
22101
|
+
"description": "Fill color for the unselected checkbox container placed on layer 3 backgrounds",
|
|
22102
22102
|
"declarations": [
|
|
22103
22103
|
{
|
|
22104
22104
|
"selector": ".surface",
|
|
@@ -22144,7 +22144,7 @@
|
|
|
22144
22144
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22145
22145
|
"derivedFrom": "--color-foreground-ghost-layer3",
|
|
22146
22146
|
"derivation": "channel-surface",
|
|
22147
|
-
"description": "
|
|
22147
|
+
"description": "Fill color for ghost-style interactive elements placed on layer 3 backgrounds",
|
|
22148
22148
|
"declarations": [
|
|
22149
22149
|
{
|
|
22150
22150
|
"selector": ".surface",
|
|
@@ -22190,7 +22190,7 @@
|
|
|
22190
22190
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22191
22191
|
"derivedFrom": "--color-foreground-ghost-branded-layer3",
|
|
22192
22192
|
"derivation": "channel-surface",
|
|
22193
|
-
"description": "
|
|
22193
|
+
"description": "Fill color for branded ghost-style interactive elements placed on layer 3 backgrounds",
|
|
22194
22194
|
"declarations": [
|
|
22195
22195
|
{
|
|
22196
22196
|
"selector": ".surface",
|
|
@@ -22236,7 +22236,7 @@
|
|
|
22236
22236
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22237
22237
|
"derivedFrom": "--color-foreground-ghost-constructive-layer3",
|
|
22238
22238
|
"derivation": "channel-surface",
|
|
22239
|
-
"description": "
|
|
22239
|
+
"description": "Fill color for constructive ghost-style interactive elements placed on layer 3 backgrounds",
|
|
22240
22240
|
"declarations": [
|
|
22241
22241
|
{
|
|
22242
22242
|
"selector": ".surface",
|
|
@@ -22282,7 +22282,7 @@
|
|
|
22282
22282
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22283
22283
|
"derivedFrom": "--color-foreground-ghost-destructive-layer3",
|
|
22284
22284
|
"derivation": "channel-surface",
|
|
22285
|
-
"description": "
|
|
22285
|
+
"description": "Fill color for destructive ghost-style interactive elements placed on layer 3 backgrounds",
|
|
22286
22286
|
"declarations": [
|
|
22287
22287
|
{
|
|
22288
22288
|
"selector": ".surface",
|
|
@@ -22328,7 +22328,7 @@
|
|
|
22328
22328
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22329
22329
|
"derivedFrom": "--color-foreground-input-layer3",
|
|
22330
22330
|
"derivation": "channel-surface",
|
|
22331
|
-
"description": "
|
|
22331
|
+
"description": "Fill color for input elements placed on layer 3 backgrounds",
|
|
22332
22332
|
"declarations": [
|
|
22333
22333
|
{
|
|
22334
22334
|
"selector": ".surface",
|
|
@@ -22374,7 +22374,7 @@
|
|
|
22374
22374
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22375
22375
|
"derivedFrom": "--color-foreground-input-error-layer3",
|
|
22376
22376
|
"derivation": "channel-surface",
|
|
22377
|
-
"description": "
|
|
22377
|
+
"description": "Fill color for input elements in an error validation state placed on layer 3 backgrounds",
|
|
22378
22378
|
"declarations": [
|
|
22379
22379
|
{
|
|
22380
22380
|
"selector": ".surface",
|
|
@@ -22420,7 +22420,7 @@
|
|
|
22420
22420
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22421
22421
|
"derivedFrom": "--color-foreground-input-success-layer3",
|
|
22422
22422
|
"derivation": "channel-surface",
|
|
22423
|
-
"description": "
|
|
22423
|
+
"description": "Fill color for input elements in a success validation state placed on layer 3 backgrounds",
|
|
22424
22424
|
"declarations": [
|
|
22425
22425
|
{
|
|
22426
22426
|
"selector": ".surface",
|
|
@@ -22466,7 +22466,7 @@
|
|
|
22466
22466
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22467
22467
|
"derivedFrom": "--color-foreground-input-warning-layer3",
|
|
22468
22468
|
"derivation": "channel-surface",
|
|
22469
|
-
"description": "
|
|
22469
|
+
"description": "Fill color for input elements in a warning validation state placed on layer 3 backgrounds",
|
|
22470
22470
|
"declarations": [
|
|
22471
22471
|
{
|
|
22472
22472
|
"selector": ".surface",
|
|
@@ -22512,7 +22512,7 @@
|
|
|
22512
22512
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22513
22513
|
"derivedFrom": "--color-foreground-navigation-primary-layer3",
|
|
22514
22514
|
"derivation": "channel-surface",
|
|
22515
|
-
"description": "
|
|
22515
|
+
"description": "Fill color for primary navigation elements placed on layer 3 backgrounds",
|
|
22516
22516
|
"declarations": [
|
|
22517
22517
|
{
|
|
22518
22518
|
"selector": ".surface",
|
|
@@ -22558,7 +22558,7 @@
|
|
|
22558
22558
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22559
22559
|
"derivedFrom": "--color-foreground-radio-checkmark-layer3",
|
|
22560
22560
|
"derivation": "channel-surface",
|
|
22561
|
-
"description": "
|
|
22561
|
+
"description": "Fill color for the indicator dot inside radio button components placed on layer 3 backgrounds",
|
|
22562
22562
|
"declarations": [
|
|
22563
22563
|
{
|
|
22564
22564
|
"selector": ".surface",
|
|
@@ -22604,7 +22604,7 @@
|
|
|
22604
22604
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22605
22605
|
"derivedFrom": "--color-foreground-radio-unselected-layer3",
|
|
22606
22606
|
"derivation": "channel-surface",
|
|
22607
|
-
"description": "
|
|
22607
|
+
"description": "Fill color for the unselected radio button container placed on layer 3 backgrounds",
|
|
22608
22608
|
"declarations": [
|
|
22609
22609
|
{
|
|
22610
22610
|
"selector": ".surface",
|
|
@@ -22650,7 +22650,7 @@
|
|
|
22650
22650
|
"cssOutputFile": "modifiers.surfaces.css",
|
|
22651
22651
|
"derivedFrom": "--color-foreground-switch-knob-layer3",
|
|
22652
22652
|
"derivation": "channel-surface",
|
|
22653
|
-
"description": "
|
|
22653
|
+
"description": "Fill color for the knob of switch toggle components placed on layer 3 backgrounds",
|
|
22654
22654
|
"declarations": [
|
|
22655
22655
|
{
|
|
22656
22656
|
"selector": ".surface",
|
package/package.json
CHANGED
|
@@ -1,24 +1,61 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/design-tokens",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Canonical design tokens (DTCG format) with CSS custom property output.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "LGPL-3.0",
|
|
7
|
+
"author": {
|
|
8
|
+
"email": "webteam@canonical.com",
|
|
9
|
+
"name": "Canonical Webteam"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/canonical/design-tokens"
|
|
14
|
+
},
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/canonical/design-tokens/issues"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/canonical/design-tokens#readme",
|
|
19
|
+
"engines": {
|
|
20
|
+
"bun": ">=1.3",
|
|
21
|
+
"node": ">=22"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"design-tokens",
|
|
25
|
+
"css-custom-properties",
|
|
26
|
+
"canonical",
|
|
27
|
+
"dtcg"
|
|
28
|
+
],
|
|
7
29
|
"files": [
|
|
8
30
|
"dist",
|
|
9
|
-
"tokens"
|
|
31
|
+
"tokens",
|
|
32
|
+
"bin"
|
|
10
33
|
],
|
|
34
|
+
"bin": {
|
|
35
|
+
"terrazzo-lsp": "./bin/terrazzo-lsp.mjs"
|
|
36
|
+
},
|
|
11
37
|
"scripts": {
|
|
12
38
|
"build": "tz build",
|
|
13
39
|
"build:all": "bun run build",
|
|
14
|
-
"check": "bun run check:webarchitect",
|
|
15
|
-
"check:
|
|
40
|
+
"check": "bun run check:biome && bun run check:tokens && bun run check:webarchitect",
|
|
41
|
+
"check:biome": "biome check",
|
|
42
|
+
"check:biome:fix": "biome check --write",
|
|
43
|
+
"check:fix": "bun run check:biome:fix",
|
|
44
|
+
"check:tokens": "tz check",
|
|
45
|
+
"check:webarchitect": "webarchitect assets",
|
|
46
|
+
"test": "vitest run"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@canonical/terrazzo-lsp": "^0.2.0"
|
|
16
50
|
},
|
|
17
51
|
"devDependencies": {
|
|
18
|
-
"@canonical/terrazzo-plugin-css": "0.0
|
|
52
|
+
"@canonical/terrazzo-plugin-css": "^0.2.0",
|
|
19
53
|
"@canonical/webarchitect": "^0.17.1",
|
|
20
|
-
"@terrazzo/cli": "2.0.0
|
|
21
|
-
"@terrazzo/parser": "2.0.0
|
|
54
|
+
"@terrazzo/cli": "2.0.0",
|
|
55
|
+
"@terrazzo/parser": "2.0.0",
|
|
56
|
+
"ajv": "^8.17.0",
|
|
57
|
+
"ajv-formats": "^3.0.0",
|
|
58
|
+
"vitest": "^4.0.18"
|
|
22
59
|
},
|
|
23
60
|
"gitHead": "715800edd9e0cf4743af85aca438b37b08d55667"
|
|
24
61
|
}
|
|
@@ -3,57 +3,21 @@
|
|
|
3
3
|
"color": {
|
|
4
4
|
"foreground": {
|
|
5
5
|
"secondary": {
|
|
6
|
-
"$value": {
|
|
7
|
-
|
|
8
|
-
"components": [0.5, 0.3, 328],
|
|
9
|
-
"alpha": 1
|
|
10
|
-
},
|
|
11
|
-
"$extensions": {
|
|
12
|
-
"com.canonical.modifier": {
|
|
13
|
-
"aliasOf": "color.foreground.secondary.warning"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"$description": "Secondary interactive foreground color for less prominent actions"
|
|
6
|
+
"$value": "{color.foreground.secondary.warning.$root}",
|
|
7
|
+
"$description": "Fill color for secondary interactive elements conveying caution or potential issues"
|
|
17
8
|
}
|
|
18
9
|
},
|
|
19
10
|
"text": {
|
|
20
|
-
"$value": {
|
|
21
|
-
|
|
22
|
-
"components": [0.5, 0.3, 328],
|
|
23
|
-
"alpha": 1
|
|
24
|
-
},
|
|
25
|
-
"$extensions": {
|
|
26
|
-
"com.canonical.modifier": {
|
|
27
|
-
"aliasOf": "color.text.warning"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
"$description": "Body text color for readable content"
|
|
11
|
+
"$value": "{color.text.warning.$root}",
|
|
12
|
+
"$description": "Text color for conveying caution or potential issues"
|
|
31
13
|
},
|
|
32
14
|
"icon": {
|
|
33
|
-
"$value": {
|
|
34
|
-
|
|
35
|
-
"components": [0.5, 0.3, 328],
|
|
36
|
-
"alpha": 1
|
|
37
|
-
},
|
|
38
|
-
"$extensions": {
|
|
39
|
-
"com.canonical.modifier": {
|
|
40
|
-
"aliasOf": "color.icon.warning"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"$description": "Icon fill color for informational and decorative icons"
|
|
15
|
+
"$value": "{color.icon.warning.$root}",
|
|
16
|
+
"$description": "Icon color for conveying caution or potential issues"
|
|
44
17
|
},
|
|
45
18
|
"border": {
|
|
46
|
-
"$value": {
|
|
47
|
-
|
|
48
|
-
"components": [0.5, 0.3, 328],
|
|
49
|
-
"alpha": 1
|
|
50
|
-
},
|
|
51
|
-
"$extensions": {
|
|
52
|
-
"com.canonical.modifier": {
|
|
53
|
-
"aliasOf": "color.border.warning"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"$description": "Border color for containers and separators"
|
|
19
|
+
"$value": "{color.border.warning.$root}",
|
|
20
|
+
"$description": "Border color for elements conveying caution or potential issues that require attention"
|
|
57
21
|
},
|
|
58
22
|
"$type": "color"
|
|
59
23
|
},
|
|
@@ -3,70 +3,25 @@
|
|
|
3
3
|
"color": {
|
|
4
4
|
"foreground": {
|
|
5
5
|
"primary": {
|
|
6
|
-
"$value": {
|
|
7
|
-
|
|
8
|
-
"components": [0.5, 0.3, 328],
|
|
9
|
-
"alpha": 1
|
|
10
|
-
},
|
|
11
|
-
"$extensions": {
|
|
12
|
-
"com.canonical.modifier": {
|
|
13
|
-
"aliasOf": "color.foreground.primary.constructive"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"$description": "Primary interactive foreground color for buttons and actionable elements"
|
|
6
|
+
"$value": "{color.foreground.primary.constructive.$root}",
|
|
7
|
+
"$description": "Fill color for primary interactive elements that perform constructive actions such as save, submit, or confirm"
|
|
17
8
|
},
|
|
18
9
|
"ghost": {
|
|
19
|
-
"$value": {
|
|
20
|
-
|
|
21
|
-
"components": [0.5, 0.3, 328],
|
|
22
|
-
"alpha": 1
|
|
23
|
-
},
|
|
24
|
-
"$extensions": {
|
|
25
|
-
"com.canonical.modifier": {
|
|
26
|
-
"aliasOf": "color.foreground.ghost.constructive"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"$description": "Ghost-style foreground color for minimal-chrome interactive elements"
|
|
10
|
+
"$value": "{color.foreground.ghost.constructive.$root}",
|
|
11
|
+
"$description": "Fill color for constructive ghost-style interactive elements that match the background in their default state"
|
|
30
12
|
}
|
|
31
13
|
},
|
|
32
14
|
"text": {
|
|
33
|
-
"$value": {
|
|
34
|
-
|
|
35
|
-
"components": [0.5, 0.3, 328],
|
|
36
|
-
"alpha": 1
|
|
37
|
-
},
|
|
38
|
-
"$extensions": {
|
|
39
|
-
"com.canonical.modifier": {
|
|
40
|
-
"aliasOf": "color.text.constructive"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"$description": "Body text color for readable content"
|
|
15
|
+
"$value": "{color.text.constructive.$root}",
|
|
16
|
+
"$description": "Text color for constructive actions such as save, submit, or confirm"
|
|
44
17
|
},
|
|
45
18
|
"icon": {
|
|
46
|
-
"$value": {
|
|
47
|
-
|
|
48
|
-
"components": [0.5, 0.3, 328],
|
|
49
|
-
"alpha": 1
|
|
50
|
-
},
|
|
51
|
-
"$extensions": {
|
|
52
|
-
"com.canonical.modifier": {
|
|
53
|
-
"aliasOf": "color.icon.constructive"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"$description": "Icon fill color for informational and decorative icons"
|
|
19
|
+
"$value": "{color.icon.constructive.$root}",
|
|
20
|
+
"$description": "Icon color for constructive actions such as save, submit, or confirm"
|
|
57
21
|
},
|
|
58
22
|
"border": {
|
|
59
|
-
"$value": {
|
|
60
|
-
|
|
61
|
-
"components": [0.5, 0.3, 328],
|
|
62
|
-
"alpha": 1
|
|
63
|
-
},
|
|
64
|
-
"$extensions": {
|
|
65
|
-
"com.canonical.modifier": {
|
|
66
|
-
"aliasOf": "color.border.constructive"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"$description": "Border color for containers and separators"
|
|
23
|
+
"$value": "{color.border.constructive.$root}",
|
|
24
|
+
"$description": "Border color for elements indicating constructive or additive actions"
|
|
70
25
|
},
|
|
71
26
|
"$type": "color"
|
|
72
27
|
},
|
|
@@ -3,70 +3,25 @@
|
|
|
3
3
|
"color": {
|
|
4
4
|
"foreground": {
|
|
5
5
|
"primary": {
|
|
6
|
-
"$value": {
|
|
7
|
-
|
|
8
|
-
"components": [0.5, 0.3, 328],
|
|
9
|
-
"alpha": 1
|
|
10
|
-
},
|
|
11
|
-
"$extensions": {
|
|
12
|
-
"com.canonical.modifier": {
|
|
13
|
-
"aliasOf": "color.foreground.primary.destructive"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"$description": "Primary interactive foreground color for buttons and actionable elements"
|
|
6
|
+
"$value": "{color.foreground.primary.destructive.$root}",
|
|
7
|
+
"$description": "Fill color for primary interactive elements that perform destructive actions such as delete or remove"
|
|
17
8
|
},
|
|
18
9
|
"ghost": {
|
|
19
|
-
"$value": {
|
|
20
|
-
|
|
21
|
-
"components": [0.5, 0.3, 328],
|
|
22
|
-
"alpha": 1
|
|
23
|
-
},
|
|
24
|
-
"$extensions": {
|
|
25
|
-
"com.canonical.modifier": {
|
|
26
|
-
"aliasOf": "color.foreground.ghost.destructive"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"$description": "Ghost-style foreground color for minimal-chrome interactive elements"
|
|
10
|
+
"$value": "{color.foreground.ghost.destructive.$root}",
|
|
11
|
+
"$description": "Fill color for destructive ghost-style interactive elements that match the background in their default state"
|
|
30
12
|
}
|
|
31
13
|
},
|
|
32
14
|
"text": {
|
|
33
|
-
"$value": {
|
|
34
|
-
|
|
35
|
-
"components": [0.5, 0.3, 328],
|
|
36
|
-
"alpha": 1
|
|
37
|
-
},
|
|
38
|
-
"$extensions": {
|
|
39
|
-
"com.canonical.modifier": {
|
|
40
|
-
"aliasOf": "color.text.destructive"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"$description": "Body text color for readable content"
|
|
15
|
+
"$value": "{color.text.destructive.$root}",
|
|
16
|
+
"$description": "Text color for destructive actions such as delete or remove"
|
|
44
17
|
},
|
|
45
18
|
"icon": {
|
|
46
|
-
"$value": {
|
|
47
|
-
|
|
48
|
-
"components": [0.5, 0.3, 328],
|
|
49
|
-
"alpha": 1
|
|
50
|
-
},
|
|
51
|
-
"$extensions": {
|
|
52
|
-
"com.canonical.modifier": {
|
|
53
|
-
"aliasOf": "color.icon.destructive"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"$description": "Icon fill color for informational and decorative icons"
|
|
19
|
+
"$value": "{color.icon.destructive.$root}",
|
|
20
|
+
"$description": "Icon color for destructive actions such as delete or remove"
|
|
57
21
|
},
|
|
58
22
|
"border": {
|
|
59
|
-
"$value": {
|
|
60
|
-
|
|
61
|
-
"components": [0.5, 0.3, 328],
|
|
62
|
-
"alpha": 1
|
|
63
|
-
},
|
|
64
|
-
"$extensions": {
|
|
65
|
-
"com.canonical.modifier": {
|
|
66
|
-
"aliasOf": "color.border.destructive"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"$description": "Border color for containers and separators"
|
|
23
|
+
"$value": "{color.border.destructive.$root}",
|
|
24
|
+
"$description": "Border color for elements indicating destructive or irreversible actions"
|
|
70
25
|
},
|
|
71
26
|
"$type": "color"
|
|
72
27
|
},
|
|
@@ -3,83 +3,29 @@
|
|
|
3
3
|
"color": {
|
|
4
4
|
"foreground": {
|
|
5
5
|
"secondary": {
|
|
6
|
-
"$value": {
|
|
7
|
-
|
|
8
|
-
"components": [0.5, 0.3, 328],
|
|
9
|
-
"alpha": 1
|
|
10
|
-
},
|
|
11
|
-
"$extensions": {
|
|
12
|
-
"com.canonical.modifier": {
|
|
13
|
-
"aliasOf": "color.foreground.secondary.error"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"$description": "Secondary interactive foreground color for less prominent actions"
|
|
6
|
+
"$value": "{color.foreground.secondary.error.$root}",
|
|
7
|
+
"$description": "Fill color for secondary interactive elements indicating errors or critical issues"
|
|
17
8
|
},
|
|
18
9
|
"input": {
|
|
19
|
-
"$value": {
|
|
20
|
-
|
|
21
|
-
"components": [0.5, 0.3, 328],
|
|
22
|
-
"alpha": 1
|
|
23
|
-
},
|
|
24
|
-
"$extensions": {
|
|
25
|
-
"com.canonical.modifier": {
|
|
26
|
-
"aliasOf": "color.foreground.input.error"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
"$description": "Foreground color for form input elements"
|
|
10
|
+
"$value": "{color.foreground.input.error.$root}",
|
|
11
|
+
"$description": "Fill color for input elements in an error validation state"
|
|
30
12
|
}
|
|
31
13
|
},
|
|
32
14
|
"text": {
|
|
33
|
-
"$value": {
|
|
34
|
-
|
|
35
|
-
"components": [0.5, 0.3, 328],
|
|
36
|
-
"alpha": 1
|
|
37
|
-
},
|
|
38
|
-
"$extensions": {
|
|
39
|
-
"com.canonical.modifier": {
|
|
40
|
-
"aliasOf": "color.text.error"
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
"$description": "Body text color for readable content"
|
|
15
|
+
"$value": "{color.text.error.$root}",
|
|
16
|
+
"$description": "Text color for indicating errors or critical issues"
|
|
44
17
|
},
|
|
45
18
|
"icon": {
|
|
46
|
-
"$value": {
|
|
47
|
-
|
|
48
|
-
"components": [0.5, 0.3, 328],
|
|
49
|
-
"alpha": 1
|
|
50
|
-
},
|
|
51
|
-
"$extensions": {
|
|
52
|
-
"com.canonical.modifier": {
|
|
53
|
-
"aliasOf": "color.icon.error"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"$description": "Icon fill color for informational and decorative icons"
|
|
19
|
+
"$value": "{color.icon.error.$root}",
|
|
20
|
+
"$description": "Icon color for indicating errors or critical issues"
|
|
57
21
|
},
|
|
58
22
|
"border": {
|
|
59
|
-
"$value": {
|
|
60
|
-
|
|
61
|
-
"components": [0.5, 0.3, 328],
|
|
62
|
-
"alpha": 1
|
|
63
|
-
},
|
|
64
|
-
"$extensions": {
|
|
65
|
-
"com.canonical.modifier": {
|
|
66
|
-
"aliasOf": "color.border.error"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"$description": "Border color for containers and separators"
|
|
23
|
+
"$value": "{color.border.error.$root}",
|
|
24
|
+
"$description": "Border color for elements indicating errors or critical issues that require immediate action"
|
|
70
25
|
},
|
|
71
26
|
"focusRing": {
|
|
72
|
-
"$value": {
|
|
73
|
-
|
|
74
|
-
"components": [0.5, 0.3, 328],
|
|
75
|
-
"alpha": 1
|
|
76
|
-
},
|
|
77
|
-
"$extensions": {
|
|
78
|
-
"com.canonical.modifier": {
|
|
79
|
-
"aliasOf": "color.focusRing.error"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"$description": "Outline color for keyboard focus indicators"
|
|
27
|
+
"$value": "{color.focusRing.error}",
|
|
28
|
+
"$description": "Focus ring color for elements in an error state"
|
|
83
29
|
},
|
|
84
30
|
"$type": "color"
|
|
85
31
|
},
|