@aziontech/theme 2.6.0 → 4.1.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 +73 -66
- package/dist/v4/globals.css +827 -79
- package/dist/v4/globals.scss +827 -79
- package/package.json +6 -23
- package/src/scripts/build-tokens.mjs +197 -230
- package/src/scripts/compile-primitives.js +79 -79
- package/src/scripts/compile-theme.js +70 -63
- package/src/scripts/css-vars.d.ts.map +1 -1
- package/src/scripts/css-vars.js +20 -16
- package/src/scripts/refs.js +2 -2
- package/src/scripts/resolve.d.ts.map +1 -1
- package/src/scripts/resolve.js +50 -47
- package/src/tokens/README.md +53 -74
- package/src/tokens/index.js +5 -5
- package/src/tokens/primitives/animations/animate.d.ts +35 -0
- package/src/tokens/primitives/animations/animate.d.ts.map +1 -1
- package/src/tokens/primitives/animations/animate.js +43 -5
- package/src/tokens/primitives/animations/ease.d.ts.map +1 -1
- package/src/tokens/primitives/animations/ease.js +3 -3
- package/src/tokens/primitives/animations/keyframes.d.ts +79 -0
- package/src/tokens/primitives/animations/keyframes.d.ts.map +1 -0
- package/src/tokens/primitives/animations/keyframes.js +85 -0
- package/src/tokens/primitives/border-widths.d.ts.map +1 -1
- package/src/tokens/primitives/border-widths.js +3 -3
- package/src/tokens/primitives/breakpoints.d.ts.map +1 -1
- package/src/tokens/primitives/breakpoints.js +3 -3
- package/src/tokens/primitives/colors/alpha.d.ts +80 -80
- package/src/tokens/primitives/colors/alpha.js +84 -84
- package/src/tokens/primitives/colors/brand.d.ts +22 -22
- package/src/tokens/primitives/colors/brand.js +28 -28
- package/src/tokens/primitives/colors/colors.d.ts +88 -88
- package/src/tokens/primitives/colors/colors.js +107 -107
- package/src/tokens/primitives/effects/blur.d.ts.map +1 -1
- package/src/tokens/primitives/effects/blur.js +3 -3
- package/src/tokens/primitives/effects/drop-shadow.d.ts.map +1 -1
- package/src/tokens/primitives/effects/drop-shadow.js +3 -3
- package/src/tokens/primitives/effects/inset-shadow.d.ts.map +1 -1
- package/src/tokens/primitives/effects/inset-shadow.js +3 -3
- package/src/tokens/primitives/effects/opacity.d.ts.map +1 -1
- package/src/tokens/primitives/effects/opacity.js +3 -3
- package/src/tokens/primitives/effects/perspective.js +3 -3
- package/src/tokens/primitives/effects/shadow.d.ts.map +1 -1
- package/src/tokens/primitives/effects/shadow.js +3 -3
- package/src/{azion/_fonts.scss → tokens/primitives/fonts.css} +19 -4
- package/src/tokens/primitives/ring-offset.d.ts.map +1 -1
- package/src/tokens/primitives/ring-offset.js +3 -3
- package/src/tokens/primitives/shape/aspect-video.d.ts.map +1 -1
- package/src/tokens/primitives/shape/aspect-video.js +2 -2
- package/src/tokens/primitives/shape/container.d.ts.map +1 -1
- package/src/tokens/primitives/shape/container.js +3 -3
- package/src/tokens/primitives/shape/height.d.ts.map +1 -1
- package/src/tokens/primitives/shape/height.js +3 -3
- package/src/tokens/primitives/shape/radius.d.ts.map +1 -1
- package/src/tokens/primitives/shape/radius.js +3 -3
- package/src/tokens/primitives/shape/size.d.ts.map +1 -1
- package/src/tokens/primitives/shape/size.js +3 -3
- package/src/tokens/primitives/shape/spacing.d.ts.map +1 -1
- package/src/tokens/primitives/shape/spacing.js +3 -3
- package/src/tokens/primitives/shape/width.d.ts.map +1 -1
- package/src/tokens/primitives/shape/width.js +4 -4
- package/src/tokens/primitives/typography/font-size.d.ts.map +1 -1
- package/src/tokens/primitives/typography/font-size.js +4 -4
- package/src/tokens/primitives/typography/font-weight.js +3 -3
- package/src/tokens/primitives/typography/leading.js +3 -3
- package/src/tokens/primitives/typography/line-height.d.ts.map +1 -1
- package/src/tokens/primitives/typography/line-height.js +3 -3
- package/src/tokens/primitives/typography/tracking.js +3 -3
- package/src/tokens/semantic/colors.js +17 -17
- package/src/tokens/semantic/containers.data.d.ts.map +1 -1
- package/src/tokens/semantic/containers.data.js +3 -3
- package/src/tokens/semantic/containers.js +25 -25
- package/src/tokens/semantic/spacings.data.d.ts.map +1 -1
- package/src/tokens/semantic/spacings.data.js +3 -3
- package/src/tokens/semantic/texts.data.d.ts +59 -28
- package/src/tokens/semantic/texts.data.d.ts.map +1 -1
- package/src/tokens/semantic/texts.data.js +90 -56
- package/src/tokens/theme/accent.js +6 -6
- package/src/tokens/theme/border.js +6 -6
- package/src/tokens/theme/code-sintax.d.ts +53 -0
- package/src/tokens/theme/code-sintax.d.ts.map +1 -0
- package/src/tokens/theme/code-sintax.js +28 -0
- package/src/tokens/theme/feedback/danger.js +6 -6
- package/src/tokens/theme/feedback/info.js +6 -6
- package/src/tokens/theme/feedback/success.js +6 -6
- package/src/tokens/theme/feedback/warning.js +6 -6
- package/src/tokens/theme/primary.js +6 -6
- package/src/tokens/theme/ring.js +6 -6
- package/src/tokens/theme/secondary.js +6 -6
- package/src/tokens/theme/surfaces.d.ts.map +1 -1
- package/src/tokens/theme/surfaces.js +6 -6
- package/src/tokens/theme/text.d.ts +6 -0
- package/src/tokens/theme/text.js +2 -0
- package/src/tokens/theme.d.ts +110 -110
- package/src/tokens/theme.js +9 -9
- package/default.js +0 -1
- package/dist/v3/globals.css +0 -855
- package/dist/v3/globals.scss +0 -855
- package/dist/v3/tailwind-preset.js +0 -510
- package/dist/v3/tailwind.config.js +0 -518
- package/src/azion/_custom.scss +0 -3
- package/src/azion/_extensions.scss +0 -37
- package/src/azion/_variables-widget.scss +0 -400
- package/src/azion/_variables.scss +0 -407
- package/src/azion/custom/_code.scss +0 -11
- package/src/azion/custom/_focus.scss +0 -5
- package/src/azion/custom/_scrollbehavior.scss +0 -6
- package/src/azion/custom/_selection.scss +0 -4
- package/src/azion/custom/_special-button.scss +0 -57
- package/src/azion/extended-components/_autocomplete.scss +0 -13
- package/src/azion/extended-components/_badge.scss +0 -53
- package/src/azion/extended-components/_breadcumb.scss +0 -18
- package/src/azion/extended-components/_button.scss +0 -134
- package/src/azion/extended-components/_calendar.scss +0 -310
- package/src/azion/extended-components/_carousel.scss +0 -9
- package/src/azion/extended-components/_checkbox.scss +0 -33
- package/src/azion/extended-components/_datatable.scss +0 -130
- package/src/azion/extended-components/_dialog.scss +0 -45
- package/src/azion/extended-components/_divider.scss +0 -37
- package/src/azion/extended-components/_dropdown.scss +0 -10
- package/src/azion/extended-components/_dropdownitem.scss +0 -13
- package/src/azion/extended-components/_inlinemessage.scss +0 -10
- package/src/azion/extended-components/_inputnumber.scss +0 -40
- package/src/azion/extended-components/_inputpassword.scss +0 -4
- package/src/azion/extended-components/_inputswitch.scss +0 -53
- package/src/azion/extended-components/_listbox.scss +0 -35
- package/src/azion/extended-components/_markdown.scss +0 -135
- package/src/azion/extended-components/_menuitem.scss +0 -22
- package/src/azion/extended-components/_multiselect.scss +0 -167
- package/src/azion/extended-components/_overlaypanel.scss +0 -18
- package/src/azion/extended-components/_picklist.scss +0 -25
- package/src/azion/extended-components/_progressbar.scss +0 -6
- package/src/azion/extended-components/_radiobutton.scss +0 -63
- package/src/azion/extended-components/_selectbutton.scss +0 -36
- package/src/azion/extended-components/_sidebar.scss +0 -28
- package/src/azion/extended-components/_splitbutton.scss +0 -22
- package/src/azion/extended-components/_tabmenu.scss +0 -21
- package/src/azion/extended-components/_tabview.scss +0 -41
- package/src/azion/extended-components/_tag.scss +0 -47
- package/src/azion/extended-components/_toast.scss +0 -9
- package/src/azion/extended-components/_tooltip.scss +0 -7
- package/src/azion/extended-components/_treeselect.scss +0 -10
- package/src/azion/extended-components/jsonform/_inputcheckbox.scss +0 -41
- package/src/azion/extended-components/jsonform/_inputtext.scss +0 -26
- package/src/azion/extended-components/jsonform/_label.scss +0 -185
- package/src/azion/extended-components/jsonform/_select.scss +0 -34
- package/src/azion/theme-base/_colors.scss +0 -18
- package/src/azion/theme-base/_common.scss +0 -75
- package/src/azion/theme-base/_components.scss +0 -103
- package/src/azion/theme-base/_mixins.scss +0 -250
- package/src/azion/theme-base/components/button/_button.scss +0 -567
- package/src/azion/theme-base/components/button/_speeddial.scss +0 -97
- package/src/azion/theme-base/components/button/_splitbutton.scss +0 -390
- package/src/azion/theme-base/components/data/_carousel.scss +0 -37
- package/src/azion/theme-base/components/data/_datatable.scss +0 -347
- package/src/azion/theme-base/components/data/_dataview.scss +0 -47
- package/src/azion/theme-base/components/data/_filter.scss +0 -138
- package/src/azion/theme-base/components/data/_orderlist.scss +0 -70
- package/src/azion/theme-base/components/data/_organizationchart.scss +0 -50
- package/src/azion/theme-base/components/data/_paginator.scss +0 -92
- package/src/azion/theme-base/components/data/_picklist.scss +0 -70
- package/src/azion/theme-base/components/data/_timeline.scss +0 -38
- package/src/azion/theme-base/components/data/_tree.scss +0 -90
- package/src/azion/theme-base/components/data/_treetable.scss +0 -251
- package/src/azion/theme-base/components/file/_fileupload.scss +0 -82
- package/src/azion/theme-base/components/input/_autocomplete.scss +0 -114
- package/src/azion/theme-base/components/input/_calendar.scss +0 -251
- package/src/azion/theme-base/components/input/_cascadeselect.scss +0 -106
- package/src/azion/theme-base/components/input/_checkbox.scss +0 -86
- package/src/azion/theme-base/components/input/_chips.scss +0 -53
- package/src/azion/theme-base/components/input/_colorpicker.scss +0 -18
- package/src/azion/theme-base/components/input/_dropdown.scss +0 -147
- package/src/azion/theme-base/components/input/_editor.scss +0 -122
- package/src/azion/theme-base/components/input/_inputgroup.scss +0 -74
- package/src/azion/theme-base/components/input/_inputnumber.scss +0 -5
- package/src/azion/theme-base/components/input/_inputswitch.scss +0 -62
- package/src/azion/theme-base/components/input/_inputtext.scss +0 -100
- package/src/azion/theme-base/components/input/_listbox.scss +0 -89
- package/src/azion/theme-base/components/input/_multiselect.scss +0 -166
- package/src/azion/theme-base/components/input/_password.scss +0 -33
- package/src/azion/theme-base/components/input/_radiobutton.scss +0 -78
- package/src/azion/theme-base/components/input/_rating.scss +0 -60
- package/src/azion/theme-base/components/input/_selectbutton.scss +0 -50
- package/src/azion/theme-base/components/input/_slider.scss +0 -49
- package/src/azion/theme-base/components/input/_togglebutton.scss +0 -52
- package/src/azion/theme-base/components/input/_treeselect.scss +0 -91
- package/src/azion/theme-base/components/menu/_breadcrumb.scss +0 -42
- package/src/azion/theme-base/components/menu/_contextmenu.scss +0 -39
- package/src/azion/theme-base/components/menu/_dock.scss +0 -95
- package/src/azion/theme-base/components/menu/_megamenu.scss +0 -55
- package/src/azion/theme-base/components/menu/_menu.scss +0 -33
- package/src/azion/theme-base/components/menu/_menubar.scss +0 -141
- package/src/azion/theme-base/components/menu/_panelmenu.scss +0 -153
- package/src/azion/theme-base/components/menu/_steps.scss +0 -56
- package/src/azion/theme-base/components/menu/_tabmenu.scss +0 -49
- package/src/azion/theme-base/components/menu/_tieredmenu.scss +0 -43
- package/src/azion/theme-base/components/messages/_inlinemessage.scss +0 -64
- package/src/azion/theme-base/components/messages/_message.scss +0 -100
- package/src/azion/theme-base/components/messages/_toast.scss +0 -100
- package/src/azion/theme-base/components/misc/_avatar.scss +0 -30
- package/src/azion/theme-base/components/misc/_badge.scss +0 -48
- package/src/azion/theme-base/components/misc/_blockui.scss +0 -0
- package/src/azion/theme-base/components/misc/_chip.scss +0 -39
- package/src/azion/theme-base/components/misc/_inplace.scss +0 -17
- package/src/azion/theme-base/components/misc/_progressbar.scss +0 -17
- package/src/azion/theme-base/components/misc/_progressspinner.scss +0 -49
- package/src/azion/theme-base/components/misc/_scrolltop.scss +0 -25
- package/src/azion/theme-base/components/misc/_skeleton.scss +0 -8
- package/src/azion/theme-base/components/misc/_tag.scss +0 -40
- package/src/azion/theme-base/components/misc/_terminal.scss +0 -12
- package/src/azion/theme-base/components/multimedia/_galleria.scss +0 -151
- package/src/azion/theme-base/components/multimedia/_image.scss +0 -54
- package/src/azion/theme-base/components/overlay/_confirmpopup.scss +0 -72
- package/src/azion/theme-base/components/overlay/_dialog.scss +0 -64
- package/src/azion/theme-base/components/overlay/_overlaypanel.scss +0 -38
- package/src/azion/theme-base/components/overlay/_sidebar.scss +0 -23
- package/src/azion/theme-base/components/overlay/_tooltip.scss +0 -33
- package/src/azion/theme-base/components/panel/_accordion.scss +0 -118
- package/src/azion/theme-base/components/panel/_card.scss +0 -30
- package/src/azion/theme-base/components/panel/_divider.scss +0 -40
- package/src/azion/theme-base/components/panel/_fieldset.scss +0 -51
- package/src/azion/theme-base/components/panel/_panel.scss +0 -47
- package/src/azion/theme-base/components/panel/_scrollpanel.scss +0 -11
- package/src/azion/theme-base/components/panel/_splitter.scss +0 -24
- package/src/azion/theme-base/components/panel/_tabview.scss +0 -66
- package/src/azion/theme-base/components/panel/_toolbar.scss +0 -11
- package/src/azion/theme-widget.scss +0 -9
- package/src/azion/theme.scss +0 -9
- package/src/azion/variables/_button.scss +0 -438
- package/src/azion/variables/_data.scss +0 -346
- package/src/azion/variables/_form.scss +0 -570
- package/src/azion/variables/_general.scss +0 -149
- package/src/azion/variables/_media.scss +0 -231
- package/src/azion/variables/_menu.scss +0 -287
- package/src/azion/variables/_message.scss +0 -145
- package/src/azion/variables/_misc.scss +0 -143
- package/src/azion/variables/_overlay.scss +0 -67
- package/src/azion/variables/_panel.scss +0 -327
- package/src/tests/primitives.html +0 -293
- package/src/tests/theme.html +0 -310
- package/src/tests/tokens.html +0 -87
- package/src/tokens/semantic/animations.d.ts +0 -3
- package/src/tokens/semantic/animations.d.ts.map +0 -1
- package/src/tokens/semantic/animations.js +0 -80
- package/src/tokens/semantic/spacings.d.ts +0 -3
- package/src/tokens/semantic/spacings.d.ts.map +0 -1
- package/src/tokens/semantic/spacings.js +0 -163
- package/src/tokens/semantic/texts.d.ts +0 -3
- package/src/tokens/semantic/texts.d.ts.map +0 -1
- package/src/tokens/semantic/texts.js +0 -299
- package/tokens.js +0 -7
- package/widget.js +0 -1
|
@@ -16,129 +16,163 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import { fontFamily } from '../primitives/typography/font-family.js'
|
|
19
|
+
import { fontSize } from '../primitives/typography/font-size.js'
|
|
20
|
+
import { fontWeight } from '../primitives/typography/font-weight.js'
|
|
21
|
+
import { leading } from '../primitives/typography/leading.js'
|
|
19
22
|
|
|
20
23
|
export const textsData = {
|
|
21
24
|
'text-big-number-md': {
|
|
22
|
-
fontSize: { _:
|
|
23
|
-
lineHeight:
|
|
25
|
+
fontSize: { _: fontSize.xl, sm: fontSize['2xl'], md: fontSize['4xl'] },
|
|
26
|
+
lineHeight: leading.tight,
|
|
27
|
+
fontWeight: fontWeight.normal,
|
|
24
28
|
fontFamily: fontFamily.display
|
|
25
29
|
},
|
|
26
30
|
'text-big-number-sm': {
|
|
27
|
-
fontSize: { _:
|
|
28
|
-
lineHeight:
|
|
31
|
+
fontSize: { _: fontSize.base, sm: fontSize.xl },
|
|
32
|
+
lineHeight: leading.tight,
|
|
33
|
+
fontWeight: fontWeight.normal,
|
|
29
34
|
fontFamily: fontFamily.display
|
|
30
35
|
},
|
|
31
36
|
'text-big-number-lg': {
|
|
32
|
-
fontSize: { _: '
|
|
33
|
-
lineHeight:
|
|
37
|
+
fontSize: { _: fontSize['2xl'], sm: fontSize['4xl'], md: fontSize['6xl'] },
|
|
38
|
+
lineHeight: leading.tight,
|
|
39
|
+
fontWeight: fontWeight.normal,
|
|
34
40
|
fontFamily: fontFamily.display
|
|
35
41
|
},
|
|
36
42
|
'text-heading-2xl': {
|
|
37
|
-
fontSize: { _: '
|
|
38
|
-
lineHeight:
|
|
43
|
+
fontSize: { _: fontSize['3xl'], sm: fontSize['5xl'], md: fontSize['6xl'] },
|
|
44
|
+
lineHeight: leading.tight,
|
|
45
|
+
fontWeight: fontWeight.normal
|
|
39
46
|
},
|
|
40
47
|
'text-heading-xl': {
|
|
41
|
-
fontSize: { _:
|
|
42
|
-
lineHeight:
|
|
48
|
+
fontSize: { _: fontSize.xl, sm: fontSize['3xl'], md: fontSize['4xl'] },
|
|
49
|
+
lineHeight: leading.tight,
|
|
50
|
+
fontWeight: fontWeight.normal
|
|
43
51
|
},
|
|
44
52
|
'text-heading-lg': {
|
|
45
|
-
fontSize: { _:
|
|
46
|
-
lineHeight:
|
|
53
|
+
fontSize: { _: fontSize.lg, md: fontSize['3xl'] },
|
|
54
|
+
lineHeight: leading.tight,
|
|
55
|
+
fontWeight: fontWeight.normal
|
|
47
56
|
},
|
|
48
57
|
'text-heading-md': {
|
|
49
|
-
fontSize: { _:
|
|
50
|
-
lineHeight:
|
|
58
|
+
fontSize: { _: fontSize.base, sm: fontSize.xl, md: fontSize['2xl'] },
|
|
59
|
+
lineHeight: leading.tight,
|
|
60
|
+
fontWeight: fontWeight.normal
|
|
51
61
|
},
|
|
52
62
|
'text-heading-sm': {
|
|
53
|
-
fontSize: { _:
|
|
54
|
-
lineHeight:
|
|
63
|
+
fontSize: { _: fontSize.sm, sm: fontSize.base, md: fontSize.lg },
|
|
64
|
+
lineHeight: leading.snug,
|
|
65
|
+
fontWeight: fontWeight.normal
|
|
55
66
|
},
|
|
56
67
|
'text-heading-xs': {
|
|
57
|
-
fontSize:
|
|
58
|
-
lineHeight:
|
|
68
|
+
fontSize: fontSize.base,
|
|
69
|
+
lineHeight: leading.snug,
|
|
70
|
+
fontWeight: fontWeight.normal
|
|
59
71
|
},
|
|
60
72
|
'text-heading-xxs': {
|
|
61
|
-
fontSize:
|
|
62
|
-
lineHeight:
|
|
73
|
+
fontSize: fontSize.sm,
|
|
74
|
+
lineHeight: leading.snug,
|
|
75
|
+
fontWeight: fontWeight.normal
|
|
63
76
|
},
|
|
64
77
|
'text-label-lg': {
|
|
65
|
-
fontSize:
|
|
66
|
-
lineHeight:
|
|
67
|
-
fontWeight:
|
|
78
|
+
fontSize: fontSize.base,
|
|
79
|
+
lineHeight: leading.normal,
|
|
80
|
+
fontWeight: fontWeight.medium
|
|
68
81
|
},
|
|
69
82
|
'text-label-md': {
|
|
70
|
-
fontSize:
|
|
71
|
-
lineHeight:
|
|
72
|
-
fontWeight:
|
|
83
|
+
fontSize: fontSize.sm,
|
|
84
|
+
lineHeight: leading.normal,
|
|
85
|
+
fontWeight: fontWeight.medium
|
|
73
86
|
},
|
|
74
87
|
'text-label-sm': {
|
|
88
|
+
fontSize: fontSize.xs,
|
|
89
|
+
lineHeight: leading.normal,
|
|
90
|
+
fontWeight: fontWeight.medium
|
|
91
|
+
},
|
|
92
|
+
'text-label-code-sm': {
|
|
93
|
+
fontFamily: fontFamily.code,
|
|
75
94
|
fontSize: '0.75rem',
|
|
76
|
-
lineHeight: '1
|
|
77
|
-
fontWeight: '
|
|
95
|
+
lineHeight: '1',
|
|
96
|
+
fontWeight: '400',
|
|
97
|
+
letterSpacing: '0'
|
|
98
|
+
},
|
|
99
|
+
'text-label-code-md': {
|
|
100
|
+
fontFamily: fontFamily.code,
|
|
101
|
+
fontSize: '0.875rem',
|
|
102
|
+
lineHeight: '1',
|
|
103
|
+
fontWeight: '400',
|
|
104
|
+
letterSpacing: '0'
|
|
105
|
+
},
|
|
106
|
+
'text-label-code-lg': {
|
|
107
|
+
fontFamily: fontFamily.code,
|
|
108
|
+
fontSize: '1rem',
|
|
109
|
+
lineHeight: '1',
|
|
110
|
+
fontWeight: '400',
|
|
111
|
+
letterSpacing: '0'
|
|
78
112
|
},
|
|
79
113
|
'text-body-lg': {
|
|
80
|
-
fontSize: { _:
|
|
81
|
-
lineHeight:
|
|
114
|
+
fontSize: { _: fontSize.base, md: fontSize.lg },
|
|
115
|
+
lineHeight: leading.normal
|
|
82
116
|
},
|
|
83
117
|
'text-body-md': {
|
|
84
|
-
fontSize:
|
|
85
|
-
lineHeight:
|
|
118
|
+
fontSize: fontSize.base,
|
|
119
|
+
lineHeight: leading.normal
|
|
86
120
|
},
|
|
87
121
|
'text-body-sm': {
|
|
88
|
-
fontSize:
|
|
89
|
-
lineHeight:
|
|
122
|
+
fontSize: fontSize.sm,
|
|
123
|
+
lineHeight: leading.normal
|
|
90
124
|
},
|
|
91
125
|
'text-body-xs': {
|
|
92
|
-
fontSize:
|
|
93
|
-
lineHeight:
|
|
126
|
+
fontSize: fontSize.xs,
|
|
127
|
+
lineHeight: leading.normal
|
|
94
128
|
},
|
|
95
129
|
'text-tag-sm': {
|
|
96
|
-
fontSize:
|
|
97
|
-
lineHeight:
|
|
98
|
-
fontWeight:
|
|
130
|
+
fontSize: fontSize.xs,
|
|
131
|
+
lineHeight: leading.tight,
|
|
132
|
+
fontWeight: fontWeight.semibold
|
|
99
133
|
},
|
|
100
134
|
'text-tag-md': {
|
|
101
|
-
fontSize:
|
|
102
|
-
lineHeight:
|
|
103
|
-
fontWeight:
|
|
135
|
+
fontSize: fontSize.xs,
|
|
136
|
+
lineHeight: leading.tight,
|
|
137
|
+
fontWeight: fontWeight.semibold
|
|
104
138
|
},
|
|
105
139
|
'text-body-xxs': {
|
|
106
|
-
fontSize:
|
|
107
|
-
lineHeight:
|
|
140
|
+
fontSize: fontSize.xs,
|
|
141
|
+
lineHeight: leading.normal
|
|
108
142
|
},
|
|
109
143
|
'text-overline-md': {
|
|
110
144
|
fontFamily: fontFamily.display,
|
|
111
|
-
fontSize: { _:
|
|
112
|
-
lineHeight:
|
|
145
|
+
fontSize: { _: fontSize.xs, sm: fontSize.sm },
|
|
146
|
+
lineHeight: leading.snug,
|
|
113
147
|
letterSpacing: '0.08em',
|
|
114
148
|
textTransform: 'uppercase'
|
|
115
149
|
},
|
|
116
150
|
'text-overline-sm': {
|
|
117
151
|
fontFamily: fontFamily.display,
|
|
118
|
-
fontSize:
|
|
119
|
-
lineHeight:
|
|
152
|
+
fontSize: fontSize.xs,
|
|
153
|
+
lineHeight: leading.snug,
|
|
120
154
|
letterSpacing: '0.08em',
|
|
121
155
|
textTransform: 'uppercase'
|
|
122
156
|
},
|
|
123
157
|
'text-overline-xs': {
|
|
124
158
|
fontFamily: fontFamily.display,
|
|
125
|
-
fontSize:
|
|
126
|
-
lineHeight:
|
|
159
|
+
fontSize: fontSize.xs,
|
|
160
|
+
lineHeight: leading.snug,
|
|
127
161
|
letterSpacing: '0.08em',
|
|
128
162
|
textTransform: 'uppercase'
|
|
129
163
|
},
|
|
130
164
|
'text-button-lg': {
|
|
131
165
|
fontFamily: fontFamily.sans,
|
|
132
|
-
fontSize:
|
|
133
|
-
fontWeight:
|
|
134
|
-
lineHeight:
|
|
166
|
+
fontSize: fontSize.sm,
|
|
167
|
+
fontWeight: fontWeight.normal,
|
|
168
|
+
lineHeight: leading.tight,
|
|
135
169
|
letterSpacing: '0'
|
|
136
170
|
},
|
|
137
171
|
'text-button-md': {
|
|
138
172
|
fontFamily: fontFamily.sans,
|
|
139
|
-
fontSize:
|
|
140
|
-
fontWeight:
|
|
141
|
-
lineHeight:
|
|
173
|
+
fontSize: fontSize.xs,
|
|
174
|
+
fontWeight: fontWeight.normal,
|
|
175
|
+
lineHeight: leading.tight,
|
|
142
176
|
letterSpacing: '0'
|
|
143
177
|
},
|
|
144
178
|
/** Inline `<a>` in body/heading — inherits parent size; not the navigation Link component. */
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const accent = {
|
|
4
4
|
light: {
|
|
5
5
|
accent: tokenRef('brand.accent.accent-600'),
|
|
6
6
|
'accent-mask': tokenRef('primitives.alpha.violet.50'),
|
|
7
7
|
'accent-selected': tokenRef('brand.accent.accent-500'),
|
|
8
|
-
'accent-contrast': tokenRef('primitives.base.black')
|
|
8
|
+
'accent-contrast': tokenRef('primitives.base.black')
|
|
9
9
|
},
|
|
10
10
|
dark: {
|
|
11
11
|
accent: tokenRef('brand.accent.accent-500'),
|
|
12
12
|
'accent-mask': tokenRef('primitives.alpha.violet.100'),
|
|
13
13
|
'accent-selected': tokenRef('brand.accent.accent-500'),
|
|
14
|
-
'accent-contrast': tokenRef('primitives.base.black')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
14
|
+
'accent-contrast': tokenRef('primitives.base.black')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export default { accent }
|
|
18
|
+
export default { accent }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const border = {
|
|
4
4
|
light: {
|
|
5
5
|
'border-default': tokenRef('primitives.alpha.black.100'),
|
|
6
6
|
'border-muted': tokenRef('primitives.alpha.black.100'),
|
|
7
7
|
'border-strong': tokenRef('primitives.base.black'),
|
|
8
|
-
'border-selected': tokenRef('brand.primary.primary-500')
|
|
8
|
+
'border-selected': tokenRef('brand.primary.primary-500')
|
|
9
9
|
},
|
|
10
10
|
dark: {
|
|
11
11
|
'border-default': tokenRef('primitives.alpha.white.100'),
|
|
12
12
|
'border-muted': tokenRef('primitives.alpha.white.50'),
|
|
13
13
|
'border-strong': tokenRef('primitives.base.white'),
|
|
14
|
-
'border-selected': tokenRef('brand.primary.primary-500')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
14
|
+
'border-selected': tokenRef('brand.primary.primary-500')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export default { border }
|
|
18
|
+
export default { border }
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export namespace codeSintax {
|
|
2
|
+
let light: {
|
|
3
|
+
'code-sintax-identifier': {
|
|
4
|
+
__ref: any;
|
|
5
|
+
};
|
|
6
|
+
'code-sintax-line-number': {
|
|
7
|
+
__ref: any;
|
|
8
|
+
};
|
|
9
|
+
'code-sintax-keyword': {
|
|
10
|
+
__ref: any;
|
|
11
|
+
};
|
|
12
|
+
'code-sintax-punctuation': {
|
|
13
|
+
__ref: any;
|
|
14
|
+
};
|
|
15
|
+
'code-sintax-function': {
|
|
16
|
+
__ref: any;
|
|
17
|
+
};
|
|
18
|
+
'code-sintax-type': {
|
|
19
|
+
__ref: any;
|
|
20
|
+
};
|
|
21
|
+
'code-sintax-string': {
|
|
22
|
+
__ref: any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
let dark: {
|
|
26
|
+
'code-sintax-identifier': {
|
|
27
|
+
__ref: any;
|
|
28
|
+
};
|
|
29
|
+
'code-sintax-line-number': {
|
|
30
|
+
__ref: any;
|
|
31
|
+
};
|
|
32
|
+
'code-sintax-keyword': {
|
|
33
|
+
__ref: any;
|
|
34
|
+
};
|
|
35
|
+
'code-sintax-punctuation': {
|
|
36
|
+
__ref: any;
|
|
37
|
+
};
|
|
38
|
+
'code-sintax-function': {
|
|
39
|
+
__ref: any;
|
|
40
|
+
};
|
|
41
|
+
'code-sintax-type': {
|
|
42
|
+
__ref: any;
|
|
43
|
+
};
|
|
44
|
+
'code-sintax-string': {
|
|
45
|
+
__ref: any;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
declare namespace _default {
|
|
50
|
+
export { codeSintax };
|
|
51
|
+
}
|
|
52
|
+
export default _default;
|
|
53
|
+
//# sourceMappingURL=code-sintax.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-sintax.d.ts","sourceRoot":"","sources":["code-sintax.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Syntax-highlighting colors for code editors (Figma: code-sintax).
|
|
5
|
+
* Dark values match variable set 77:502 in Webkit Figma.
|
|
6
|
+
*/
|
|
7
|
+
export const codeSintax = {
|
|
8
|
+
light: {
|
|
9
|
+
'code-sintax-identifier': tokenRef('primitives.gray.900'),
|
|
10
|
+
'code-sintax-line-number': tokenRef('primitives.gray.500'),
|
|
11
|
+
'code-sintax-keyword': tokenRef('primitives.blue.600'),
|
|
12
|
+
'code-sintax-punctuation': tokenRef('primitives.gray.500'),
|
|
13
|
+
'code-sintax-function': tokenRef('brand.primary.primary-500'),
|
|
14
|
+
'code-sintax-type': tokenRef('primitives.yellow.700'),
|
|
15
|
+
'code-sintax-string': tokenRef('primitives.blue.600')
|
|
16
|
+
},
|
|
17
|
+
dark: {
|
|
18
|
+
'code-sintax-identifier': tokenRef('primitives.gray.50'),
|
|
19
|
+
'code-sintax-line-number': tokenRef('primitives.gray.400'),
|
|
20
|
+
'code-sintax-keyword': tokenRef('primitives.blue.400'),
|
|
21
|
+
'code-sintax-punctuation': tokenRef('primitives.gray.400'),
|
|
22
|
+
'code-sintax-function': tokenRef('brand.primary.primary-500'),
|
|
23
|
+
'code-sintax-type': tokenRef('primitives.yellow.300'),
|
|
24
|
+
'code-sintax-string': tokenRef('primitives.blue.400')
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default { codeSintax }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tokenRef } from '../../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const danger = {
|
|
4
4
|
light: {
|
|
5
5
|
danger: tokenRef('primitives.red.100'),
|
|
6
6
|
'danger-border': tokenRef('primitives.alpha.red.400'),
|
|
7
|
-
'danger-contrast': tokenRef('primitives.red.700')
|
|
7
|
+
'danger-contrast': tokenRef('primitives.red.700')
|
|
8
8
|
},
|
|
9
9
|
dark: {
|
|
10
10
|
danger: tokenRef('primitives.red.800'),
|
|
11
11
|
'danger-border': tokenRef('primitives.alpha.red.400'),
|
|
12
|
-
'danger-contrast': tokenRef('primitives.red.300')
|
|
13
|
-
}
|
|
14
|
-
}
|
|
12
|
+
'danger-contrast': tokenRef('primitives.red.300')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
export default { danger }
|
|
16
|
+
export default { danger }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tokenRef } from '../../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const info = {
|
|
4
4
|
light: {
|
|
5
5
|
info: tokenRef('primitives.blue.100'),
|
|
6
6
|
'info-border': tokenRef('primitives.alpha.violet.400'),
|
|
7
|
-
'info-contrast': tokenRef('primitives.blue.700')
|
|
7
|
+
'info-contrast': tokenRef('primitives.blue.700')
|
|
8
8
|
},
|
|
9
9
|
dark: {
|
|
10
10
|
info: tokenRef('primitives.blue.900'),
|
|
11
11
|
'info-border': tokenRef('primitives.alpha.blue.500'),
|
|
12
|
-
'info-contrast': tokenRef('primitives.blue.300')
|
|
13
|
-
}
|
|
14
|
-
}
|
|
12
|
+
'info-contrast': tokenRef('primitives.blue.300')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
export default { info }
|
|
16
|
+
export default { info }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tokenRef } from '../../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const success = {
|
|
4
4
|
light: {
|
|
5
5
|
success: tokenRef('primitives.green.200'),
|
|
6
6
|
'success-border': tokenRef('primitives.alpha.green.400'),
|
|
7
|
-
'success-contrast': tokenRef('primitives.green.800')
|
|
7
|
+
'success-contrast': tokenRef('primitives.green.800')
|
|
8
8
|
},
|
|
9
9
|
dark: {
|
|
10
10
|
success: tokenRef('primitives.green.900'),
|
|
11
11
|
'success-border': tokenRef('primitives.alpha.green.400'),
|
|
12
|
-
'success-contrast': tokenRef('primitives.green.400')
|
|
13
|
-
}
|
|
14
|
-
}
|
|
12
|
+
'success-contrast': tokenRef('primitives.green.400')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
export default { success }
|
|
16
|
+
export default { success }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { tokenRef } from '../../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const warning = {
|
|
4
4
|
light: {
|
|
5
5
|
warning: tokenRef('primitives.yellow.200'),
|
|
6
6
|
'warning-border': tokenRef('primitives.alpha.yellow.500'),
|
|
7
|
-
'warning-contrast': tokenRef('primitives.yellow.800')
|
|
7
|
+
'warning-contrast': tokenRef('primitives.yellow.800')
|
|
8
8
|
},
|
|
9
9
|
dark: {
|
|
10
10
|
warning: tokenRef('primitives.yellow.900'),
|
|
11
11
|
'warning-border': tokenRef('primitives.alpha.yellow.500'),
|
|
12
|
-
'warning-contrast': tokenRef('primitives.yellow.500')
|
|
13
|
-
}
|
|
14
|
-
}
|
|
12
|
+
'warning-contrast': tokenRef('primitives.yellow.500')
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
export default { warning }
|
|
16
|
+
export default { warning }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const primary = {
|
|
4
4
|
light: {
|
|
5
5
|
primary: tokenRef('brand.primary.primary-500'),
|
|
6
6
|
'primary-mask': tokenRef('primitives.alpha.orange.200'),
|
|
7
7
|
'primary-selected': tokenRef('primitives.alpha.orange.200'),
|
|
8
|
-
'primary-contrast': tokenRef('primitives.base.black')
|
|
8
|
+
'primary-contrast': tokenRef('primitives.base.black')
|
|
9
9
|
},
|
|
10
10
|
dark: {
|
|
11
11
|
primary: tokenRef('brand.primary.primary-500'),
|
|
12
12
|
'primary-mask': tokenRef('primitives.alpha.orange.200'),
|
|
13
13
|
'primary-selected': tokenRef('primitives.alpha.orange.200'),
|
|
14
|
-
'primary-contrast': tokenRef('primitives.base.white')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
14
|
+
'primary-contrast': tokenRef('primitives.base.white')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export default { primary }
|
|
18
|
+
export default { primary }
|
package/src/tokens/theme/ring.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const ring = {
|
|
4
4
|
light: {
|
|
5
|
-
'ring-color': tokenRef('theme.surfaces.surface-600')
|
|
5
|
+
'ring-color': tokenRef('theme.surfaces.surface-600')
|
|
6
6
|
},
|
|
7
7
|
dark: {
|
|
8
|
-
'ring-color': tokenRef('theme.surfaces.surface-700')
|
|
9
|
-
}
|
|
10
|
-
}
|
|
8
|
+
'ring-color': tokenRef('theme.surfaces.surface-700')
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
export default { ring }
|
|
12
|
+
export default { ring }
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
export const secondary = {
|
|
4
4
|
light: {
|
|
5
5
|
secondary: tokenRef('theme.surfaces.surface-950'),
|
|
6
6
|
'secondary-mask': tokenRef('primitives.alpha.black.50'),
|
|
7
7
|
'secondary-selected': tokenRef('theme.surfaces.surface-950'),
|
|
8
|
-
'secondary-contrast': tokenRef('primitives.base.white')
|
|
8
|
+
'secondary-contrast': tokenRef('primitives.base.white')
|
|
9
9
|
},
|
|
10
10
|
dark: {
|
|
11
11
|
secondary: tokenRef('theme.surfaces.surface-0'),
|
|
12
12
|
'secondary-mask': tokenRef('primitives.alpha.white.100'),
|
|
13
13
|
'secondary-selected': tokenRef('theme.surfaces.surface-0'),
|
|
14
|
-
'secondary-contrast': tokenRef('primitives.base.black')
|
|
15
|
-
}
|
|
16
|
-
}
|
|
14
|
+
'secondary-contrast': tokenRef('primitives.base.black')
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
|
|
18
|
-
export default { secondary }
|
|
18
|
+
export default { secondary }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["surfaces.js"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"surfaces.d.ts","sourceRoot":"","sources":["surfaces.js"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { tokenRef } from '../../scripts/refs.js'
|
|
1
|
+
import { tokenRef } from '../../scripts/refs.js'
|
|
2
2
|
|
|
3
3
|
const shared = {
|
|
4
4
|
'surface-0': tokenRef('primitives.base.white'),
|
|
@@ -12,12 +12,12 @@ const shared = {
|
|
|
12
12
|
'surface-700': tokenRef('primitives.gray.700'),
|
|
13
13
|
'surface-800': tokenRef('primitives.gray.800'),
|
|
14
14
|
'surface-900': tokenRef('primitives.gray.900'),
|
|
15
|
-
'surface-950': tokenRef('primitives.gray.950')
|
|
16
|
-
}
|
|
15
|
+
'surface-950': tokenRef('primitives.gray.950')
|
|
16
|
+
}
|
|
17
17
|
|
|
18
18
|
export const surfaces = {
|
|
19
19
|
light: shared,
|
|
20
|
-
dark: shared
|
|
21
|
-
}
|
|
20
|
+
dark: shared
|
|
21
|
+
}
|
|
22
22
|
|
|
23
|
-
export default { surfaces }
|
|
23
|
+
export default { surfaces }
|
|
@@ -12,6 +12,9 @@ export namespace text {
|
|
|
12
12
|
'text-link': {
|
|
13
13
|
__ref: any;
|
|
14
14
|
};
|
|
15
|
+
'text-link-hover': {
|
|
16
|
+
__ref: any;
|
|
17
|
+
};
|
|
15
18
|
'text-contrast': {
|
|
16
19
|
__ref: any;
|
|
17
20
|
};
|
|
@@ -29,6 +32,9 @@ export namespace text {
|
|
|
29
32
|
'text-link': {
|
|
30
33
|
__ref: any;
|
|
31
34
|
};
|
|
35
|
+
'text-link-hover': {
|
|
36
|
+
__ref: any;
|
|
37
|
+
};
|
|
32
38
|
'text-contrast': {
|
|
33
39
|
__ref: any;
|
|
34
40
|
};
|
package/src/tokens/theme/text.js
CHANGED
|
@@ -6,6 +6,7 @@ export const text = {
|
|
|
6
6
|
'text-muted': tokenRef('primitives.gray.600'),
|
|
7
7
|
'text-disabled': tokenRef('primitives.gray.400'),
|
|
8
8
|
'text-link': tokenRef('primitives.blue.600'),
|
|
9
|
+
'text-link-hover': tokenRef('primitives.blue.700'),
|
|
9
10
|
'text-contrast': tokenRef('primitives.gray.50')
|
|
10
11
|
},
|
|
11
12
|
dark: {
|
|
@@ -13,6 +14,7 @@ export const text = {
|
|
|
13
14
|
'text-muted': tokenRef('primitives.gray.400'),
|
|
14
15
|
'text-disabled': tokenRef('primitives.gray.700'),
|
|
15
16
|
'text-link': tokenRef('primitives.blue.400'),
|
|
17
|
+
'text-link-hover': tokenRef('primitives.blue.300'),
|
|
16
18
|
'text-contrast': tokenRef('primitives.base.black')
|
|
17
19
|
}
|
|
18
20
|
}
|