@skewedaspect/sleekspace-ui 0.2.0-beta.1

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 (266) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +111 -0
  3. package/dist/sleekspace-ui.css +12844 -0
  4. package/dist/sleekspace-ui.es.js +19021 -0
  5. package/dist/sleekspace-ui.umd.js +19040 -0
  6. package/docs/components/accordion.md +92 -0
  7. package/docs/components/alert.md +72 -0
  8. package/docs/components/avatar.md +69 -0
  9. package/docs/components/breadcrumbs.md +65 -0
  10. package/docs/components/button/_meta.yaml +12 -0
  11. package/docs/components/button/accessibility.md +16 -0
  12. package/docs/components/button/custom-colors.md +18 -0
  13. package/docs/components/button/icons.md +31 -0
  14. package/docs/components/button/intro.md +8 -0
  15. package/docs/components/button/kinds.md +25 -0
  16. package/docs/components/button/sizes.md +14 -0
  17. package/docs/components/button/states.md +12 -0
  18. package/docs/components/button/usage.md +23 -0
  19. package/docs/components/button/variants.md +14 -0
  20. package/docs/components/button.md +110 -0
  21. package/docs/components/card.md +87 -0
  22. package/docs/components/checkbox.md +77 -0
  23. package/docs/components/collapsible.md +71 -0
  24. package/docs/components/divider.md +62 -0
  25. package/docs/components/dropdown.md +88 -0
  26. package/docs/components/field.md +80 -0
  27. package/docs/components/group.md +41 -0
  28. package/docs/components/input.md +84 -0
  29. package/docs/components/listbox.md +82 -0
  30. package/docs/components/modal.md +101 -0
  31. package/docs/components/navbar.md +64 -0
  32. package/docs/components/number-input.md +78 -0
  33. package/docs/components/page.md +77 -0
  34. package/docs/components/pagination.md +88 -0
  35. package/docs/components/panel.md +74 -0
  36. package/docs/components/popover.md +93 -0
  37. package/docs/components/progress.md +76 -0
  38. package/docs/components/radio.md +86 -0
  39. package/docs/components/sidebar.md +74 -0
  40. package/docs/components/skeleton.md +76 -0
  41. package/docs/components/slider.md +94 -0
  42. package/docs/components/spinner.md +59 -0
  43. package/docs/components/switch.md +97 -0
  44. package/docs/components/table.md +91 -0
  45. package/docs/components/tabs.md +108 -0
  46. package/docs/components/tag.md +75 -0
  47. package/docs/components/tags-input.md +88 -0
  48. package/docs/components/textarea.md +80 -0
  49. package/docs/components/theme.md +65 -0
  50. package/docs/components/toast.md +95 -0
  51. package/docs/components/tooltip.md +90 -0
  52. package/docs/guides/custom-colors.md +84 -0
  53. package/docs/guides/design-tokens.md +105 -0
  54. package/docs/guides/getting-started.md +144 -0
  55. package/docs/guides/installation.md +62 -0
  56. package/docs/guides/theming.md +101 -0
  57. package/package.json +76 -0
  58. package/src/components/Accordion/SkAccordion.vue +133 -0
  59. package/src/components/Accordion/SkAccordionItem.vue +131 -0
  60. package/src/components/Accordion/index.ts +3 -0
  61. package/src/components/Accordion/types.ts +9 -0
  62. package/src/components/Alert/SkAlert.vue +137 -0
  63. package/src/components/Alert/types.ts +10 -0
  64. package/src/components/Avatar/SkAvatar.vue +141 -0
  65. package/src/components/Avatar/index.ts +8 -0
  66. package/src/components/Avatar/types.ts +31 -0
  67. package/src/components/Breadcrumbs/SkBreadcrumbItem.vue +76 -0
  68. package/src/components/Breadcrumbs/SkBreadcrumbSeparator.vue +38 -0
  69. package/src/components/Breadcrumbs/SkBreadcrumbs.vue +93 -0
  70. package/src/components/Breadcrumbs/index.ts +10 -0
  71. package/src/components/Breadcrumbs/types.ts +36 -0
  72. package/src/components/Button/SkButton.vue +148 -0
  73. package/src/components/Button/types.ts +21 -0
  74. package/src/components/Card/SkCard.vue +144 -0
  75. package/src/components/Card/types.ts +12 -0
  76. package/src/components/Checkbox/SkCheckbox.vue +136 -0
  77. package/src/components/Checkbox/index.ts +8 -0
  78. package/src/components/Checkbox/types.ts +10 -0
  79. package/src/components/Collapsible/SkCollapsible.vue +159 -0
  80. package/src/components/Collapsible/index.ts +2 -0
  81. package/src/components/Collapsible/types.ts +8 -0
  82. package/src/components/Divider/SkDivider.vue +63 -0
  83. package/src/components/Divider/types.ts +15 -0
  84. package/src/components/Dropdown/SkDropdown.vue +150 -0
  85. package/src/components/Dropdown/SkDropdownMenuItem.vue +58 -0
  86. package/src/components/Dropdown/SkDropdownMenuSeparator.vue +26 -0
  87. package/src/components/Dropdown/SkDropdownSubmenu.vue +107 -0
  88. package/src/components/Dropdown/index.ts +11 -0
  89. package/src/components/Dropdown/types.ts +11 -0
  90. package/src/components/Field/SkField.vue +152 -0
  91. package/src/components/Field/index.ts +8 -0
  92. package/src/components/Field/types.ts +7 -0
  93. package/src/components/Group/SkGroup.vue +52 -0
  94. package/src/components/Group/types.ts +10 -0
  95. package/src/components/Input/SkInput.vue +117 -0
  96. package/src/components/Input/index.ts +8 -0
  97. package/src/components/Input/types.ts +11 -0
  98. package/src/components/Listbox/SkListbox.vue +164 -0
  99. package/src/components/Listbox/SkListboxItem.vue +68 -0
  100. package/src/components/Listbox/SkListboxSeparator.vue +26 -0
  101. package/src/components/Listbox/index.ts +10 -0
  102. package/src/components/Listbox/types.ts +10 -0
  103. package/src/components/Modal/SkModal.vue +231 -0
  104. package/src/components/Modal/index.ts +8 -0
  105. package/src/components/Modal/types.ts +12 -0
  106. package/src/components/NavBar/SkNavBar.vue +83 -0
  107. package/src/components/NavBar/index.ts +8 -0
  108. package/src/components/NavBar/types.ts +15 -0
  109. package/src/components/NumberInput/SkNumberInput.vue +168 -0
  110. package/src/components/NumberInput/index.ts +8 -0
  111. package/src/components/NumberInput/types.ts +10 -0
  112. package/src/components/Page/SkPage.vue +94 -0
  113. package/src/components/Page/index.ts +8 -0
  114. package/src/components/Page/types.ts +21 -0
  115. package/src/components/Pagination/SkPagination.vue +185 -0
  116. package/src/components/Pagination/SkPaginationItem.vue +107 -0
  117. package/src/components/Pagination/index.ts +9 -0
  118. package/src/components/Pagination/types.ts +40 -0
  119. package/src/components/Panel/SkPanel.vue +96 -0
  120. package/src/components/Panel/types.ts +15 -0
  121. package/src/components/Popover/SkPopover.vue +185 -0
  122. package/src/components/Popover/index.ts +8 -0
  123. package/src/components/Popover/types.ts +11 -0
  124. package/src/components/Progress/SkProgress.vue +144 -0
  125. package/src/components/Progress/index.ts +8 -0
  126. package/src/components/Progress/types.ts +34 -0
  127. package/src/components/Radio/SkRadio.vue +110 -0
  128. package/src/components/Radio/SkRadioGroup.vue +92 -0
  129. package/src/components/Radio/index.ts +9 -0
  130. package/src/components/Radio/types.ts +11 -0
  131. package/src/components/Sidebar/README.md +405 -0
  132. package/src/components/Sidebar/SkSidebar.vue +88 -0
  133. package/src/components/Sidebar/SkSidebarItem.vue +58 -0
  134. package/src/components/Sidebar/SkSidebarSection.vue +40 -0
  135. package/src/components/Sidebar/types.ts +3 -0
  136. package/src/components/Skeleton/SkSkeleton.vue +171 -0
  137. package/src/components/Skeleton/index.ts +8 -0
  138. package/src/components/Skeleton/types.ts +31 -0
  139. package/src/components/Slider/SkSlider.vue +165 -0
  140. package/src/components/Slider/index.ts +8 -0
  141. package/src/components/Slider/types.ts +44 -0
  142. package/src/components/Spinner/SkSpinner.vue +105 -0
  143. package/src/components/Spinner/index.ts +8 -0
  144. package/src/components/Spinner/types.ts +28 -0
  145. package/src/components/Switch/SkSwitch.vue +215 -0
  146. package/src/components/Switch/index.ts +8 -0
  147. package/src/components/Switch/types.ts +12 -0
  148. package/src/components/Table/SkTable.vue +109 -0
  149. package/src/components/Table/index.ts +2 -0
  150. package/src/components/Table/types.ts +15 -0
  151. package/src/components/Tabs/README.md +331 -0
  152. package/src/components/Tabs/SkTab.vue +84 -0
  153. package/src/components/Tabs/SkTabList.vue +62 -0
  154. package/src/components/Tabs/SkTabPanel.vue +47 -0
  155. package/src/components/Tabs/SkTabPanels.vue +23 -0
  156. package/src/components/Tabs/SkTabs.vue +124 -0
  157. package/src/components/Tabs/types.ts +21 -0
  158. package/src/components/Tag/SkTag.vue +129 -0
  159. package/src/components/Tag/types.ts +15 -0
  160. package/src/components/TagsInput/SkTagsInput.vue +184 -0
  161. package/src/components/TagsInput/index.ts +8 -0
  162. package/src/components/TagsInput/types.ts +10 -0
  163. package/src/components/Textarea/SkTextarea.vue +117 -0
  164. package/src/components/Textarea/index.ts +8 -0
  165. package/src/components/Textarea/types.ts +10 -0
  166. package/src/components/Theme/SkTheme.vue +47 -0
  167. package/src/components/Theme/types.ts +17 -0
  168. package/src/components/Theme/useTheme.ts +131 -0
  169. package/src/components/Toast/SkToast.vue +156 -0
  170. package/src/components/Toast/SkToastProvider.vue +180 -0
  171. package/src/components/Toast/index.ts +15 -0
  172. package/src/components/Toast/types.ts +63 -0
  173. package/src/components/Toast/useToast.ts +78 -0
  174. package/src/components/Tooltip/SkTooltip.vue +162 -0
  175. package/src/components/Tooltip/SkTooltipProvider.vue +114 -0
  176. package/src/components/Tooltip/index.ts +9 -0
  177. package/src/components/Tooltip/types.ts +13 -0
  178. package/src/composables/useCustomColors.test.ts +505 -0
  179. package/src/composables/useCustomColors.ts +124 -0
  180. package/src/composables/usePortalContext.test.ts +402 -0
  181. package/src/composables/usePortalContext.ts +95 -0
  182. package/src/global.d.ts +76 -0
  183. package/src/index.ts +259 -0
  184. package/src/styles/_scrollbar.scss +100 -0
  185. package/src/styles/base/_fonts.scss +105 -0
  186. package/src/styles/base/_global.scss +47 -0
  187. package/src/styles/base/_index.scss +24 -0
  188. package/src/styles/base/_reset.scss +11 -0
  189. package/src/styles/base/_typography.scss +178 -0
  190. package/src/styles/components/_accordion.scss +250 -0
  191. package/src/styles/components/_alert.scss +239 -0
  192. package/src/styles/components/_avatar.scss +133 -0
  193. package/src/styles/components/_breadcrumbs.scss +137 -0
  194. package/src/styles/components/_button.scss +731 -0
  195. package/src/styles/components/_card.scss +141 -0
  196. package/src/styles/components/_checkbox.scss +232 -0
  197. package/src/styles/components/_collapsible.scss +158 -0
  198. package/src/styles/components/_divider.scss +121 -0
  199. package/src/styles/components/_field.scss +87 -0
  200. package/src/styles/components/_group.scss +138 -0
  201. package/src/styles/components/_index.scss +46 -0
  202. package/src/styles/components/_input.scss +205 -0
  203. package/src/styles/components/_listbox.scss +453 -0
  204. package/src/styles/components/_menu.scss +216 -0
  205. package/src/styles/components/_modal.scss +329 -0
  206. package/src/styles/components/_navbar.scss +258 -0
  207. package/src/styles/components/_number-input.scss +352 -0
  208. package/src/styles/components/_page.scss +98 -0
  209. package/src/styles/components/_pagination.scss +411 -0
  210. package/src/styles/components/_panel.scss +281 -0
  211. package/src/styles/components/_popover.scss +258 -0
  212. package/src/styles/components/_progress.scss +280 -0
  213. package/src/styles/components/_radio.scss +255 -0
  214. package/src/styles/components/_sidebar.scss +92 -0
  215. package/src/styles/components/_skeleton.scss +138 -0
  216. package/src/styles/components/_slider.scss +262 -0
  217. package/src/styles/components/_spinner.scss +331 -0
  218. package/src/styles/components/_switch.scss +370 -0
  219. package/src/styles/components/_table.scss +405 -0
  220. package/src/styles/components/_tabs.scss +486 -0
  221. package/src/styles/components/_tag.scss +425 -0
  222. package/src/styles/components/_tags-input.scss +279 -0
  223. package/src/styles/components/_textarea.scss +208 -0
  224. package/src/styles/components/_toast.scss +331 -0
  225. package/src/styles/components/_tooltip.scss +206 -0
  226. package/src/styles/fonts/Titillium_Web/OFL.txt +93 -0
  227. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Black.ttf +0 -0
  228. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Bold.ttf +0 -0
  229. package/src/styles/fonts/Titillium_Web/TitilliumWeb-BoldItalic.ttf +0 -0
  230. package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLight.ttf +0 -0
  231. package/src/styles/fonts/Titillium_Web/TitilliumWeb-ExtraLightItalic.ttf +0 -0
  232. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Italic.ttf +0 -0
  233. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Light.ttf +0 -0
  234. package/src/styles/fonts/Titillium_Web/TitilliumWeb-LightItalic.ttf +0 -0
  235. package/src/styles/fonts/Titillium_Web/TitilliumWeb-Regular.ttf +0 -0
  236. package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBold.ttf +0 -0
  237. package/src/styles/fonts/Titillium_Web/TitilliumWeb-SemiBoldItalic.ttf +0 -0
  238. package/src/styles/index.scss +17 -0
  239. package/src/styles/mixins/_cut-border.scss +254 -0
  240. package/src/styles/mixins/_index.scss +7 -0
  241. package/src/styles/theme/_variables.scss +42 -0
  242. package/src/styles/themes/README.md +127 -0
  243. package/src/styles/themes/_colorful.scss +58 -0
  244. package/src/styles/themes/_greyscale.scss +58 -0
  245. package/src/styles/themes/index.scss +9 -0
  246. package/src/styles/tokens/README.md +268 -0
  247. package/src/styles/tokens/_foundation-borders.scss +26 -0
  248. package/src/styles/tokens/_foundation-colors.scss +169 -0
  249. package/src/styles/tokens/_foundation-glow.scss +36 -0
  250. package/src/styles/tokens/_foundation-radius.scss +53 -0
  251. package/src/styles/tokens/_foundation-scrollbar.scss +31 -0
  252. package/src/styles/tokens/_foundation-shadows.scss +37 -0
  253. package/src/styles/tokens/_foundation-space.scss +36 -0
  254. package/src/styles/tokens/_foundation-transitions.scss +37 -0
  255. package/src/styles/tokens/_foundation-typography.scss +58 -0
  256. package/src/styles/tokens/_semantic-color-kinds.scss +112 -0
  257. package/src/styles/tokens/_semantic-colors.scss +10 -0
  258. package/src/styles/tokens/_semantic-interactive.scss +29 -0
  259. package/src/styles/tokens/_semantic-scrollbar.scss +48 -0
  260. package/src/styles/tokens/_semantic-surfaces.scss +36 -0
  261. package/src/styles/tokens/index.scss +38 -0
  262. package/src/styles/tokens.scss +268 -0
  263. package/src/styles/utilities/_index.scss +9 -0
  264. package/src/styles/utilities/_typography.scss +121 -0
  265. package/src/types.ts +50 -0
  266. package/web-types.json +3524 -0
@@ -0,0 +1,425 @@
1
+ //----------------------------------------------------------------------------------------------------------------------
2
+ // Tag Component Styles
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+
5
+ @use '../theme/variables' as *;
6
+ @use '../mixins' as *;
7
+
8
+ //----------------------------------------------------------------------------------------------------------------------
9
+ // Tag Design Tokens
10
+ //----------------------------------------------------------------------------------------------------------------------
11
+
12
+ .sk-tag
13
+ {
14
+ //------------------------------------------------------------------------------------------------------------------
15
+ // Size System Tokens
16
+ //------------------------------------------------------------------------------------------------------------------
17
+
18
+ /// Base tag height (md size)
19
+ --sk-tag-height-base: 1.5rem;
20
+
21
+ /// Base font size for tags
22
+ --sk-tag-font-size-base: 0.75rem;
23
+
24
+ /// Base horizontal padding
25
+ --sk-tag-padding-base: 0.5rem;
26
+
27
+ /// Size scale multipliers for height calculations
28
+ --sk-tag-scale-sm: 0.833; // 20px height
29
+ --sk-tag-scale-md: 1; // 24px height (base)
30
+ --sk-tag-scale-lg: 1.167; // 28px height
31
+ --sk-tag-scale-xl: 1.333; // 32px height
32
+
33
+ /// Font size scale multipliers
34
+ --sk-tag-font-scale-sm: 0.917; // 11px
35
+ --sk-tag-font-scale-md: 1; // 12px (matches base)
36
+ --sk-tag-font-scale-lg: 1.083; // 13px
37
+ --sk-tag-font-scale-xl: 1.167; // 14px
38
+
39
+ /// Border radius calculation factor (smaller cuts than buttons)
40
+ --sk-tag-radius-factor: 6;
41
+
42
+ //------------------------------------------------------------------------------------------------------------------
43
+ // Typography Tokens
44
+ //------------------------------------------------------------------------------------------------------------------
45
+
46
+ /// Font weight for tag text
47
+ --sk-tag-font-weight: 600;
48
+
49
+ /// Line height for tag text
50
+ --sk-tag-line-height: 1;
51
+
52
+ /// Gap between tag content and remove button
53
+ --sk-tag-gap: 0.25rem;
54
+
55
+ //------------------------------------------------------------------------------------------------------------------
56
+ // Border Tokens
57
+ //------------------------------------------------------------------------------------------------------------------
58
+
59
+ /// Border width
60
+ --sk-tag-border-width: var(--sk-border-width-thin);
61
+
62
+ /// Dynamic border color (set by variants/states)
63
+ --sk-tag-border-color: currentColor;
64
+
65
+ //------------------------------------------------------------------------------------------------------------------
66
+ // Transition Tokens
67
+ //------------------------------------------------------------------------------------------------------------------
68
+
69
+ /// Tag transition duration
70
+ --sk-tag-transition-duration: var(--sk-transition-normal);
71
+
72
+ /// Tag transition easing
73
+ --sk-tag-transition-easing: var(--sk-transition-easing);
74
+
75
+ //------------------------------------------------------------------------------------------------------------------
76
+ // Generic Color Tokens
77
+ //------------------------------------------------------------------------------------------------------------------
78
+
79
+ /// Base color - the bright semantic color
80
+ --sk-tag-color-base: var(--sk-neutral-base);
81
+
82
+ /// Foreground/text color
83
+ --sk-tag-fg: var(--sk-neutral-text);
84
+
85
+ /// Background color for solid tags
86
+ --sk-tag-bg: color-mix(
87
+ in oklch,
88
+ color-mix(in oklch, var(--sk-tag-color-base) 75%, transparent 25%),
89
+ #000 46.25%
90
+ );
91
+
92
+ /// Base border color
93
+ --sk-tag-border-base: var(--sk-tag-color-base);
94
+
95
+ //------------------------------------------------------------------------------------------------------------------
96
+ // Variant-Specific Tokens
97
+ //------------------------------------------------------------------------------------------------------------------
98
+
99
+ /// Outline variant background
100
+ --sk-tag-outline-bg: rgba(5, 5, 5, 0.15);
101
+
102
+ /// Subtle variant background opacity
103
+ --sk-tag-subtle-opacity: var(--sk-opacity-subtle);
104
+
105
+ /// Subtle variant border opacity
106
+ --sk-tag-subtle-border-opacity: var(--sk-opacity-subtle-border);
107
+
108
+ /// Ghost variant background opacity (between subtle and bright)
109
+ --sk-tag-ghost-opacity: 0.35;
110
+ }
111
+
112
+ //----------------------------------------------------------------------------------------------------------------------
113
+ // Variant Mixins
114
+ //----------------------------------------------------------------------------------------------------------------------
115
+
116
+ // Mixin for solid variant
117
+ @mixin tag-solid-kind($kind)
118
+ {
119
+ &.sk-#{ "" + $kind }
120
+ {
121
+ --sk-tag-color-base: var(--sk-#{ $kind }-base);
122
+ --sk-tag-fg: var(--sk-#{ $kind }-text);
123
+
124
+ // Set generic kind color for list markers and other cross-component features
125
+ --sk-kind-color: var(--sk-#{ $kind }-base);
126
+
127
+ --sk-tag-border-color: var(--sk-tag-border-base);
128
+
129
+ background-color: var(--sk-tag-bg);
130
+ color: var(--sk-tag-fg);
131
+ }
132
+ }
133
+
134
+ // Mixin for outline variant
135
+ @mixin tag-outline-kind($kind)
136
+ {
137
+ &.sk-#{ "" + $kind }
138
+ {
139
+ --sk-tag-color-base: var(--sk-#{ $kind }-base);
140
+
141
+ // Set generic kind color for list markers and other cross-component features
142
+ --sk-kind-color: var(--sk-#{ $kind }-base);
143
+
144
+ --sk-tag-border-color: var(--sk-tag-border-base);
145
+
146
+ background-color: var(--sk-tag-outline-bg);
147
+ color: var(--sk-tag-color-base);
148
+ }
149
+ }
150
+
151
+ // Mixin for subtle variant
152
+ @mixin tag-subtle-kind($kind)
153
+ {
154
+ &.sk-#{ "" + $kind }
155
+ {
156
+ --sk-tag-color-base: var(--sk-#{ $kind }-base);
157
+
158
+ // Set generic kind color for list markers and other cross-component features
159
+ --sk-kind-color: var(--sk-#{ $kind }-base);
160
+
161
+ --sk-tag-border-color: oklch(
162
+ from var(--sk-tag-border-base) l c h / var(--sk-tag-subtle-border-opacity)
163
+ );
164
+
165
+ background-color: oklch(from var(--sk-tag-bg) l c h / var(--sk-tag-subtle-opacity));
166
+ color: var(--sk-tag-color-base);
167
+ }
168
+ }
169
+
170
+ // Mixin for ghost variant (medium opacity background, no border)
171
+ @mixin tag-ghost-kind($kind)
172
+ {
173
+ &.sk-#{ "" + $kind }
174
+ {
175
+ --sk-tag-color-base: var(--sk-#{ $kind }-base);
176
+
177
+ // Set generic kind color for list markers and other cross-component features
178
+ --sk-kind-color: var(--sk-#{ $kind }-base);
179
+
180
+ --sk-tag-border-color: transparent;
181
+
182
+ background-color: oklch(from var(--sk-tag-bg) l c h / var(--sk-tag-ghost-opacity));
183
+ color: var(--sk-tag-color-base);
184
+ }
185
+ }
186
+
187
+ //----------------------------------------------------------------------------------------------------------------------
188
+ // Base Tag Styles
189
+ //----------------------------------------------------------------------------------------------------------------------
190
+
191
+ .sk-tag
192
+ {
193
+ // Base styles
194
+ display: inline-flex;
195
+ align-items: center;
196
+ justify-content: center;
197
+ gap: var(--sk-tag-gap);
198
+ font-weight: var(--sk-tag-font-weight);
199
+ font-size: var(--sk-tag-font-size-base);
200
+ line-height: var(--sk-tag-line-height);
201
+ border-width: var(--sk-tag-border-width);
202
+ border-style: solid;
203
+ user-select: none;
204
+ flex-shrink: 0;
205
+ white-space: nowrap;
206
+
207
+ // Apply cut-border mixin for beveled corners (bottom-left and top-right)
208
+ @include cut-border(
209
+ $cut: calc(var(--sk-tag-height-base) / var(--sk-tag-radius-factor)),
210
+ $border-width: var(--sk-tag-border-width),
211
+ $border-color: var(--sk-tag-border-color),
212
+ $corners: (bottom-left top-right)
213
+ );
214
+
215
+ // Transitions
216
+ transition:
217
+ color var(--sk-tag-transition-duration) var(--sk-tag-transition-easing),
218
+ background-color var(--sk-tag-transition-duration) var(--sk-tag-transition-easing),
219
+ border-color var(--sk-tag-transition-duration) var(--sk-tag-transition-easing);
220
+
221
+ // Remove default styles
222
+ font-family: inherit;
223
+
224
+ // Override list marker color to match component kind
225
+ // Uses generic --sk-kind-color set by kind mixins
226
+ ul li::marker
227
+ {
228
+ color: var(--sk-kind-color, var(--sk-tag-color-base));
229
+ }
230
+
231
+ //------------------------------------------------------------------------------------------------------------------
232
+ // Size variants
233
+ //------------------------------------------------------------------------------------------------------------------
234
+
235
+ &.sk-sm
236
+ {
237
+ --sk-tag-cut-size: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-sm) / var(--sk-tag-radius-factor));
238
+
239
+ height: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-sm));
240
+ padding-left: var(--sk-tag-padding-base);
241
+ padding-right: var(--sk-tag-padding-base);
242
+ font-size: calc(var(--sk-tag-font-size-base) * var(--sk-tag-font-scale-sm));
243
+
244
+ @include cut-border(
245
+ $cut: var(--sk-tag-cut-size),
246
+ $border-width: var(--sk-tag-border-width),
247
+ $border-color: var(--sk-tag-border-color),
248
+ $corners: (bottom-left top-right)
249
+ );
250
+ }
251
+
252
+ &.sk-md
253
+ {
254
+ --sk-tag-cut-size: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-md) / var(--sk-tag-radius-factor));
255
+
256
+ height: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-md));
257
+ padding-left: var(--sk-tag-padding-base);
258
+ padding-right: var(--sk-tag-padding-base);
259
+ font-size: calc(var(--sk-tag-font-size-base) * var(--sk-tag-font-scale-md));
260
+
261
+ @include cut-border(
262
+ $cut: var(--sk-tag-cut-size),
263
+ $border-width: var(--sk-tag-border-width),
264
+ $border-color: var(--sk-tag-border-color),
265
+ $corners: (bottom-left top-right)
266
+ );
267
+ }
268
+
269
+ &.sk-lg
270
+ {
271
+ --sk-tag-cut-size: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-lg) / var(--sk-tag-radius-factor));
272
+
273
+ height: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-lg));
274
+ padding-left: var(--sk-tag-padding-base);
275
+ padding-right: var(--sk-tag-padding-base);
276
+ font-size: calc(var(--sk-tag-font-size-base) * var(--sk-tag-font-scale-lg));
277
+
278
+ @include cut-border(
279
+ $cut: var(--sk-tag-cut-size),
280
+ $border-width: var(--sk-tag-border-width),
281
+ $border-color: var(--sk-tag-border-color),
282
+ $corners: (bottom-left top-right)
283
+ );
284
+ }
285
+
286
+ &.sk-xl
287
+ {
288
+ --sk-tag-cut-size: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-xl) / var(--sk-tag-radius-factor));
289
+
290
+ height: calc(var(--sk-tag-height-base) * var(--sk-tag-scale-xl));
291
+ padding-left: var(--sk-tag-padding-base);
292
+ padding-right: var(--sk-tag-padding-base);
293
+ font-size: calc(var(--sk-tag-font-size-base) * var(--sk-tag-font-scale-xl));
294
+
295
+ @include cut-border(
296
+ $cut: var(--sk-tag-cut-size),
297
+ $border-width: var(--sk-tag-border-width),
298
+ $border-color: var(--sk-tag-border-color),
299
+ $corners: (bottom-left top-right)
300
+ );
301
+ }
302
+
303
+ //------------------------------------------------------------------------------------------------------------------
304
+ // Variant: Solid
305
+ //------------------------------------------------------------------------------------------------------------------
306
+
307
+ &.sk-solid
308
+ {
309
+ @each $kind in $kinds
310
+ {
311
+ @include tag-solid-kind($kind);
312
+ }
313
+ }
314
+
315
+ //------------------------------------------------------------------------------------------------------------------
316
+ // Variant: Outline
317
+ //------------------------------------------------------------------------------------------------------------------
318
+
319
+ &.sk-outline
320
+ {
321
+ @each $kind in $kinds
322
+ {
323
+ @include tag-outline-kind($kind);
324
+ }
325
+
326
+ // Special case: neutral text and border are lighter for better differentiation
327
+ &.sk-neutral
328
+ {
329
+ --sk-tag-border-color: color-mix(in oklch, var(--sk-tag-border-base), white 25%);
330
+ color: color-mix(in oklch, var(--sk-tag-color-base), white 50%);
331
+ }
332
+ }
333
+
334
+ //------------------------------------------------------------------------------------------------------------------
335
+ // Variant: Subtle
336
+ //------------------------------------------------------------------------------------------------------------------
337
+
338
+ &.sk-subtle
339
+ {
340
+ @each $kind in $kinds
341
+ {
342
+ @include tag-subtle-kind($kind);
343
+ }
344
+
345
+ // Special case: neutral text and border are lighter (halfway to white) for better differentiation
346
+ &.sk-neutral
347
+ {
348
+ --sk-tag-border-color: oklch(
349
+ from color-mix(in oklch, var(--sk-tag-border-base), white 50%)
350
+ l c h / var(--sk-tag-subtle-border-opacity)
351
+ );
352
+ color: color-mix(in oklch, var(--sk-tag-color-base), white 50%);
353
+ }
354
+ }
355
+
356
+ //------------------------------------------------------------------------------------------------------------------
357
+ // Variant: Ghost
358
+ //------------------------------------------------------------------------------------------------------------------
359
+
360
+ &.sk-ghost
361
+ {
362
+ @each $kind in $kinds
363
+ {
364
+ @include tag-ghost-kind($kind);
365
+ }
366
+
367
+ // Special case: neutral text is lighter (halfway to white) for better differentiation
368
+ &.sk-neutral
369
+ {
370
+ color: color-mix(in oklch, var(--sk-tag-color-base), white 50%);
371
+ }
372
+ }
373
+
374
+ //------------------------------------------------------------------------------------------------------------------
375
+ // Removable tag
376
+ //------------------------------------------------------------------------------------------------------------------
377
+
378
+ &.sk-removable
379
+ {
380
+ padding-right: calc(var(--sk-tag-padding-base) * 0.5);
381
+ }
382
+
383
+ //------------------------------------------------------------------------------------------------------------------
384
+ // Tag content
385
+ //------------------------------------------------------------------------------------------------------------------
386
+
387
+ .sk-tag-content
388
+ {
389
+ display: inline-flex;
390
+ align-items: center;
391
+ }
392
+
393
+ //------------------------------------------------------------------------------------------------------------------
394
+ // Remove button
395
+ //------------------------------------------------------------------------------------------------------------------
396
+
397
+ .sk-tag-remove
398
+ {
399
+ display: inline-flex;
400
+ align-items: center;
401
+ justify-content: center;
402
+ width: 1em;
403
+ height: 1em;
404
+ padding: 0;
405
+ border: none;
406
+ background: transparent;
407
+ color: inherit;
408
+ cursor: pointer;
409
+ opacity: 0.7;
410
+ transition: opacity var(--sk-tag-transition-duration) var(--sk-tag-transition-easing);
411
+
412
+ &:hover
413
+ {
414
+ opacity: 1;
415
+ }
416
+
417
+ svg
418
+ {
419
+ width: 100%;
420
+ height: 100%;
421
+ }
422
+ }
423
+ }
424
+
425
+ //----------------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,279 @@
1
+ @use '@/styles/mixins/cut-border' as *;
2
+
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+ // TagsInput Component Styles
5
+ //----------------------------------------------------------------------------------------------------------------------
6
+
7
+ .sk-tags-input
8
+ {
9
+ // Color tokens (can be overridden by custom colors)
10
+ --sk-tags-input-color-base: var(--sk-neutral-base);
11
+ --sk-tags-input-fg: var(--sk-neutral-text);
12
+
13
+ // Corner cut size (scales with size variant)
14
+ --sk-tags-input-cut: 0.5rem;
15
+
16
+ position: relative;
17
+ display: inline-flex;
18
+ width: 100%;
19
+
20
+ // Size variants
21
+ &.sk-sm
22
+ {
23
+ --sk-tags-input-cut: 0.4rem;
24
+ }
25
+
26
+ &.sk-md
27
+ {
28
+ --sk-tags-input-cut: 0.5rem;
29
+ }
30
+
31
+ &.sk-lg
32
+ {
33
+ --sk-tags-input-cut: 0.6rem;
34
+ }
35
+
36
+ &.sk-xl
37
+ {
38
+ --sk-tags-input-cut: 0.7rem;
39
+ }
40
+
41
+ // Kind variants
42
+ &.sk-neutral
43
+ {
44
+ --sk-tags-input-color-base: var(--sk-neutral-base);
45
+ --sk-tags-input-fg: var(--sk-neutral-text);
46
+ }
47
+
48
+ &.sk-primary
49
+ {
50
+ --sk-tags-input-color-base: var(--sk-primary-base);
51
+ --sk-tags-input-fg: var(--sk-primary-text);
52
+ }
53
+
54
+ &.sk-accent
55
+ {
56
+ --sk-tags-input-color-base: var(--sk-accent-base);
57
+ --sk-tags-input-fg: var(--sk-accent-text);
58
+ }
59
+
60
+ &.sk-info
61
+ {
62
+ --sk-tags-input-color-base: var(--sk-info-base);
63
+ --sk-tags-input-fg: var(--sk-info-text);
64
+ }
65
+
66
+ &.sk-success
67
+ {
68
+ --sk-tags-input-color-base: var(--sk-success-base);
69
+ --sk-tags-input-fg: var(--sk-success-text);
70
+ }
71
+
72
+ &.sk-warning
73
+ {
74
+ --sk-tags-input-color-base: var(--sk-warning-base);
75
+ --sk-tags-input-fg: var(--sk-warning-text);
76
+ }
77
+
78
+ &.sk-danger
79
+ {
80
+ --sk-tags-input-color-base: var(--sk-danger-base);
81
+ --sk-tags-input-fg: var(--sk-danger-text);
82
+ }
83
+
84
+ // Color kinds (direct palette access)
85
+ &.sk-neon-blue
86
+ {
87
+ --sk-tags-input-color-base: var(--sk-neon-blue-base);
88
+ --sk-tags-input-fg: var(--sk-neon-blue-text);
89
+ }
90
+
91
+ &.sk-neon-purple
92
+ {
93
+ --sk-tags-input-color-base: var(--sk-neon-purple-base);
94
+ --sk-tags-input-fg: var(--sk-neon-purple-text);
95
+ }
96
+
97
+ &.sk-neon-orange
98
+ {
99
+ --sk-tags-input-color-base: var(--sk-neon-orange-base);
100
+ --sk-tags-input-fg: var(--sk-neon-orange-text);
101
+ }
102
+
103
+ &.sk-neon-green
104
+ {
105
+ --sk-tags-input-color-base: var(--sk-neon-green-base);
106
+ --sk-tags-input-fg: var(--sk-neon-green-text);
107
+ }
108
+
109
+ &.sk-neon-mint
110
+ {
111
+ --sk-tags-input-color-base: var(--sk-neon-mint-base);
112
+ --sk-tags-input-fg: var(--sk-neon-mint-text);
113
+ }
114
+
115
+ &.sk-neon-pink
116
+ {
117
+ --sk-tags-input-color-base: var(--sk-neon-pink-base);
118
+ --sk-tags-input-fg: var(--sk-neon-pink-text);
119
+ }
120
+
121
+ &.sk-yellow
122
+ {
123
+ --sk-tags-input-color-base: var(--sk-yellow-base);
124
+ --sk-tags-input-fg: var(--sk-yellow-text);
125
+ }
126
+
127
+ &.sk-red
128
+ {
129
+ --sk-tags-input-color-base: var(--sk-red-base);
130
+ --sk-tags-input-fg: var(--sk-red-text);
131
+ }
132
+ }
133
+
134
+ //----------------------------------------------------------------------------------------------------------------------
135
+
136
+ .sk-tags-input-container
137
+ {
138
+ display: flex;
139
+ flex-wrap: wrap;
140
+ align-items: center;
141
+ gap: var(--sk-space-xs);
142
+ width: 100%;
143
+ min-height: 2.5rem;
144
+ padding: var(--sk-space-xs);
145
+
146
+ @include cut-border(
147
+ $cut: var(--sk-tags-input-cut),
148
+ $border-width: var(--sk-border-width-thin),
149
+ $border-color: var(--sk-tags-input-color-base),
150
+ $corners: (top-right)
151
+ );
152
+
153
+ // Base styling
154
+ background: color-mix(
155
+ in oklch,
156
+ color-mix(in oklch, var(--sk-tags-input-color-base) 75%, transparent 25%),
157
+ #000 65%
158
+ );
159
+
160
+ // Transitions
161
+ transition-property: background, border-color;
162
+ transition-duration: var(--sk-transition-duration-base);
163
+
164
+ // Focus-within state
165
+ &:focus-within
166
+ {
167
+ border-color: color-mix(in oklch, var(--sk-tags-input-color-base), white 35%);
168
+ background: color-mix(
169
+ in oklch,
170
+ color-mix(in oklch, var(--sk-tags-input-color-base) 75%, transparent 25%),
171
+ #000 25%
172
+ );
173
+ }
174
+
175
+ // Hover state
176
+ &:hover:not(:has(input:disabled))
177
+ {
178
+ border-color: color-mix(in oklch, var(--sk-tags-input-color-base), white 20%);
179
+ }
180
+
181
+ // Only apply disabled styling if component is truly disabled, not just max reached
182
+ // (We want tags to look normal when max is reached so users can still remove them)
183
+ &[data-disabled="true"]
184
+ {
185
+ opacity: 0.5;
186
+ cursor: not-allowed;
187
+ }
188
+
189
+ // Size variants
190
+ .sk-tags-input.sk-sm &
191
+ {
192
+ min-height: 2rem;
193
+ padding: calc(var(--sk-space-xs) / 2);
194
+ gap: calc(var(--sk-space-xs) / 2);
195
+ }
196
+
197
+ .sk-tags-input.sk-lg &
198
+ {
199
+ min-height: 3rem;
200
+ padding: var(--sk-space-sm);
201
+ }
202
+
203
+ .sk-tags-input.sk-xl &
204
+ {
205
+ min-height: 3.5rem;
206
+ padding: var(--sk-space-sm);
207
+ }
208
+ }
209
+
210
+ //----------------------------------------------------------------------------------------------------------------------
211
+
212
+ .sk-tags-input-delete
213
+ {
214
+ display: inline-flex;
215
+ align-items: center;
216
+ justify-content: center;
217
+ background: transparent;
218
+ border: none;
219
+ color: var(--sk-tags-input-fg);
220
+ cursor: pointer;
221
+ padding: 0;
222
+ opacity: 0.7;
223
+
224
+ transition-property: opacity;
225
+ transition-duration: var(--sk-transition-duration-base);
226
+
227
+ &:hover
228
+ {
229
+ opacity: 1;
230
+ }
231
+ }
232
+
233
+ //----------------------------------------------------------------------------------------------------------------------
234
+
235
+ .sk-tags-input-field
236
+ {
237
+ flex: 1;
238
+ min-width: 8rem;
239
+ background: transparent;
240
+ border: none;
241
+ color: var(--sk-tags-input-fg);
242
+ font-family: var(--sk-font-family-base);
243
+ outline: none;
244
+ cursor: text;
245
+ padding: 0;
246
+
247
+ // Size variants
248
+ .sk-tags-input.sk-sm &
249
+ {
250
+ font-size: 0.875rem;
251
+ }
252
+
253
+ .sk-tags-input.sk-md &
254
+ {
255
+ font-size: 1rem;
256
+ }
257
+
258
+ .sk-tags-input.sk-lg &
259
+ {
260
+ font-size: 1.125rem;
261
+ }
262
+
263
+ .sk-tags-input.sk-xl &
264
+ {
265
+ font-size: 1.25rem;
266
+ }
267
+
268
+ &::placeholder
269
+ {
270
+ color: color-mix(in oklch, var(--sk-tags-input-fg), transparent 50%);
271
+ }
272
+
273
+ &:disabled
274
+ {
275
+ cursor: not-allowed;
276
+ }
277
+ }
278
+
279
+ //----------------------------------------------------------------------------------------------------------------------