@salla.sa/twilight-tailwind-theme 1.0.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/index.js +35 -0
- package/package.json +28 -0
- package/safe-list-css.txt +22 -0
- package/utilities.json +1 -0
package/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const plugin = require('tailwindcss/plugin');
|
|
2
|
+
const fs = require('fs');
|
|
3
|
+
const path = require('path');
|
|
4
|
+
|
|
5
|
+
module.exports = plugin.withOptions(() => {
|
|
6
|
+
return function({addUtilities}) {
|
|
7
|
+
addUtilities({
|
|
8
|
+
// TODO :: find if there are used and defined them here if its.
|
|
9
|
+
'.anime-item': {},
|
|
10
|
+
'.text-md': {},
|
|
11
|
+
'.items-top': {},
|
|
12
|
+
'.error': {},
|
|
13
|
+
|
|
14
|
+
// wrapper class
|
|
15
|
+
// todo :: rename it with the statnder
|
|
16
|
+
'.results__item': {},
|
|
17
|
+
|
|
18
|
+
'.search-box': {},
|
|
19
|
+
'.spinner-loader-wrap': {}
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// todo :: move it to global
|
|
23
|
+
addUtilities({
|
|
24
|
+
'.spinner-loader': {
|
|
25
|
+
'border-right-color': 'var(--main-color) !important',
|
|
26
|
+
'&.reverse': {
|
|
27
|
+
'border-right-color': '#9f7171 !important',
|
|
28
|
+
'background-color': '#f98181'
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
addUtilities(JSON.parse(fs.readFileSync(path.resolve(__dirname, 'utilities.json'), 'UTF-8')));
|
|
34
|
+
};
|
|
35
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salla.sa/twilight-tailwind-theme",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Salla twilight",
|
|
7
|
+
"tailwind",
|
|
8
|
+
"tailwind-theme",
|
|
9
|
+
"Salla",
|
|
10
|
+
"web component"
|
|
11
|
+
],
|
|
12
|
+
"description": "Tailwind theme for twilight (Salla Themes)",
|
|
13
|
+
"homepage": "https://salla.dev",
|
|
14
|
+
"scripts": {
|
|
15
|
+
"generate": "node scripts/generator.js",
|
|
16
|
+
"publish": "npm publish --access public"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"package.json",
|
|
21
|
+
"safe-list-css.txt",
|
|
22
|
+
"utilities.json"
|
|
23
|
+
],
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"lodash": "^4.17.21",
|
|
26
|
+
"tailwindcss": "^2.2.19"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
s-search-modal-search-button-icon
|
|
2
|
+
s-search-modal-container
|
|
3
|
+
s-search-modal-wrapper
|
|
4
|
+
s-search-modal-inner
|
|
5
|
+
s-search-modal-search-box-container
|
|
6
|
+
s-search-modal-search-box-inner
|
|
7
|
+
s-search-modal-search-box-inner-open
|
|
8
|
+
s-search-modal-input
|
|
9
|
+
s-search-modal-search-icon
|
|
10
|
+
s-search-modal-spinner
|
|
11
|
+
s-search-modal-spinner-loader
|
|
12
|
+
s-search-modal-search-results
|
|
13
|
+
s-search-modal-no-results
|
|
14
|
+
s-search-modal-results-item
|
|
15
|
+
s-search-modal-product
|
|
16
|
+
s-search-modal-product-image-container
|
|
17
|
+
s-search-modal-product-image
|
|
18
|
+
s-search-modal-product-details
|
|
19
|
+
s-search-modal-product-title
|
|
20
|
+
s-search-modal-product-title-h3
|
|
21
|
+
s-search-modal-product-price
|
|
22
|
+
s-search-modal-product-price-h4
|
package/utilities.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{".s-search-modal-search-button-icon":{"@apply bg-gray-bg2 hover:bg-gray-150 dark:hover:bg-opacity-10 transition duration-300 mx-3 text-sm rounded-full w-9 h-9":{}},".s-search-modal-container":{"@apply fixed inset-0 z-50 flex items-top justify-center overflow-auto items-top":{}},".s-search-modal-wrapper":{"@apply bg-transparent w-full":{}},".s-search-modal-inner":{"@apply mx-auto w-11/12 lg:w-6/12":{}},".s-search-modal-search-box-container":{"@apply mt-36 search-box anime-item":{}},".s-search-modal-search-box-inner":{"@apply relative bg-white rounded-tiny border border-border-color":{}},".s-search-modal-search-box-inner-open":{"@apply relative bg-white rounded-tiny border border-border-color rounded-b-none":{}},".s-search-modal-input":{"@apply anime-item bg-transparent border-0 form-input w-full ps-10 pt-6 pb-7 rounded-tiny text-gray-600":{}},".s-search-modal-search-icon":{"@apply anime-item flex justify-end items-center absolute top-4 start-4 text-md text-gray-text":{}},".s-search-modal-spinner":{"@apply spinner-loader-wrap absolute top-1/2 transform -translate-y-1/2 start-4 w-4 h-4":{}},".s-search-modal-spinner-loader":{"@apply block spinner-loader w-4 h-4 animate-spin border-2 border-gray-300 rounded-full":{}},".s-search-modal-search-results":{"@apply m-auto max-h-96 overflow-y-auto bg-white rounded-b-tiny":{}},".s-search-modal-no-results":{"@apply error p-4 text-sm text-gray-text":{}},".s-search-modal-results-item":{"@apply transition-colors duration-300 hover:bg-gray-bg2 results__item px-4 xs:px-5 py-5 border-t-0":{}},".s-search-modal-product":{"@apply h-full transition duration-500 bg-transparent justify-around overflow-hidden flex":{}},".s-search-modal-product-image-container":{"@apply relative overflow-hidden w-20 h-20 sm:w-28 sm:h-28 rounded-md":{}},".s-search-modal-product-image":{"@apply h-full w-full object-cover":{}},".s-search-modal-product-details":{"@apply flex-1 ps-4 xs:ps-5 pt-1":{}},".s-search-modal-product-title":{"@apply flex flex-col justify-start items-baseline":{}},".s-search-modal-product-title-h3":{"@apply text-sm font-bold text-title-color leading-6 mb-2.5":{}},".s-search-modal-product-price":{"@apply w-full flex justify-between items-center mb-5":{}},".s-search-modal-product-price-h4":{"@apply text-primary font-bold text-sm":{}}}
|