@ippon-ui/ui 0.0.2

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 (246) hide show
  1. package/.agents/agents/component-library-create-from-pattern-library.agent.md +37 -0
  2. package/.agents/agents/patten-library-create-component.agent.md +30 -0
  3. package/.agents/skills/component-library/SKILL.md +169 -0
  4. package/.agents/skills/pattern-library/SKILL.md +277 -0
  5. package/.github/workflows/build.yml +34 -0
  6. package/.gitlab-ci.yml +12 -0
  7. package/.prettierignore +6 -0
  8. package/AGENTS.md +50 -0
  9. package/LICENSE +202 -0
  10. package/ci/build.yml +15 -0
  11. package/ci/common.yml +42 -0
  12. package/ci/deploy.yml +20 -0
  13. package/icons/LICENCE +202 -0
  14. package/icons/index.ts +69 -0
  15. package/icons/package.json +25 -0
  16. package/icons/tsconfig.json +11 -0
  17. package/lefthook.yml +10 -0
  18. package/mise.toml +55 -0
  19. package/package.json +26 -0
  20. package/pnpm-workspace.yaml +9 -0
  21. package/prettier.config.mts +8 -0
  22. package/react/LICENCE +202 -0
  23. package/react/README.md +75 -0
  24. package/react/eslint.config.js +22 -0
  25. package/react/package.json +63 -0
  26. package/react/src/CAP.ts +14 -0
  27. package/react/src/Card.ts +2 -0
  28. package/react/src/DataSelectable.ts +7 -0
  29. package/react/src/Grid.ts +33 -0
  30. package/react/src/IpponBadge.tsx +62 -0
  31. package/react/src/IpponButton.tsx +93 -0
  32. package/react/src/IpponButtonCard.tsx +34 -0
  33. package/react/src/IpponCard.tsx +30 -0
  34. package/react/src/IpponContainer.tsx +15 -0
  35. package/react/src/IpponGrid.tsx +56 -0
  36. package/react/src/IpponHSpace.tsx +56 -0
  37. package/react/src/IpponIcon.tsx +15 -0
  38. package/react/src/IpponImportFile.tsx +128 -0
  39. package/react/src/IpponIon.tsx +45 -0
  40. package/react/src/IpponMeter.tsx +43 -0
  41. package/react/src/IpponProgress.tsx +45 -0
  42. package/react/src/IpponText.tsx +56 -0
  43. package/react/src/IpponTitle.tsx +45 -0
  44. package/react/src/IpponVSpace.tsx +43 -0
  45. package/react/src/Optional.ts +177 -0
  46. package/react/src/Tokens.ts +36 -0
  47. package/react/src/index.ts +16 -0
  48. package/react/test/File.fixture.ts +13 -0
  49. package/react/test/IpponBadge.spec.tsx +245 -0
  50. package/react/test/IpponButton.spec.tsx +666 -0
  51. package/react/test/IpponButtonCard.spec.tsx +162 -0
  52. package/react/test/IpponCard.spec.tsx +133 -0
  53. package/react/test/IpponContainer.spec.tsx +56 -0
  54. package/react/test/IpponGrid.spec.tsx +140 -0
  55. package/react/test/IpponHSpace.spec.tsx +107 -0
  56. package/react/test/IpponIcon.spec.tsx +37 -0
  57. package/react/test/IpponImportFile.spec.tsx +431 -0
  58. package/react/test/IpponIon.spec.tsx +52 -0
  59. package/react/test/IpponMeter.spec.tsx +59 -0
  60. package/react/test/IpponProgress.spec.tsx +68 -0
  61. package/react/test/IpponText.spec.tsx +149 -0
  62. package/react/test/IpponTitle.spec.tsx +242 -0
  63. package/react/test/IpponVSpace.spec.tsx +91 -0
  64. package/react/tsconfig.app.json +24 -0
  65. package/react/tsconfig.json +4 -0
  66. package/react/tsconfig.node.json +23 -0
  67. package/react/vite.config.ts +30 -0
  68. package/react/vitest.config.ts +21 -0
  69. package/styles/.editorconfig +12 -0
  70. package/styles/.stylelintrc.json +75 -0
  71. package/styles/LICENCE +202 -0
  72. package/styles/README.md +107 -0
  73. package/styles/logo.svg +26 -0
  74. package/styles/package.json +67 -0
  75. package/styles/src/atom/_atom.scss +9 -0
  76. package/styles/src/atom/atom.pug +34 -0
  77. package/styles/src/atom/badge/_badge.scss +108 -0
  78. package/styles/src/atom/badge/badge.code.pug +29 -0
  79. package/styles/src/atom/badge/badge.md +1 -0
  80. package/styles/src/atom/badge/badge.mixin.pug +24 -0
  81. package/styles/src/atom/badge/badge.render.pug +7 -0
  82. package/styles/src/atom/button/_button.scss +242 -0
  83. package/styles/src/atom/button/button.code.pug +38 -0
  84. package/styles/src/atom/button/button.md +31 -0
  85. package/styles/src/atom/button/button.mixin.pug +30 -0
  86. package/styles/src/atom/button/button.render.pug +13 -0
  87. package/styles/src/atom/icon/_icon.scss +8 -0
  88. package/styles/src/atom/icon/icon.code.pug +5 -0
  89. package/styles/src/atom/icon/icon.md +11 -0
  90. package/styles/src/atom/icon/icon.mixin.pug +8 -0
  91. package/styles/src/atom/icon/icon.render.pug +7 -0
  92. package/styles/src/atom/ion/ion.code.pug +8 -0
  93. package/styles/src/atom/ion/ion.md +11 -0
  94. package/styles/src/atom/ion/ion.mixin.pug +8 -0
  95. package/styles/src/atom/ion/ion.render.pug +7 -0
  96. package/styles/src/atom/meter/_meter.scss +23 -0
  97. package/styles/src/atom/meter/meter.code.pug +8 -0
  98. package/styles/src/atom/meter/meter.md +7 -0
  99. package/styles/src/atom/meter/meter.mixin.pug +12 -0
  100. package/styles/src/atom/meter/meter.render.pug +5 -0
  101. package/styles/src/atom/progress/_progress.scss +23 -0
  102. package/styles/src/atom/progress/progress.code.pug +8 -0
  103. package/styles/src/atom/progress/progress.md +7 -0
  104. package/styles/src/atom/progress/progress.mixin.pug +14 -0
  105. package/styles/src/atom/progress/progress.render.pug +5 -0
  106. package/styles/src/atom/tab/_tab.scss +48 -0
  107. package/styles/src/atom/tab/tab.code.pug +5 -0
  108. package/styles/src/atom/tab/tab.md +1 -0
  109. package/styles/src/atom/tab/tab.mixin.pug +14 -0
  110. package/styles/src/atom/tab/tab.render.pug +4 -0
  111. package/styles/src/atom/text/_text.scss +74 -0
  112. package/styles/src/atom/text/text.code.pug +19 -0
  113. package/styles/src/atom/text/text.md +5 -0
  114. package/styles/src/atom/text/text.mixin.pug +12 -0
  115. package/styles/src/atom/text/text.render.pug +7 -0
  116. package/styles/src/atom/title/_title.scss +68 -0
  117. package/styles/src/atom/title/title.code.pug +25 -0
  118. package/styles/src/atom/title/title.md +9 -0
  119. package/styles/src/atom/title/title.mixin.pug +12 -0
  120. package/styles/src/atom/title/title.render.pug +5 -0
  121. package/styles/src/atom/title-display/_title-display.scss +26 -0
  122. package/styles/src/atom/title-display/title-display.code.pug +9 -0
  123. package/styles/src/atom/title-display/title-display.md +5 -0
  124. package/styles/src/atom/title-display/title-display.mixin.pug +6 -0
  125. package/styles/src/atom/title-display/title-display.render.pug +4 -0
  126. package/styles/src/doc.scss +2 -0
  127. package/styles/src/favicon.ico +0 -0
  128. package/styles/src/function/_conversion.scss +9 -0
  129. package/styles/src/index.pug +59 -0
  130. package/styles/src/layout-documentation.pug +14 -0
  131. package/styles/src/layout.pug +17 -0
  132. package/styles/src/molecule/_molecule.scss +2 -0
  133. package/styles/src/molecule/import-file/_import-file.scss +38 -0
  134. package/styles/src/molecule/import-file/import-file.code.pug +4 -0
  135. package/styles/src/molecule/import-file/import-file.md +1 -0
  136. package/styles/src/molecule/import-file/import-file.mixin.pug +15 -0
  137. package/styles/src/molecule/import-file/import-file.render.pug +5 -0
  138. package/styles/src/molecule/molecule.pug +20 -0
  139. package/styles/src/molecule/tabs/_tabs.scss +4 -0
  140. package/styles/src/molecule/tabs/tabs.code.pug +9 -0
  141. package/styles/src/molecule/tabs/tabs.md +1 -0
  142. package/styles/src/molecule/tabs/tabs.mixin.pug +4 -0
  143. package/styles/src/molecule/tabs/tabs.render.pug +4 -0
  144. package/styles/src/molecule/toggle/_toggle.scss +68 -0
  145. package/styles/src/molecule/toggle/toggle.code.pug +26 -0
  146. package/styles/src/molecule/toggle/toggle.md +1 -0
  147. package/styles/src/molecule/toggle/toggle.mixin.pug +36 -0
  148. package/styles/src/molecule/toggle/toggle.render.pug +5 -0
  149. package/styles/src/organism/_abstract-card.scss +36 -0
  150. package/styles/src/organism/_docorganism.scss +1 -0
  151. package/styles/src/organism/_organism.scss +8 -0
  152. package/styles/src/organism/button-card/_button-card.scss +22 -0
  153. package/styles/src/organism/button-card/button-card.code.pug +31 -0
  154. package/styles/src/organism/button-card/button-card.md +28 -0
  155. package/styles/src/organism/button-card/button-card.mixin.pug +8 -0
  156. package/styles/src/organism/button-card/button-card.render.pug +7 -0
  157. package/styles/src/organism/card/_card.scss +6 -0
  158. package/styles/src/organism/card/card.code.pug +9 -0
  159. package/styles/src/organism/card/card.md +23 -0
  160. package/styles/src/organism/card/card.mixin.pug +7 -0
  161. package/styles/src/organism/card/card.render.pug +7 -0
  162. package/styles/src/organism/container/_container.scss +3 -0
  163. package/styles/src/organism/container/container.code.pug +13 -0
  164. package/styles/src/organism/container/container.md +5 -0
  165. package/styles/src/organism/container/container.mixin.pug +3 -0
  166. package/styles/src/organism/container/container.render.pug +4 -0
  167. package/styles/src/organism/grid/_docgrid.scss +11 -0
  168. package/styles/src/organism/grid/_grid.scss +84 -0
  169. package/styles/src/organism/grid/grid.code.pug +25 -0
  170. package/styles/src/organism/grid/grid.md +1 -0
  171. package/styles/src/organism/grid/grid.mixin.pug +7 -0
  172. package/styles/src/organism/grid/grid.render.pug +5 -0
  173. package/styles/src/organism/h-space/_h-space.scss +49 -0
  174. package/styles/src/organism/h-space/h-space.code.pug +56 -0
  175. package/styles/src/organism/h-space/h-space.md +22 -0
  176. package/styles/src/organism/h-space/h-space.mixin.pug +14 -0
  177. package/styles/src/organism/h-space/h-space.render.pug +5 -0
  178. package/styles/src/organism/header/_header.scss +8 -0
  179. package/styles/src/organism/header/header.code.pug +14 -0
  180. package/styles/src/organism/header/header.md +1 -0
  181. package/styles/src/organism/header/header.mixin.pug +7 -0
  182. package/styles/src/organism/header/header.render.pug +4 -0
  183. package/styles/src/organism/modal/_modal.scss +58 -0
  184. package/styles/src/organism/modal/modal.code.pug +68 -0
  185. package/styles/src/organism/modal/modal.md +1 -0
  186. package/styles/src/organism/modal/modal.mixin.pug +25 -0
  187. package/styles/src/organism/modal/modal.render.pug +4 -0
  188. package/styles/src/organism/organism.pug +30 -0
  189. package/styles/src/organism/v-space/_v-space.scss +45 -0
  190. package/styles/src/organism/v-space/v-space.code.pug +41 -0
  191. package/styles/src/organism/v-space/v-space.md +20 -0
  192. package/styles/src/organism/v-space/v-space.mixin.pug +7 -0
  193. package/styles/src/organism/v-space/v-space.render.pug +5 -0
  194. package/styles/src/quark/_breakpoint.scss +12 -0
  195. package/styles/src/quark/_font.scss +38 -0
  196. package/styles/src/quark/_gap.scss +34 -0
  197. package/styles/src/quark/_placeholder.scss +27 -0
  198. package/styles/src/quark/_shadow.scss +13 -0
  199. package/styles/src/quark/_typography.scss +146 -0
  200. package/styles/src/template/_template.scss +1 -0
  201. package/styles/src/template/layout/_layout.scss +20 -0
  202. package/styles/src/template/layout/layout.code.pug +11 -0
  203. package/styles/src/template/layout/layout.md +1 -0
  204. package/styles/src/template/layout/layout.mixin.pug +11 -0
  205. package/styles/src/template/layout/layout.render.pug +4 -0
  206. package/styles/src/template/template.pug +16 -0
  207. package/styles/src/tikui.scss +5 -0
  208. package/styles/src/token/_doctable.scss +14 -0
  209. package/styles/src/token/_doctoken.scss +1 -0
  210. package/styles/src/token/_size.scss +9 -0
  211. package/styles/src/token/_token.scss +5 -0
  212. package/styles/src/token/color/_color.scss +9 -0
  213. package/styles/src/token/color/color/_base.scss +65 -0
  214. package/styles/src/token/color/color/_brand.scss +13 -0
  215. package/styles/src/token/color/color/_error.scss +13 -0
  216. package/styles/src/token/color/color/_information-2.scss +13 -0
  217. package/styles/src/token/color/color/_information.scss +13 -0
  218. package/styles/src/token/color/color/_neutral.scss +20 -0
  219. package/styles/src/token/color/color/_semantic.scss +69 -0
  220. package/styles/src/token/color/color/_success.scss +13 -0
  221. package/styles/src/token/color/color/_warning.scss +13 -0
  222. package/styles/src/token/color/color.js +31 -0
  223. package/styles/src/token/color/color.mixin.pug +19 -0
  224. package/styles/src/token/color/color.pug +9 -0
  225. package/styles/src/token/color/color.render.pug +13 -0
  226. package/styles/src/token/radius/_radius.scss +8 -0
  227. package/styles/src/token/radius/radius.js +54 -0
  228. package/styles/src/token/radius/radius.mixin.pug +14 -0
  229. package/styles/src/token/radius/radius.pug +9 -0
  230. package/styles/src/token/radius/radius.render.pug +11 -0
  231. package/styles/src/token/shadow/_shadow.scss +22 -0
  232. package/styles/src/token/shadow/shadow.js +45 -0
  233. package/styles/src/token/shadow/shadow.mixin.pug +13 -0
  234. package/styles/src/token/shadow/shadow.pug +9 -0
  235. package/styles/src/token/shadow/shadow.render.pug +9 -0
  236. package/styles/src/token/token.js +38 -0
  237. package/styles/src/token/token.pug +25 -0
  238. package/styles/src/token/typography/_typography.scss +103 -0
  239. package/styles/src/token/typography/typography.js +32 -0
  240. package/styles/src/token/typography/typography.mixin.pug +17 -0
  241. package/styles/src/token/typography/typography.pug +9 -0
  242. package/styles/src/token/typography/typography.render.pug +19 -0
  243. package/styles/test/function/conversion.test.scss +20 -0
  244. package/styles/test/function/sass.spec.ts +6 -0
  245. package/styles/tikuiconfig.json +14 -0
  246. package/styles/tsconfig.json +10 -0
@@ -0,0 +1,103 @@
1
+ @use '../../function/conversion';
2
+
3
+ :root {
4
+ --ippon-typography-display-font: 'Saira Extra Condensed', sans-serif;
5
+ --ippon-typography-font: 'Open Sans', sans-serif;
6
+ --ippon-typography-weight-normal: 400;
7
+ --ippon-typography-weight-semi-bold: 600;
8
+ --ippon-typography-weight-bold: 700;
9
+ --ippon-typography-uppercase: uppercase;
10
+
11
+ // Display Large
12
+ --ippon-typography-display-large-line-height: var(--ippon-size-64);
13
+ --ippon-typography-display-large-size: var(--ippon-size-56);
14
+ --ippon-typography-display-large-font: var(--ippon-typography-display-font);
15
+ --ippon-typography-display-large-weight: var(--ippon-typography-weight-bold);
16
+ --ippon-typography-display-large-transform: var(--ippon-typography-uppercase);
17
+
18
+ // Display Medium
19
+ --ippon-typography-display-medium-line-height: var(--ippon-size-52);
20
+ --ippon-typography-display-medium-size: var(--ippon-size-44);
21
+ --ippon-typography-display-medium-font: var(--ippon-typography-display-font);
22
+ --ippon-typography-display-medium-weight: var(--ippon-typography-weight-bold);
23
+ --ippon-typography-display-medium-transform: var(--ippon-typography-uppercase);
24
+
25
+ // Display Small
26
+ --ippon-typography-display-small-line-height: var(--ippon-size-44);
27
+ --ippon-typography-display-small-size: var(--ippon-size-36);
28
+ --ippon-typography-display-small-font: var(--ippon-typography-display-font);
29
+ --ippon-typography-display-small-weight: var(--ippon-typography-weight-bold);
30
+ --ippon-typography-display-small-transform: var(--ippon-typography-uppercase);
31
+
32
+ // Title 1
33
+ --ippon-typography-title-1-line-height: var(--ippon-size-52);
34
+ --ippon-typography-title-1-size: var(--ippon-size-48);
35
+ --ippon-typography-title-1-font: var(--ippon-typography-font);
36
+ --ippon-typography-title-1-weight: var(--ippon-typography-weight-semi-bold);
37
+ --ippon-typography-title-1-transform: var(--ippon-typography-uppercase);
38
+
39
+ // Title 2
40
+ --ippon-typography-title-2-line-height: var(--ippon-size-48);
41
+ --ippon-typography-title-2-size: var(--ippon-size-40);
42
+ --ippon-typography-title-2-font: var(--ippon-typography-font);
43
+ --ippon-typography-title-2-weight: var(--ippon-typography-weight-semi-bold);
44
+ --ippon-typography-title-2-transform: var(--ippon-typography-uppercase);
45
+
46
+ // Title 3
47
+ --ippon-typography-title-3-line-height: var(--ippon-size-44);
48
+ --ippon-typography-title-3-size: var(--ippon-size-32);
49
+ --ippon-typography-title-3-font: var(--ippon-typography-font);
50
+ --ippon-typography-title-3-weight: var(--ippon-typography-weight-semi-bold);
51
+ --ippon-typography-title-3-transform: var(--ippon-typography-uppercase);
52
+
53
+ // Title 4
54
+ --ippon-typography-title-4-line-height: var(--ippon-size-40);
55
+ --ippon-typography-title-4-size: var(--ippon-size-28);
56
+ --ippon-typography-title-4-font: var(--ippon-typography-font);
57
+ --ippon-typography-title-4-weight: var(--ippon-typography-weight-semi-bold);
58
+
59
+ // Title 5
60
+ --ippon-typography-title-5-line-height: var(--ippon-size-36);
61
+ --ippon-typography-title-5-size: var(--ippon-size-24);
62
+ --ippon-typography-title-5-font: var(--ippon-typography-font);
63
+ --ippon-typography-title-5-weight: var(--ippon-typography-weight-bold);
64
+
65
+ // Body large
66
+ --ippon-typography-body-large-line-height: var(--ippon-size-28);
67
+ --ippon-typography-body-large-size: var(--ippon-size-20);
68
+ --ippon-typography-body-large-font: var(--ippon-typography-font);
69
+ --ippon-typography-body-large-weight: var(--ippon-typography-weight-normal);
70
+ --ippon-typography-body-large-weight-bold: var(--ippon-typography-weight-bold);
71
+
72
+ // Body medium
73
+ --ippon-typography-body-medium-line-height: var(--ippon-size-24);
74
+ --ippon-typography-body-medium-size: var(--ippon-size-16);
75
+ --ippon-typography-body-medium-font: var(--ippon-typography-font);
76
+ --ippon-typography-body-medium-weight: var(--ippon-typography-weight-normal);
77
+ --ippon-typography-body-medium-weight-bold: var(--ippon-typography-weight-semi-bold);
78
+
79
+ // Body small
80
+ --ippon-typography-body-small-line-height: var(--ippon-size-16);
81
+ --ippon-typography-body-small-size: var(--ippon-size-12);
82
+ --ippon-typography-body-small-font: var(--ippon-typography-font);
83
+ --ippon-typography-body-small-weight: var(--ippon-typography-weight-normal);
84
+ --ippon-typography-body-small-weight-bold: var(--ippon-typography-weight-bold);
85
+
86
+ // Label large
87
+ --ippon-typography-label-large-line-height: var(--ippon-size-28);
88
+ --ippon-typography-label-large-size: var(--ippon-size-20);
89
+ --ippon-typography-label-large-font: var(--ippon-typography-font);
90
+ --ippon-typography-label-large-weight: var(--ippon-typography-weight-semi-bold);
91
+
92
+ // Label medium
93
+ --ippon-typography-label-medium-line-height: var(--ippon-size-20);
94
+ --ippon-typography-label-medium-size: var(--ippon-size-16);
95
+ --ippon-typography-label-medium-font: var(--ippon-typography-font);
96
+ --ippon-typography-label-medium-weight: var(--ippon-typography-weight-semi-bold);
97
+
98
+ // Label small
99
+ --ippon-typography-label-small-line-height: var(--ippon-size-16);
100
+ --ippon-typography-label-small-size: var(--ippon-size-12);
101
+ --ippon-typography-label-small-font: var(--ippon-typography-font);
102
+ --ippon-typography-label-small-weight: var(--ippon-typography-weight-semi-bold);
103
+ }
@@ -0,0 +1,32 @@
1
+ import { makeTh, makeTextTd, makeLine } from '../token.js';
2
+
3
+ export const ipponTokenTypography = (typographyList, typography) => {
4
+ const makeLineForProp = (name, prop) => {
5
+ const value = window.getComputedStyle(document.body).getPropertyValue(prop);
6
+ if (value === undefined || value === '') {
7
+ return;
8
+ }
9
+ const line = makeLine();
10
+ const tdName = makeTh(name);
11
+ const tdValue = makeTextTd({ text: value });
12
+ const tdProp = makeTextTd({ text: prop });
13
+ line.append(tdName);
14
+ line.append(tdValue);
15
+ line.append(tdProp);
16
+ return line;
17
+ };
18
+
19
+ const appendToTypographyList = (name, prop) => {
20
+ const line = makeLineForProp(name, prop);
21
+ if (line) {
22
+ typographyList.append(line);
23
+ }
24
+ };
25
+
26
+ appendToTypographyList('Font', `${typography}-font`);
27
+ appendToTypographyList('Transform', `${typography}-transform`);
28
+ appendToTypographyList('Weight', `${typography}-weight`);
29
+ appendToTypographyList('Weight bold', `${typography}-weight-bold`);
30
+ appendToTypographyList('Size', `${typography}-size`);
31
+ appendToTypographyList('Line height', `${typography}-line-height`);
32
+ };
@@ -0,0 +1,17 @@
1
+ mixin ippon-typography(typography)
2
+ - const id = `ippon-typography-${typography}`;
3
+ - const typographyVar = `--ippon-typography-${typography}`;
4
+ - const ucFirstTypography = typography.charAt(0).toUpperCase() + typography.slice(1);
5
+ section
6
+ h3(
7
+ style=`font-size: var(${typographyVar}-size); font-family: var(${typographyVar}-font); font-weight: var(${typographyVar}-weight); line-height: var(${typographyVar}-line-height); text-transform: var(${typographyVar}-transform);`
8
+ )= ucFirstTypography
9
+ table.ipp-doc-table
10
+ tbody(id=id)
11
+ script(type='module').
12
+ import { ipponTokenTypography } from '[[TIKUI_BASEPATH]]token/typography/typography.js';
13
+
14
+ (() => {
15
+ const typographyList = document.getElementById('#{id}');
16
+ ipponTokenTypography(typographyList, '#{typographyVar}');
17
+ })();
@@ -0,0 +1,9 @@
1
+ .tikui-vertical-spacing.-s24
2
+ .tikui-vertical-spacing--line
3
+ h2#typography.tikui-title-section Typographies
4
+ .tikui-vertical-spacing--line
5
+ iframe(
6
+ src='[[TIKUI_BASEPATH]]token/typography/typography.render.html',
7
+ onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+70+"px";}(this));',
8
+ style='height: 200px; width: 100%; border: none; overflow: hidden'
9
+ )
@@ -0,0 +1,19 @@
1
+ extends /layout
2
+
3
+ include typography.mixin.pug
4
+
5
+ block body
6
+ +ippon-typography('display-large')
7
+ +ippon-typography('display-medium')
8
+ +ippon-typography('display-small')
9
+ +ippon-typography('title-1')
10
+ +ippon-typography('title-2')
11
+ +ippon-typography('title-3')
12
+ +ippon-typography('title-4')
13
+ +ippon-typography('title-5')
14
+ +ippon-typography('body-large')
15
+ +ippon-typography('body-medium')
16
+ +ippon-typography('body-small')
17
+ +ippon-typography('label-small')
18
+ +ippon-typography('label-medium')
19
+ +ippon-typography('label-large')
@@ -0,0 +1,20 @@
1
+ @use 'true' as *;
2
+ @use '../../src/function/conversion';
3
+
4
+ @include test-module('Conversion') {
5
+ @include test('Should convert 0 to 0') {
6
+ @include assert-equal(conversion.to-rem(0), 0);
7
+ }
8
+
9
+ @include test('Should convert 16px to 1rem') {
10
+ @include assert-equal(conversion.to-rem(16px), 1rem);
11
+ }
12
+
13
+ @include test('Should convert 32px to 2rem') {
14
+ @include assert-equal(conversion.to-rem(32px), 2rem);
15
+ }
16
+
17
+ @include test('Should convert 8px to 0.5rem') {
18
+ @include assert-equal(conversion.to-rem(8px), 0.5rem);
19
+ }
20
+ }
@@ -0,0 +1,6 @@
1
+ import path from 'node:path';
2
+ import sassTrue from 'sass-true';
3
+ import { describe, it } from 'vitest';
4
+
5
+ const sassFile = path.join(__dirname, 'conversion.test.scss');
6
+ sassTrue.runSass({ describe, it }, sassFile);
@@ -0,0 +1,14 @@
1
+ {
2
+ "documentation": "tikui",
3
+ "port": 4220,
4
+ "reloadPort": 4221,
5
+ "expose": {
6
+ "node_modules/@fontsource/open-sans/files": "fonts/open-sans/files",
7
+ "node_modules/@fontsource/open-sans/400.css": "fonts/open-sans/400.css",
8
+ "node_modules/@fontsource/open-sans/600.css": "fonts/open-sans/600.css",
9
+ "node_modules/@fontsource/open-sans/700.css": "fonts/open-sans/700.css",
10
+ "node_modules/@fontsource/saira-extra-condensed/files": "fonts/saira-extra-condensed/files",
11
+ "node_modules/@fontsource/saira-extra-condensed/700.css": "fonts/saira-extra-condensed/700.css",
12
+ "node_modules/@ippon-ui/icons/dist": "icons"
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
4
+ "module": "commonjs" /* Specify what module code is generated. */,
5
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
6
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
7
+ "strict": true /* Enable all strict type-checking options. */,
8
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
9
+ }
10
+ }