@xds/vue 0.0.0-stage → 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.
Files changed (153) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +19 -2
  3. package/dist/Accordion.js +4 -0
  4. package/dist/Accordion.vue.d.ts +28 -0
  5. package/dist/Accordion.vue_vue_type_script_setup_true_lang.js +56 -0
  6. package/dist/AccordionPanel.js +4 -0
  7. package/dist/AccordionPanel.vue.d.ts +16 -0
  8. package/dist/AccordionPanel.vue_vue_type_script_setup_true_lang.js +29 -0
  9. package/dist/Avatar.js +4 -0
  10. package/dist/Avatar.vue.d.ts +6 -0
  11. package/dist/Avatar.vue_vue_type_script_setup_true_lang.js +35 -0
  12. package/dist/AvatarStack.js +4 -0
  13. package/dist/AvatarStack.vue.d.ts +5 -0
  14. package/dist/AvatarStack.vue_vue_type_script_setup_true_lang.js +45 -0
  15. package/dist/Badge.js +4 -0
  16. package/dist/Badge.vue.d.ts +15 -0
  17. package/dist/Badge.vue_vue_type_script_setup_true_lang.js +35 -0
  18. package/dist/Banner.js +4 -0
  19. package/dist/Banner.vue.d.ts +26 -0
  20. package/dist/Banner.vue_vue_type_script_setup_true_lang.js +65 -0
  21. package/dist/Button.js +4 -0
  22. package/dist/Button.vue.d.ts +21 -0
  23. package/dist/Button.vue_vue_type_script_setup_true_lang.js +96 -0
  24. package/dist/Card.js +4 -0
  25. package/dist/Card.vue.d.ts +24 -0
  26. package/dist/Card.vue_vue_type_script_setup_true_lang.js +96 -0
  27. package/dist/Checkbox.js +4 -0
  28. package/dist/Checkbox.vue.d.ts +16 -0
  29. package/dist/Checkbox.vue_vue_type_script_setup_true_lang.js +68 -0
  30. package/dist/Chip.js +4 -0
  31. package/dist/Chip.vue.d.ts +9 -0
  32. package/dist/Chip.vue_vue_type_script_setup_true_lang.js +42 -0
  33. package/dist/ChipBar.js +4 -0
  34. package/dist/ChipBar.vue.d.ts +15 -0
  35. package/dist/ChipBar.vue_vue_type_script_setup_true_lang.js +18 -0
  36. package/dist/CountBadge.js +4 -0
  37. package/dist/CountBadge.vue.d.ts +15 -0
  38. package/dist/CountBadge.vue_vue_type_script_setup_true_lang.js +33 -0
  39. package/dist/DatePicker.js +4 -0
  40. package/dist/DatePicker.vue.d.ts +10 -0
  41. package/dist/DatePicker.vue_vue_type_script_setup_true_lang.js +149 -0
  42. package/dist/DateRangePicker.js +4 -0
  43. package/dist/DateRangePicker.vue.d.ts +10 -0
  44. package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang.js +222 -0
  45. package/dist/Defaults.vue.d.ts +17 -0
  46. package/dist/Defaults.vue_vue_type_script_setup_true_lang.js +14 -0
  47. package/dist/Defaults2.js +4 -0
  48. package/dist/Dialog.js +4 -0
  49. package/dist/Dialog.vue.d.ts +21 -0
  50. package/dist/Dialog.vue_vue_type_script_setup_true_lang.js +81 -0
  51. package/dist/Divider.js +4 -0
  52. package/dist/Divider.vue.d.ts +3 -0
  53. package/dist/Divider.vue_vue_type_script_setup_true_lang.js +12 -0
  54. package/dist/EmptyState.js +4 -0
  55. package/dist/EmptyState.vue.d.ts +15 -0
  56. package/dist/EmptyState.vue_vue_type_script_setup_true_lang.js +34 -0
  57. package/dist/Icon.js +4 -0
  58. package/dist/Icon.vue.d.ts +5 -0
  59. package/dist/Icon.vue_vue_type_script_setup_true_lang.js +47 -0
  60. package/dist/IconButton.js +4 -0
  61. package/dist/IconButton.vue.d.ts +9 -0
  62. package/dist/IconButton.vue_vue_type_script_setup_true_lang.js +74 -0
  63. package/dist/ListRow.js +4 -0
  64. package/dist/ListRow.vue.d.ts +23 -0
  65. package/dist/ListRow.vue_vue_type_script_setup_true_lang.js +34 -0
  66. package/dist/MediaCard.js +4 -0
  67. package/dist/MediaCard.vue.d.ts +23 -0
  68. package/dist/MediaCard.vue_vue_type_script_setup_true_lang.js +90 -0
  69. package/dist/Menu.js +4 -0
  70. package/dist/Menu.vue.d.ts +16 -0
  71. package/dist/Menu.vue_vue_type_script_setup_true_lang.js +118 -0
  72. package/dist/PlaceRow.js +4 -0
  73. package/dist/PlaceRow.vue.d.ts +18 -0
  74. package/dist/PlaceRow.vue_vue_type_script_setup_true_lang.js +68 -0
  75. package/dist/ProgressBar.js +4 -0
  76. package/dist/ProgressBar.vue.d.ts +5 -0
  77. package/dist/ProgressBar.vue_vue_type_script_setup_true_lang.js +28 -0
  78. package/dist/RadioGroup.js +4 -0
  79. package/dist/RadioGroup.vue.d.ts +23 -0
  80. package/dist/RadioGroup.vue_vue_type_script_setup_true_lang.js +100 -0
  81. package/dist/SearchField.js +4 -0
  82. package/dist/SearchField.vue.d.ts +16 -0
  83. package/dist/SearchField.vue_vue_type_script_setup_true_lang.js +93 -0
  84. package/dist/SectionHeader.js +4 -0
  85. package/dist/SectionHeader.vue.d.ts +11 -0
  86. package/dist/SectionHeader.vue_vue_type_script_setup_true_lang.js +47 -0
  87. package/dist/SegmentedControl.js +4 -0
  88. package/dist/SegmentedControl.vue.d.ts +28 -0
  89. package/dist/SegmentedControl.vue_vue_type_script_setup_true_lang.js +57 -0
  90. package/dist/Select.js +4 -0
  91. package/dist/Select.vue.d.ts +23 -0
  92. package/dist/Select.vue_vue_type_script_setup_true_lang.js +161 -0
  93. package/dist/Sidebar.js +4 -0
  94. package/dist/Sidebar.vue.d.ts +30 -0
  95. package/dist/Sidebar.vue_vue_type_script_setup_true_lang.js +117 -0
  96. package/dist/SidebarRailButton.js +4 -0
  97. package/dist/SidebarRailButton.vue.d.ts +13 -0
  98. package/dist/SidebarRailButton.vue_vue_type_script_setup_true_lang.js +32 -0
  99. package/dist/Skeleton.js +4 -0
  100. package/dist/Skeleton.vue.d.ts +5 -0
  101. package/dist/Skeleton.vue_vue_type_script_setup_true_lang.js +27 -0
  102. package/dist/Slider.js +4 -0
  103. package/dist/Slider.vue.d.ts +14 -0
  104. package/dist/Slider.vue_vue_type_script_setup_true_lang.js +83 -0
  105. package/dist/Spinner.js +4 -0
  106. package/dist/Spinner.vue.d.ts +5 -0
  107. package/dist/Spinner.vue_vue_type_script_setup_true_lang.js +45 -0
  108. package/dist/Switch.js +4 -0
  109. package/dist/Switch.vue.d.ts +16 -0
  110. package/dist/Switch.vue_vue_type_script_setup_true_lang.js +56 -0
  111. package/dist/Tabs.js +4 -0
  112. package/dist/Tabs.vue.d.ts +24 -0
  113. package/dist/Tabs.vue_vue_type_script_setup_true_lang.js +56 -0
  114. package/dist/Text.js +4 -0
  115. package/dist/Text.vue.d.ts +17 -0
  116. package/dist/Text.vue_vue_type_script_setup_true_lang.js +25 -0
  117. package/dist/TextField.js +4 -0
  118. package/dist/TextField.vue.d.ts +31 -0
  119. package/dist/TextField.vue_vue_type_script_setup_true_lang.js +158 -0
  120. package/dist/Thumbnail.js +4 -0
  121. package/dist/Thumbnail.vue.d.ts +6 -0
  122. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang.js +66 -0
  123. package/dist/Toast.js +4 -0
  124. package/dist/Toast.vue.d.ts +9 -0
  125. package/dist/Toast.vue_vue_type_script_setup_true_lang.js +61 -0
  126. package/dist/Tooltip.js +4 -0
  127. package/dist/Tooltip.vue.d.ts +15 -0
  128. package/dist/Tooltip.vue_vue_type_script_setup_true_lang.js +28 -0
  129. package/dist/TooltipOverlay.js +4 -0
  130. package/dist/TooltipOverlay.vue.d.ts +18 -0
  131. package/dist/TooltipOverlay.vue_vue_type_script_setup_true_lang.js +56 -0
  132. package/dist/controlled.d.ts +4 -0
  133. package/dist/controlled.js +15 -0
  134. package/dist/defaults.d.ts +17 -0
  135. package/dist/defaults.js +30 -0
  136. package/dist/index.d.ts +42 -0
  137. package/dist/index.js +40 -0
  138. package/dist/modal-popover.d.ts +7 -0
  139. package/dist/modal-popover.js +22 -0
  140. package/dist/picture.d.ts +19 -0
  141. package/dist/picture.js +25 -0
  142. package/dist/presence.d.ts +7 -0
  143. package/dist/presence.js +20 -0
  144. package/dist/preview.d.ts +14 -0
  145. package/dist/preview.js +146 -0
  146. package/dist/trigger.d.ts +32 -0
  147. package/dist/trigger.js +37 -0
  148. package/dist/wrap.d.ts +11 -0
  149. package/dist/wrap.js +14 -0
  150. package/package.json +60 -4
  151. package/page.css +20 -0
  152. package/styles.css +3252 -0
  153. package/tailwind.css +2665 -0
@@ -0,0 +1,146 @@
1
+ import Icon_default from "./Icon.js";
2
+ import Accordion_default from "./Accordion.js";
3
+ import Avatar_default from "./Avatar.js";
4
+ import AvatarStack_default from "./AvatarStack.js";
5
+ import Badge_default from "./Badge.js";
6
+ import Spinner_default from "./Spinner.js";
7
+ import Button_default from "./Button.js";
8
+ import IconButton_default from "./IconButton.js";
9
+ import Banner_default from "./Banner.js";
10
+ import Card_default from "./Card.js";
11
+ import Checkbox_default from "./Checkbox.js";
12
+ import Chip_default from "./Chip.js";
13
+ import ChipBar_default from "./ChipBar.js";
14
+ import CountBadge_default from "./CountBadge.js";
15
+ import DatePicker_default from "./DatePicker.js";
16
+ import DateRangePicker_default from "./DateRangePicker.js";
17
+ import Defaults_default from "./Defaults2.js";
18
+ import Dialog_default from "./Dialog.js";
19
+ import Divider_default from "./Divider.js";
20
+ import EmptyState_default from "./EmptyState.js";
21
+ import ListRow_default from "./ListRow.js";
22
+ import Thumbnail_default from "./Thumbnail.js";
23
+ import MediaCard_default from "./MediaCard.js";
24
+ import Menu_default from "./Menu.js";
25
+ import ProgressBar_default from "./ProgressBar.js";
26
+ import RadioGroup_default from "./RadioGroup.js";
27
+ import SearchField_default from "./SearchField.js";
28
+ import SectionHeader_default from "./SectionHeader.js";
29
+ import SegmentedControl_default from "./SegmentedControl.js";
30
+ import Select_default from "./Select.js";
31
+ import Sidebar_default from "./Sidebar.js";
32
+ import Skeleton_default from "./Skeleton.js";
33
+ import Slider_default from "./Slider.js";
34
+ import Switch_default from "./Switch.js";
35
+ import Tabs_default from "./Tabs.js";
36
+ import Text_default from "./Text.js";
37
+ import TextField_default from "./TextField.js";
38
+ import Toast_default from "./Toast.js";
39
+ import Tooltip_default from "./Tooltip.js";
40
+ import "./index.js";
41
+ import { camelize, defineComponent, h, inject, onBeforeUnmount, onMounted, provide, shallowReactive } from "vue";
42
+ import { designPreview, isCallback, isNode, resolve } from "@xds/core/preview";
43
+ // packages/ui-vue/src/preview.ts
44
+ var COMPONENTS = {
45
+ Accordion: Accordion_default,
46
+ Avatar: Avatar_default,
47
+ AvatarStack: AvatarStack_default,
48
+ Badge: Badge_default,
49
+ Banner: Banner_default,
50
+ Button: Button_default,
51
+ Card: Card_default,
52
+ Checkbox: Checkbox_default,
53
+ Chip: Chip_default,
54
+ ChipBar: ChipBar_default,
55
+ CountBadge: CountBadge_default,
56
+ DatePicker: DatePicker_default,
57
+ DateRangePicker: DateRangePicker_default,
58
+ Defaults: Defaults_default,
59
+ Dialog: Dialog_default,
60
+ Divider: Divider_default,
61
+ EmptyState: EmptyState_default,
62
+ Icon: Icon_default,
63
+ IconButton: IconButton_default,
64
+ ListRow: ListRow_default,
65
+ MediaCard: MediaCard_default,
66
+ Menu: Menu_default,
67
+ ProgressBar: ProgressBar_default,
68
+ RadioGroup: RadioGroup_default,
69
+ SearchField: SearchField_default,
70
+ SectionHeader: SectionHeader_default,
71
+ SegmentedControl: SegmentedControl_default,
72
+ Select: Select_default,
73
+ Sidebar: Sidebar_default,
74
+ Skeleton: Skeleton_default,
75
+ Slider: Slider_default,
76
+ Spinner: Spinner_default,
77
+ Switch: Switch_default,
78
+ Tabs: Tabs_default,
79
+ Text: Text_default,
80
+ TextField: TextField_default,
81
+ Thumbnail: Thumbnail_default,
82
+ Toast: Toast_default,
83
+ Tooltip: Tooltip_default
84
+ };
85
+ var MODELS = [
86
+ "value",
87
+ "checked",
88
+ "expanded"
89
+ ];
90
+ var ATTRIBUTES = /* @__PURE__ */ new Set(["class", "style"]);
91
+ var HOST = Symbol("preview host");
92
+ /** One component of the screen, drawn again when a slot that its props read changes. */
93
+ var Part = defineComponent({
94
+ props: { node: {
95
+ type: Object,
96
+ required: true
97
+ } },
98
+ setup(props) {
99
+ const host = inject(HOST);
100
+ if (!host) throw new Error("A part of a preview is drawn outside the preview.");
101
+ return () => host.part(props.node);
102
+ }
103
+ });
104
+ var Preview = defineComponent({
105
+ props: { screen: {
106
+ type: Object,
107
+ required: true
108
+ } },
109
+ setup(props) {
110
+ const screen = props.screen;
111
+ const state = shallowReactive({ ...screen.state });
112
+ const host = {
113
+ state,
114
+ set: (patch) => Object.assign(state, patch),
115
+ draw: (slot) => {
116
+ if (Array.isArray(slot)) return slot.map(host.draw);
117
+ if (typeof slot === "function") return slot(state);
118
+ if (!isNode(slot)) return slot;
119
+ if (slot.kind === "show") return host.draw(slot.when(state) ? slot.children : slot.fallback);
120
+ if (slot.kind === "component") return h(Part, { node: slot });
121
+ const attributes = {};
122
+ for (const [key, value] of Object.entries(slot.props)) attributes[key] = resolve(value, key, host);
123
+ return h(slot.tag, attributes, slot.children.map(host.draw));
124
+ },
125
+ part: ({ name, props: given, children }) => {
126
+ const type = COMPONENTS[name];
127
+ const declared = new Set(Object.keys(type.props ?? {}));
128
+ const props = {};
129
+ const slots = {};
130
+ for (const [key, value] of Object.entries(given)) if (key === "onChange") {
131
+ const model = MODELS.find((name) => declared.has(name));
132
+ props[model ? `onUpdate:${model}` : key] = resolve(value, key, host);
133
+ } else if (isCallback(key) || declared.has(camelize(key)) || ATTRIBUTES.has(key)) props[key] = resolve(value, key, host);
134
+ else slots[key] = () => host.draw(value);
135
+ if (children.length > 0) slots.default = () => host.draw(children);
136
+ return h(type, props, slots);
137
+ }
138
+ };
139
+ provide(HOST, host);
140
+ let unmount;
141
+ onMounted(() => unmount = screen.mount?.());
142
+ onBeforeUnmount(() => unmount?.());
143
+ return () => host.draw(screen.root);
144
+ }
145
+ });
146
+ export { Preview, designPreview };
@@ -0,0 +1,32 @@
1
+ import { type ComputedRef, type PropType } from "vue";
2
+ /** The props an overlay's machine has for the control that opens it. */
3
+ export type TriggerProps = Record<string, unknown>;
4
+ /**
5
+ * Gives what is in its slot the trigger props of an overlay, joined with those of any overlay
6
+ * around it: a Tooltip around a Menu's button gives the button both sets, and the handlers of
7
+ * both run. With `null` it gives none, around what an overlay shows: nothing inside opens an
8
+ * overlay from a control outside it. Not exported from the package: only this package's
9
+ * overlays use it.
10
+ */
11
+ export declare const TriggerScope: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
+ trigger: {
13
+ type: PropType<TriggerProps | null>;
14
+ default: null;
15
+ };
16
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
+ [key: string]: any;
18
+ }>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ trigger: {
20
+ type: PropType<TriggerProps | null>;
21
+ default: null;
22
+ };
23
+ }>> & Readonly<{}>, {
24
+ trigger: TriggerProps | null;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
+ /**
27
+ * For a control that can open an overlay: its own props, after those of the overlays it opens.
28
+ * Its own attributes win, its own handlers run first, and its class is added to theirs, so the
29
+ * own class must be a string. While `inert` is true, as for a loading button, the overlays get
30
+ * none of its events and so do not open. Bind the result on the element.
31
+ */
32
+ export declare function useTrigger<T extends object>(own: () => T, inert?: () => boolean): ComputedRef<T>;
@@ -0,0 +1,37 @@
1
+ import { computed, defineComponent, inject, provide } from "vue";
2
+ import { mergeProps as mergeProps$1 } from "@zag-js/vue";
3
+ // packages/ui-vue/src/trigger.ts
4
+ var TRIGGER = Symbol("trigger");
5
+ /**
6
+ * Gives what is in its slot the trigger props of an overlay, joined with those of any overlay
7
+ * around it: a Tooltip around a Menu's button gives the button both sets, and the handlers of
8
+ * both run. With `null` it gives none, around what an overlay shows: nothing inside opens an
9
+ * overlay from a control outside it. Not exported from the package: only this package's
10
+ * overlays use it.
11
+ */
12
+ var TriggerScope = defineComponent({
13
+ props: { trigger: {
14
+ type: Object,
15
+ default: null
16
+ } },
17
+ setup(props, { slots }) {
18
+ const outer = inject(TRIGGER, null);
19
+ provide(TRIGGER, computed(() => props.trigger === null ? null : mergeProps$1(outer?.value ?? {}, props.trigger)));
20
+ return () => slots.default?.();
21
+ }
22
+ });
23
+ /**
24
+ * For a control that can open an overlay: its own props, after those of the overlays it opens.
25
+ * Its own attributes win, its own handlers run first, and its class is added to theirs, so the
26
+ * own class must be a string. While `inert` is true, as for a loading button, the overlays get
27
+ * none of its events and so do not open. Bind the result on the element.
28
+ */
29
+ function useTrigger(own, inert = () => false) {
30
+ const trigger = inject(TRIGGER, null);
31
+ return computed(() => {
32
+ const props = trigger?.value ?? {};
33
+ const overlays = inert() ? Object.fromEntries(Object.entries(props).filter(([key]) => !key.startsWith("on"))) : props;
34
+ return mergeProps$1(overlays, own());
35
+ });
36
+ }
37
+ export { TriggerScope, useTrigger };
package/dist/wrap.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { type FunctionalComponent } from "vue";
2
+ /**
3
+ * What its slot holds, inside a `tag` element with the class `wrapper` while `when` holds, and
4
+ * on its own otherwise: a template then writes the content once. Only for this package's own
5
+ * components: the index does not export it.
6
+ */
7
+ export declare const Wrap: FunctionalComponent<{
8
+ when: boolean;
9
+ tag: string;
10
+ wrapper: string;
11
+ }>;
package/dist/wrap.js ADDED
@@ -0,0 +1,14 @@
1
+ import { h } from "vue";
2
+ // packages/ui-vue/src/wrap.ts
3
+ /**
4
+ * What its slot holds, inside a `tag` element with the class `wrapper` while `when` holds, and
5
+ * on its own otherwise: a template then writes the content once. Only for this package's own
6
+ * components: the index does not export it.
7
+ */
8
+ var Wrap = (props, { slots }) => props.when ? h(props.tag, { class: props.wrapper }, slots.default?.()) : slots.default?.();
9
+ Wrap.props = [
10
+ "when",
11
+ "tag",
12
+ "wrapper"
13
+ ];
14
+ export { Wrap };
package/package.json CHANGED
@@ -1,6 +1,62 @@
1
1
  {
2
2
  "name": "@xds/vue",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "The xds design system's components for Vue.",
5
+ "keywords": [
6
+ "design-system",
7
+ "design-tokens",
8
+ "components",
9
+ "vue"
10
+ ],
11
+ "license": "MIT",
12
+ "homepage": "https://github.com/kjmin-dev/xds/blob/main/docs/library.md",
13
+ "bugs": "https://github.com/kjmin-dev/xds/issues",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/kjmin-dev/xds.git",
17
+ "directory": "packages/ui-vue"
18
+ },
19
+ "type": "module",
20
+ "sideEffects": [
21
+ "*.css"
22
+ ],
23
+ "exports": {
24
+ ".": {
25
+ "types": "./dist/index.d.ts",
26
+ "default": "./dist/index.js"
27
+ },
28
+ "./preview": {
29
+ "types": "./dist/preview.d.ts",
30
+ "default": "./dist/preview.js"
31
+ },
32
+ "./styles.css": "./styles.css",
33
+ "./tailwind.css": "./tailwind.css",
34
+ "./page.css": "./page.css",
35
+ "./package.json": "./package.json"
36
+ },
37
+ "files": [
38
+ "dist",
39
+ "styles.css",
40
+ "tailwind.css",
41
+ "page.css"
42
+ ],
43
+ "dependencies": {
44
+ "@xds/tokens": "0.1.0",
45
+ "@xds/core": "0.1.0",
46
+ "@internationalized/date": "3.12.4",
47
+ "@zag-js/accordion": "2.0.0-next.4",
48
+ "@zag-js/aria-hidden": "2.0.0-next.4",
49
+ "@zag-js/date-picker": "2.0.0-next.4",
50
+ "@zag-js/dialog": "2.0.0-next.4",
51
+ "@zag-js/menu": "2.0.0-next.4",
52
+ "@zag-js/remove-scroll": "2.0.0-next.4",
53
+ "@zag-js/select": "2.0.0-next.4",
54
+ "@zag-js/slider": "2.0.0-next.4",
55
+ "@zag-js/tabs": "2.0.0-next.4",
56
+ "@zag-js/tooltip": "2.0.0-next.4",
57
+ "@zag-js/vue": "2.0.0-next.4"
58
+ },
59
+ "peerDependencies": {
60
+ "vue": "^3.5.45"
61
+ }
62
+ }
package/page.css ADDED
@@ -0,0 +1,20 @@
1
+ /* The page itself: its font and how its text breaks, and the body's colors and text. An app
2
+ that takes the components as a library may leave these to its own page. */
3
+
4
+ @layer xds.base {
5
+ :root {
6
+ font-family: var(--xds-font-family-sans);
7
+ /* Korean breaks between words, not between syllables. */
8
+ word-break: keep-all;
9
+ /* Long unbroken strings (URLs, email addresses) still wrap instead of overflowing. */
10
+ overflow-wrap: anywhere;
11
+ }
12
+
13
+ body {
14
+ margin: 0;
15
+ background-color: var(--xds-color-background-base);
16
+ color: var(--xds-color-text-primary);
17
+ font-size: var(--xds-typography-body-size);
18
+ line-height: var(--xds-typography-body-line-height);
19
+ }
20
+ }