@lightspeed/design-system-css 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE.md +24 -0
  3. package/README.md +70 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.js +9 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/themes/types.d.ts +54 -0
  8. package/dist/themes/types.js +16 -0
  9. package/dist/themes/types.js.map +1 -0
  10. package/dist/themes/xseries/dark.d.ts +68 -0
  11. package/dist/themes/xseries/dark.js +84 -0
  12. package/dist/themes/xseries/dark.js.map +1 -0
  13. package/dist/themes/xseries/light.d.ts +68 -0
  14. package/dist/themes/xseries/light.js +84 -0
  15. package/dist/themes/xseries/light.js.map +1 -0
  16. package/dist/vend-styles.css +6643 -0
  17. package/package.json +34 -0
  18. package/src/fonts-ui/fonts-ns.scss +14 -0
  19. package/src/images-ui/images-ui-ns.scss +1 -0
  20. package/src/index.ts +9 -0
  21. package/src/themes/themeToScss.ts +67 -0
  22. package/src/themes/types.ts +68 -0
  23. package/src/themes/xseries/dark.ts +90 -0
  24. package/src/themes/xseries/light.ts +89 -0
  25. package/src/vend-stylelint/use-colour-function.js +60 -0
  26. package/src/vend-styles/components/BarChart/BarChart.scss +45 -0
  27. package/src/vend-styles/components/Carousel/Carousel.scss +114 -0
  28. package/src/vend-styles/components/CodeInput/CodeInput.scss +25 -0
  29. package/src/vend-styles/components/CurrencyInput/CurrencyInput.scss +4 -0
  30. package/src/vend-styles/components/DatePicker/DatePicker.scss +232 -0
  31. package/src/vend-styles/components/DatePicker/_DatePicker-ns.scss +32 -0
  32. package/src/vend-styles/components/FileUpload/FileUpload.scss +8 -0
  33. package/src/vend-styles/components/InboundIndicator/InboundIndicator.scss +7 -0
  34. package/src/vend-styles/components/InboundItem/InboundItem.scss +3 -0
  35. package/src/vend-styles/components/LineChart/LineChart.scss +99 -0
  36. package/src/vend-styles/components/Modal/Modal.scss +149 -0
  37. package/src/vend-styles/components/Modal/_Modal-ns.scss +7 -0
  38. package/src/vend-styles/components/PageHeader/_PageHeader.scss +3 -0
  39. package/src/vend-styles/components/ProgressBar/ProgressBar.scss +21 -0
  40. package/src/vend-styles/components/PromotionModal/PromotionModal.scss +44 -0
  41. package/src/vend-styles/components/SearchFilters/SearchFilters.scss +6 -0
  42. package/src/vend-styles/components/TableList/TableList.scss +291 -0
  43. package/src/vend-styles/components/TableList/_TableList-ns.scss +15 -0
  44. package/src/vend-styles/components/UpsellPrimary/UpsellPrimary.scss +53 -0
  45. package/src/vend-styles/components/UpsellPrimary/_UpsellPrimary-ns.scss +12 -0
  46. package/src/vend-styles/components/UpsellSecondary/UpsellSecondary.scss +30 -0
  47. package/src/vend-styles/components/VendVideo/VendVideo.scss +48 -0
  48. package/src/vend-styles/utilities/position.scss +3 -0
  49. package/src/vend-styles/utilities/text.scss +9 -0
  50. package/src/vend-styles/vend-styles.scss +39 -0
  51. package/src/vend.ui/_deprecated/v38.0.0/styles/vd-flex/vd-flex-ns.scss +2 -0
  52. package/src/vend.ui/_deprecated/v38.0.0/styles/vd-flex/vd-flex.scss +47 -0
  53. package/src/vend.ui/behaviours/vd-align/vd-align.scss +3 -0
  54. package/src/vend.ui/components/vd-action-bar/vd-action-bar-ns.scss +3 -0
  55. package/src/vend.ui/components/vd-action-bar/vd-action-bar.scss +33 -0
  56. package/src/vend.ui/components/vd-autocomplete/vd-autocomplete.scss +36 -0
  57. package/src/vend.ui/components/vd-autocomplete-filter/vd-autocomplete-filter.scss +68 -0
  58. package/src/vend.ui/components/vd-avatar/vd-avatar-ns.scss +3 -0
  59. package/src/vend.ui/components/vd-avatar/vd-avatar.scss +78 -0
  60. package/src/vend.ui/components/vd-avatar-multi/vd-avatar-multi-ns.scss +4 -0
  61. package/src/vend.ui/components/vd-avatar-multi/vd-avatar-multi.scss +70 -0
  62. package/src/vend.ui/components/vd-badges/vd-badges.scss +1 -0
  63. package/src/vend.ui/components/vd-badges/vd-id-badge/vd-id-badge-ns.scss +10 -0
  64. package/src/vend.ui/components/vd-badges/vd-id-badge/vd-id-badge.scss +159 -0
  65. package/src/vend.ui/components/vd-banner/vd-banner-ns.scss +16 -0
  66. package/src/vend.ui/components/vd-banner/vd-banner.scss +89 -0
  67. package/src/vend.ui/components/vd-bg/vd-bg.scss +4 -0
  68. package/src/vend.ui/components/vd-body/vd-body.scss +20 -0
  69. package/src/vend.ui/components/vd-btn/_vd-btn-mixins.scss +121 -0
  70. package/src/vend.ui/components/vd-btn/_vd-btn-ns.scss +7 -0
  71. package/src/vend.ui/components/vd-btn/vd-btn-panel.scss +74 -0
  72. package/src/vend.ui/components/vd-btn/vd-btn.scss +112 -0
  73. package/src/vend.ui/components/vd-card/vd-card-ns.scss +9 -0
  74. package/src/vend.ui/components/vd-card/vd-card.scss +11 -0
  75. package/src/vend.ui/components/vd-carousel/vd-carousel.scss +120 -0
  76. package/src/vend.ui/components/vd-checkbox/vd-checkbox-ns.scss +7 -0
  77. package/src/vend.ui/components/vd-checkbox/vd-checkbox.scss +158 -0
  78. package/src/vend.ui/components/vd-datepicker/vd-datepicker-ns.scss +74 -0
  79. package/src/vend.ui/components/vd-datepicker/vd-datepicker.scss +332 -0
  80. package/src/vend.ui/components/vd-dialog/vd-dialog-ns.scss +10 -0
  81. package/src/vend.ui/components/vd-dialog/vd-dialog.scss +220 -0
  82. package/src/vend.ui/components/vd-dialog-close/vd-dialog-close-ns.scss +8 -0
  83. package/src/vend.ui/components/vd-dialog-close/vd-dialog-close.scss +117 -0
  84. package/src/vend.ui/components/vd-dialog-drawer/vd-dialog-drawer-ns.scss +1 -0
  85. package/src/vend.ui/components/vd-dialog-drawer/vd-dialog-drawer.scss +22 -0
  86. package/src/vend.ui/components/vd-dott/vd-dott.scss +41 -0
  87. package/src/vend.ui/components/vd-dropdown/vd-dropdown.scss +15 -0
  88. package/src/vend.ui/components/vd-expandable/vd-expandable.scss +11 -0
  89. package/src/vend.ui/components/vd-feedback/vd-feedback.scss +23 -0
  90. package/src/vend.ui/components/vd-field/vd-field-ns.scss +4 -0
  91. package/src/vend.ui/components/vd-field/vd-field.scss +59 -0
  92. package/src/vend.ui/components/vd-fieldset/vd-fieldset.scss +19 -0
  93. package/src/vend.ui/components/vd-flag/vd-flag-ns.scss +1 -0
  94. package/src/vend.ui/components/vd-flag/vd-flag.scss +46 -0
  95. package/src/vend.ui/components/vd-flex/vd-flex.scss +21 -0
  96. package/src/vend.ui/components/vd-grid/vd-grid.scss +26 -0
  97. package/src/vend.ui/components/vd-header/vd-header.scss +34 -0
  98. package/src/vend.ui/components/vd-hero/vd-hero-ns.scss +28 -0
  99. package/src/vend.ui/components/vd-hero/vd-hero.scss +114 -0
  100. package/src/vend.ui/components/vd-hr/vd-hr.scss +14 -0
  101. package/src/vend.ui/components/vd-in-page-help/vd-in-page-help.scss +61 -0
  102. package/src/vend.ui/components/vd-input/vd-input-ns.scss +99 -0
  103. package/src/vend.ui/components/vd-input/vd-input.scss +49 -0
  104. package/src/vend.ui/components/vd-input-char-limit/vd-input-char-limit.scss +8 -0
  105. package/src/vend.ui/components/vd-link/vd-link.scss +23 -0
  106. package/src/vend.ui/components/vd-loader/vd-loader.scss +56 -0
  107. package/src/vend.ui/components/vd-lozenge/vd-lozenge.scss +40 -0
  108. package/src/vend.ui/components/vd-lozenge-group/vd-lozenge-group.scss +38 -0
  109. package/src/vend.ui/components/vd-main-content/vd-main-content.scss +39 -0
  110. package/src/vend.ui/components/vd-modals-container/vd-modals-container.scss +5 -0
  111. package/src/vend.ui/components/vd-multiselect-popover/vd-multiselect-popover.scss +32 -0
  112. package/src/vend.ui/components/vd-nav-item/vd-nav-item.scss +30 -0
  113. package/src/vend.ui/components/vd-next-stepper/vd-next-stepper.scss +62 -0
  114. package/src/vend.ui/components/vd-overlay/vd-overlay-ns.scss +1 -0
  115. package/src/vend.ui/components/vd-overlay/vd-overlay.scss +19 -0
  116. package/src/vend.ui/components/vd-p/vd-p.scss +8 -0
  117. package/src/vend.ui/components/vd-panel/vd-panel.scss +9 -0
  118. package/src/vend.ui/components/vd-popover/vd-popover-ns.scss +5 -0
  119. package/src/vend.ui/components/vd-popover/vd-popover.scss +180 -0
  120. package/src/vend.ui/components/vd-popover-list/vd-popover-list-ns.scss +16 -0
  121. package/src/vend.ui/components/vd-popover-list/vd-popover-list.scss +128 -0
  122. package/src/vend.ui/components/vd-promo/vd-promo-ns.scss +12 -0
  123. package/src/vend.ui/components/vd-promo/vd-promo.scss +86 -0
  124. package/src/vend.ui/components/vd-radio/vd-radio-ns.scss +7 -0
  125. package/src/vend.ui/components/vd-radio/vd-radio.scss +130 -0
  126. package/src/vend.ui/components/vd-save/vd-save.scss +4 -0
  127. package/src/vend.ui/components/vd-scrollable/vd-scrollable-ns.scss +2 -0
  128. package/src/vend.ui/components/vd-scrollable/vd-scrollable.scss +54 -0
  129. package/src/vend.ui/components/vd-section/vd-section-ns.scss +17 -0
  130. package/src/vend.ui/components/vd-section/vd-section.scss +118 -0
  131. package/src/vend.ui/components/vd-section-back/vd-section-back-ns.scss +3 -0
  132. package/src/vend.ui/components/vd-section-back/vd-section-back.scss +34 -0
  133. package/src/vend.ui/components/vd-segcontrol/vd-segcontrol.scss +82 -0
  134. package/src/vend.ui/components/vd-select/vd-select-group.scss +47 -0
  135. package/src/vend.ui/components/vd-select/vd-select-inline.scss +40 -0
  136. package/src/vend.ui/components/vd-select/vd-select-ns.scss +17 -0
  137. package/src/vend.ui/components/vd-select/vd-select.scss +26 -0
  138. package/src/vend.ui/components/vd-settings/vd-settings-ns.scss +1 -0
  139. package/src/vend.ui/components/vd-settings/vd-settings.scss +8 -0
  140. package/src/vend.ui/components/vd-sidebar/vd-sidebar.scss +10 -0
  141. package/src/vend.ui/components/vd-sidebar-drawer/vd-sidebar-drawer-ns.scss +6 -0
  142. package/src/vend.ui/components/vd-sidebar-drawer/vd-sidebar-drawer.scss +47 -0
  143. package/src/vend.ui/components/vd-sidebar-tabs/vd-sidebar-tabs-ns.scss +15 -0
  144. package/src/vend.ui/components/vd-sidebar-tabs/vd-sidebar-tabs.scss +73 -0
  145. package/src/vend.ui/components/vd-splash/vd-splash.scss +47 -0
  146. package/src/vend.ui/components/vd-status-icon/vd-status-icon-ns.scss +1 -0
  147. package/src/vend.ui/components/vd-status-icon/vd-status-icon.scss +12 -0
  148. package/src/vend.ui/components/vd-suggestion/vd-suggestion-list-ns.scss +5 -0
  149. package/src/vend.ui/components/vd-suggestion/vd-suggestion-list.scss +76 -0
  150. package/src/vend.ui/components/vd-switch/vd-switch-ns.scss +8 -0
  151. package/src/vend.ui/components/vd-switch/vd-switch.scss +117 -0
  152. package/src/vend.ui/components/vd-table/vd-table-ns.scss +13 -0
  153. package/src/vend.ui/components/vd-table/vd-table.scss +251 -0
  154. package/src/vend.ui/components/vd-tabs/_vd-tabs-ns.scss +3 -0
  155. package/src/vend.ui/components/vd-tabs/vd-tabs.scss +76 -0
  156. package/src/vend.ui/components/vd-text/vd-text.scss +18 -0
  157. package/src/vend.ui/components/vd-toast-notification/vd-toast-notification-ns.scss +3 -0
  158. package/src/vend.ui/components/vd-toast-notification/vd-toast-notification.scss +58 -0
  159. package/src/vend.ui/components/vd-tooltip/vd-tooltip-ns.scss +1 -0
  160. package/src/vend.ui/components/vd-tooltip/vd-tooltip.scss +15 -0
  161. package/src/vend.ui/components/vd-topbar/vd-topbar-ns.scss +10 -0
  162. package/src/vend.ui/components/vd-topbar/vd-topbar.scss +36 -0
  163. package/src/vend.ui/components/vd-visibility/vd-visibility.scss +73 -0
  164. package/src/vend.ui/fonts/fira-mono-regular.woff2 +0 -0
  165. package/src/vend.ui/fonts/lato-black.woff2 +0 -0
  166. package/src/vend.ui/fonts/lato-bold.woff2 +0 -0
  167. package/src/vend.ui/fonts/lato-regular.woff2 +0 -0
  168. package/src/vend.ui/styles/global/_base-mixins.scss +12 -0
  169. package/src/vend.ui/styles/global/_button-mixins.scss +17 -0
  170. package/src/vend.ui/styles/global/_grid.scss +102 -0
  171. package/src/vend.ui/styles/global/_helper-mixins.scss +36 -0
  172. package/src/vend.ui/styles/global/_layout.scss +10 -0
  173. package/src/vend.ui/styles/global/_misc.scss +14 -0
  174. package/src/vend.ui/styles/global/_non-styles.scss +72 -0
  175. package/src/vend.ui/styles/global/_normalise.scss +16 -0
  176. package/src/vend.ui/styles/global/_placeholders.scss +11 -0
  177. package/src/vend.ui/styles/global/_z-index.scss +40 -0
  178. package/src/vend.ui/styles/global/colour/_base.scss +105 -0
  179. package/src/vend.ui/styles/global/colour/_colour-functions.scss +76 -0
  180. package/src/vend.ui/styles/global/colour/_colour-helpers.scss +7 -0
  181. package/src/vend.ui/styles/global/colour/_colour.scss +5 -0
  182. package/src/vend.ui/styles/global/colour/themes/_colour-themes.scss +12 -0
  183. package/src/vend.ui/styles/global/colour/themes/_css-var-theme-generator.scss +1 -0
  184. package/src/vend.ui/styles/global/colour/themes/_theme-functions.scss +81 -0
  185. package/src/vend.ui/styles/global/colour/themes/_theme-keys.scss +5 -0
  186. package/src/vend.ui/styles/global/colour/themes/xseries/_theme-dark.scss +53 -0
  187. package/src/vend.ui/styles/global/colour/themes/xseries/_theme-light.scss +53 -0
  188. package/src/vend.ui/styles/global/effects/_effects-ns.scss +13 -0
  189. package/src/vend.ui/styles/global/effects/_effects.scss +22 -0
  190. package/src/vend.ui/styles/global/spacing/_spacing-functions.scss +12 -0
  191. package/src/vend.ui/styles/global/spacing/_spacing-helpers.scss +24 -0
  192. package/src/vend.ui/styles/global/spacing/_spacing.scss +4 -0
  193. package/src/vend.ui/styles/global/text/_base.scss +6 -0
  194. package/src/vend.ui/styles/global/text/_text-definitions.scss +65 -0
  195. package/src/vend.ui/styles/global/text/_text-helpers.scss +17 -0
  196. package/src/vend.ui/styles/global/text/_text-mixins.scss +141 -0
  197. package/src/vend.ui/styles/global/text/_text.scss +3 -0
  198. package/src/vend.ui/styles/global/utils/_functions.scss +84 -0
  199. package/src/vend.ui/styles/global/viewport/_viewport-data.scss +37 -0
  200. package/src/vend.ui/styles/global/viewport/_viewport-identifier.scss +37 -0
  201. package/src/vend.ui/styles/global/viewport/_viewport-media-mixins.scss +157 -0
  202. package/src/vend.ui/styles/global/viewport/_viewport-ranges.scss +18 -0
  203. package/src/vend.ui/styles/navi/_non-styles.scss +2 -0
  204. package/src/vend.ui/styles/navi/_nv-account-banner.scss +12 -0
  205. package/src/vend.ui/styles/navi/_nv-notifications-item.scss +15 -0
  206. package/src/vend.ui/styles/navi/_nv-sidenav.scss +143 -0
  207. package/src/vend.ui/styles/navi/_nv-topnav-title.scss +24 -0
  208. package/src/vend.ui/styles/navi/_nv-topnav.scss +112 -0
  209. package/src/vend.ui/styles/navi/_nv-user-sale-data.scss +14 -0
  210. package/src/vend.ui/styles/navi/dialogs/_nv-dialog-drawer.scss +44 -0
  211. package/src/vend.ui/styles/navi/dialogs/_nv-notifications-dialog.scss +85 -0
  212. package/src/vend.ui/styles/navi/dialogs/_nv-user-dialog.scss +44 -0
  213. package/src/vend.ui/styles/navi/navi.scss +12 -0
  214. package/src/vend.ui/styles/navi/non-styles/_mixins.scss +48 -0
  215. package/src/vend.ui/styles/navi/non-styles/_variables.scss +26 -0
  216. package/src/vend.ui/styles/vend-ui.scss +98 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,12 @@
1
+ # @lightspeed/design-system-css
2
+
3
+ ## 0.1.0
4
+ ### Minor Changes
5
+
6
+ - 094a8faf7: Initial release of `@lightspeed/design-sytem-css`.
7
+
8
+ See https://github.com/vend/monocle/pull/3616 for context.
9
+
10
+ ### Patch Changes
11
+
12
+ - dc309dc98: Remove dependency on @vend packages
package/LICENSE.md ADDED
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2019-present Lightspeed Commerce Inc.
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is furnished
8
+ to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ The rights granted above may only be exercised to develop, test, distribute and
14
+ provide network access to applications that integrate or interoperate with
15
+ Lightspeed products or services. The rights granted above may under no circumstances
16
+ be exercised to develop, test, distribute or provide network access to applications
17
+ that compete with Lightspeed products or services.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
20
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
21
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.”
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # Lightspeed Design System in CSS
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@lightspeed/design-system-css.svg?style=flat)](https://www.npmjs.com/package/@lightspeed/design-system-css)
4
+
5
+ CSS component library for building Lightspeed products.
6
+
7
+ ## Usage
8
+
9
+ To use these components, you would typically add the following to your package's root `index.tsx`:
10
+
11
+ ```ts
12
+ import '@lightspeed/design-system-css/dist/vend-styles.css'
13
+ ```
14
+
15
+ You have access to both the `.css` dist files and the `.scss` src files. The design system CSS files are broken down per component, so you can just use what you need (i.e. `DatePicker.css`).
16
+
17
+ #### Accessing Variables, Mixins, Functions
18
+
19
+ You can access all the variables, mixins, functions and other Sass that doesn't produce actual CSS at any time by
20
+ importing:
21
+
22
+ ```scss
23
+ @import '@lightspeed/design-system-css/src/vend.ui/styles/global/non-styles';
24
+ ```
25
+
26
+ ## Scripts
27
+
28
+ - `build` - Build the dist `.css` files
29
+ - `build:themes` - Converts the JS themes to SCSS maps
30
+
31
+ ## Publishing
32
+
33
+ This package is published publicly on NPM under the `@lightspeed` organization. We use the [changesets](https://github.com/atlassian/changesets/blob/main/docs/detailed-explanation.md)'s workflow to release new versions.
34
+
35
+ ### 1. Add a changeset
36
+
37
+ 1. Run the command line script `yarn changeset`
38
+ 2. Select an appropriate bump type for the changes made
39
+ 3. Your final prompt will be to provide a message to go alongside the changeset. This will be written into the changelog when the next release occurs.
40
+
41
+ After this, a new changeset will be added which is a markdown file with YAML front matter.
42
+
43
+ ```
44
+ -| .changeset/
45
+ -|-| UNIQUE_ID.md
46
+ ```
47
+
48
+ The message you typed can be found in the markdown file. If you want to expand on it, you can write as much markdown as you want, which will all be added to the changelog on publish. If you want to add more packages or change the bump types of any packages, that's also fine.
49
+
50
+ While not every changeset is going to need a huge amount of detail, a good idea of what should be in a changeset is:
51
+
52
+ - WHAT the change is
53
+ - WHY the change was made
54
+ - HOW a consumer should update their code
55
+
56
+ 4. Once you are happy with the changeset, commit the file to your branch.
57
+
58
+ ### 2. Merge your PR, and review the automated release PR
59
+
60
+ After merging your PR with changesets, a Github workflow will create a PR that will turn the changesets into the changelog and bump the version.
61
+
62
+ Review this PR and wait for checks to pass, you can then merge it.
63
+
64
+ ### 3. You are done!
65
+
66
+ After merging the automated release PR, the same Github workflow will create a Github release based on your changesets and publish the package on NPM.
67
+
68
+ ## License
69
+
70
+ Source code is under a [custom license](./LICENSE.md) based on MIT.
@@ -0,0 +1,2 @@
1
+ export { xSeriesDarkTheme, xSeriesDarkThemeByCategory, } from './themes/xseries/dark';
2
+ export { xSeriesLightTheme, xSeriesLightThemeByCategory, } from './themes/xseries/light';
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var dark_1 = require("./themes/xseries/dark");
4
+ exports.xSeriesDarkTheme = dark_1.xSeriesDarkTheme;
5
+ exports.xSeriesDarkThemeByCategory = dark_1.xSeriesDarkThemeByCategory;
6
+ var light_1 = require("./themes/xseries/light");
7
+ exports.xSeriesLightTheme = light_1.xSeriesLightTheme;
8
+ exports.xSeriesLightThemeByCategory = light_1.xSeriesLightThemeByCategory;
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,8CAG8B;AAF5B,kCAAA,gBAAgB,CAAA;AAChB,4CAAA,0BAA0B,CAAA;AAG5B,gDAG+B;AAF7B,oCAAA,iBAAiB,CAAA;AACjB,8CAAA,2BAA2B,CAAA"}
@@ -0,0 +1,54 @@
1
+ export interface ThemeConfig {
2
+ theme: Theme;
3
+ mapName: string;
4
+ filename: string;
5
+ }
6
+ export interface Theme {
7
+ background: string;
8
+ backgroundInverse: string;
9
+ box: string;
10
+ boxInverse: string;
11
+ boxSupplementary: string;
12
+ do: string;
13
+ doDarker: string;
14
+ doHighlight: string;
15
+ doLighter: string;
16
+ framing: string;
17
+ framingInverse: string;
18
+ go: string;
19
+ goDarker: string;
20
+ goHighlight: string;
21
+ goLighter: string;
22
+ goldenSand: string;
23
+ gothic: string;
24
+ keyline: string;
25
+ keylineInverse: string;
26
+ lavenderPurple: string;
27
+ navIconSelected: string;
28
+ navIconUnselected: string;
29
+ navSideDrawer: string;
30
+ navSideTabs: string;
31
+ navTop: string;
32
+ newYorkPink: string;
33
+ no: string;
34
+ noDarker: string;
35
+ noHighlight: string;
36
+ noLighter: string;
37
+ overlay: string;
38
+ selectArrowsBg: string;
39
+ shadow: string;
40
+ shuttleGray: string;
41
+ sinbad: string;
42
+ success: string;
43
+ supplementary: string;
44
+ supplementaryDarker: string;
45
+ supplementaryHighlight: string;
46
+ supplementaryLighter: string;
47
+ supplementaryText: string;
48
+ tacao: string;
49
+ text: string;
50
+ textAction: string;
51
+ textInverse: string;
52
+ textNav: string;
53
+ }
54
+ export declare const requiredRgbSwatches: string[];
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ // Some swatches require an "rgb" swatch (e.g. vd-background--rgb) to help apps integrate themes
4
+ exports.requiredRgbSwatches = [
5
+ 'background',
6
+ 'box',
7
+ 'boxInverse',
8
+ 'do',
9
+ 'go',
10
+ 'navSideDrawer',
11
+ 'navSideTabs',
12
+ 'navTop',
13
+ 'no',
14
+ 'supplementary',
15
+ ];
16
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/themes/types.ts"],"names":[],"mappings":";;AAuDA,gGAAgG;AACnF,QAAA,mBAAmB,GAAG;IACjC,YAAY;IACZ,KAAK;IACL,YAAY;IACZ,IAAI;IACJ,IAAI;IACJ,eAAe;IACf,aAAa;IACb,QAAQ;IACR,IAAI;IACJ,eAAe;CAChB,CAAA"}
@@ -0,0 +1,68 @@
1
+ import { Theme } from '../types';
2
+ export declare const xSeriesDarkThemeByCategory: {
3
+ backgrounds: {
4
+ inert: {
5
+ background: string;
6
+ box: string;
7
+ backgroundInverse: string;
8
+ boxInverse: string;
9
+ success: string;
10
+ };
11
+ interactive: {
12
+ goLighter: string;
13
+ go: string;
14
+ goDarker: string;
15
+ goHighlight: string;
16
+ noLighter: string;
17
+ no: string;
18
+ noDarker: string;
19
+ supplementaryLighter: string;
20
+ supplementary: string;
21
+ supplementaryDarker: string;
22
+ };
23
+ };
24
+ foregrounds: {
25
+ inert: {
26
+ text: string;
27
+ textInverse: string;
28
+ textAction: string;
29
+ selectArrowsBg: string;
30
+ shadow: string;
31
+ overlay: string;
32
+ };
33
+ borders: {
34
+ framing: string;
35
+ keyline: string;
36
+ framingInverse: string;
37
+ keylineInverse: string;
38
+ };
39
+ };
40
+ discretionary: {
41
+ goldenSand: string;
42
+ tacao: string;
43
+ newYorkPink: string;
44
+ gothic: string;
45
+ lavenderPurple: string;
46
+ sinbad: string;
47
+ shuttleGray: string;
48
+ };
49
+ navigation: {
50
+ navTop: string;
51
+ navSideTabs: string;
52
+ navSideDrawer: string;
53
+ navIconUnselected: string;
54
+ navIconSelected: string;
55
+ };
56
+ deprecated: {
57
+ boxSupplementary: string;
58
+ textNav: string;
59
+ supplementaryText: string;
60
+ supplementaryHighlight: string;
61
+ doHighlight: string;
62
+ noHighlight: string;
63
+ doLighter: string;
64
+ do: string;
65
+ doDarker: string;
66
+ };
67
+ };
68
+ export declare const xSeriesDarkTheme: Theme;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const backgrounds = {
4
+ inert: {
5
+ background: '#141217',
6
+ box: '#1E1C21',
7
+ backgroundInverse: '#F4F2F5',
8
+ boxInverse: '#FFFFFF',
9
+ success: '#15BF20',
10
+ },
11
+ interactive: {
12
+ goLighter: '#6054FF',
13
+ go: '#477BFF',
14
+ goDarker: '#352ACF',
15
+ goHighlight: 'rgba(0, 23, 229, .1)',
16
+ noLighter: '#D4301D',
17
+ no: '#EB4F29',
18
+ noDarker: '#A12416',
19
+ supplementaryLighter: '#3C6996',
20
+ supplementary: '#5B83AC',
21
+ supplementaryDarker: '#284563',
22
+ },
23
+ };
24
+ const foregrounds = {
25
+ inert: {
26
+ text: '#E7E5E8',
27
+ textInverse: '#0B0B0B',
28
+ textAction: '#FFFFFF',
29
+ selectArrowsBg: '#E7E5E8',
30
+ shadow: 'rgba(0, 0, 0, 0.35)',
31
+ overlay: 'rgba(43, 54, 61, 0.65)',
32
+ },
33
+ borders: {
34
+ framing: '#27252A',
35
+ keyline: '#37353A',
36
+ framingInverse: '#E7E5E8',
37
+ keylineInverse: '#C9C7CA',
38
+ },
39
+ };
40
+ const discretionary = {
41
+ goldenSand: '#E6B03D',
42
+ tacao: '#ED6B44',
43
+ newYorkPink: '#DE3CEC',
44
+ gothic: '#A02FB6',
45
+ lavenderPurple: '#501897',
46
+ sinbad: '#6952F6',
47
+ shuttleGray: '#5D5D5D',
48
+ };
49
+ const navigation = {
50
+ // When updating `navTop` ensure you also update the `<meta name="theme-color" content="#0B0B0B" />` in the head of index.html
51
+ navTop: '#0B0B0B',
52
+ navSideTabs: '#27252A',
53
+ navSideDrawer: '#1E1C21',
54
+ navIconUnselected: '#FFFFFF',
55
+ navIconSelected: '#E7E5E8',
56
+ };
57
+ const deprecated = {
58
+ boxSupplementary: '#27252A',
59
+ textNav: '#FFFFFF',
60
+ supplementaryText: '#5B83AC',
61
+ supplementaryHighlight: 'rgba(0, 61, 229, .1)',
62
+ doHighlight: 'rgba(0, 23, 229, .1)',
63
+ noHighlight: 'rgba(229, 0, 0,.1)',
64
+ doLighter: '#618EFF',
65
+ do: '#477BFF',
66
+ doDarker: '#406FE5',
67
+ };
68
+ exports.xSeriesDarkThemeByCategory = {
69
+ backgrounds,
70
+ foregrounds,
71
+ discretionary,
72
+ navigation,
73
+ deprecated,
74
+ };
75
+ exports.xSeriesDarkTheme = {
76
+ ...backgrounds.inert,
77
+ ...backgrounds.interactive,
78
+ ...foregrounds.inert,
79
+ ...foregrounds.borders,
80
+ ...discretionary,
81
+ ...navigation,
82
+ ...deprecated,
83
+ };
84
+ //# sourceMappingURL=dark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dark.js","sourceRoot":"","sources":["../../../src/themes/xseries/dark.ts"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE;QACL,UAAU,EAAE,SAAS;QACrB,GAAG,EAAE,SAAS;QACd,iBAAiB,EAAE,SAAS;QAC5B,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;KACnB;IACD,WAAW,EAAE;QACX,SAAS,EAAE,SAAS;QACpB,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,sBAAsB;QACnC,SAAS,EAAE,SAAS;QACpB,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,SAAS;QACnB,oBAAoB,EAAE,SAAS;QAC/B,aAAa,EAAE,SAAS;QACxB,mBAAmB,EAAE,SAAS;KAC/B;CACF,CAAA;AAED,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,SAAS;QAEzB,MAAM,EAAE,qBAAqB;QAC7B,OAAO,EAAE,wBAAwB;KAClC;IACD,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE,SAAS;QACzB,cAAc,EAAE,SAAS;KAC1B;CACF,CAAA;AAED,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,SAAS;IACzB,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;CACvB,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,8HAA8H;IAC9H,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,SAAS;IAC5B,eAAe,EAAE,SAAS;CAC3B,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,gBAAgB,EAAE,SAAS;IAC3B,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,SAAS;IAC5B,sBAAsB,EAAE,sBAAsB;IAC9C,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,oBAAoB;IACjC,SAAS,EAAE,SAAS;IACpB,EAAE,EAAE,SAAS;IACb,QAAQ,EAAE,SAAS;CACpB,CAAA;AAEY,QAAA,0BAA0B,GAAG;IACxC,WAAW;IACX,WAAW;IACX,aAAa;IACb,UAAU;IACV,UAAU;CACX,CAAA;AAEY,QAAA,gBAAgB,GAAU;IACrC,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,WAAW,CAAC,OAAO;IACtB,GAAG,aAAa;IAChB,GAAG,UAAU;IACb,GAAG,UAAU;CACd,CAAA"}
@@ -0,0 +1,68 @@
1
+ import { Theme } from '../types';
2
+ export declare const xSeriesLightThemeByCategory: {
3
+ backgrounds: {
4
+ inert: {
5
+ background: string;
6
+ box: string;
7
+ backgroundInverse: string;
8
+ boxInverse: string;
9
+ success: string;
10
+ };
11
+ interactive: {
12
+ goLighter: string;
13
+ go: string;
14
+ goDarker: string;
15
+ goHighlight: string;
16
+ noLighter: string;
17
+ no: string;
18
+ noDarker: string;
19
+ supplementaryLighter: string;
20
+ supplementary: string;
21
+ supplementaryDarker: string;
22
+ };
23
+ };
24
+ foregrounds: {
25
+ inert: {
26
+ text: string;
27
+ textInverse: string;
28
+ textAction: string;
29
+ selectArrowsBg: string;
30
+ shadow: string;
31
+ overlay: string;
32
+ };
33
+ borders: {
34
+ framing: string;
35
+ keyline: string;
36
+ framingInverse: string;
37
+ keylineInverse: string;
38
+ };
39
+ };
40
+ discretionary: {
41
+ goldenSand: string;
42
+ tacao: string;
43
+ newYorkPink: string;
44
+ gothic: string;
45
+ lavenderPurple: string;
46
+ sinbad: string;
47
+ shuttleGray: string;
48
+ };
49
+ navigation: {
50
+ navTop: string;
51
+ navSideTabs: string;
52
+ navSideDrawer: string;
53
+ navIconUnselected: string;
54
+ navIconSelected: string;
55
+ };
56
+ deprecated: {
57
+ boxSupplementary: string;
58
+ textNav: string;
59
+ supplementaryText: string;
60
+ supplementaryHighlight: string;
61
+ doHighlight: string;
62
+ noHighlight: string;
63
+ doLighter: string;
64
+ do: string;
65
+ doDarker: string;
66
+ };
67
+ };
68
+ export declare const xSeriesLightTheme: Theme;
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const backgrounds = {
4
+ inert: {
5
+ background: '#F4F2F5',
6
+ box: '#FFFFFF',
7
+ backgroundInverse: '#141217',
8
+ boxInverse: '#1E1C21',
9
+ success: '#0E7B1D',
10
+ },
11
+ interactive: {
12
+ goLighter: '#6054FF',
13
+ go: '#3F32F5',
14
+ goDarker: '#352ACF',
15
+ goHighlight: 'rgba(128, 140, 255, .1)',
16
+ noLighter: '#D4301D',
17
+ no: '#BB2A1A',
18
+ noDarker: '#A12416',
19
+ supplementaryLighter: '#3C6996',
20
+ supplementary: '#32577D',
21
+ supplementaryDarker: '#284563',
22
+ },
23
+ };
24
+ const foregrounds = {
25
+ inert: {
26
+ text: '#27252A',
27
+ textInverse: '#FFFFFF',
28
+ textAction: '#FFFFFF',
29
+ selectArrowsBg: '#27252A',
30
+ shadow: 'rgba(0, 0, 0, 0.35)',
31
+ overlay: 'rgba(0, 0, 0, 0.35)',
32
+ },
33
+ borders: {
34
+ framing: '#E7E5E8',
35
+ keyline: '#C9C7CA',
36
+ framingInverse: '#27252A',
37
+ keylineInverse: '#37353A',
38
+ },
39
+ };
40
+ const discretionary = {
41
+ goldenSand: '#E6B03D',
42
+ tacao: '#ED6B44',
43
+ newYorkPink: '#DE3CEC',
44
+ gothic: '#A02FB6',
45
+ lavenderPurple: '#501897',
46
+ sinbad: '#6952F6',
47
+ shuttleGray: '#5D5D5D',
48
+ };
49
+ const navigation = {
50
+ // When updating `navTop` ensure you also update the `<meta name="theme-color" content="#0B0B0B" />` in the head of index.html
51
+ navTop: '#0B0B0B',
52
+ navSideTabs: '#E7E5E8',
53
+ navSideDrawer: '#FFFFFF',
54
+ navIconUnselected: '#27252A',
55
+ navIconSelected: '#3F32F5',
56
+ };
57
+ const deprecated = {
58
+ boxSupplementary: '#E7E5E8',
59
+ textNav: '#FFFFFF',
60
+ supplementaryText: '#32577D',
61
+ supplementaryHighlight: 'rgba(76, 124, 255, 0.1)',
62
+ doHighlight: 'rgba(128, 140, 255, .1)',
63
+ noHighlight: 'rgba(255, 128, 128, .1)',
64
+ doLighter: '#6054FF',
65
+ do: '#3F32F5',
66
+ doDarker: '#352ACF',
67
+ };
68
+ exports.xSeriesLightThemeByCategory = {
69
+ backgrounds,
70
+ foregrounds,
71
+ discretionary,
72
+ navigation,
73
+ deprecated,
74
+ };
75
+ exports.xSeriesLightTheme = {
76
+ ...backgrounds.inert,
77
+ ...backgrounds.interactive,
78
+ ...foregrounds.inert,
79
+ ...foregrounds.borders,
80
+ ...discretionary,
81
+ ...navigation,
82
+ ...deprecated,
83
+ };
84
+ //# sourceMappingURL=light.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"light.js","sourceRoot":"","sources":["../../../src/themes/xseries/light.ts"],"names":[],"mappings":";;AAEA,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE;QACL,UAAU,EAAE,SAAS;QACrB,GAAG,EAAE,SAAS;QACd,iBAAiB,EAAE,SAAS;QAC5B,UAAU,EAAE,SAAS;QACrB,OAAO,EAAE,SAAS;KACnB;IACD,WAAW,EAAE;QACX,SAAS,EAAE,SAAS;QACpB,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,SAAS;QACnB,WAAW,EAAE,yBAAyB;QACtC,SAAS,EAAE,SAAS;QACpB,EAAE,EAAE,SAAS;QACb,QAAQ,EAAE,SAAS;QACnB,oBAAoB,EAAE,SAAS;QAC/B,aAAa,EAAE,SAAS;QACxB,mBAAmB,EAAE,SAAS;KAC/B;CACF,CAAA;AAED,MAAM,WAAW,GAAG;IAClB,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,SAAS;QACtB,UAAU,EAAE,SAAS;QACrB,cAAc,EAAE,SAAS;QACzB,MAAM,EAAE,qBAAqB;QAC7B,OAAO,EAAE,qBAAqB;KAC/B;IACD,OAAO,EAAE;QACP,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,cAAc,EAAE,SAAS;QACzB,cAAc,EAAE,SAAS;KAC1B;CACF,CAAA;AAED,MAAM,aAAa,GAAG;IACpB,UAAU,EAAE,SAAS;IACrB,KAAK,EAAE,SAAS;IAChB,WAAW,EAAE,SAAS;IACtB,MAAM,EAAE,SAAS;IACjB,cAAc,EAAE,SAAS;IACzB,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;CACvB,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,8HAA8H;IAC9H,MAAM,EAAE,SAAS;IACjB,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,SAAS;IACxB,iBAAiB,EAAE,SAAS;IAC5B,eAAe,EAAE,SAAS;CAC3B,CAAA;AAED,MAAM,UAAU,GAAG;IACjB,gBAAgB,EAAE,SAAS;IAC3B,OAAO,EAAE,SAAS;IAClB,iBAAiB,EAAE,SAAS;IAC5B,sBAAsB,EAAE,yBAAyB;IACjD,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,yBAAyB;IACtC,SAAS,EAAE,SAAS;IACpB,EAAE,EAAE,SAAS;IACb,QAAQ,EAAE,SAAS;CACpB,CAAA;AAEY,QAAA,2BAA2B,GAAG;IACzC,WAAW;IACX,WAAW;IACX,aAAa;IACb,UAAU;IACV,UAAU;CACX,CAAA;AAEY,QAAA,iBAAiB,GAAU;IACtC,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,WAAW,CAAC,WAAW;IAC1B,GAAG,WAAW,CAAC,KAAK;IACpB,GAAG,WAAW,CAAC,OAAO;IACtB,GAAG,aAAa;IAChB,GAAG,UAAU;IACb,GAAG,UAAU;CACd,CAAA"}