Skip to content

Commit cc10612

Browse files
committed
feat(preset): add m1, m2, m3 presets
1 parent 2532ef9 commit cc10612

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"version": "0.59.13",
44
"type": "module",
55
"description": "UIKit for Cube Projects",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/cube-js/cube-ui-kit.git"
9+
},
610
"module": "dist/es/index.js",
711
"types": "dist/types/index.d.ts",
812
"sideEffects": false,

src/stories/Typography.stories.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ export const Presets = {
6060
<Block preset="p3">
6161
<CubeIcon /> The quick brown fox jumps over the lazy dog - p3
6262
</Block>
63+
<Block preset="m1">
64+
<CubeIcon /> The quick brown fox jumps over the lazy dog - m1
65+
</Block>
66+
<Block preset="m2">
67+
<CubeIcon /> The quick brown fox jumps over the lazy dog - m2
68+
</Block>
69+
<Block preset="m3">
70+
<CubeIcon /> The quick brown fox jumps over the lazy dog - m3
71+
</Block>
6372
<Block preset="p4">
6473
<CubeIcon /> The quick brown fox jumps over the lazy dog - p4
6574
</Block>

src/tokens.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,24 @@ const TOKENS = {
182182
't4m-font-weight': '600',
183183
't4m-bold-font-weight': '700',
184184
't4m-icon-size': '16px',
185+
// m1
186+
'm1-font-size': '18px',
187+
'm1-line-height': '32px',
188+
'm1-letter-spacing': '0',
189+
'm1-font-weight': '400',
190+
'm1-icon-size': '22px',
191+
// m2
192+
'm2-font-size': '16px',
193+
'm2-line-height': '28px',
194+
'm2-letter-spacing': '0',
195+
'm2-font-weight': '400',
196+
'm2-icon-size': '20px',
197+
// m2
198+
'm3-font-size': '14px',
199+
'm3-line-height': '24px',
200+
'm3-letter-spacing': '0',
201+
'm3-font-weight': '400',
202+
'm3-icon-size': '20px',
185203
// p1
186204
'p1-font-size': '18px',
187205
'p1-line-height': '28px',

0 commit comments

Comments
 (0)