@uncinq/component-tokens 0.4.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +107 -55
  2. package/{tokens/component → dist/css/components}/alert.css +5 -1
  3. package/{tokens/component → dist/css/components}/badge.css +8 -4
  4. package/{tokens/component → dist/css/components}/breadcrumb.css +9 -12
  5. package/dist/css/components/button.css +36 -0
  6. package/dist/css/components/card.css +31 -0
  7. package/dist/css/components/container.css +23 -0
  8. package/dist/css/components/details.css +26 -0
  9. package/dist/css/components/drawer.css +26 -0
  10. package/dist/css/components/dropdown.css +30 -0
  11. package/dist/css/components/embed.css +17 -0
  12. package/dist/css/components/figure.css +13 -0
  13. package/dist/css/components/heading.css +11 -0
  14. package/dist/css/components/hero.css +20 -0
  15. package/dist/css/components/item.css +44 -0
  16. package/dist/css/components/items.css +13 -0
  17. package/{tokens/component → dist/css/components}/link.css +6 -2
  18. package/dist/css/components/list.css +15 -0
  19. package/dist/css/components/logo.css +16 -0
  20. package/dist/css/components/map.css +13 -0
  21. package/dist/css/components/media.css +11 -0
  22. package/dist/css/components/modal.css +22 -0
  23. package/dist/css/components/nav.css +21 -0
  24. package/dist/css/components/pagination.css +26 -0
  25. package/dist/css/components/surtitle.css +21 -0
  26. package/dist/css/components/table.css +15 -0
  27. package/package.json +19 -8
  28. package/tokens/components/alert.json +26 -0
  29. package/tokens/components/badge.json +42 -0
  30. package/tokens/components/breadcrumb.json +56 -0
  31. package/tokens/components/button.json +138 -0
  32. package/tokens/components/card.json +108 -0
  33. package/tokens/components/container.json +66 -0
  34. package/tokens/components/details.json +90 -0
  35. package/tokens/components/drawer.json +78 -0
  36. package/tokens/components/dropdown.json +105 -0
  37. package/tokens/components/embed.json +40 -0
  38. package/tokens/components/figure.json +24 -0
  39. package/tokens/components/heading.json +14 -0
  40. package/tokens/components/hero.json +56 -0
  41. package/tokens/components/item.json +176 -0
  42. package/tokens/components/items.json +20 -0
  43. package/tokens/components/link.json +24 -0
  44. package/tokens/components/list.json +36 -0
  45. package/tokens/components/logo.json +34 -0
  46. package/tokens/components/map.json +26 -0
  47. package/tokens/components/media.json +14 -0
  48. package/tokens/components/modal.json +62 -0
  49. package/tokens/components/nav.json +62 -0
  50. package/tokens/components/pagination.json +86 -0
  51. package/tokens/components/surtitle.json +58 -0
  52. package/tokens/components/table.json +36 -0
  53. package/tokens/component/button.css +0 -54
  54. package/tokens/component/card.css +0 -42
  55. package/tokens/component/container.css +0 -26
  56. package/tokens/component/details.css +0 -20
  57. package/tokens/component/drawer.css +0 -31
  58. package/tokens/component/dropdown.css +0 -38
  59. package/tokens/component/embed.css +0 -20
  60. package/tokens/component/figure.css +0 -9
  61. package/tokens/component/heading.css +0 -11
  62. package/tokens/component/hero.css +0 -25
  63. package/tokens/component/item.css +0 -58
  64. package/tokens/component/items.css +0 -9
  65. package/tokens/component/list.css +0 -15
  66. package/tokens/component/logo.css +0 -15
  67. package/tokens/component/map.css +0 -9
  68. package/tokens/component/media.css +0 -7
  69. package/tokens/component/modal.css +0 -25
  70. package/tokens/component/nav.css +0 -22
  71. package/tokens/component/pagination.css +0 -31
  72. package/tokens/component/surtitle.css +0 -17
  73. package/tokens/component/table.css +0 -11
  74. /package/{tokens → dist/css}/index.css +0 -0
@@ -0,0 +1,90 @@
1
+ {
2
+ "details": {
3
+ "border": {
4
+ "radius": {
5
+ "$value": "{radius.surface}",
6
+ "$type": "dimension"
7
+ }
8
+ },
9
+ "boxShadow": {
10
+ "default": {
11
+ "$value": "{shadow.sm}",
12
+ "$type": "shadow"
13
+ },
14
+ "hover": {
15
+ "$value": "{shadow.md}",
16
+ "$type": "shadow"
17
+ }
18
+ },
19
+ "color": {
20
+ "background": {
21
+ "$value": "{color.background.default}",
22
+ "$type": "color"
23
+ },
24
+ "border": {
25
+ "default": {
26
+ "$value": "{color.border.default}",
27
+ "$type": "color"
28
+ },
29
+ "open": {
30
+ "$value": "{color.border.hover}",
31
+ "$type": "color"
32
+ }
33
+ },
34
+ "text": {
35
+ "$value": "{color.text.default}",
36
+ "$type": "color"
37
+ }
38
+ },
39
+ "icon": {
40
+ "default": {
41
+ "$value": "{icon.chevron}",
42
+ "$type": "string"
43
+ },
44
+ "size": {
45
+ "$value": "{icon.size}",
46
+ "$type": "dimension"
47
+ }
48
+ },
49
+ "margin": {
50
+ "$value": "{spacing.sm}",
51
+ "$type": "dimension"
52
+ },
53
+ "content": {
54
+ "padding": {
55
+ "inline": {
56
+ "$value": "{spacing.sm}",
57
+ "$type": "dimension"
58
+ },
59
+ "block": {
60
+ "$value": "{spacing.sm}",
61
+ "$type": "dimension"
62
+ }
63
+ }
64
+ },
65
+ "summary": {
66
+ "fontFamily": {
67
+ "$value": "{fontFamily.heading}",
68
+ "$type": "fontFamily"
69
+ },
70
+ "fontSize": {
71
+ "$value": "{fontSize.md}",
72
+ "$type": "dimension"
73
+ },
74
+ "fontWeight": {
75
+ "$value": "{fontWeight.heading}",
76
+ "$type": "fontWeight"
77
+ },
78
+ "padding": {
79
+ "inline": {
80
+ "$value": "{spacing.sm}",
81
+ "$type": "dimension"
82
+ },
83
+ "block": {
84
+ "$value": "{spacing.sm}",
85
+ "$type": "dimension"
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
@@ -0,0 +1,78 @@
1
+ {
2
+ "drawer": {
3
+ "backdrop": {
4
+ "blur": {
5
+ "$value": "{blur.backdrop}",
6
+ "$type": "dimension"
7
+ },
8
+ "color": {
9
+ "$value": "{color.backdrop}",
10
+ "$type": "color"
11
+ }
12
+ },
13
+ "bottom": {
14
+ "$value": "0",
15
+ "$type": "dimension"
16
+ },
17
+ "color": {
18
+ "background": {
19
+ "$value": "{color.background.surface}",
20
+ "$type": "color"
21
+ },
22
+ "border": {
23
+ "$value": "{color.border.default}",
24
+ "$type": "color"
25
+ },
26
+ "text": {
27
+ "$value": "{color.text.onSurface}",
28
+ "$type": "color"
29
+ }
30
+ },
31
+ "end": {
32
+ "$value": "0",
33
+ "$type": "dimension"
34
+ },
35
+ "height": {
36
+ "$value": "50vh",
37
+ "$type": "dimension"
38
+ },
39
+ "padding": {
40
+ "$value": "{spacing.surface}",
41
+ "$type": "dimension"
42
+ },
43
+ "shadow": {
44
+ "$value": "{shadow.surface}",
45
+ "$type": "shadow"
46
+ },
47
+ "start": {
48
+ "$value": "auto",
49
+ "$type": "string"
50
+ },
51
+ "top": {
52
+ "$value": "0",
53
+ "$type": "dimension"
54
+ },
55
+ "transition": {
56
+ "duration": {
57
+ "$value": "{duration.slow}",
58
+ "$type": "duration"
59
+ },
60
+ "easing": {
61
+ "$value": "{easing.out-expo}",
62
+ "$type": "string"
63
+ }
64
+ },
65
+ "translate": {
66
+ "$value": "translateX(100%)",
67
+ "$type": "string"
68
+ },
69
+ "width": {
70
+ "$value": "320px",
71
+ "$type": "dimension"
72
+ },
73
+ "zIndex": {
74
+ "$value": "{zIndex.drawer}",
75
+ "$type": "number"
76
+ }
77
+ }
78
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "dropdown": {
3
+ "border": {
4
+ "radius": {
5
+ "$value": "{radius.surface}",
6
+ "$type": "dimension"
7
+ },
8
+ "style": {
9
+ "$value": "{border.style.normal}",
10
+ "$type": "strokeStyle"
11
+ },
12
+ "width": {
13
+ "$value": "{border.width.sm}",
14
+ "$type": "dimension"
15
+ }
16
+ },
17
+ "color": {
18
+ "background": {
19
+ "$value": "{color.background.surface}",
20
+ "$type": "color"
21
+ },
22
+ "border": {
23
+ "$value": "{color.border.default}",
24
+ "$type": "color"
25
+ },
26
+ "text": {
27
+ "$value": "{color.text.onSurface}",
28
+ "$type": "color"
29
+ }
30
+ },
31
+ "icon": {
32
+ "default": {
33
+ "$value": "{icon.chevron}",
34
+ "$type": "string"
35
+ },
36
+ "size": {
37
+ "$value": "{icon.size}",
38
+ "$type": "dimension"
39
+ }
40
+ },
41
+ "item": {
42
+ "border": {
43
+ "radius": {
44
+ "$value": "{radius.xs}",
45
+ "$type": "dimension"
46
+ }
47
+ },
48
+ "color": {
49
+ "background": {
50
+ "default": {
51
+ "$value": "{color.background.default}",
52
+ "$type": "color"
53
+ },
54
+ "hover": {
55
+ "$value": "{color.background.muted.default}",
56
+ "$type": "color"
57
+ }
58
+ }
59
+ },
60
+ "fontSize": {
61
+ "$value": "{fontSize.xs}",
62
+ "$type": "dimension"
63
+ },
64
+ "padding": {
65
+ "inline": {
66
+ "$value": "{spacing.2xs}",
67
+ "$type": "dimension"
68
+ },
69
+ "block": {
70
+ "$value": "{spacing.2xs}",
71
+ "$type": "dimension"
72
+ }
73
+ }
74
+ },
75
+ "minWidth": {
76
+ "$value": "12rem",
77
+ "$type": "dimension"
78
+ },
79
+ "padding": {
80
+ "$value": "{size.4}",
81
+ "$type": "dimension"
82
+ },
83
+ "shadow": {
84
+ "$value": "{shadow.sm}",
85
+ "$type": "shadow"
86
+ },
87
+ "transition": {
88
+ "duration": {
89
+ "$value": "{duration.fast}",
90
+ "$type": "duration"
91
+ },
92
+ "easing": {
93
+ "$value": "{easing.out}",
94
+ "$type": "string"
95
+ }
96
+ },
97
+ "translate": {
98
+ "y": { "$value": "-4px", "$type": "dimension" }
99
+ },
100
+ "zIndex": {
101
+ "$value": "{zIndex.dropdown}",
102
+ "$type": "number"
103
+ }
104
+ }
105
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "embed": {
3
+ "border": {
4
+ "default": {
5
+ "$value": "{embed.border.width} {embed.border.style} {embed.color.border}",
6
+ "$type": "string"
7
+ },
8
+ "radius": {
9
+ "$value": "{radius.none}",
10
+ "$type": "dimension"
11
+ },
12
+ "style": {
13
+ "$value": "{border.style.normal}",
14
+ "$type": "strokeStyle"
15
+ },
16
+ "width": {
17
+ "$value": "{border.width.sm}",
18
+ "$type": "dimension"
19
+ }
20
+ },
21
+ "boxShadow": {
22
+ "$value": "none",
23
+ "$type": "string"
24
+ },
25
+ "color": {
26
+ "border": {
27
+ "$value": "{color.border.default}",
28
+ "$type": "color"
29
+ }
30
+ },
31
+ "maxWidth": {
32
+ "$value": "100%",
33
+ "$type": "dimension"
34
+ },
35
+ "ratio": {
36
+ "$value": "{ratio.video}",
37
+ "$type": "string"
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "figure": {
3
+ "figcaption": {
4
+ "fontSize": {
5
+ "$value": "{fontSize.sm}",
6
+ "$type": "dimension"
7
+ },
8
+ "gap": {
9
+ "$value": "{spacing.xs}",
10
+ "$type": "dimension"
11
+ }
12
+ },
13
+ "gap": {
14
+ "$value": "{spacing.xs}",
15
+ "$type": "dimension"
16
+ },
17
+ "margin": {
18
+ "block": {
19
+ "$value": "{spacing.md}",
20
+ "$type": "dimension"
21
+ }
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "heading": {
3
+ "gap": {
4
+ "$value": "{spacing.xs}",
5
+ "$type": "dimension"
6
+ },
7
+ "margin": {
8
+ "blockEnd": {
9
+ "$value": "{spacing.fluid.md}",
10
+ "$type": "dimension"
11
+ }
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "hero": {
3
+ "color": {
4
+ "background": {
5
+ "$value": "{color.background.default}",
6
+ "$type": "color"
7
+ },
8
+ "link": {
9
+ "$value": "{color.text.default}",
10
+ "$type": "color"
11
+ },
12
+ "text": {
13
+ "$value": "{color.text.default}",
14
+ "$type": "color"
15
+ }
16
+ },
17
+ "cover": {
18
+ "brightness": {
19
+ "$value": 0.3,
20
+ "$type": "number"
21
+ }
22
+ },
23
+ "gap": {
24
+ "$value": "{spacing.sm}",
25
+ "$type": "dimension"
26
+ },
27
+ "minHeight": {
28
+ "default": {
29
+ "$value": "25rem",
30
+ "$type": "dimension"
31
+ },
32
+ "tablet": {
33
+ "$value": "37.5rem",
34
+ "$type": "dimension"
35
+ },
36
+ "desktop": {
37
+ "$value": "50rem",
38
+ "$type": "dimension"
39
+ }
40
+ },
41
+ "padding": {
42
+ "$value": "{spacing.md} 0",
43
+ "$type": "string"
44
+ },
45
+ "title": {
46
+ "color": {
47
+ "$value": "{color.text.default}",
48
+ "$type": "color"
49
+ },
50
+ "fontSize": {
51
+ "$value": "{fontSize.heading.01}",
52
+ "$type": "dimension"
53
+ }
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,176 @@
1
+ {
2
+ "item": {
3
+ "border": {
4
+ "radius": {
5
+ "$value": "{radius.surface}",
6
+ "$type": "dimension"
7
+ },
8
+ "style": {
9
+ "$value": "{border.style.normal}",
10
+ "$type": "strokeStyle"
11
+ },
12
+ "width": {
13
+ "$value": "{border.width.sm}",
14
+ "$type": "dimension"
15
+ }
16
+ },
17
+ "btn": {
18
+ "border": {
19
+ "width": {
20
+ "$value": "0",
21
+ "$type": "dimension"
22
+ }
23
+ },
24
+ "color": {
25
+ "background": {
26
+ "$value": "transparent",
27
+ "$type": "color"
28
+ },
29
+ "text": {
30
+ "$value": "{color.brand.default}",
31
+ "$type": "color"
32
+ }
33
+ },
34
+ "padding": {
35
+ "$value": "0",
36
+ "$type": "dimension"
37
+ },
38
+ "textDecoration": {
39
+ "default": {
40
+ "$value": "none",
41
+ "$type": "string"
42
+ },
43
+ "hover": {
44
+ "$value": "underline",
45
+ "$type": "string"
46
+ }
47
+ }
48
+ },
49
+ "color": {
50
+ "background": {
51
+ "$value": "{color.background.default}",
52
+ "$type": "color"
53
+ },
54
+ "border": {
55
+ "$value": "{color.border.default}",
56
+ "$type": "color"
57
+ },
58
+ "text": {
59
+ "default": {
60
+ "$value": "{color.text.default}",
61
+ "$type": "color"
62
+ },
63
+ "muted": {
64
+ "$value": "{color.text.muted}",
65
+ "$type": "color"
66
+ }
67
+ }
68
+ },
69
+ "gap": {
70
+ "$value": "{spacing.sm}",
71
+ "$type": "dimension"
72
+ },
73
+ "media": {
74
+ "color": {
75
+ "background": {
76
+ "$value": "{media.color.background}",
77
+ "$type": "color"
78
+ }
79
+ },
80
+ "order": {
81
+ "$value": -2,
82
+ "$type": "number"
83
+ },
84
+ "ratio": {
85
+ "$value": "{media.ratio}",
86
+ "$type": "string"
87
+ }
88
+ },
89
+ "metas": {
90
+ "border": {
91
+ "default": {
92
+ "$value": "{border.width.sm} {border.style.normal} {color.border.default}",
93
+ "$type": "string"
94
+ },
95
+ "end": {
96
+ "$value": "0",
97
+ "$type": "dimension"
98
+ },
99
+ "start": {
100
+ "$value": "0",
101
+ "$type": "dimension"
102
+ }
103
+ },
104
+ "color": {
105
+ "background": {
106
+ "$value": "{item.color.background}",
107
+ "$type": "color"
108
+ }
109
+ },
110
+ "fontSize": {
111
+ "$value": "{fontSize.2xs}",
112
+ "$type": "dimension"
113
+ },
114
+ "order": {
115
+ "$value": -1,
116
+ "$type": "number"
117
+ },
118
+ "padding": {
119
+ "inline": {
120
+ "$value": "{spacing.card}",
121
+ "$type": "dimension"
122
+ },
123
+ "block": {
124
+ "$value": "{spacing.card} 0",
125
+ "$type": "string"
126
+ }
127
+ }
128
+ },
129
+ "order": {
130
+ "$value": "none",
131
+ "$type": "string"
132
+ },
133
+ "padding": {
134
+ "inline": {
135
+ "$value": "{spacing.card}",
136
+ "$type": "dimension"
137
+ },
138
+ "block": {
139
+ "$value": "{spacing.card}",
140
+ "$type": "dimension"
141
+ }
142
+ },
143
+ "shadow": {
144
+ "default": {
145
+ "$value": "{shadow.sm}",
146
+ "$type": "shadow"
147
+ },
148
+ "hover": {
149
+ "$value": "{shadow.md}",
150
+ "$type": "shadow"
151
+ }
152
+ },
153
+ "title": {
154
+ "color": {
155
+ "$value": "{color.text.default}",
156
+ "$type": "color"
157
+ },
158
+ "fontSize": {
159
+ "$value": "{fontSize.md}",
160
+ "$type": "dimension"
161
+ },
162
+ "fontWeight": {
163
+ "$value": "{fontWeight.heading}",
164
+ "$type": "fontWeight"
165
+ },
166
+ "lineHeight": {
167
+ "$value": "{lineHeight.heading}",
168
+ "$type": "number"
169
+ }
170
+ },
171
+ "transition": {
172
+ "$value": "box-shadow var(--duration-normal) var(--easing-default)",
173
+ "$type": "string"
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "items": {
3
+ "cols": {
4
+ "$value": "auto-fill",
5
+ "$type": "string"
6
+ },
7
+ "gap": {
8
+ "$value": "{gap}",
9
+ "$type": "dimension"
10
+ },
11
+ "maxWidth": {
12
+ "$value": "100%",
13
+ "$type": "dimension"
14
+ },
15
+ "minWidth": {
16
+ "$value": "30ch",
17
+ "$type": "dimension"
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "link": {
3
+ "color": {
4
+ "textDecoration": {
5
+ "default": {
6
+ "$value": "initial",
7
+ "$type": "color"
8
+ },
9
+ "hover": {
10
+ "$value": "transparent",
11
+ "$type": "color"
12
+ }
13
+ }
14
+ },
15
+ "textDecorationLine": {
16
+ "$value": "underline",
17
+ "$type": "string"
18
+ },
19
+ "transition": {
20
+ "$value": "{transition.color}",
21
+ "$type": "string"
22
+ }
23
+ }
24
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "list": {
3
+ "item": {
4
+ "fontSize": {
5
+ "$value": "{fontSize.sm}",
6
+ "$type": "dimension"
7
+ },
8
+ "gap": {
9
+ "$value": "{spacing.2xs}",
10
+ "$type": "dimension"
11
+ },
12
+ "marker": {
13
+ "default": {
14
+ "$value": "'-'",
15
+ "$type": "string"
16
+ },
17
+ "gap": {
18
+ "$value": "{spacing.2xs}",
19
+ "$type": "dimension"
20
+ }
21
+ }
22
+ },
23
+ "label": {
24
+ "fontWeight": {
25
+ "$value": "{fontWeight.bold}",
26
+ "$type": "fontWeight"
27
+ },
28
+ "margin": {
29
+ "block": {
30
+ "$value": "{spacing.2xs}",
31
+ "$type": "dimension"
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }