@uniai-fe/uds-foundation 0.0.9 → 0.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/dist/index.css CHANGED
@@ -290,7 +290,8 @@
290
290
  }
291
291
  }
292
292
  html,
293
- body {
293
+ body,
294
+ .uds-theme-root {
294
295
  width: 100%;
295
296
  height: 100%;
296
297
  position: fixed;
@@ -300,7 +301,22 @@
300
301
  z-index: 0;
301
302
  }
302
303
  }
303
- @layer foundation.color {
304
+ @layer foundation.tokens {
305
+ @font-face {
306
+ font-family: "Pretendard JP Variable";
307
+ src: url("./fonts/pretendard-jp/PretendardJPVariable.woff2") format("woff2");
308
+ font-weight: 100 900;
309
+ font-style: normal;
310
+ font-display: swap;
311
+ }
312
+ @font-face {
313
+ font-family: "InterVariable";
314
+ src: url("./fonts/inter/InterVariable.woff2") format("woff2");
315
+ font-weight: 100 900;
316
+ font-style: normal;
317
+ font-display: swap;
318
+ }
319
+ /* foundation 토큰을 단일 :root 블록으로 모아 중복 선언을 방지한다. */
304
320
  :root {
305
321
  --color-common-100: #fff;
306
322
  --color-common-0: #000;
@@ -531,10 +547,6 @@
531
547
  --color-success: var(--color-green-40);
532
548
  --color-information: var(--color-blue-60);
533
549
  --color-new: var(--color-red-50);
534
- }
535
- }
536
- @layer foundation.spacing {
537
- :root {
538
550
  --spacing-padding-1: 2px;
539
551
  --spacing-padding-2: 4px;
540
552
  --spacing-padding-3: 6px;
@@ -561,10 +573,6 @@
561
573
  --spacing-gap-13: 48px;
562
574
  --spacing-gap-14: 64px;
563
575
  --spacing-gap-15: 80px;
564
- }
565
- }
566
- @layer foundation.layout {
567
- :root {
568
576
  --theme-breakpoint-xsmall-start: 0px;
569
577
  --theme-breakpoint-small-start: 768px;
570
578
  --theme-breakpoint-medium-start: 992px;
@@ -610,22 +618,6 @@
610
618
  --theme-radius-large-2: 16px;
611
619
  --theme-radius-xlarge: 16px;
612
620
  }
613
- }
614
- @layer foundation.typography {
615
- @font-face {
616
- font-family: "Pretendard JP Variable";
617
- src: url("./fonts/pretendard-jp/PretendardJPVariable.woff2") format("woff2");
618
- font-weight: 100 900;
619
- font-style: normal;
620
- font-display: swap;
621
- }
622
- @font-face {
623
- font-family: "InterVariable";
624
- src: url("./fonts/inter/InterVariable.woff2") format("woff2");
625
- font-weight: 100 900;
626
- font-style: normal;
627
- font-display: swap;
628
- }
629
621
  :root :root {
630
622
  --font-family-pretendard:
631
623
  "Pretendard JP Variable", "Pretendard JP", "Pretendard Variable",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-foundation",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "UNIAI Design System; Design Foundation Package",
5
5
  "type": "module",
6
6
  "private": false,
package/src/index.scss CHANGED
@@ -20,30 +20,17 @@
20
20
  @include initDocument.foundation-document();
21
21
  }
22
22
 
23
- @layer foundation.color {
24
- :root {
25
- @include colorTokens.foundation-color-tokens();
26
- }
27
- }
23
+ @layer foundation.tokens {
24
+ @include typoFontFace.foundation-typography-font-face();
28
25
 
29
- @layer foundation.spacing {
26
+ /* foundation 토큰을 단일 :root 블록으로 모아 중복 선언을 방지한다. */
30
27
  :root {
28
+ @include colorTokens.foundation-color-tokens();
31
29
  @include spacingPadding.foundation-spacing-padding();
32
30
  @include spacingGap.foundation-spacing-gap();
33
- }
34
- }
35
-
36
- @layer foundation.layout {
37
- :root {
38
31
  @include layoutBreakpoint.foundation-layout-breakpoint();
39
32
  @include layoutSize.foundation-layout-size();
40
33
  @include layoutRadius.foundation-layout-radius();
41
- }
42
- }
43
-
44
- @layer foundation.typography {
45
- @include typoFontFace.foundation-typography-font-face();
46
- :root {
47
34
  @include typoFontFamily.foundation-typography-font-family();
48
35
  @include typoDisplay.foundation-typography-display();
49
36
  @include typoHeading.foundation-typography-heading();
@@ -1,7 +1,8 @@
1
1
  // 문서 루트 영역 기본 레이아웃 mixin
2
2
  @mixin foundation-document() {
3
3
  html,
4
- body {
4
+ body,
5
+ .uds-theme-root {
5
6
  width: 100%;
6
7
  height: 100%;
7
8
  position: fixed;