thecore-auth 0.0.83 → 0.0.85
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/CSS variables documentation.md +111 -0
- package/package.json +2 -1
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# CSS Variables Documentation for the Package
|
|
2
|
+
|
|
3
|
+
This package uses CSS variables to allow quick and easy customization of various layout and style aspects. You can modify these variables in your global CSS file to adapt the look of the site to your needs.
|
|
4
|
+
|
|
5
|
+
```css
|
|
6
|
+
/* Primary color, company color */
|
|
7
|
+
--color-primary: ; /* -> Primary color, company color */
|
|
8
|
+
--color-primary-hover: ; /* -> Primary color on hover */
|
|
9
|
+
--color-primary-text: ; /* -> Primary text color */
|
|
10
|
+
--shadow-primary: ; /* -> Shadow of the primary color */
|
|
11
|
+
--shadow-primary-hover: ; /* -> Shadow on primary color hover */
|
|
12
|
+
--shadow-primary-active: ; /* -> Shadow on primary color active */
|
|
13
|
+
--shadow-primary-input: ; /* -> Shadow on input form focus */
|
|
14
|
+
--padding-primary-button: ; /* -> Padding of the login button */
|
|
15
|
+
--margin-primary-button: ; /* -> Margin of the login button */
|
|
16
|
+
--radius-primary-button: ; /* -> Border radius of the login button */
|
|
17
|
+
--justify-primary: ; /* -> Position of the login button */
|
|
18
|
+
|
|
19
|
+
/* Card form dimensions */
|
|
20
|
+
--height-card-form: ; /* -> Height of the card containing the logo and form */
|
|
21
|
+
--width-card-form: ; /* -> Width of the card containing the logo and form */
|
|
22
|
+
--max-width-card-form: ; /* -> Maximum width of the card containing the logo and form */
|
|
23
|
+
--border-form-size: ; /* -> Border size of the card containing the logo and form */
|
|
24
|
+
--form-radius: ; /* -> Border radius of the card containing the logo and form */
|
|
25
|
+
--text-input-label: ; /* -> Font size of input labels */
|
|
26
|
+
--text-input-placeholder: ; /* -> Font size of input placeholders */
|
|
27
|
+
--color-color-label: ; /* -> Text color of input labels */
|
|
28
|
+
--label-display: ; /* -> Flag for input label visibility ('none' hides the label, 'block' shows it) */
|
|
29
|
+
--padding-input: ; /* -> Input padding, useful for determining input size */
|
|
30
|
+
--input-radius: ; /* -> Border radius of the input field */
|
|
31
|
+
|
|
32
|
+
/* Card form color */
|
|
33
|
+
--color-form: ; /* -> Background color of the card containing the logo and form */
|
|
34
|
+
--color-form-border: ; /* -> Border color of the card and form */
|
|
35
|
+
|
|
36
|
+
/* Input colors */
|
|
37
|
+
--color-input-bg: ; /* -> Input background color */
|
|
38
|
+
--color-input-border: ; /* -> Input border color */
|
|
39
|
+
--color-input-text: ; /* -> Input text color */
|
|
40
|
+
|
|
41
|
+
/* Form dimensions */
|
|
42
|
+
--basis-form: ; /* -> Form width (basis) */
|
|
43
|
+
--input-form-width: ; /* -> Width of form inputs */
|
|
44
|
+
--margin-input-form: ; /* -> Margin between form inputs */
|
|
45
|
+
|
|
46
|
+
/* Form title */
|
|
47
|
+
--text-form-title-size: ; /* -> Form title font size */
|
|
48
|
+
--margin-form-title: ; /* -> Form title margin */
|
|
49
|
+
--title-display: ; /* -> Flag for title visibility ('none' hides it, 'block' shows it) */
|
|
50
|
+
--title-position: ; /* -> Position of the title */
|
|
51
|
+
|
|
52
|
+
/* Background image */
|
|
53
|
+
--bg-image: ; /* -> Background image of the login section */
|
|
54
|
+
|
|
55
|
+
/* Alert - Danger */
|
|
56
|
+
--color-danger: ; /* -> Danger color */
|
|
57
|
+
--color-danger-text: ; /* -> Danger text color */
|
|
58
|
+
--color-danger-hover: ; /* -> Danger hover color */
|
|
59
|
+
--color-danger-progress: ; /* -> Danger progress bar color */
|
|
60
|
+
|
|
61
|
+
/* Alert - Info */
|
|
62
|
+
--color-info: ; /* -> Info color */
|
|
63
|
+
--color-info-text: ; /* -> Info text color */
|
|
64
|
+
--color-info-hover: ; /* -> Info hover color */
|
|
65
|
+
--color-info-progress: ; /* -> Info progress bar color */
|
|
66
|
+
|
|
67
|
+
/* Alert - Success */
|
|
68
|
+
--color-success: ; /* -> Success color */
|
|
69
|
+
--color-success-text: ; /* -> Success text color */
|
|
70
|
+
--color-success-hover: ; /* -> Success hover color */
|
|
71
|
+
--color-success-progress: ; /* -> Success progress bar color */
|
|
72
|
+
|
|
73
|
+
/* Alert - Warning */
|
|
74
|
+
--color-warning: ; /* -> Warning color */
|
|
75
|
+
--color-warning-text: ; /* -> Warning text color */
|
|
76
|
+
--color-warning-hover: ; /* -> Warning hover color */
|
|
77
|
+
--color-warning-progress: ; /* -> Warning progress bar color */
|
|
78
|
+
|
|
79
|
+
/* Login Logo */
|
|
80
|
+
--login-logo-width: ; /* -> Width of the login logo image */
|
|
81
|
+
--login-logo-max-width: ; /* -> Maximum width of the login logo image */
|
|
82
|
+
|
|
83
|
+
/* Loading Component */
|
|
84
|
+
--color-loading-bg: ; /* -> Background color of the Loading component */
|
|
85
|
+
--color-spinner: ; /* -> Spinner color in the Loading component */
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## How to Use the Variables
|
|
89
|
+
|
|
90
|
+
You can modify the declared CSS variables to customize the appearance of your application. Here's how:
|
|
91
|
+
|
|
92
|
+
1. ### Import the package's CSS file:
|
|
93
|
+
Once the package is installed, you need to import the CSS file that contains the variables into your main stylesheet (typically styles.css or main.css).
|
|
94
|
+
Add the following line of code to your main CSS file (or a new one included in your project):
|
|
95
|
+
```css
|
|
96
|
+
@import url('../node_modules/thecore-auth/dist/thecore-auth.css');
|
|
97
|
+
```
|
|
98
|
+
This import ensures that all CSS variables from the package (such as colors, sizes, and styling properties) are loaded into your project, allowing you to easily customize them.
|
|
99
|
+
|
|
100
|
+
2. ### Modify the CSS variables:
|
|
101
|
+
After importing the package's CSS file, you can override the variables in your custom CSS file to adapt the package’s appearance to your needs. For example, you can change the primary color or the form dimensions by modifying the variables in your CSS file:
|
|
102
|
+
```css
|
|
103
|
+
:root {
|
|
104
|
+
--color-primary: #ff5733; /* Change the primary color */
|
|
105
|
+
--height-card-form: 60vh; /* Change the form card height */
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
3. ### Verify that the changes are applied:
|
|
110
|
+
Once the import is done and the variables are modified, your changes will be automatically applied to all parts of the package that use these variables. For example, colors, margins, and component dimensions will update without the need to modify the component code directly.
|
|
111
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "thecore-auth",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.85",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/thecore-auth.cjs.js",
|
|
7
7
|
"style": "dist/thecore-auth.css",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"files": [
|
|
54
54
|
"dist",
|
|
55
55
|
"README.md",
|
|
56
|
+
"CSS variables documentation.md",
|
|
56
57
|
"!dist/config.json"
|
|
57
58
|
],
|
|
58
59
|
"repository": {
|