@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,206 @@
1
+ @use '@/styles/mixins/cut-border' as *;
2
+
3
+ .sk-tooltip-content
4
+ {
5
+ // Use CSS variable for glow color and border
6
+ --sk-tooltip-color-base: var(--sk-neutral-base);
7
+ --sk-tooltip-border-color: transparent;
8
+
9
+ // Calculate darkened background like buttons (ghost hover state)
10
+ --sk-tooltip-bg: color-mix(
11
+ in oklch,
12
+ color-mix(in oklch, var(--sk-tooltip-color-base) 75%, transparent 25%),
13
+ #000 46.25%
14
+ );
15
+
16
+ // Calculate hover-like background
17
+ --sk-tooltip-bg-hover: color-mix(in oklch, var(--sk-tooltip-bg) 85%, white 15%);
18
+
19
+ // Cut corners (border controlled by variant)
20
+ @include cut-border(
21
+ var(--sk-radius-md),
22
+ var(--sk-border-width-thin),
23
+ var(--sk-tooltip-border-color),
24
+ (top-left top-right bottom-left bottom-right)
25
+ );
26
+
27
+ position: relative;
28
+ padding: calc(var(--sk-space-md) / 4 + 2px) calc(var(--sk-space-lg) / 4 + 4px);
29
+ font-size: 0.875rem;
30
+ line-height: 1.4;
31
+
32
+ background: oklch(from var(--sk-tooltip-bg-hover) calc(l * 0.9) c h / 0.95);
33
+ color: var(--sk-neutral-text);
34
+ box-shadow:
35
+ var(--sk-shadow-md),
36
+ 0 0 8px oklch(from var(--sk-tooltip-color-base) l c h / 0.4);
37
+
38
+ max-width: 20rem;
39
+ z-index: 60;
40
+
41
+ // Content animation
42
+ &[data-state='delayed-open'],
43
+ &[data-state='instant-open']
44
+ {
45
+ animation: sk-tooltip-show var(--sk-transition-duration-fast) ease-out;
46
+ }
47
+
48
+ &[data-state='closed']
49
+ {
50
+ animation: sk-tooltip-hide var(--sk-transition-duration-fast) ease-in;
51
+ }
52
+
53
+ // Solid variant (default) - styled like ghost button hover
54
+ &.sk-solid
55
+ {
56
+ &.sk-neutral
57
+ {
58
+ --sk-tooltip-color-base: var(--sk-neutral-base);
59
+ color: var(--sk-tooltip-fg, var(--sk-neutral-text));
60
+ }
61
+
62
+ &.sk-primary
63
+ {
64
+ --sk-tooltip-color-base: var(--sk-primary-base);
65
+ color: var(--sk-tooltip-fg, var(--sk-primary-text));
66
+ }
67
+
68
+ &.sk-accent
69
+ {
70
+ --sk-tooltip-color-base: var(--sk-accent-base);
71
+ color: var(--sk-tooltip-fg, var(--sk-accent-text));
72
+ }
73
+
74
+ &.sk-info
75
+ {
76
+ --sk-tooltip-color-base: var(--sk-info-base);
77
+ color: var(--sk-tooltip-fg, var(--sk-info-text));
78
+ }
79
+
80
+ &.sk-success
81
+ {
82
+ --sk-tooltip-color-base: var(--sk-success-base);
83
+ color: var(--sk-tooltip-fg, var(--sk-success-text));
84
+ }
85
+
86
+ &.sk-warning
87
+ {
88
+ --sk-tooltip-color-base: var(--sk-warning-base);
89
+ color: var(--sk-tooltip-fg, var(--sk-warning-text));
90
+ }
91
+
92
+ &.sk-danger
93
+ {
94
+ --sk-tooltip-color-base: var(--sk-danger-base);
95
+ color: var(--sk-tooltip-fg, var(--sk-danger-text));
96
+ }
97
+ }
98
+
99
+ // Outline variant - transparent black background with colored border and inner glow
100
+ &.sk-outline
101
+ {
102
+ // Border uses the color-base variable (works with custom colors)
103
+ --sk-tooltip-border-color: var(--sk-tooltip-color-base);
104
+
105
+ background: oklch(0 0 0 / 0.9);
106
+ box-shadow:
107
+ var(--sk-shadow-md),
108
+ inset 0 0 20px oklch(from var(--sk-tooltip-color-base) l c h / 0.5),
109
+ 0 0 8px oklch(from var(--sk-tooltip-color-base) l c h / 0.4);
110
+
111
+ &.sk-neutral
112
+ {
113
+ --sk-tooltip-color-base: var(--sk-neutral-base);
114
+ color: var(--sk-tooltip-fg, var(--sk-neutral-text));
115
+ }
116
+
117
+ &.sk-primary
118
+ {
119
+ --sk-tooltip-color-base: var(--sk-primary-base);
120
+ color: var(--sk-tooltip-fg, var(--sk-primary-text));
121
+ }
122
+
123
+ &.sk-accent
124
+ {
125
+ --sk-tooltip-color-base: var(--sk-accent-base);
126
+ color: var(--sk-tooltip-fg, var(--sk-accent-text));
127
+ }
128
+
129
+ &.sk-info
130
+ {
131
+ --sk-tooltip-color-base: var(--sk-info-base);
132
+ color: var(--sk-tooltip-fg, var(--sk-info-text));
133
+ }
134
+
135
+ &.sk-success
136
+ {
137
+ --sk-tooltip-color-base: var(--sk-success-base);
138
+ color: var(--sk-tooltip-fg, var(--sk-success-text));
139
+ }
140
+
141
+ &.sk-warning
142
+ {
143
+ --sk-tooltip-color-base: var(--sk-warning-base);
144
+ color: var(--sk-tooltip-fg, var(--sk-warning-text));
145
+ }
146
+
147
+ &.sk-danger
148
+ {
149
+ --sk-tooltip-color-base: var(--sk-danger-base);
150
+ color: var(--sk-tooltip-fg, var(--sk-danger-text));
151
+ }
152
+ }
153
+ }
154
+
155
+ .sk-tooltip-arrow
156
+ {
157
+ // Solid variant - match the background
158
+ .sk-solid &
159
+ {
160
+ fill: oklch(from var(--sk-tooltip-bg-hover) calc(l * 0.9) c h / 0.95);
161
+ }
162
+
163
+ // Outline variant - match the border color
164
+ .sk-outline &
165
+ {
166
+ fill: var(--sk-tooltip-color-base);
167
+ }
168
+ }
169
+
170
+ // Fix arrow positioning on sides
171
+ .sk-tooltip-content[data-side='left'] .sk-tooltip-arrow,
172
+ .sk-tooltip-content[data-side='right'] .sk-tooltip-arrow
173
+ {
174
+ margin: 0;
175
+ }
176
+
177
+ // Animations
178
+ @keyframes sk-tooltip-show
179
+ {
180
+ from
181
+ {
182
+ opacity: 0;
183
+ transform: scale(0.95);
184
+ }
185
+
186
+ to
187
+ {
188
+ opacity: 1;
189
+ transform: scale(1);
190
+ }
191
+ }
192
+
193
+ @keyframes sk-tooltip-hide
194
+ {
195
+ from
196
+ {
197
+ opacity: 1;
198
+ transform: scale(1);
199
+ }
200
+
201
+ to
202
+ {
203
+ opacity: 0;
204
+ transform: scale(0.95);
205
+ }
206
+ }
@@ -0,0 +1,93 @@
1
+ Copyright (c) 2009-2011 by Accademia di Belle Arti di Urbino and students of MA course of Visual design. Some rights reserved.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,17 @@
1
+ //----------------------------------------------------------------------------------------------------------------------
2
+ // SleekSpace UI - Main Stylesheet
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+
5
+ // Load modules
6
+ @use "tokens"; // New unified token system
7
+ @use "base";
8
+ @use "scrollbar"; // Custom scrollbar styling
9
+ @use "components";
10
+ @use "utilities";
11
+
12
+ //----------------------------------------------------------------------------------------------------------------------
13
+
14
+ // Define layer order (cascade layers)
15
+ @layer reset, tokens, base, components, utilities;
16
+
17
+ //----------------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,254 @@
1
+ //----------------------------------------------------------------------------------------------------------------------
2
+ // Cut Border Mixin
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+ // Creates beveled corners using corner-shape with fallback support for browsers that don't support it.
5
+ // Supports dynamic border colors via CSS custom properties and any combination of cut corners.
6
+ //----------------------------------------------------------------------------------------------------------------------
7
+
8
+ @use 'sass:list';
9
+
10
+ /// Creates beveled corners with fallback support
11
+ /// @param {Length} $cut - Size of the corner cut (supports CSS custom properties)
12
+ /// @param {Length} $border-width [1px] - Width of the border (supports CSS custom properties)
13
+ /// @param {Color|String} $border-color [currentColor] - Border color (supports CSS custom properties)
14
+ /// @param {List} $corners [(bottom-right)] - Which corners to cut (top-left, top-right, bottom-left, bottom-right)
15
+ /// @example
16
+ /// // Single corner (default)
17
+ /// @include cut-border($cut: 10px);
18
+ ///
19
+ /// // Buttons: opposite corners
20
+ /// @include cut-border(
21
+ /// $cut: 10px,
22
+ /// $corners: (top-left bottom-right)
23
+ /// );
24
+ ///
25
+ /// // Custom combination
26
+ /// @include cut-border(
27
+ /// $cut: 10px,
28
+ /// $corners: (top-right bottom-right)
29
+ /// );
30
+ @mixin cut-border($cut, $border-width: 1px, $border-color: currentColor, $corners: (bottom-right))
31
+ {
32
+ // Check which corners are cut
33
+ $cut-top-left: list.index($corners, top-left) != null;
34
+ $cut-top-right: list.index($corners, top-right) != null;
35
+ $cut-bottom-right: list.index($corners, bottom-right) != null;
36
+ $cut-bottom-left: list.index($corners, bottom-left) != null;
37
+
38
+ // Modern browsers with corner-shape support
39
+ @supports (corner-shape: bevel)
40
+ {
41
+ border: $border-width solid $border-color;
42
+
43
+ // Apply border-radius only to specified corners
44
+ border-top-left-radius: if($cut-top-left, $cut, 0);
45
+ border-top-right-radius: if($cut-top-right, $cut, 0);
46
+ border-bottom-right-radius: if($cut-bottom-right, $cut, 0);
47
+ border-bottom-left-radius: if($cut-bottom-left, $cut, 0);
48
+
49
+ corner-shape: bevel;
50
+ }
51
+
52
+ // Fallback for browsers without corner-shape support
53
+ @supports not (corner-shape: bevel)
54
+ {
55
+ border: none;
56
+
57
+ // Build outer polygon (clockwise) for main element clip-path
58
+ $outer: ();
59
+
60
+ // Top edge (left to right)
61
+ @if $cut-top-left
62
+ {
63
+ $outer: list.append($outer, $cut 0%, comma);
64
+ }
65
+ @else
66
+ {
67
+ $outer: list.append($outer, 0% 0%, comma);
68
+ }
69
+
70
+ // Top-right corner
71
+ @if $cut-top-right
72
+ {
73
+ $outer: list.append($outer, calc(100% - #{$cut}) 0%, comma);
74
+ $outer: list.append($outer, 100% $cut, comma);
75
+ }
76
+ @else
77
+ {
78
+ $outer: list.append($outer, 100% 0%, comma);
79
+ }
80
+
81
+ // Right edge (top to bottom) - continue from previous point
82
+ // Bottom-right corner
83
+ @if $cut-bottom-right
84
+ {
85
+ $outer: list.append($outer, 100% calc(100% - #{$cut}), comma);
86
+ $outer: list.append($outer, calc(100% - #{$cut}) 100%, comma);
87
+ }
88
+ @else
89
+ {
90
+ $outer: list.append($outer, 100% 100%, comma);
91
+ }
92
+
93
+ // Bottom edge (right to left)
94
+ // Bottom-left corner
95
+ @if $cut-bottom-left
96
+ {
97
+ $outer: list.append($outer, $cut 100%, comma);
98
+ $outer: list.append($outer, 0% calc(100% - #{$cut}), comma);
99
+ }
100
+ @else
101
+ {
102
+ $outer: list.append($outer, 0% 100%, comma);
103
+ }
104
+
105
+ // Left edge (bottom to top) - close the polygon
106
+ @if $cut-top-left
107
+ {
108
+ $outer: list.append($outer, 0% $cut, comma);
109
+ }
110
+
111
+ // Main element: Simple clip-path for overall shape
112
+ clip-path: polygon(#{$outer});
113
+
114
+ // ::before - Draw the border using double-polygon clip-path
115
+ &::before
116
+ {
117
+ content: '';
118
+ position: absolute;
119
+ top: 0;
120
+ left: 0;
121
+ right: 0;
122
+ bottom: 0;
123
+ background-color: $border-color;
124
+ z-index: -1;
125
+
126
+ // Build outer polygon (clockwise) - same as main element
127
+ $border-outer: ();
128
+
129
+ // Top edge (left to right)
130
+ @if $cut-top-left
131
+ {
132
+ $border-outer: list.append($border-outer, $cut 0%, comma);
133
+ }
134
+ @else
135
+ {
136
+ $border-outer: list.append($border-outer, 0% 0%, comma);
137
+ }
138
+
139
+ @if $cut-top-right
140
+ {
141
+ $border-outer: list.append($border-outer, calc(100% - #{$cut}) 0%, comma);
142
+ $border-outer: list.append($border-outer, 100% $cut, comma);
143
+ }
144
+ @else
145
+ {
146
+ $border-outer: list.append($border-outer, 100% 0%, comma);
147
+ }
148
+
149
+ @if $cut-bottom-right
150
+ {
151
+ $border-outer: list.append($border-outer, 100% calc(100% - #{$cut}), comma);
152
+ $border-outer: list.append($border-outer, calc(100% - #{$cut}) 100%, comma);
153
+ }
154
+ @else
155
+ {
156
+ $border-outer: list.append($border-outer, 100% 100%, comma);
157
+ }
158
+
159
+ @if $cut-bottom-left
160
+ {
161
+ $border-outer: list.append($border-outer, $cut 100%, comma);
162
+ $border-outer: list.append($border-outer, 0% calc(100% - #{$cut}), comma);
163
+ }
164
+ @else
165
+ {
166
+ $border-outer: list.append($border-outer, 0% 100%, comma);
167
+ }
168
+
169
+ @if $cut-top-left
170
+ {
171
+ $border-outer: list.append($border-outer, 0% $cut, comma);
172
+ }
173
+
174
+ // Return to start
175
+ @if $cut-top-left
176
+ {
177
+ $border-outer: list.append($border-outer, $cut 0%, comma);
178
+ }
179
+ @else
180
+ {
181
+ $border-outer: list.append($border-outer, 0% 0%, comma);
182
+ }
183
+
184
+ // Build inner polygon (counter-clockwise) - inset by border-width
185
+ $border-inner: ();
186
+
187
+ // Start from same position as outer but inset, then go counter-clockwise
188
+ // Top-left corner (inset)
189
+ @if $cut-top-left
190
+ {
191
+ $border-inner: list.append($border-inner, calc(#{$cut} + #{$border-width}) $border-width, comma);
192
+ $border-inner: list.append($border-inner, $border-width calc(#{$cut} + #{$border-width}), comma);
193
+ }
194
+ @else
195
+ {
196
+ $border-inner: list.append($border-inner, $border-width $border-width, comma);
197
+ }
198
+
199
+ // Left edge going down (counter-clockwise)
200
+ // Bottom-left corner (inset)
201
+ @if $cut-bottom-left
202
+ {
203
+ $border-inner: list.append($border-inner, $border-width calc(100% - #{$cut} - #{$border-width}), comma);
204
+ $border-inner: list.append($border-inner, calc(#{$cut} + #{$border-width}) calc(100% - #{$border-width}), comma);
205
+ }
206
+ @else
207
+ {
208
+ $border-inner: list.append($border-inner, $border-width calc(100% - #{$border-width}), comma);
209
+ }
210
+
211
+ // Bottom edge going right (counter-clockwise)
212
+ // Bottom-right corner (inset)
213
+ @if $cut-bottom-right
214
+ {
215
+ $border-inner: list.append($border-inner, calc(100% - #{$cut} - #{$border-width}) calc(100% - #{$border-width}), comma);
216
+ $border-inner: list.append($border-inner, calc(100% - #{$border-width}) calc(100% - #{$cut} - #{$border-width}), comma);
217
+ }
218
+ @else
219
+ {
220
+ $border-inner: list.append($border-inner, calc(100% - #{$border-width}) calc(100% - #{$border-width}), comma);
221
+ }
222
+
223
+ // Right edge going up (counter-clockwise)
224
+ // Top-right corner (inset)
225
+ @if $cut-top-right
226
+ {
227
+ $border-inner: list.append($border-inner, calc(100% - #{$border-width}) calc(#{$cut} + #{$border-width}), comma);
228
+ $border-inner: list.append($border-inner, calc(100% - #{$cut} - #{$border-width}) $border-width, comma);
229
+ }
230
+ @else
231
+ {
232
+ $border-inner: list.append($border-inner, calc(100% - #{$border-width}) $border-width, comma);
233
+ }
234
+
235
+ // Top edge going left (counter-clockwise) - close back to start
236
+ @if $cut-top-left
237
+ {
238
+ $border-inner: list.append($border-inner, calc(#{$cut} + #{$border-width}) $border-width, comma);
239
+ }
240
+ @else
241
+ {
242
+ $border-inner: list.append($border-inner, $border-width $border-width, comma);
243
+ }
244
+
245
+ // Double polygon creates the border frame
246
+ clip-path: polygon(#{$border-outer}, #{$border-inner});
247
+ }
248
+
249
+ // Note: Glow shadow cannot be applied in fallback browsers because clip-path
250
+ // on the parent element clips all its children, including pseudo-elements
251
+ }
252
+ }
253
+
254
+ //----------------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,7 @@
1
+ //----------------------------------------------------------------------------------------------------------------------
2
+ // Mixins Index
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+
5
+ @forward 'cut-border';
6
+
7
+ //----------------------------------------------------------------------------------------------------------------------
@@ -0,0 +1,42 @@
1
+ //----------------------------------------------------------------------------------------------------------------------
2
+ // Shared Design System Variables
3
+ //----------------------------------------------------------------------------------------------------------------------
4
+ // These are SCSS variables (not CSS custom properties) used for component generation
5
+
6
+ //----------------------------------------------------------------------------------------------------------------------
7
+ // Semantic Kinds
8
+ // These represent the semantic color purposes used throughout the component library
9
+ //----------------------------------------------------------------------------------------------------------------------
10
+
11
+ $semantic-kinds: neutral, primary, accent, info, success, warning, danger;
12
+
13
+ //----------------------------------------------------------------------------------------------------------------------
14
+ // Color Kinds
15
+ // These represent direct access to color palettes (non-semantic, non-themeable)
16
+ // Maps old color names to new color primitives via CSS custom properties
17
+ //----------------------------------------------------------------------------------------------------------------------
18
+
19
+ $color-kinds: boulder, neon-blue, light-blue, neon-orange, neon-purple, neon-green, neon-mint, neon-pink, yellow, red;
20
+
21
+ //----------------------------------------------------------------------------------------------------------------------
22
+ // All Kinds
23
+ // Combined list of semantic and color kinds for component styles
24
+ //----------------------------------------------------------------------------------------------------------------------
25
+
26
+ $kinds: neutral, primary, accent, info, success, warning, danger, boulder, neon-blue, light-blue, neon-orange, neon-purple, neon-green, neon-mint, neon-pink, yellow, red;
27
+
28
+ //----------------------------------------------------------------------------------------------------------------------
29
+ // Component Variants
30
+ // These represent the visual style variants available for interactive components
31
+ //----------------------------------------------------------------------------------------------------------------------
32
+
33
+ $variants: solid, outline, subtle, ghost, link;
34
+
35
+ //----------------------------------------------------------------------------------------------------------------------
36
+ // Size Options
37
+ // These represent the size options available for components
38
+ //----------------------------------------------------------------------------------------------------------------------
39
+
40
+ $sizes: xs, sm, md, lg, xl;
41
+
42
+ //----------------------------------------------------------------------------------------------------------------------