@lukso/web-components 1.3.1 → 1.4.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.
- package/CHANGELOG.md +14 -0
- package/README.md +33 -7
- package/dist/color-palette/index.js +705 -0
- package/dist/color-palette/index.umd.cjs +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +5344 -1760
- package/dist/components/index.umd.cjs +2997 -72
- package/dist/components/lukso-button/index.d.ts +10 -1
- package/dist/components/lukso-button/index.js +234 -185
- package/dist/components/lukso-button/index.umd.cjs +32 -21
- package/dist/components/lukso-card/index.d.ts +4 -4
- package/dist/components/lukso-card/index.js +81 -72
- package/dist/components/lukso-card/index.umd.cjs +9 -9
- package/dist/components/lukso-icon/icons/add-photo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-down-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-down-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-left-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-left-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-right-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-right-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-up-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/arrow-up-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/barbell-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/bulb-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/camera.d.ts +3 -0
- package/dist/components/lukso-icon/icons/clipboard.d.ts +3 -0
- package/dist/components/lukso-icon/icons/clock.d.ts +3 -0
- package/dist/components/lukso-icon/icons/close-lg.d.ts +3 -0
- package/dist/components/lukso-icon/icons/close-sm.d.ts +3 -0
- package/dist/components/lukso-icon/icons/cloud.d.ts +3 -0
- package/dist/components/lukso-icon/icons/compass-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/complete-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/complete-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/connect.d.ts +3 -0
- package/dist/components/lukso-icon/icons/connections.d.ts +3 -0
- package/dist/components/lukso-icon/icons/contract-lock.d.ts +3 -0
- package/dist/components/lukso-icon/icons/controller.d.ts +3 -0
- package/dist/components/lukso-icon/icons/copy.d.ts +3 -0
- package/dist/components/lukso-icon/icons/cross-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/dots.d.ts +3 -0
- package/dist/components/lukso-icon/icons/edit.d.ts +3 -0
- package/dist/components/lukso-icon/icons/error.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eth-logo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/expand.d.ts +3 -0
- package/dist/components/lukso-icon/icons/extension.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eye-hide.d.ts +3 -0
- package/dist/components/lukso-icon/icons/eye-show.d.ts +3 -0
- package/dist/components/lukso-icon/icons/filter.d.ts +3 -0
- package/dist/components/lukso-icon/icons/fish-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/flip.d.ts +3 -0
- package/dist/components/lukso-icon/icons/globe.d.ts +3 -0
- package/dist/components/lukso-icon/icons/google-color.d.ts +3 -0
- package/dist/components/lukso-icon/icons/hamburger.d.ts +3 -0
- package/dist/components/lukso-icon/icons/infinite.d.ts +3 -0
- package/dist/components/lukso-icon/icons/information.d.ts +3 -0
- package/dist/components/lukso-icon/icons/key-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link1.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link3.d.ts +3 -0
- package/dist/components/lukso-icon/icons/link4.d.ts +3 -0
- package/dist/components/lukso-icon/icons/loading.d.ts +3 -0
- package/dist/components/lukso-icon/icons/location.d.ts +3 -0
- package/dist/components/lukso-icon/icons/locked.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login-3.d.ts +3 -0
- package/dist/components/lukso-icon/icons/login.d.ts +3 -0
- package/dist/components/lukso-icon/icons/logo-chrome.d.ts +3 -0
- package/dist/components/lukso-icon/icons/lyx-logo.d.ts +3 -0
- package/dist/components/lukso-icon/icons/mail.d.ts +3 -0
- package/dist/components/lukso-icon/icons/menu-1.d.ts +3 -0
- package/dist/components/lukso-icon/icons/menu-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/migrate.d.ts +3 -0
- package/dist/components/lukso-icon/icons/minimize.d.ts +3 -0
- package/dist/components/lukso-icon/icons/network.d.ts +3 -0
- package/dist/components/lukso-icon/icons/notifications.d.ts +3 -0
- package/dist/components/lukso-icon/icons/phone-portrait-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/pin.d.ts +3 -0
- package/dist/components/lukso-icon/icons/play-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/play-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/plus.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-add.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-export.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-import.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-recovery-2.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-recovery.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile-restore.d.ts +3 -0
- package/dist/components/lukso-icon/icons/profile.d.ts +3 -0
- package/dist/components/lukso-icon/icons/qr-code.d.ts +3 -0
- package/dist/components/lukso-icon/icons/relayer.d.ts +3 -0
- package/dist/components/lukso-icon/icons/reload.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-down.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-left.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-right.d.ts +3 -0
- package/dist/components/lukso-icon/icons/return-up.d.ts +3 -0
- package/dist/components/lukso-icon/icons/search.d.ts +3 -0
- package/dist/components/lukso-icon/icons/settings.d.ts +3 -0
- package/dist/components/lukso-icon/icons/smart-contract-doc.d.ts +3 -0
- package/dist/components/lukso-icon/icons/smart-contract.d.ts +3 -0
- package/dist/components/lukso-icon/icons/star-filled.d.ts +3 -0
- package/dist/components/lukso-icon/icons/star-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/step-dot.d.ts +3 -0
- package/dist/components/lukso-icon/icons/step-progress.d.ts +3 -0
- package/dist/components/lukso-icon/icons/steps.d.ts +3 -0
- package/dist/components/lukso-icon/icons/tick.d.ts +3 -0
- package/dist/components/lukso-icon/icons/timer-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transaction-receive.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transaction-send.d.ts +3 -0
- package/dist/components/lukso-icon/icons/transfer.d.ts +3 -0
- package/dist/components/lukso-icon/icons/trash.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-down.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-left.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-right.d.ts +3 -0
- package/dist/components/lukso-icon/icons/turn-up.d.ts +3 -0
- package/dist/components/lukso-icon/icons/unlocked.d.ts +3 -0
- package/dist/components/lukso-icon/icons/wallet-outline.d.ts +3 -0
- package/dist/components/lukso-icon/icons/warning-round.d.ts +3 -0
- package/dist/components/lukso-icon/icons/warning-triangle.d.ts +3 -0
- package/dist/components/lukso-icon/index.d.ts +23 -0
- package/dist/components/lukso-icon/index.js +4500 -0
- package/dist/components/lukso-icon/index.umd.cjs +2928 -0
- package/dist/components/lukso-input/index.d.ts +36 -0
- package/dist/components/lukso-input/index.js +1305 -0
- package/dist/components/lukso-input/index.umd.cjs +104 -0
- package/dist/components/lukso-navbar/index.d.ts +1 -1
- package/dist/components/lukso-navbar/index.js +23 -23
- package/dist/components/lukso-navbar/index.umd.cjs +7 -7
- package/dist/components/lukso-profile/index.d.ts +1 -1
- package/dist/components/lukso-profile/index.js +82 -73
- package/dist/components/lukso-profile/index.umd.cjs +10 -10
- package/dist/components/lukso-sanitize/index.d.ts +2 -2
- package/dist/components/lukso-sanitize/index.js +96 -93
- package/dist/components/lukso-sanitize/index.umd.cjs +9 -9
- package/dist/components/lukso-tag/index.d.ts +1 -1
- package/dist/components/lukso-tag/index.js +28 -25
- package/dist/components/lukso-tag/index.umd.cjs +8 -8
- package/dist/components/lukso-test/index.d.ts +1 -1
- package/dist/components/lukso-test/index.js +619 -619
- package/dist/components/lukso-test/index.umd.cjs +25 -25
- package/dist/components/lukso-username/index.d.ts +1 -1
- package/dist/components/lukso-username/index.js +49 -50
- package/dist/components/lukso-username/index.umd.cjs +14 -14
- package/dist/components/lukso-wizard/index.d.ts +2 -2
- package/dist/components/lukso-wizard/index.js +1 -1
- package/dist/components/lukso-wizard/index.umd.cjs +1 -1
- package/dist/index.js +5344 -1760
- package/dist/index.umd.cjs +2997 -72
- package/dist/sass/color-palette.ts +1 -1
- package/dist/sass/colors.scss +91 -0
- package/{src/shared/utils → dist/sass}/hslColorMap.ts +0 -0
- package/dist/sass/main.scss +1 -0
- package/dist/shared/directives/custom-class-map/index.d.ts +1 -1
- package/dist/shared/styles/color-palette.d.ts +43 -0
- package/dist/shared/styles/hslColorMap.d.ts +10 -0
- package/dist/shared/tailwind-element/index.js +99 -99
- package/dist/shared/tailwind-element/index.umd.cjs +11 -11
- package/dist/shared/tailwind-element.js +99 -99
- package/dist/shared/tailwind-element.umd.cjs +11 -11
- package/dist/styles/main.css +91 -0
- package/package.json +18 -1
- package/src/components/index.ts +3 -1
- package/src/components/lukso-button/index.ts +70 -3
- package/src/components/lukso-button/lukso-button.stories.ts +101 -3
- package/src/components/lukso-card/lukso-card.stories.ts +6 -2
- package/src/components/lukso-icon/icons/add-photo.ts +46 -0
- package/src/components/lukso-icon/icons/arrow-down-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-down-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-left-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-left-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-right-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-right-sm.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-up-lg.ts +26 -0
- package/src/components/lukso-icon/icons/arrow-up-sm.ts +26 -0
- package/src/components/lukso-icon/icons/barbell-outline.ts +54 -0
- package/src/components/lukso-icon/icons/bulb-outline.ts +54 -0
- package/src/components/lukso-icon/icons/camera.ts +40 -0
- package/src/components/lukso-icon/icons/clipboard.ts +59 -0
- package/src/components/lukso-icon/icons/clock.ts +31 -0
- package/src/components/lukso-icon/icons/close-lg.ts +33 -0
- package/src/components/lukso-icon/icons/close-sm.ts +33 -0
- package/src/components/lukso-icon/icons/cloud.ts +25 -0
- package/src/components/lukso-icon/icons/compass-outline.ts +29 -0
- package/src/components/lukso-icon/icons/complete-filled.ts +32 -0
- package/src/components/lukso-icon/icons/complete-outline.ts +31 -0
- package/src/components/lukso-icon/icons/connect.ts +33 -0
- package/src/components/lukso-icon/icons/connections.ts +34 -0
- package/src/components/lukso-icon/icons/contract-lock.ts +43 -0
- package/src/components/lukso-icon/icons/controller.ts +55 -0
- package/src/components/lukso-icon/icons/copy.ts +31 -0
- package/src/components/lukso-icon/icons/cross-outline.ts +38 -0
- package/src/components/lukso-icon/icons/dots.ts +22 -0
- package/src/components/lukso-icon/icons/edit.ts +30 -0
- package/src/components/lukso-icon/icons/error.ts +31 -0
- package/src/components/lukso-icon/icons/eth-logo.ts +50 -0
- package/src/components/lukso-icon/icons/expand.ts +31 -0
- package/src/components/lukso-icon/icons/extension.ts +31 -0
- package/src/components/lukso-icon/icons/eye-hide.ts +47 -0
- package/src/components/lukso-icon/icons/eye-show.ts +37 -0
- package/src/components/lukso-icon/icons/filter.ts +43 -0
- package/src/components/lukso-icon/icons/fish-outline.ts +36 -0
- package/src/components/lukso-icon/icons/flip.ts +45 -0
- package/src/components/lukso-icon/icons/globe.ts +61 -0
- package/src/components/lukso-icon/icons/google-color.ts +35 -0
- package/src/components/lukso-icon/icons/hamburger.ts +40 -0
- package/src/components/lukso-icon/icons/infinite.ts +33 -0
- package/src/components/lukso-icon/icons/information.ts +38 -0
- package/src/components/lukso-icon/icons/key-outline.ts +25 -0
- package/src/components/lukso-icon/icons/link.ts +33 -0
- package/src/components/lukso-icon/icons/link1.ts +39 -0
- package/src/components/lukso-icon/icons/link2.ts +46 -0
- package/src/components/lukso-icon/icons/link3.ts +32 -0
- package/src/components/lukso-icon/icons/link4.ts +52 -0
- package/src/components/lukso-icon/icons/loading.ts +50 -0
- package/src/components/lukso-icon/icons/location.ts +33 -0
- package/src/components/lukso-icon/icons/locked.ts +44 -0
- package/src/components/lukso-icon/icons/login-2.ts +55 -0
- package/src/components/lukso-icon/icons/login-3.ts +53 -0
- package/src/components/lukso-icon/icons/login.ts +39 -0
- package/src/components/lukso-icon/icons/logo-chrome.ts +35 -0
- package/src/components/lukso-icon/icons/lyx-logo.ts +41 -0
- package/src/components/lukso-icon/icons/mail.ts +33 -0
- package/src/components/lukso-icon/icons/menu-1.ts +71 -0
- package/src/components/lukso-icon/icons/menu-2.ts +61 -0
- package/src/components/lukso-icon/icons/migrate.ts +47 -0
- package/src/components/lukso-icon/icons/minimize.ts +53 -0
- package/src/components/lukso-icon/icons/network.ts +49 -0
- package/src/components/lukso-icon/icons/notifications.ts +33 -0
- package/src/components/lukso-icon/icons/phone-portrait-outline.ts +33 -0
- package/src/components/lukso-icon/icons/pin.ts +25 -0
- package/src/components/lukso-icon/icons/play-filled.ts +23 -0
- package/src/components/lukso-icon/icons/play-outline.ts +24 -0
- package/src/components/lukso-icon/icons/plus.ts +33 -0
- package/src/components/lukso-icon/icons/profile-add.ts +43 -0
- package/src/components/lukso-icon/icons/profile-export.ts +42 -0
- package/src/components/lukso-icon/icons/profile-import.ts +42 -0
- package/src/components/lukso-icon/icons/profile-recovery-2.ts +62 -0
- package/src/components/lukso-icon/icons/profile-recovery.ts +55 -0
- package/src/components/lukso-icon/icons/profile-restore.ts +50 -0
- package/src/components/lukso-icon/icons/profile.ts +29 -0
- package/src/components/lukso-icon/icons/qr-code.ts +122 -0
- package/src/components/lukso-icon/icons/relayer.ts +40 -0
- package/src/components/lukso-icon/icons/reload.ts +32 -0
- package/src/components/lukso-icon/icons/return-down.ts +33 -0
- package/src/components/lukso-icon/icons/return-left.ts +33 -0
- package/src/components/lukso-icon/icons/return-right.ts +33 -0
- package/src/components/lukso-icon/icons/return-up.ts +33 -0
- package/src/components/lukso-icon/icons/search.ts +28 -0
- package/src/components/lukso-icon/icons/settings.ts +33 -0
- package/src/components/lukso-icon/icons/smart-contract-doc.ts +40 -0
- package/src/components/lukso-icon/icons/smart-contract.ts +31 -0
- package/src/components/lukso-icon/icons/star-filled.ts +23 -0
- package/src/components/lukso-icon/icons/star-outline.ts +24 -0
- package/src/components/lukso-icon/icons/step-dot.ts +34 -0
- package/src/components/lukso-icon/icons/step-progress.ts +31 -0
- package/src/components/lukso-icon/icons/steps.ts +40 -0
- package/src/components/lukso-icon/icons/tick.ts +26 -0
- package/src/components/lukso-icon/icons/timer-outline.ts +47 -0
- package/src/components/lukso-icon/icons/transaction-receive.ts +39 -0
- package/src/components/lukso-icon/icons/transaction-send.ts +39 -0
- package/src/components/lukso-icon/icons/transfer.ts +47 -0
- package/src/components/lukso-icon/icons/trash.ts +40 -0
- package/src/components/lukso-icon/icons/turn-down.ts +33 -0
- package/src/components/lukso-icon/icons/turn-left.ts +33 -0
- package/src/components/lukso-icon/icons/turn-right.ts +33 -0
- package/src/components/lukso-icon/icons/turn-up.ts +33 -0
- package/src/components/lukso-icon/icons/unlocked.ts +41 -0
- package/src/components/lukso-icon/icons/wallet-outline.ts +35 -0
- package/src/components/lukso-icon/icons/warning-round.ts +32 -0
- package/src/components/lukso-icon/icons/warning-triangle.ts +32 -0
- package/src/components/lukso-icon/index.ts +299 -0
- package/src/components/lukso-icon/lukso-icon.stories.ts +96 -0
- package/src/components/lukso-input/index.ts +188 -0
- package/src/components/lukso-input/lukso-input.stories.ts +183 -0
- package/src/components/lukso-navbar/index.ts +1 -1
- package/src/components/lukso-navbar/lukso-navbar.stories.ts +18 -1
- package/src/components/lukso-profile/index.ts +9 -3
- package/src/components/lukso-profile/lukso-profile.stories.ts +18 -1
- package/src/components/lukso-sanitize/index.ts +1 -1
- package/src/components/lukso-sanitize/lukso-sanitize.stories.ts +5 -1
- package/src/components/lukso-tag/index.ts +4 -4
- package/src/components/lukso-tag/lukso-tag.stories.ts +28 -5
- package/src/components/lukso-username/index.ts +3 -3
- package/src/components/lukso-username/lukso-username.stories.ts +10 -2
- package/src/components/lukso-wizard/index.ts +1 -1
- package/src/components/lukso-wizard/lukso-wizard.stories.ts +4 -1
- package/src/shared/styles/color-palette.ts +1 -1
- package/src/shared/styles/colors.scss +91 -0
- package/src/shared/styles/hslColorMap.ts +20 -0
- package/src/shared/styles/main.scss +1 -0
- package/src/shared/utils/__tests__/sliceAddress.spec.ts +1 -1
- package/tools/color-palette.cjs +2 -2
- package/tools/color-palette.d.ts +2 -2
- package/tools/color-palette.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.4.0](https://github.com/lukso-network/tools-web-components/compare/v1.3.1...v1.4.0) (2023-02-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* icon component ([#38](https://github.com/lukso-network/tools-web-components/issues/38)) ([61cb73e](https://github.com/lukso-network/tools-web-components/commit/61cb73e93f196764b36a1e9baa642f2275ada6f7))
|
|
9
|
+
* input component ([#42](https://github.com/lukso-network/tools-web-components/issues/42)) ([7515b79](https://github.com/lukso-network/tools-web-components/commit/7515b79922e4143f0de3dd25f36dbc543d802234))
|
|
10
|
+
* long press button ([#41](https://github.com/lukso-network/tools-web-components/issues/41)) ([f9aae98](https://github.com/lukso-network/tools-web-components/commit/f9aae98b641cb074c0b4c1827d7b69b6bc9d1d64))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* ts errors ([#39](https://github.com/lukso-network/tools-web-components/issues/39)) ([78b9532](https://github.com/lukso-network/tools-web-components/commit/78b95322634767730ec3d69c2fe5301b384fbd0d))
|
|
16
|
+
|
|
3
17
|
## [1.3.1](https://github.com/lukso-network/tools-web-components/compare/v1.3.0...v1.3.1) (2023-02-07)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -22,23 +22,40 @@ Library is focused around projects build on top of [Tailwind CSS](https://tailwi
|
|
|
22
22
|
|
|
23
23
|
#### Components
|
|
24
24
|
|
|
25
|
-
For using components you need to first import them
|
|
25
|
+
For using components you need to first import them either as individual ones:
|
|
26
26
|
|
|
27
27
|
```js
|
|
28
|
-
import('@lukso/web-components/lukso-button')
|
|
28
|
+
import('@lukso/web-components/components/lukso-button')
|
|
29
|
+
import('@lukso/web-components/components/lukso-card')
|
|
30
|
+
import('@lukso/web-components/components/lukso-tag')
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
or all of them in single import:
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
import('@lukso/web-components/components')
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
> Hint: you can make import in root level of your project (`app.vue`) instead of importing in every component.
|
|
40
|
+
|
|
41
|
+
Use components in the HTML with following rules:
|
|
42
|
+
|
|
43
|
+
- components are lowercase and with `-` in name i.e `lukso-button`
|
|
44
|
+
- they need to have closing tag even if they don't use slot
|
|
45
|
+
- properties are lowercase and with `-` in name i.e `primary-color="neutral-100"`
|
|
46
|
+
- boolean properties are working with just a presence `is-checked`
|
|
47
|
+
|
|
48
|
+
See example below:
|
|
32
49
|
|
|
33
50
|
```html
|
|
34
|
-
<lukso-
|
|
51
|
+
<lukso-example-component primary-color="neutral-100" is-checked></lukso-button>
|
|
35
52
|
```
|
|
36
53
|
|
|
37
|
-
Under the hood you use Web Components which styles are encapsulated within own shadow DOM (host page doesn't have access to it styles and vice versa). The only thing that components share from are fonts, colors and variables, see more on [CSS inheritance](https://lit.dev/docs/components/styles/#inheritance).
|
|
54
|
+
> Under the hood you use Web Components which styles are encapsulated within own shadow DOM (host page doesn't have access to it styles and vice versa). The only thing that components share from are fonts, colors and variables, see more on [CSS inheritance](https://lit.dev/docs/components/styles/#inheritance).
|
|
38
55
|
|
|
39
56
|
### Styles (Tailwind CSS projects)
|
|
40
57
|
|
|
41
|
-
|
|
58
|
+
1. Add this preset in the config file
|
|
42
59
|
|
|
43
60
|
```js
|
|
44
61
|
// tailwind.config.js
|
|
@@ -48,7 +65,7 @@ module.exports = {
|
|
|
48
65
|
}
|
|
49
66
|
```
|
|
50
67
|
|
|
51
|
-
|
|
68
|
+
2. Include styles in your main file
|
|
52
69
|
|
|
53
70
|
```scss
|
|
54
71
|
// main.scss
|
|
@@ -57,6 +74,15 @@ $font-file-path: '/assets/fonts';
|
|
|
57
74
|
@import '@lukso/web-components/sass/main.scss';
|
|
58
75
|
```
|
|
59
76
|
|
|
77
|
+
3. In your main js file load the CSS variables
|
|
78
|
+
|
|
79
|
+
```javascript
|
|
80
|
+
// app.vue
|
|
81
|
+
import { generateCssVariables } from '@/shared/styles/color-palette'
|
|
82
|
+
|
|
83
|
+
generateCssVariables()
|
|
84
|
+
```
|
|
85
|
+
|
|
60
86
|
### Styles (non Tailwind CSS projects)
|
|
61
87
|
|
|
62
88
|
Atm the only thing that you can benefit from non Tailwind CSS projects is loading the fonts
|