@alea-design/tokens 0.8.1 → 0.9.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/dist/alea.css-data.json +53 -1
- package/dist/figma.json +63 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +56 -1
- package/dist/tokens.css +27 -1
- package/dist/tokens.json +56 -1
- package/package.json +1 -1
- package/src/base.json +32 -1
- package/src/semantic.json +24 -0
package/dist/alea.css-data.json
CHANGED
|
@@ -559,7 +559,7 @@
|
|
|
559
559
|
},
|
|
560
560
|
{
|
|
561
561
|
"name": "--alea-font-size-2xs",
|
|
562
|
-
"description": "(dimension: 0.
|
|
562
|
+
"description": "DEPRECATED: an alias of xs (12 px), kept so existing code keeps working. Use xs; this token is removed in the next major version. (dimension: 0.75rem)"
|
|
563
563
|
},
|
|
564
564
|
{
|
|
565
565
|
"name": "--alea-font-size-xs",
|
|
@@ -817,6 +817,10 @@
|
|
|
817
817
|
"name": "--alea-size-badge-lg",
|
|
818
818
|
"description": "Large Badge height. (dimension: 1.75rem · compact 1.5rem)"
|
|
819
819
|
},
|
|
820
|
+
{
|
|
821
|
+
"name": "--alea-size-touch",
|
|
822
|
+
"description": "The smallest target a finger can hit: 44 px. With a coarse pointer every small control (icon button, stepper arrows, show password, clear, checkbox and radio rows, tabs) reaches this size, as the control or as a transparent hit area around it. With a mouse the controls keep their own sizes. (dimension: 2.75rem)"
|
|
823
|
+
},
|
|
820
824
|
{
|
|
821
825
|
"name": "--alea-size-icon-sm",
|
|
822
826
|
"description": "(dimension: 1rem)"
|
|
@@ -829,6 +833,42 @@
|
|
|
829
833
|
"name": "--alea-size-icon-lg",
|
|
830
834
|
"description": "(dimension: 1.5rem)"
|
|
831
835
|
},
|
|
836
|
+
{
|
|
837
|
+
"name": "--alea-focus-width",
|
|
838
|
+
"description": "Thickness of the focus ring. Pixels on purpose: a ring does not grow with the text size. (dimension: 2px)"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "--alea-focus-offset",
|
|
842
|
+
"description": "Gap between a control and its focus ring (2 px). (dimension: 0.125rem)"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"name": "--alea-focus-ring",
|
|
846
|
+
"description": "The one focus ring: use it as `outline: var(--alea-focus-ring); outline-offset: var(--alea-focus-offset)`. The color is --alea-focus, which reaches 3:1 against every surface of every look in light and dark (checked by npm run contrast). Written again on every theme and brand wrapper so it follows them. (outline: 2px solid #cd57ff)"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"name": "--alea-paper",
|
|
850
|
+
"description": "The sheet (color: #ffffff)"
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "--alea-paper-ink",
|
|
854
|
+
"description": "Body text and headings on paper (color: #111111)"
|
|
855
|
+
},
|
|
856
|
+
{
|
|
857
|
+
"name": "--alea-paper-mid",
|
|
858
|
+
"description": "Secondary text on paper (color: #333333)"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"name": "--alea-paper-soft",
|
|
862
|
+
"description": "Captions and notes on paper (7.5:1 on the sheet) (color: #555555)"
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
"name": "--alea-paper-rule",
|
|
866
|
+
"description": "Strong rules and borders on paper (4.5:1 on the sheet) (color: #777777)"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "--alea-paper-hair",
|
|
870
|
+
"description": "Hairlines and table dividers on paper (color: #dddddd)"
|
|
871
|
+
},
|
|
832
872
|
{
|
|
833
873
|
"name": "--alea-control-pad-x-2",
|
|
834
874
|
"description": "(dimension: 0.5rem · compact 0.5rem)"
|
|
@@ -881,6 +921,18 @@
|
|
|
881
921
|
"name": "--alea-surface-raised",
|
|
882
922
|
"description": "Hover rows, neutral badges (color: dark #262829 · light #ebe7e2)"
|
|
883
923
|
},
|
|
924
|
+
{
|
|
925
|
+
"name": "--alea-surface-sunken",
|
|
926
|
+
"description": "A well sunk into a surface: the surface with a little black in it. Follows the surface of the theme and the look. For inputs inside cards, code blocks, the groove of a track (color: dark #1c1b1a · light #f1f1f1)"
|
|
927
|
+
},
|
|
928
|
+
{
|
|
929
|
+
"name": "--alea-surface-tint",
|
|
930
|
+
"description": "A surface with a whisper of the accent (8 %): a selected card, a highlighted block. Follows the accent of the look and of a brand (color: dark #2b212d · light #faf0fe)"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"name": "--alea-surface-glass",
|
|
934
|
+
"description": "The surface at 88 % opacity, for bars that let the page show through (a sticky header, a bottom bar). Pair it with a backdrop blur (color: dark #1d1c1be0 · light #ffffffe0)"
|
|
935
|
+
},
|
|
884
936
|
{
|
|
885
937
|
"name": "--alea-surface-hover",
|
|
886
938
|
"description": "(color: dark #242322 · light #faf8f6)"
|
package/dist/figma.json
CHANGED
|
@@ -1432,6 +1432,54 @@
|
|
|
1432
1432
|
"EFFECT_COLOR"
|
|
1433
1433
|
]
|
|
1434
1434
|
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "surface/sunken",
|
|
1437
|
+
"type": "COLOR",
|
|
1438
|
+
"description": "A well sunk into a surface: the surface with a little black in it. Follows the surface of the theme and the look. For inputs inside cards, code blocks, the groove of a track",
|
|
1439
|
+
"values": {
|
|
1440
|
+
"Dark": "#1c1b1a",
|
|
1441
|
+
"Light": "#f1f1f1"
|
|
1442
|
+
},
|
|
1443
|
+
"scopes": [
|
|
1444
|
+
"ALL_FILLS",
|
|
1445
|
+
"STROKE_COLOR",
|
|
1446
|
+
"EFFECT_COLOR"
|
|
1447
|
+
]
|
|
1448
|
+
},
|
|
1449
|
+
{
|
|
1450
|
+
"name": "surface/tint",
|
|
1451
|
+
"type": "COLOR",
|
|
1452
|
+
"description": "A surface with a whisper of the accent (8 %): a selected card, a highlighted block. Follows the accent of the look and of a brand",
|
|
1453
|
+
"values": {
|
|
1454
|
+
"Dark": "#2b212d",
|
|
1455
|
+
"Light": "#faf0fe"
|
|
1456
|
+
},
|
|
1457
|
+
"scopes": [
|
|
1458
|
+
"ALL_FILLS",
|
|
1459
|
+
"STROKE_COLOR",
|
|
1460
|
+
"EFFECT_COLOR"
|
|
1461
|
+
]
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "surface/glass",
|
|
1465
|
+
"type": "COLOR",
|
|
1466
|
+
"description": "The surface at 88 % opacity, for bars that let the page show through (a sticky header, a bottom bar). Pair it with a backdrop blur",
|
|
1467
|
+
"values": {
|
|
1468
|
+
"Dark": {
|
|
1469
|
+
"alias": "gray/700",
|
|
1470
|
+
"opacity": 88
|
|
1471
|
+
},
|
|
1472
|
+
"Light": {
|
|
1473
|
+
"alias": "white",
|
|
1474
|
+
"opacity": 88
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"scopes": [
|
|
1478
|
+
"ALL_FILLS",
|
|
1479
|
+
"STROKE_COLOR",
|
|
1480
|
+
"EFFECT_COLOR"
|
|
1481
|
+
]
|
|
1482
|
+
},
|
|
1435
1483
|
{
|
|
1436
1484
|
"name": "surface/hover",
|
|
1437
1485
|
"type": "COLOR",
|
|
@@ -3470,6 +3518,18 @@
|
|
|
3470
3518
|
"WIDTH_HEIGHT"
|
|
3471
3519
|
]
|
|
3472
3520
|
},
|
|
3521
|
+
{
|
|
3522
|
+
"name": "size/touch",
|
|
3523
|
+
"type": "FLOAT",
|
|
3524
|
+
"description": "The smallest target a finger can hit: 44 px. With a coarse pointer every small control (icon button, stepper arrows, show password, clear, checkbox and radio rows, tabs) reaches this size, as the control or as a transparent hit area around it. With a mouse the controls keep their own sizes.",
|
|
3525
|
+
"values": {
|
|
3526
|
+
"Comfy": 44,
|
|
3527
|
+
"Compact": 44
|
|
3528
|
+
},
|
|
3529
|
+
"scopes": [
|
|
3530
|
+
"WIDTH_HEIGHT"
|
|
3531
|
+
]
|
|
3532
|
+
},
|
|
3473
3533
|
{
|
|
3474
3534
|
"name": "size/control-lg",
|
|
3475
3535
|
"type": "FLOAT",
|
|
@@ -3685,10 +3745,10 @@
|
|
|
3685
3745
|
{
|
|
3686
3746
|
"name": "font/size/2xs",
|
|
3687
3747
|
"type": "FLOAT",
|
|
3688
|
-
"description": "",
|
|
3748
|
+
"description": "DEPRECATED: an alias of xs (12 px), kept so existing code keeps working. Use xs; this token is removed in the next major version.",
|
|
3689
3749
|
"values": {
|
|
3690
|
-
"Comfy":
|
|
3691
|
-
"Compact":
|
|
3750
|
+
"Comfy": 12,
|
|
3751
|
+
"Compact": 12
|
|
3692
3752
|
},
|
|
3693
3753
|
"scopes": [
|
|
3694
3754
|
"FONT_SIZE"
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type TokenPath = "color.purple.50" | "color.purple.100" | "color.purple.200" | "color.purple.300" | "color.purple.400" | "color.purple.500" | "color.purple.600" | "color.purple.650" | "color.purple.700" | "color.purple.800" | "color.purple.900" | "color.purple.950" | "color.yellow.50" | "color.yellow.100" | "color.yellow.200" | "color.yellow.300" | "color.yellow.400" | "color.yellow.500" | "color.yellow.600" | "color.yellow.700" | "color.yellow.800" | "color.yellow.900" | "color.yellow.950" | "color.violet.50" | "color.violet.100" | "color.violet.200" | "color.violet.300" | "color.violet.400" | "color.violet.500" | "color.violet.600" | "color.violet.700" | "color.violet.800" | "color.violet.900" | "color.violet.950" | "color.neutral.50" | "color.neutral.100" | "color.neutral.200" | "color.neutral.300" | "color.neutral.400" | "color.neutral.500" | "color.neutral.600" | "color.neutral.700" | "color.neutral.800" | "color.neutral.900" | "color.neutral.950" | "color.green.50" | "color.green.100" | "color.green.200" | "color.green.300" | "color.green.400" | "color.green.500" | "color.green.600" | "color.green.700" | "color.green.800" | "color.green.900" | "color.green.950" | "color.red.50" | "color.red.100" | "color.red.200" | "color.red.300" | "color.red.400" | "color.red.500" | "color.red.600" | "color.red.650" | "color.red.700" | "color.red.800" | "color.red.900" | "color.red.950" | "color.amber.50" | "color.amber.100" | "color.amber.200" | "color.amber.300" | "color.amber.400" | "color.amber.500" | "color.amber.600" | "color.amber.700" | "color.amber.800" | "color.amber.900" | "color.amber.950" | "color.blue.50" | "color.blue.100" | "color.blue.200" | "color.blue.300" | "color.blue.400" | "color.blue.500" | "color.blue.600" | "color.blue.700" | "color.blue.800" | "color.blue.900" | "color.blue.950" | "color.white" | "color.black" | "color.blue-gray.550" | "color.gray.50" | "color.gray.100" | "color.gray.300" | "color.gray.400" | "color.gray.700" | "color.gray.800" | "color.gray.950" | "color.gray.1000" | "color.transparent" | "color.warm-gray.350" | "spacing.base" | "space.0" | "space.1" | "space.2" | "space.3" | "space.4" | "space.5" | "space.6" | "space.7" | "space.8" | "space.10" | "space.12" | "space.16" | "space.20" | "space.22" | "space.24" | "space.0-25" | "space.0-5" | "space.1-5" | "space.2-5" | "space.3-5" | "radius.3xs" | "radius.2xs" | "radius.xs" | "radius.sm" | "radius.field" | "radius.md" | "radius.lg" | "radius.xl" | "radius.2xl" | "radius.3xl" | "radius.4xl" | "radius.full" | "font.family.display" | "font.family.body" | "font.family.mono" | "font.size.2xs" | "font.size.xs" | "font.size.sm" | "font.size.md" | "font.size.base" | "font.size.lg" | "font.size.xl" | "font.size.2xl" | "font.size.3xl" | "font.size.4xl" | "font.size.5xl" | "font.size.6xl" | "font.size.7xl" | "font.weight.light" | "font.weight.regular" | "font.weight.medium" | "font.weight.semibold" | "font.leading.tight" | "font.leading.snug" | "font.leading.normal" | "font.leading.relaxed" | "font.tracking.display" | "font.tracking.tight" | "font.tracking.normal" | "font.tracking.eyebrow" | "motion.ease.out" | "motion.ease.in-out" | "motion.ease.standard" | "motion.ease.emphasized" | "motion.ease.spring" | "motion.ease.in" | "motion.duration.instant" | "motion.duration.fast" | "motion.duration.base" | "motion.duration.slow" | "motion.duration.slower" | "motion.distance.sm" | "motion.distance.md" | "motion.distance.lg" | "motion.scale.from" | "motion.scale.press" | "motion.stagger" | "motion.lift" | "motion.spring" | "motion.blur.sm" | "motion.blur.md" | "motion.blur.lg" | "z.dropdown" | "z.sticky" | "z.overlay" | "z.modal" | "z.toast" | "z.tooltip" | "breakpoint.xs" | "breakpoint.sm" | "breakpoint.md" | "breakpoint.lg" | "breakpoint.xl" | "size.control-sm" | "size.control-md" | "size.control-lg" | "size.field" | "size.badge-sm" | "size.badge-md" | "size.badge-lg" | "size.icon-sm" | "size.icon-md" | "size.icon-lg" | "control-pad.x-2" | "control-pad.x-3" | "control-pad.x-4" | "control-pad.x-5" | "control-pad.x-6" | "control-pad.x-7" | "control-pad.x-8" | "control-pad.x-10" | "bg.default" | "bg.deep" | "surface.default" | "surface.deep" | "surface.raised" | "surface.hover" | "surface.overlay" | "border.default" | "border.strong" | "border.control" | "text.default" | "text.soft" | "text.muted" | "text.faint" | "accent.default" | "accent.strong" | "accent.second" | "accent.third" | "accent.subtle" | "accent.on" | "accent.solid" | "focus.default" | "focus.halo" | "chip.bg" | "chip.text" | "button.ring" | "button.top" | "button.bottom" | "button.text" | "effect.top-light" | "effect.glow" | "effect.glow-soft" | "field.bg" | "status.success" | "status.success-bg" | "status.danger" | "status.danger-bg" | "status.warning" | "status.warning-bg" | "status.info" | "status.info-bg" | "status.on" | "status.success-solid" | "status.success-on-solid" | "status.warning-solid" | "status.warning-on-solid" | "status.danger-solid" | "status.danger-solid-hover" | "status.danger-on-solid" | "status.info-solid" | "status.info-on-solid" | "shadow.card" | "shadow.pop" | "shadow.glow" | "gradient.accent" | "gradient.accent-linear" | "gradient.text" | "gradient.text-linear" | "gradient.button" | "presence.online" | "presence.away" | "presence.busy" | "presence.offline" | "rating.fill" | "control.thumb" | "on-media" | "media-backdrop" | "media-scrim" | "chart.2" | "chart.3" | "chart.4" | "chart.5" | "chart.6" | "chart.7" | "chart.8" | "reaction.like" | "icon.default" | "icon.muted" | "icon.soft" | "icon.faint" | "icon.accent" | "icon.brand" | "icon.on-accent" | "icon.button" | "icon.chip" | "icon.danger" | "icon.success" | "icon.warning" | "icon.info" | "icon.on-danger" | "icon.on-success" | "icon.on-warning" | "icon.on-info" | "icon.on-status" | "icon.rating" | "icon.control" | "icon.like";
|
|
1
|
+
export type TokenPath = "color.purple.50" | "color.purple.100" | "color.purple.200" | "color.purple.300" | "color.purple.400" | "color.purple.500" | "color.purple.600" | "color.purple.650" | "color.purple.700" | "color.purple.800" | "color.purple.900" | "color.purple.950" | "color.yellow.50" | "color.yellow.100" | "color.yellow.200" | "color.yellow.300" | "color.yellow.400" | "color.yellow.500" | "color.yellow.600" | "color.yellow.700" | "color.yellow.800" | "color.yellow.900" | "color.yellow.950" | "color.violet.50" | "color.violet.100" | "color.violet.200" | "color.violet.300" | "color.violet.400" | "color.violet.500" | "color.violet.600" | "color.violet.700" | "color.violet.800" | "color.violet.900" | "color.violet.950" | "color.neutral.50" | "color.neutral.100" | "color.neutral.200" | "color.neutral.300" | "color.neutral.400" | "color.neutral.500" | "color.neutral.600" | "color.neutral.700" | "color.neutral.800" | "color.neutral.900" | "color.neutral.950" | "color.green.50" | "color.green.100" | "color.green.200" | "color.green.300" | "color.green.400" | "color.green.500" | "color.green.600" | "color.green.700" | "color.green.800" | "color.green.900" | "color.green.950" | "color.red.50" | "color.red.100" | "color.red.200" | "color.red.300" | "color.red.400" | "color.red.500" | "color.red.600" | "color.red.650" | "color.red.700" | "color.red.800" | "color.red.900" | "color.red.950" | "color.amber.50" | "color.amber.100" | "color.amber.200" | "color.amber.300" | "color.amber.400" | "color.amber.500" | "color.amber.600" | "color.amber.700" | "color.amber.800" | "color.amber.900" | "color.amber.950" | "color.blue.50" | "color.blue.100" | "color.blue.200" | "color.blue.300" | "color.blue.400" | "color.blue.500" | "color.blue.600" | "color.blue.700" | "color.blue.800" | "color.blue.900" | "color.blue.950" | "color.white" | "color.black" | "color.blue-gray.550" | "color.gray.50" | "color.gray.100" | "color.gray.300" | "color.gray.400" | "color.gray.700" | "color.gray.800" | "color.gray.950" | "color.gray.1000" | "color.transparent" | "color.warm-gray.350" | "spacing.base" | "space.0" | "space.1" | "space.2" | "space.3" | "space.4" | "space.5" | "space.6" | "space.7" | "space.8" | "space.10" | "space.12" | "space.16" | "space.20" | "space.22" | "space.24" | "space.0-25" | "space.0-5" | "space.1-5" | "space.2-5" | "space.3-5" | "radius.3xs" | "radius.2xs" | "radius.xs" | "radius.sm" | "radius.field" | "radius.md" | "radius.lg" | "radius.xl" | "radius.2xl" | "radius.3xl" | "radius.4xl" | "radius.full" | "font.family.display" | "font.family.body" | "font.family.mono" | "font.size.2xs" | "font.size.xs" | "font.size.sm" | "font.size.md" | "font.size.base" | "font.size.lg" | "font.size.xl" | "font.size.2xl" | "font.size.3xl" | "font.size.4xl" | "font.size.5xl" | "font.size.6xl" | "font.size.7xl" | "font.weight.light" | "font.weight.regular" | "font.weight.medium" | "font.weight.semibold" | "font.leading.tight" | "font.leading.snug" | "font.leading.normal" | "font.leading.relaxed" | "font.tracking.display" | "font.tracking.tight" | "font.tracking.normal" | "font.tracking.eyebrow" | "motion.ease.out" | "motion.ease.in-out" | "motion.ease.standard" | "motion.ease.emphasized" | "motion.ease.spring" | "motion.ease.in" | "motion.duration.instant" | "motion.duration.fast" | "motion.duration.base" | "motion.duration.slow" | "motion.duration.slower" | "motion.distance.sm" | "motion.distance.md" | "motion.distance.lg" | "motion.scale.from" | "motion.scale.press" | "motion.stagger" | "motion.lift" | "motion.spring" | "motion.blur.sm" | "motion.blur.md" | "motion.blur.lg" | "z.dropdown" | "z.sticky" | "z.overlay" | "z.modal" | "z.toast" | "z.tooltip" | "breakpoint.xs" | "breakpoint.sm" | "breakpoint.md" | "breakpoint.lg" | "breakpoint.xl" | "size.control-sm" | "size.control-md" | "size.control-lg" | "size.field" | "size.badge-sm" | "size.badge-md" | "size.badge-lg" | "size.touch" | "size.icon-sm" | "size.icon-md" | "size.icon-lg" | "focus-width" | "focus-offset" | "focus-ring" | "paper.default" | "paper.ink" | "paper.mid" | "paper.soft" | "paper.rule" | "paper.hair" | "control-pad.x-2" | "control-pad.x-3" | "control-pad.x-4" | "control-pad.x-5" | "control-pad.x-6" | "control-pad.x-7" | "control-pad.x-8" | "control-pad.x-10" | "bg.default" | "bg.deep" | "surface.default" | "surface.deep" | "surface.raised" | "surface.sunken" | "surface.tint" | "surface.glass" | "surface.hover" | "surface.overlay" | "border.default" | "border.strong" | "border.control" | "text.default" | "text.soft" | "text.muted" | "text.faint" | "accent.default" | "accent.strong" | "accent.second" | "accent.third" | "accent.subtle" | "accent.on" | "accent.solid" | "focus.default" | "focus.halo" | "chip.bg" | "chip.text" | "button.ring" | "button.top" | "button.bottom" | "button.text" | "effect.top-light" | "effect.glow" | "effect.glow-soft" | "field.bg" | "status.success" | "status.success-bg" | "status.danger" | "status.danger-bg" | "status.warning" | "status.warning-bg" | "status.info" | "status.info-bg" | "status.on" | "status.success-solid" | "status.success-on-solid" | "status.warning-solid" | "status.warning-on-solid" | "status.danger-solid" | "status.danger-solid-hover" | "status.danger-on-solid" | "status.info-solid" | "status.info-on-solid" | "shadow.card" | "shadow.pop" | "shadow.glow" | "gradient.accent" | "gradient.accent-linear" | "gradient.text" | "gradient.text-linear" | "gradient.button" | "presence.online" | "presence.away" | "presence.busy" | "presence.offline" | "rating.fill" | "control.thumb" | "on-media" | "media-backdrop" | "media-scrim" | "chart.2" | "chart.3" | "chart.4" | "chart.5" | "chart.6" | "chart.7" | "chart.8" | "reaction.like" | "icon.default" | "icon.muted" | "icon.soft" | "icon.faint" | "icon.accent" | "icon.brand" | "icon.on-accent" | "icon.button" | "icon.chip" | "icon.danger" | "icon.success" | "icon.warning" | "icon.info" | "icon.on-danger" | "icon.on-success" | "icon.on-warning" | "icon.on-info" | "icon.on-status" | "icon.rating" | "icon.control" | "icon.like";
|
|
2
2
|
export declare const tokens: Record<TokenPath, { value?: string; compact?: string; dark?: string; light?: string; css: string }>;
|
|
3
3
|
export declare function cssVar(path: TokenPath | string): string;
|
package/dist/index.js
CHANGED
|
@@ -578,7 +578,7 @@ export const tokens = {
|
|
|
578
578
|
"css": "var(--alea-font-family-mono)"
|
|
579
579
|
},
|
|
580
580
|
"font.size.2xs": {
|
|
581
|
-
"value": "0.
|
|
581
|
+
"value": "0.75rem",
|
|
582
582
|
"css": "var(--alea-font-size-2xs)"
|
|
583
583
|
},
|
|
584
584
|
"font.size.xs": {
|
|
@@ -844,6 +844,10 @@ export const tokens = {
|
|
|
844
844
|
"compact": "1.5rem",
|
|
845
845
|
"css": "var(--alea-size-badge-lg)"
|
|
846
846
|
},
|
|
847
|
+
"size.touch": {
|
|
848
|
+
"value": "2.75rem",
|
|
849
|
+
"css": "var(--alea-size-touch)"
|
|
850
|
+
},
|
|
847
851
|
"size.icon-sm": {
|
|
848
852
|
"value": "1rem",
|
|
849
853
|
"css": "var(--alea-size-icon-sm)"
|
|
@@ -856,6 +860,42 @@ export const tokens = {
|
|
|
856
860
|
"value": "1.5rem",
|
|
857
861
|
"css": "var(--alea-size-icon-lg)"
|
|
858
862
|
},
|
|
863
|
+
"focus-width": {
|
|
864
|
+
"value": "2px",
|
|
865
|
+
"css": "var(--alea-focus-width)"
|
|
866
|
+
},
|
|
867
|
+
"focus-offset": {
|
|
868
|
+
"value": "0.125rem",
|
|
869
|
+
"css": "var(--alea-focus-offset)"
|
|
870
|
+
},
|
|
871
|
+
"focus-ring": {
|
|
872
|
+
"value": "2px solid #cd57ff",
|
|
873
|
+
"css": "var(--alea-focus-ring)"
|
|
874
|
+
},
|
|
875
|
+
"paper.default": {
|
|
876
|
+
"value": "#ffffff",
|
|
877
|
+
"css": "var(--alea-paper)"
|
|
878
|
+
},
|
|
879
|
+
"paper.ink": {
|
|
880
|
+
"value": "#111111",
|
|
881
|
+
"css": "var(--alea-paper-ink)"
|
|
882
|
+
},
|
|
883
|
+
"paper.mid": {
|
|
884
|
+
"value": "#333333",
|
|
885
|
+
"css": "var(--alea-paper-mid)"
|
|
886
|
+
},
|
|
887
|
+
"paper.soft": {
|
|
888
|
+
"value": "#555555",
|
|
889
|
+
"css": "var(--alea-paper-soft)"
|
|
890
|
+
},
|
|
891
|
+
"paper.rule": {
|
|
892
|
+
"value": "#777777",
|
|
893
|
+
"css": "var(--alea-paper-rule)"
|
|
894
|
+
},
|
|
895
|
+
"paper.hair": {
|
|
896
|
+
"value": "#dddddd",
|
|
897
|
+
"css": "var(--alea-paper-hair)"
|
|
898
|
+
},
|
|
859
899
|
"control-pad.x-2": {
|
|
860
900
|
"value": "0.5rem",
|
|
861
901
|
"compact": "0.5rem",
|
|
@@ -921,6 +961,21 @@ export const tokens = {
|
|
|
921
961
|
"light": "#ebe7e2",
|
|
922
962
|
"css": "var(--alea-surface-raised)"
|
|
923
963
|
},
|
|
964
|
+
"surface.sunken": {
|
|
965
|
+
"dark": "#1c1b1a",
|
|
966
|
+
"light": "#f1f1f1",
|
|
967
|
+
"css": "var(--alea-surface-sunken)"
|
|
968
|
+
},
|
|
969
|
+
"surface.tint": {
|
|
970
|
+
"dark": "#2b212d",
|
|
971
|
+
"light": "#faf0fe",
|
|
972
|
+
"css": "var(--alea-surface-tint)"
|
|
973
|
+
},
|
|
974
|
+
"surface.glass": {
|
|
975
|
+
"dark": "#1d1c1be0",
|
|
976
|
+
"light": "#ffffffe0",
|
|
977
|
+
"css": "var(--alea-surface-glass)"
|
|
978
|
+
},
|
|
924
979
|
"surface.hover": {
|
|
925
980
|
"dark": "#242322",
|
|
926
981
|
"light": "#faf8f6",
|
package/dist/tokens.css
CHANGED
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
--alea-font-family-display: 'Crimson Pro', Georgia, 'Times New Roman', serif;
|
|
141
141
|
--alea-font-family-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
142
142
|
--alea-font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
143
|
-
--alea-font-size-2xs:
|
|
143
|
+
--alea-font-size-2xs: var(--alea-font-size-xs);
|
|
144
144
|
--alea-font-size-xs: 0.75rem;
|
|
145
145
|
--alea-font-size-sm: 0.8125rem;
|
|
146
146
|
--alea-font-size-md: 0.875rem;
|
|
@@ -205,9 +205,19 @@
|
|
|
205
205
|
--alea-size-badge-sm: 1.25rem;
|
|
206
206
|
--alea-size-badge-md: 1.5rem;
|
|
207
207
|
--alea-size-badge-lg: 1.75rem;
|
|
208
|
+
--alea-size-touch: 2.75rem;
|
|
208
209
|
--alea-size-icon-sm: 1rem;
|
|
209
210
|
--alea-size-icon-md: 1.25rem;
|
|
210
211
|
--alea-size-icon-lg: 1.5rem;
|
|
212
|
+
--alea-focus-width: 2px;
|
|
213
|
+
--alea-focus-offset: 0.125rem;
|
|
214
|
+
--alea-focus-ring: var(--alea-focus-width) solid var(--alea-focus);
|
|
215
|
+
--alea-paper: #ffffff;
|
|
216
|
+
--alea-paper-ink: #111111;
|
|
217
|
+
--alea-paper-mid: #333333;
|
|
218
|
+
--alea-paper-soft: #555555;
|
|
219
|
+
--alea-paper-rule: #777777;
|
|
220
|
+
--alea-paper-hair: #dddddd;
|
|
211
221
|
--alea-control-pad-x-2: 0.5rem;
|
|
212
222
|
--alea-control-pad-x-3: 0.75rem;
|
|
213
223
|
--alea-control-pad-x-4: 1rem;
|
|
@@ -225,6 +235,9 @@
|
|
|
225
235
|
--alea-surface: var(--alea-gray-700);
|
|
226
236
|
--alea-surface-deep: var(--alea-gray-800);
|
|
227
237
|
--alea-surface-raised: #262829;
|
|
238
|
+
--alea-surface-sunken: color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black));
|
|
239
|
+
--alea-surface-tint: color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent));
|
|
240
|
+
--alea-surface-glass: color-mix(in srgb, var(--alea-surface) 88%, transparent);
|
|
228
241
|
--alea-surface-hover: var(--alea-neutral-950);
|
|
229
242
|
--alea-surface-overlay: color-mix(in srgb, var(--alea-gray-1000) 72.16%, transparent);
|
|
230
243
|
--alea-border: color-mix(in srgb, var(--alea-white) 7.84%, transparent);
|
|
@@ -358,6 +371,10 @@
|
|
|
358
371
|
|
|
359
372
|
/* Mixes of the accent (effect glows) are resolved where they are declared, so they are written again on every element that can set the accent: a theme, a look or a brand wrapper */
|
|
360
373
|
:root, [data-theme], [data-preset], .alea-root {
|
|
374
|
+
--alea-focus-ring: var(--alea-focus-width) solid var(--alea-focus);
|
|
375
|
+
--alea-surface-sunken: color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black));
|
|
376
|
+
--alea-surface-tint: color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent));
|
|
377
|
+
--alea-surface-glass: color-mix(in srgb, var(--alea-surface) 88%, transparent);
|
|
361
378
|
--alea-effect-glow: color-mix(in srgb, var(--alea-accent) 55%, transparent);
|
|
362
379
|
--alea-effect-glow-soft: color-mix(in srgb, var(--alea-accent) 70%, transparent);
|
|
363
380
|
}
|
|
@@ -370,6 +387,9 @@
|
|
|
370
387
|
--alea-surface: var(--alea-gray-700);
|
|
371
388
|
--alea-surface-deep: var(--alea-gray-800);
|
|
372
389
|
--alea-surface-raised: #262829;
|
|
390
|
+
--alea-surface-sunken: color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black));
|
|
391
|
+
--alea-surface-tint: color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent));
|
|
392
|
+
--alea-surface-glass: color-mix(in srgb, var(--alea-surface) 88%, transparent);
|
|
373
393
|
--alea-surface-hover: var(--alea-neutral-950);
|
|
374
394
|
--alea-surface-overlay: color-mix(in srgb, var(--alea-gray-1000) 72.16%, transparent);
|
|
375
395
|
--alea-border: color-mix(in srgb, var(--alea-white) 7.84%, transparent);
|
|
@@ -467,6 +487,9 @@
|
|
|
467
487
|
--alea-surface: var(--alea-white);
|
|
468
488
|
--alea-surface-deep: #f3f0ec;
|
|
469
489
|
--alea-surface-raised: #ebe7e2;
|
|
490
|
+
--alea-surface-sunken: color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black));
|
|
491
|
+
--alea-surface-tint: color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent));
|
|
492
|
+
--alea-surface-glass: color-mix(in srgb, var(--alea-surface) 88%, transparent);
|
|
470
493
|
--alea-surface-hover: #faf8f6;
|
|
471
494
|
--alea-surface-overlay: color-mix(in srgb, var(--alea-black) 36.08%, transparent);
|
|
472
495
|
--alea-border: color-mix(in srgb, var(--alea-black) 9.02%, transparent);
|
|
@@ -565,6 +588,9 @@
|
|
|
565
588
|
--alea-surface: var(--alea-white);
|
|
566
589
|
--alea-surface-deep: #f3f0ec;
|
|
567
590
|
--alea-surface-raised: #ebe7e2;
|
|
591
|
+
--alea-surface-sunken: color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black));
|
|
592
|
+
--alea-surface-tint: color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent));
|
|
593
|
+
--alea-surface-glass: color-mix(in srgb, var(--alea-surface) 88%, transparent);
|
|
568
594
|
--alea-surface-hover: #faf8f6;
|
|
569
595
|
--alea-surface-overlay: color-mix(in srgb, var(--alea-black) 36.08%, transparent);
|
|
570
596
|
--alea-border: color-mix(in srgb, var(--alea-black) 9.02%, transparent);
|
package/dist/tokens.json
CHANGED
|
@@ -577,7 +577,7 @@
|
|
|
577
577
|
"css": "var(--alea-font-family-mono)"
|
|
578
578
|
},
|
|
579
579
|
"font.size.2xs": {
|
|
580
|
-
"value": "0.
|
|
580
|
+
"value": "0.75rem",
|
|
581
581
|
"css": "var(--alea-font-size-2xs)"
|
|
582
582
|
},
|
|
583
583
|
"font.size.xs": {
|
|
@@ -843,6 +843,10 @@
|
|
|
843
843
|
"compact": "1.5rem",
|
|
844
844
|
"css": "var(--alea-size-badge-lg)"
|
|
845
845
|
},
|
|
846
|
+
"size.touch": {
|
|
847
|
+
"value": "2.75rem",
|
|
848
|
+
"css": "var(--alea-size-touch)"
|
|
849
|
+
},
|
|
846
850
|
"size.icon-sm": {
|
|
847
851
|
"value": "1rem",
|
|
848
852
|
"css": "var(--alea-size-icon-sm)"
|
|
@@ -855,6 +859,42 @@
|
|
|
855
859
|
"value": "1.5rem",
|
|
856
860
|
"css": "var(--alea-size-icon-lg)"
|
|
857
861
|
},
|
|
862
|
+
"focus-width": {
|
|
863
|
+
"value": "2px",
|
|
864
|
+
"css": "var(--alea-focus-width)"
|
|
865
|
+
},
|
|
866
|
+
"focus-offset": {
|
|
867
|
+
"value": "0.125rem",
|
|
868
|
+
"css": "var(--alea-focus-offset)"
|
|
869
|
+
},
|
|
870
|
+
"focus-ring": {
|
|
871
|
+
"value": "2px solid #cd57ff",
|
|
872
|
+
"css": "var(--alea-focus-ring)"
|
|
873
|
+
},
|
|
874
|
+
"paper.default": {
|
|
875
|
+
"value": "#ffffff",
|
|
876
|
+
"css": "var(--alea-paper)"
|
|
877
|
+
},
|
|
878
|
+
"paper.ink": {
|
|
879
|
+
"value": "#111111",
|
|
880
|
+
"css": "var(--alea-paper-ink)"
|
|
881
|
+
},
|
|
882
|
+
"paper.mid": {
|
|
883
|
+
"value": "#333333",
|
|
884
|
+
"css": "var(--alea-paper-mid)"
|
|
885
|
+
},
|
|
886
|
+
"paper.soft": {
|
|
887
|
+
"value": "#555555",
|
|
888
|
+
"css": "var(--alea-paper-soft)"
|
|
889
|
+
},
|
|
890
|
+
"paper.rule": {
|
|
891
|
+
"value": "#777777",
|
|
892
|
+
"css": "var(--alea-paper-rule)"
|
|
893
|
+
},
|
|
894
|
+
"paper.hair": {
|
|
895
|
+
"value": "#dddddd",
|
|
896
|
+
"css": "var(--alea-paper-hair)"
|
|
897
|
+
},
|
|
858
898
|
"control-pad.x-2": {
|
|
859
899
|
"value": "0.5rem",
|
|
860
900
|
"compact": "0.5rem",
|
|
@@ -920,6 +960,21 @@
|
|
|
920
960
|
"light": "#ebe7e2",
|
|
921
961
|
"css": "var(--alea-surface-raised)"
|
|
922
962
|
},
|
|
963
|
+
"surface.sunken": {
|
|
964
|
+
"dark": "#1c1b1a",
|
|
965
|
+
"light": "#f1f1f1",
|
|
966
|
+
"css": "var(--alea-surface-sunken)"
|
|
967
|
+
},
|
|
968
|
+
"surface.tint": {
|
|
969
|
+
"dark": "#2b212d",
|
|
970
|
+
"light": "#faf0fe",
|
|
971
|
+
"css": "var(--alea-surface-tint)"
|
|
972
|
+
},
|
|
973
|
+
"surface.glass": {
|
|
974
|
+
"dark": "#1d1c1be0",
|
|
975
|
+
"light": "#ffffffe0",
|
|
976
|
+
"css": "var(--alea-surface-glass)"
|
|
977
|
+
},
|
|
923
978
|
"surface.hover": {
|
|
924
979
|
"dark": "#242322",
|
|
925
980
|
"light": "#faf8f6",
|
package/package.json
CHANGED
package/src/base.json
CHANGED
|
@@ -163,7 +163,8 @@
|
|
|
163
163
|
"size": {
|
|
164
164
|
"$type": "dimension",
|
|
165
165
|
"2xs": {
|
|
166
|
-
"$value": "
|
|
166
|
+
"$value": "{font.size.xs}",
|
|
167
|
+
"$description": "DEPRECATED: an alias of xs (12 px), kept so existing code keeps working. Use xs; this token is removed in the next major version."
|
|
167
168
|
},
|
|
168
169
|
"xs": {
|
|
169
170
|
"$value": "0.75rem",
|
|
@@ -460,6 +461,10 @@
|
|
|
460
461
|
"$description": "Large Badge height.",
|
|
461
462
|
"$extensions": { "fun.lab": { "compact": "1.5rem" } }
|
|
462
463
|
},
|
|
464
|
+
"touch": {
|
|
465
|
+
"$value": "2.75rem",
|
|
466
|
+
"$description": "The smallest target a finger can hit: 44 px. With a coarse pointer every small control (icon button, stepper arrows, show password, clear, checkbox and radio rows, tabs) reaches this size, as the control or as a transparent hit area around it. With a mouse the controls keep their own sizes."
|
|
467
|
+
},
|
|
463
468
|
"icon-sm": {
|
|
464
469
|
"$value": "1rem"
|
|
465
470
|
},
|
|
@@ -470,6 +475,32 @@
|
|
|
470
475
|
"$value": "1.5rem"
|
|
471
476
|
}
|
|
472
477
|
},
|
|
478
|
+
"focus-width": {
|
|
479
|
+
"$type": "dimension",
|
|
480
|
+
"$value": "2px",
|
|
481
|
+
"$description": "Thickness of the focus ring. Pixels on purpose: a ring does not grow with the text size."
|
|
482
|
+
},
|
|
483
|
+
"focus-offset": {
|
|
484
|
+
"$type": "dimension",
|
|
485
|
+
"$value": "0.125rem",
|
|
486
|
+
"$description": "Gap between a control and its focus ring (2 px)."
|
|
487
|
+
},
|
|
488
|
+
"focus-ring": {
|
|
489
|
+
"$type": "outline",
|
|
490
|
+
"$value": "2px solid #cd57ff",
|
|
491
|
+
"$description": "The one focus ring: use it as `outline: var(--alea-focus-ring); outline-offset: var(--alea-focus-offset)`. The color is --alea-focus, which reaches 3:1 against every surface of every look in light and dark (checked by npm run contrast). Written again on every theme and brand wrapper so it follows them.",
|
|
492
|
+
"$extensions": { "fun.lab": { "css": "var(--alea-focus-width) solid var(--alea-focus)" } }
|
|
493
|
+
},
|
|
494
|
+
"paper": {
|
|
495
|
+
"$type": "color",
|
|
496
|
+
"$description": "Paper: the colors of a printed page or a document view (an invoice, a prescription, a report). They do not change with the theme or the look, because paper is white and ink is dark in both.",
|
|
497
|
+
"default": { "$value": "#ffffff", "$description": "The sheet" },
|
|
498
|
+
"ink": { "$value": "#111111", "$description": "Body text and headings on paper" },
|
|
499
|
+
"mid": { "$value": "#333333", "$description": "Secondary text on paper" },
|
|
500
|
+
"soft": { "$value": "#555555", "$description": "Captions and notes on paper (7.5:1 on the sheet)" },
|
|
501
|
+
"rule": { "$value": "#777777", "$description": "Strong rules and borders on paper (4.5:1 on the sheet)" },
|
|
502
|
+
"hair": { "$value": "#dddddd", "$description": "Hairlines and table dividers on paper" }
|
|
503
|
+
},
|
|
473
504
|
"control-pad": {
|
|
474
505
|
"$type": "dimension",
|
|
475
506
|
"$description": "Control padding on the inline axis (and the padding of surfaces: Card, Dialog, Modal). Same steps as the space scale in Comfy; in Compact it is NOT halved (a control gets shorter, not narrower), so the horizontal padding stays at or above the vertical air. Never below 8px, and 12px or more on Cards and dialogs. On a touch pointer in Compact the small steps rise to 16px so they keep up with the 44px control heights.",
|
package/src/semantic.json
CHANGED
|
@@ -65,6 +65,30 @@
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
+
"sunken": {
|
|
69
|
+
"$value": "#1c1b1a",
|
|
70
|
+
"$description": "A well sunk into a surface: the surface with a little black in it. Follows the surface of the theme and the look. For inputs inside cards, code blocks, the groove of a track",
|
|
71
|
+
"$extensions": {
|
|
72
|
+
"com.figma": { "modes": { "Dark": "#1c1b1a", "Light": "#f1f1f1" } },
|
|
73
|
+
"fun.lab": { "css": "color-mix(in srgb, var(--alea-surface) 94%, var(--alea-black))" }
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"tint": {
|
|
77
|
+
"$value": "#2b212d",
|
|
78
|
+
"$description": "A surface with a whisper of the accent (8 %): a selected card, a highlighted block. Follows the accent of the look and of a brand",
|
|
79
|
+
"$extensions": {
|
|
80
|
+
"com.figma": { "modes": { "Dark": "#2b212d", "Light": "#faf0fe" } },
|
|
81
|
+
"fun.lab": { "css": "color-mix(in srgb, var(--alea-surface) 92%, var(--alea-accent))" }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"glass": {
|
|
85
|
+
"$value": "#1d1c1be0",
|
|
86
|
+
"$description": "The surface at 88 % opacity, for bars that let the page show through (a sticky header, a bottom bar). Pair it with a backdrop blur",
|
|
87
|
+
"$extensions": {
|
|
88
|
+
"com.figma": { "modes": { "Dark": { "alias": "{color.gray.700}", "opacity": 88 }, "Light": { "alias": "{color.white}", "opacity": 88 } } },
|
|
89
|
+
"fun.lab": { "css": "color-mix(in srgb, var(--alea-surface) 88%, transparent)" }
|
|
90
|
+
}
|
|
91
|
+
},
|
|
68
92
|
"hover": {
|
|
69
93
|
"$value": "{color.neutral.950}",
|
|
70
94
|
"$extensions": {
|