@adnap/krysalicss 0.0.1 → 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 (217) hide show
  1. package/README.md +23 -5
  2. package/dist/element/badge.css +30 -0
  3. package/dist/element/badge.min.css +1 -1
  4. package/dist/element/box.css +193 -0
  5. package/dist/element/box.min.css +1 -0
  6. package/dist/element/button.css +4 -0
  7. package/dist/element/button.min.css +1 -1
  8. package/dist/element/divider.css +155 -0
  9. package/dist/element/divider.min.css +1 -0
  10. package/dist/element/image.css +434 -0
  11. package/dist/element/image.min.css +1 -0
  12. package/dist/element/range.css +2 -2
  13. package/dist/element/spinner.css +190 -0
  14. package/dist/element/spinner.min.css +1 -0
  15. package/dist/helper/border.css +141 -0
  16. package/dist/helper/border.min.css +1 -0
  17. package/dist/helper/color.css +203 -0
  18. package/dist/helper/color.min.css +1 -0
  19. package/dist/helper/flex.css +277 -0
  20. package/dist/helper/flex.min.css +1 -0
  21. package/dist/helper/font-size.css +137 -0
  22. package/dist/helper/font-size.min.css +1 -0
  23. package/dist/helper/interactions.css +142 -0
  24. package/dist/helper/interactions.min.css +1 -0
  25. package/dist/helper/line-height.css +129 -0
  26. package/dist/helper/line-height.min.css +1 -0
  27. package/dist/helper/object-fit.css +133 -0
  28. package/dist/helper/object-fit.min.css +1 -0
  29. package/dist/helper/overflow.css +165 -0
  30. package/dist/helper/overflow.min.css +1 -0
  31. package/dist/helper/position.css +157 -0
  32. package/dist/helper/position.min.css +1 -0
  33. package/dist/helper/ratio.css +142 -0
  34. package/dist/helper/ratio.min.css +1 -0
  35. package/dist/helper/shadow.css +129 -0
  36. package/dist/helper/shadow.min.css +1 -0
  37. package/dist/helper/sizing.css +177 -0
  38. package/dist/helper/sizing.min.css +1 -0
  39. package/dist/helper/spacing.css +563 -0
  40. package/dist/helper/spacing.min.css +1 -0
  41. package/dist/helper/stack.css +127 -0
  42. package/dist/helper/stack.min.css +1 -0
  43. package/dist/helper/text.css +243 -0
  44. package/dist/helper/text.min.css +1 -0
  45. package/dist/helper/tooltip.css +174 -0
  46. package/dist/helper/tooltip.min.css +1 -0
  47. package/dist/helper/visibility.css +334 -0
  48. package/dist/helper/visibility.min.css +1 -0
  49. package/dist/krysalicss.css +3491 -414
  50. package/dist/krysalicss.css.map +1 -1
  51. package/dist/krysalicss.min.css +1 -1
  52. package/dist/layout/footer.css +155 -0
  53. package/dist/layout/footer.min.css +1 -0
  54. package/dist/layout/hero.css +177 -0
  55. package/dist/layout/hero.min.css +1 -0
  56. package/dist/module/alert.css +30 -0
  57. package/dist/module/alert.min.css +1 -1
  58. package/dist/module/breadcrumb.css +163 -0
  59. package/dist/module/breadcrumb.min.css +1 -0
  60. package/dist/module/buttons.css +158 -0
  61. package/dist/module/buttons.min.css +1 -0
  62. package/dist/module/card.css +89 -0
  63. package/dist/module/card.min.css +1 -1
  64. package/dist/module/dropdown.css +253 -0
  65. package/dist/module/dropdown.min.css +1 -0
  66. package/dist/module/navbar.css +1 -1
  67. package/dist/module/navbar.min.css +1 -1
  68. package/dist/module/pagination.css +301 -0
  69. package/dist/module/pagination.min.css +1 -0
  70. package/dist/module/popover.css +272 -0
  71. package/dist/module/popover.min.css +1 -0
  72. package/dist/module/section.css +138 -0
  73. package/dist/module/section.min.css +1 -0
  74. package/dist/module/toast.css +307 -0
  75. package/dist/module/toast.min.css +1 -0
  76. package/dist/scss-api.json +4672 -0
  77. package/dist/typography/blockquote.css +128 -0
  78. package/dist/typography/blockquote.min.css +1 -0
  79. package/dist/typography/figure.css +132 -0
  80. package/dist/typography/figure.min.css +1 -0
  81. package/dist/typography/lead.css +119 -0
  82. package/dist/typography/lead.min.css +1 -0
  83. package/dist/typography/list.css +125 -0
  84. package/dist/typography/list.min.css +1 -0
  85. package/package.json +8 -2
  86. package/src/base/global/_plugin.scss +2 -0
  87. package/src/base/reset/_plugin.scss +2 -0
  88. package/src/base/reset/_variables.scss +2 -0
  89. package/src/element/_index.scss +4 -0
  90. package/src/element/badge/_plugin.scss +6 -8
  91. package/src/element/badge/_variables.scss +4 -6
  92. package/src/element/box/_index.scss +2 -0
  93. package/src/element/box/_plugin.scss +31 -0
  94. package/src/element/box/_variables.scss +18 -0
  95. package/src/element/button/_plugin.scss +20 -1
  96. package/src/element/checkbox/_plugin.scss +3 -4
  97. package/src/element/checkbox/_variables.scss +2 -5
  98. package/src/element/divider/_index.scss +2 -0
  99. package/src/element/divider/_plugin.scss +69 -0
  100. package/src/element/divider/_variables.scss +16 -0
  101. package/src/element/file/_plugin.scss +2 -0
  102. package/src/element/file/_variables.scss +2 -6
  103. package/src/element/image/_index.scss +2 -0
  104. package/src/element/image/_plugin.scss +106 -0
  105. package/src/element/image/_variables.scss +53 -0
  106. package/src/element/progress/_plugin.scss +9 -28
  107. package/src/element/progress/_variables.scss +2 -8
  108. package/src/element/radio/_plugin.scss +4 -4
  109. package/src/element/radio/_variables.scss +2 -2
  110. package/src/element/range/_plugin.scss +9 -20
  111. package/src/element/range/_variables.scss +7 -1
  112. package/src/element/select/_plugin.scss +3 -4
  113. package/src/element/select/_variables.scss +2 -6
  114. package/src/element/spinner/_index.scss +2 -0
  115. package/src/element/spinner/_plugin.scss +78 -0
  116. package/src/element/spinner/_variables.scss +22 -0
  117. package/src/element/switch/_plugin.scss +6 -10
  118. package/src/element/switch/_variables.scss +2 -10
  119. package/src/element/text-input/_plugin.scss +3 -1
  120. package/src/element/text-input/_variables.scss +5 -5
  121. package/src/element/textarea/_plugin.scss +3 -1
  122. package/src/element/textarea/_variables.scss +2 -2
  123. package/src/helper/_border.scss +43 -0
  124. package/src/helper/_color.scss +29 -0
  125. package/src/helper/{_controls.scss → _controls-internal.scss} +21 -0
  126. package/src/helper/_flex.scss +89 -0
  127. package/src/helper/_font-size.scss +22 -0
  128. package/src/helper/_index.scss +18 -1
  129. package/src/helper/_interactions.scss +41 -0
  130. package/src/helper/_line-height.scss +22 -0
  131. package/src/helper/_object-fit.scss +15 -0
  132. package/src/helper/_overflow.scss +28 -0
  133. package/src/helper/_position.scss +47 -0
  134. package/src/helper/_ratio.scss +35 -0
  135. package/src/helper/_shadow.scss +31 -0
  136. package/src/helper/_sizing.scss +65 -0
  137. package/src/helper/_spacing.scss +95 -0
  138. package/src/helper/_stack.scss +24 -0
  139. package/src/helper/_state.scss +2 -17
  140. package/src/helper/_text.scss +92 -0
  141. package/src/helper/_tooltip.scss +100 -0
  142. package/src/helper/_visibility.scss +80 -0
  143. package/src/layout/_index.scss +2 -0
  144. package/src/layout/container/_plugin.scss +2 -0
  145. package/src/layout/container/_variables.scss +2 -0
  146. package/src/layout/flex/_plugin.scss +2 -1
  147. package/src/layout/flex/_variables.scss +2 -2
  148. package/src/layout/footer/_index.scss +2 -0
  149. package/src/layout/footer/_plugin.scss +24 -0
  150. package/src/layout/footer/_variables.scss +11 -0
  151. package/src/layout/grid/_plugin.scss +2 -0
  152. package/src/layout/grid/_variables.scss +20 -16
  153. package/src/layout/hero/_index.scss +2 -0
  154. package/src/layout/hero/_plugin.scss +54 -0
  155. package/src/layout/hero/_variables.scss +23 -0
  156. package/src/module/_index.scss +7 -0
  157. package/src/module/alert/_plugin.scss +6 -1
  158. package/src/module/alert/_variables.scss +7 -0
  159. package/src/module/breadcrumb/_index.scss +2 -0
  160. package/src/module/breadcrumb/_plugin.scss +73 -0
  161. package/src/module/breadcrumb/_variables.scss +27 -0
  162. package/src/module/buttons/_index.scss +2 -0
  163. package/src/module/buttons/_plugin.scss +67 -0
  164. package/src/module/buttons/_variables.scss +10 -0
  165. package/src/module/card/_plugin.scss +96 -2
  166. package/src/module/card/_variables.scss +39 -0
  167. package/src/module/dropdown/_index.scss +2 -0
  168. package/src/module/dropdown/_plugin.scss +155 -0
  169. package/src/module/dropdown/_variables.scss +50 -0
  170. package/src/module/field/_plugin.scss +2 -0
  171. package/src/module/modal/_plugin.scss +2 -0
  172. package/src/module/navbar/_plugin.scss +4 -1
  173. package/src/module/navbar/_variables.scss +6 -2
  174. package/src/module/pagination/_index.scss +2 -0
  175. package/src/module/pagination/_plugin.scss +276 -0
  176. package/src/module/pagination/_variables.scss +64 -0
  177. package/src/module/popover/_index.scss +2 -0
  178. package/src/module/popover/_plugin.scss +183 -0
  179. package/src/module/popover/_variables.scss +44 -0
  180. package/src/module/section/_index.scss +2 -0
  181. package/src/module/section/_plugin.scss +47 -0
  182. package/src/module/section/_variables.scss +24 -0
  183. package/src/module/tabs/_plugin.scss +3 -1
  184. package/src/module/toast/_index.scss +2 -0
  185. package/src/module/toast/_plugin.scss +184 -0
  186. package/src/module/toast/_variables.scss +56 -0
  187. package/src/typography/_index.scss +4 -0
  188. package/src/typography/base/_plugin.scss +2 -0
  189. package/src/typography/base/_variables.scss +4 -3
  190. package/src/typography/blockquote/_index.scss +2 -0
  191. package/src/typography/blockquote/_plugin.scss +22 -0
  192. package/src/typography/blockquote/_variables.scss +13 -0
  193. package/src/typography/content/_plugin.scss +2 -0
  194. package/src/typography/content/_variables.scss +2 -0
  195. package/src/typography/figure/_index.scss +2 -0
  196. package/src/typography/figure/_plugin.scss +29 -0
  197. package/src/typography/figure/_variables.scss +13 -0
  198. package/src/typography/lead/_index.scss +2 -0
  199. package/src/typography/lead/_plugin.scss +12 -0
  200. package/src/typography/lead/_variables.scss +6 -0
  201. package/src/typography/link/_mixins.scss +2 -0
  202. package/src/typography/link/_plugin.scss +2 -0
  203. package/src/typography/link/_variables.scss +2 -0
  204. package/src/typography/list/_index.scss +2 -0
  205. package/src/typography/list/_plugin.scss +18 -0
  206. package/src/typography/list/_variables.scss +6 -0
  207. package/src/typography/table/_plugin.scss +2 -0
  208. package/src/typography/table/_variables.scss +2 -0
  209. package/src/typography/title/_plugin.scss +2 -0
  210. package/src/typography/title/_variables.scss +2 -0
  211. package/src/variables/_color.scss +20 -12
  212. package/src/variables/_feature.scss +36 -0
  213. package/src/variables/_global.scss +8 -0
  214. package/src/variables/_selector.scss +1 -0
  215. package/dist/tokens/dark.json +0 -85
  216. package/dist/tokens/default.json +0 -85
  217. package/dist/tokens/high-contrast.json +0 -85
@@ -8,11 +8,15 @@ $list: true !default;
8
8
  @return $list == true or list.index($list, $name) != null;
9
9
  }
10
10
 
11
+ $light-variants: true !default;
12
+
11
13
  $base-reset: _defaultValue(base-reset) !default;
12
14
  $base-global: _defaultValue(base-global) !default;
13
15
  $layout-container: _defaultValue(layout-container) !default;
14
16
  $layout-flex: _defaultValue(layout-flex) !default;
15
17
  $layout-grid: _defaultValue(layout-grid) !default;
18
+ $layout-hero: _defaultValue(layout-hero) !default;
19
+ $layout-footer: _defaultValue(layout-footer) !default;
16
20
  $typography-base: _defaultValue(typography-base) !default;
17
21
  $typography-title: _defaultValue(typography-title) !default;
18
22
  $typography-link: _defaultValue(typography-link) !default;
@@ -24,6 +28,8 @@ $module-field: _defaultValue(module-field) !default;
24
28
  $module-navbar: _defaultValue(module-navbar) !default;
25
29
  $module-modal: _defaultValue(module-modal) !default;
26
30
  $module-tabs: _defaultValue(module-tabs) !default;
31
+ $module-dropdown: _defaultValue(module-dropdown) !default;
32
+ $module-section: _defaultValue(module-section) !default;
27
33
  $element-button: _defaultValue(element-button) !default;
28
34
  $element-badge: _defaultValue(element-badge) !default;
29
35
  $element-progress: _defaultValue(element-progress) !default;
@@ -37,3 +43,33 @@ $element-file: _defaultValue(element-file) !default;
37
43
  $element-range: _defaultValue(element-range) !default;
38
44
  $helper-breakpoints: _defaultValue(helper-breakpoints) !default;
39
45
  $helper-state: _defaultValue(helper-state) !default;
46
+ $helper-visibility: _defaultValue(helper-visibility) !default;
47
+ $helper-spacing: _defaultValue(helper-spacing) !default;
48
+ $helper-text: _defaultValue(helper-text) !default;
49
+ $helper-color: _defaultValue(helper-color) !default;
50
+ $helper-flex: _defaultValue(helper-flex) !default;
51
+ $helper-sizing: _defaultValue(helper-sizing) !default;
52
+ $helper-position: _defaultValue(helper-position) !default;
53
+ $helper-shadow: _defaultValue(helper-shadow) !default;
54
+ $helper-border: _defaultValue(helper-border) !default;
55
+ $helper-interactions: _defaultValue(helper-interactions) !default;
56
+ $helper-ratio: _defaultValue(helper-ratio) !default;
57
+ $helper-object-fit: _defaultValue(helper-object-fit) !default;
58
+ $helper-overflow: _defaultValue(helper-overflow) !default;
59
+ $helper-stack: _defaultValue(helper-stack) !default;
60
+ $element-spinner: _defaultValue(element-spinner) !default;
61
+ $element-box: _defaultValue(element-box) !default;
62
+ $element-divider: _defaultValue(element-divider) !default;
63
+ $module-breadcrumb: _defaultValue(module-breadcrumb) !default;
64
+ $module-pagination: _defaultValue(module-pagination) !default;
65
+ $typography-lead: _defaultValue(typography-lead) !default;
66
+ $typography-blockquote: _defaultValue(typography-blockquote) !default;
67
+ $typography-list: _defaultValue(typography-list) !default;
68
+ $helper-font-size: _defaultValue(helper-font-size) !default;
69
+ $helper-line-height: _defaultValue(helper-line-height) !default;
70
+ $helper-tooltip: _defaultValue(helper-tooltip) !default;
71
+ $module-buttons: _defaultValue(module-buttons) !default;
72
+ $module-toast: _defaultValue(module-toast) !default;
73
+ $module-popover: _defaultValue(module-popover) !default;
74
+ $element-image: _defaultValue(element-image) !default;
75
+ $typography-figure: _defaultValue(typography-figure) !default;
@@ -40,6 +40,14 @@ $disabled-opacity: 0.6 !default;
40
40
  // only, not as a control boundary.
41
41
  $border-mix: 50% !default;
42
42
 
43
+ // Subtle-border tint for decorative surface edges (card, popover, modal,
44
+ // dropdown) and subpart dividers (card header / footer / inter-item).
45
+ // 12 % is the empirically-tuned tint that reads as a hairline on every
46
+ // shipped combination without competing with the surface fill. Distinct
47
+ // from `$border-mix` (50 %): that one enforces a WCAG 1.4.11 floor for
48
+ // interactive borders against the page bg; this one is decorative.
49
+ $subtle-border-mix: 12% !default;
50
+
43
51
  // AAA touch-target minimum (WCAG 2.5.5): interactive controls must be
44
52
  // ≥ 44 × 44 CSS pixels. Padding alone provides the height; this token
45
53
  // enforces the floor for short labels (icon-only buttons, "OK", "No").
@@ -1 +1,2 @@
1
1
  $prefix-is: ".is-" !default;
2
+ $prefix-has: ".has-" !default;
@@ -1,85 +0,0 @@
1
- {
2
- "$description": "Krysalicss \"dark\" theme tokens, W3C Design Tokens Community Group format. Compatible with Style Dictionary v4.",
3
- "kc": {
4
- "bg": {
5
- "$value": "#121417",
6
- "$type": "color"
7
- },
8
- "fg": {
9
- "$value": "#e6e8eb",
10
- "$type": "color"
11
- },
12
- "link": {
13
- "$value": "#6cd2a8",
14
- "$type": "color"
15
- },
16
- "link-hover": {
17
- "$value": "#9be3c1",
18
- "$type": "color"
19
- },
20
- "border-radius": {
21
- "$value": "5px",
22
- "$type": "dimension"
23
- },
24
- "card-bg": {
25
- "$value": "#1c1f23",
26
- "$type": "color"
27
- },
28
- "card-fg": {
29
- "$value": "#e6e8eb",
30
- "$type": "color"
31
- },
32
- "focus-ring": {
33
- "$value": "#6cd2a8",
34
- "$type": "color"
35
- },
36
- "default-bg": {
37
- "$value": "#1c1f23",
38
- "$type": "color"
39
- },
40
- "default-fg": {
41
- "$value": "#e6e8eb",
42
- "$type": "color"
43
- },
44
- "light-bg": {
45
- "$value": "#3d5a3f",
46
- "$type": "color"
47
- },
48
- "light-fg": {
49
- "$value": "#e6e8eb",
50
- "$type": "color"
51
- },
52
- "primary-bg": {
53
- "$value": "#21704f",
54
- "$type": "color"
55
- },
56
- "primary-fg": {
57
- "$value": "#f5f7f5",
58
- "$type": "color"
59
- },
60
- "warning-bg": {
61
- "$value": "#b89a1e",
62
- "$type": "color"
63
- },
64
- "warning-fg": {
65
- "$value": "#1a1a12",
66
- "$type": "color"
67
- },
68
- "danger-bg": {
69
- "$value": "#a3471a",
70
- "$type": "color"
71
- },
72
- "danger-fg": {
73
- "$value": "#fff5ee",
74
- "$type": "color"
75
- },
76
- "success-bg": {
77
- "$value": "#5c6529",
78
- "$type": "color"
79
- },
80
- "success-fg": {
81
- "$value": "#f4f6e6",
82
- "$type": "color"
83
- }
84
- }
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$description": "Krysalicss \"default\" theme tokens, W3C Design Tokens Community Group format. Compatible with Style Dictionary v4.",
3
- "kc": {
4
- "bg": {
5
- "$value": "#fff",
6
- "$type": "color"
7
- },
8
- "fg": {
9
- "$value": "#27282b",
10
- "$type": "color"
11
- },
12
- "link": {
13
- "$value": "#1f6e51",
14
- "$type": "color"
15
- },
16
- "link-hover": {
17
- "$value": "#6b7330",
18
- "$type": "color"
19
- },
20
- "border-radius": {
21
- "$value": "5px",
22
- "$type": "dimension"
23
- },
24
- "card-bg": {
25
- "$value": "#fff",
26
- "$type": "color"
27
- },
28
- "card-fg": {
29
- "$value": "#27282b",
30
- "$type": "color"
31
- },
32
- "focus-ring": {
33
- "$value": "#1f6e51",
34
- "$type": "color"
35
- },
36
- "default-bg": {
37
- "$value": "#fff",
38
- "$type": "color"
39
- },
40
- "default-fg": {
41
- "$value": "#27282b",
42
- "$type": "color"
43
- },
44
- "light-bg": {
45
- "$value": "#c2f2c5",
46
- "$type": "color"
47
- },
48
- "light-fg": {
49
- "$value": "#27282b",
50
- "$type": "color"
51
- },
52
- "primary-bg": {
53
- "$value": "#1f6e51",
54
- "$type": "color"
55
- },
56
- "primary-fg": {
57
- "$value": "#fff",
58
- "$type": "color"
59
- },
60
- "warning-bg": {
61
- "$value": "#ecf241",
62
- "$type": "color"
63
- },
64
- "warning-fg": {
65
- "$value": "#27282b",
66
- "$type": "color"
67
- },
68
- "danger-bg": {
69
- "$value": "#f26b1d",
70
- "$type": "color"
71
- },
72
- "danger-fg": {
73
- "$value": "#27282b",
74
- "$type": "color"
75
- },
76
- "success-bg": {
77
- "$value": "#6b7330",
78
- "$type": "color"
79
- },
80
- "success-fg": {
81
- "$value": "#fff",
82
- "$type": "color"
83
- }
84
- }
85
- }
@@ -1,85 +0,0 @@
1
- {
2
- "$description": "Krysalicss \"high-contrast\" theme tokens, W3C Design Tokens Community Group format. Compatible with Style Dictionary v4.",
3
- "kc": {
4
- "bg": {
5
- "$value": "#000",
6
- "$type": "color"
7
- },
8
- "fg": {
9
- "$value": "#fff",
10
- "$type": "color"
11
- },
12
- "link": {
13
- "$value": "#ffd400",
14
- "$type": "color"
15
- },
16
- "link-hover": {
17
- "$value": "#fff",
18
- "$type": "color"
19
- },
20
- "border-radius": {
21
- "$value": "0",
22
- "$type": "dimension"
23
- },
24
- "card-bg": {
25
- "$value": "#000",
26
- "$type": "color"
27
- },
28
- "card-fg": {
29
- "$value": "#fff",
30
- "$type": "color"
31
- },
32
- "focus-ring": {
33
- "$value": "#ffd400",
34
- "$type": "color"
35
- },
36
- "default-bg": {
37
- "$value": "#fff",
38
- "$type": "color"
39
- },
40
- "default-fg": {
41
- "$value": "#000",
42
- "$type": "color"
43
- },
44
- "light-bg": {
45
- "$value": "#fff",
46
- "$type": "color"
47
- },
48
- "light-fg": {
49
- "$value": "#000",
50
- "$type": "color"
51
- },
52
- "primary-bg": {
53
- "$value": "#00d2ff",
54
- "$type": "color"
55
- },
56
- "primary-fg": {
57
- "$value": "#000",
58
- "$type": "color"
59
- },
60
- "warning-bg": {
61
- "$value": "#ffd400",
62
- "$type": "color"
63
- },
64
- "warning-fg": {
65
- "$value": "#000",
66
- "$type": "color"
67
- },
68
- "danger-bg": {
69
- "$value": "#ff8585",
70
- "$type": "color"
71
- },
72
- "danger-fg": {
73
- "$value": "#000",
74
- "$type": "color"
75
- },
76
- "success-bg": {
77
- "$value": "#00ff85",
78
- "$type": "color"
79
- },
80
- "success-fg": {
81
- "$value": "#000",
82
- "$type": "color"
83
- }
84
- }
85
- }