sdga-ui 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.
Files changed (69) hide show
  1. package/.editorconfig +23 -0
  2. package/.prettierignore +73 -0
  3. package/.prettierrc +17 -0
  4. package/LICENSE +21 -0
  5. package/README.md +167 -0
  6. package/css/dga-ui.css +27286 -0
  7. package/css/dga-ui.css.map +1 -0
  8. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Bold.ttf +0 -0
  9. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-ExtraLight.ttf +0 -0
  10. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Light.ttf +0 -0
  11. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Medium.ttf +0 -0
  12. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Regular.ttf +0 -0
  13. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-SemiBold.ttf +0 -0
  14. package/fonts/IBM_Plex_Sans_Arabic/IBMPlexSansArabic-Thin.ttf +0 -0
  15. package/fonts/IBM_Plex_Sans_Arabic/OFL.txt +93 -0
  16. package/package.json +36 -0
  17. package/theme/_fonts.scss +58 -0
  18. package/theme/_functions.scss +12 -0
  19. package/theme/_variables.scss +50 -0
  20. package/theme/components/_accordion.scss +35 -0
  21. package/theme/components/_alerts.scss +12 -0
  22. package/theme/components/_badges.scss +8 -0
  23. package/theme/components/_breadcrumb.scss +13 -0
  24. package/theme/components/_buttons.scss +270 -0
  25. package/theme/components/_cards.scss +21 -0
  26. package/theme/components/_carousel.scss +33 -0
  27. package/theme/components/_content.scss +211 -0
  28. package/theme/components/_dropdowns.scss +45 -0
  29. package/theme/components/_forms-check.scss +124 -0
  30. package/theme/components/_forms-floating.scss +17 -0
  31. package/theme/components/_forms-inputs.scss +70 -0
  32. package/theme/components/_forms-range.scss +26 -0
  33. package/theme/components/_forms-select.scss +47 -0
  34. package/theme/components/_forms-switch.scss +64 -0
  35. package/theme/components/_forms-validation.scss +16 -0
  36. package/theme/components/_forms.scss +14 -0
  37. package/theme/components/_list-group.scss +26 -0
  38. package/theme/components/_modals.scss +42 -0
  39. package/theme/components/_navbar.scss +40 -0
  40. package/theme/components/_navigation.scss +151 -0
  41. package/theme/components/_offcanvas.scss +15 -0
  42. package/theme/components/_overlays.scss +112 -0
  43. package/theme/components/_pagination.scss +39 -0
  44. package/theme/components/_popovers.scss +26 -0
  45. package/theme/components/_progress.scss +11 -0
  46. package/theme/components/_spinners.scss +11 -0
  47. package/theme/components/_tables.scss +48 -0
  48. package/theme/components/_toasts.scss +17 -0
  49. package/theme/components/_tooltips.scss +15 -0
  50. package/theme/config/_base.scss +112 -0
  51. package/theme/config/_colors.scss +303 -0
  52. package/theme/config/_effects.scss +228 -0
  53. package/theme/config/_radius.scss +78 -0
  54. package/theme/config/_spacing.scss +156 -0
  55. package/theme/config/_typography.scss +118 -0
  56. package/theme/customizations/_alerts.scss +242 -0
  57. package/theme/customizations/_badges.scss +15 -0
  58. package/theme/customizations/_buttons.scss +209 -0
  59. package/theme/customizations/_cards.scss +117 -0
  60. package/theme/customizations/_forms-check.scss +279 -0
  61. package/theme/customizations/_forms-inputs.scss +9 -0
  62. package/theme/customizations/_forms-switch.scss +91 -0
  63. package/theme/customizations/_forms.scss +5 -0
  64. package/theme/customizations/_global.scss +25 -0
  65. package/theme/customizations/_links.scss +47 -0
  66. package/theme/customizations/_tables.scss +68 -0
  67. package/theme/customizations/_toasts.scss +222 -0
  68. package/theme/customizations/_utilities.scss +138 -0
  69. package/theme/dga-ui.scss +28 -0
package/.editorconfig ADDED
@@ -0,0 +1,23 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ # Unix-style newlines with a newline ending every file
7
+ [*]
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ charset = utf-8
11
+ trim_trailing_whitespace = true
12
+
13
+ # Matches multiple files with brace expansion notation
14
+ [*.{js,jsx,ts,tsx,json,css,scss,md,html,yml,yaml}]
15
+ indent_style = space
16
+ indent_size = 2
17
+
18
+ [*.md]
19
+ trim_trailing_whitespace = false
20
+ max_line_length = off
21
+
22
+ [Makefile]
23
+ indent_style = tab
@@ -0,0 +1,73 @@
1
+ # Dependencies
2
+ node_modules
3
+ bower_components
4
+
5
+ # Production builds
6
+ dist
7
+ build
8
+ out
9
+ .next
10
+ .nuxt
11
+ .cache
12
+ .parcel-cache
13
+
14
+ # Package files
15
+ *.min.js
16
+ *.min.css
17
+ package-lock.json
18
+ yarn.lock
19
+ pnpm-lock.yaml
20
+
21
+ # Logs
22
+ logs
23
+ *.log
24
+ npm-debug.log*
25
+ yarn-debug.log*
26
+ yarn-error.log*
27
+
28
+ # Coverage and test reports
29
+ coverage
30
+ .nyc_output
31
+ *.lcov
32
+
33
+ # Environment and config
34
+ .env
35
+ .env.local
36
+ .env.*.local
37
+
38
+ # Git
39
+ .git
40
+ .gitignore
41
+
42
+ # IDE and editors
43
+ .vscode
44
+ .idea
45
+ *.swp
46
+ *.swo
47
+ *~
48
+
49
+ # OS files
50
+ .DS_Store
51
+ Thumbs.db
52
+
53
+ # Documentation
54
+ CHANGELOG.md
55
+ LICENSE
56
+
57
+ # Generated files
58
+ *.generated.*
59
+ *.bundle.*
60
+
61
+ # Assets
62
+ *.png
63
+ *.jpg
64
+ *.jpeg
65
+ *.gif
66
+ *.svg
67
+ *.ico
68
+ *.pdf
69
+ *.woff
70
+ *.woff2
71
+ *.ttf
72
+ *.eot
73
+ *.otf
package/.prettierrc ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "semi": true,
3
+ "trailingComma": "es5",
4
+ "singleQuote": true,
5
+ "printWidth": 100,
6
+ "tabWidth": 2,
7
+ "useTabs": false,
8
+ "arrowParens": "avoid",
9
+ "bracketSpacing": true,
10
+ "endOfLine": "lf",
11
+ "quoteProps": "as-needed",
12
+ "jsxSingleQuote": false,
13
+ "bracketSameLine": false,
14
+ "proseWrap": "preserve",
15
+ "htmlWhitespaceSensitivity": "css",
16
+ "embeddedLanguageFormatting": "auto"
17
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Mahmoud Adel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,167 @@
1
+ # **DGA UI – Government-Style Bootstrap Theme**
2
+
3
+ **DGA UI** is a customizable UI theme inspired by modern government and authority design systems.
4
+ Built on top of **Bootstrap**, it provides consistent colors, typography, spacing, and reusable UI patterns suitable for official portals, administrative dashboards, and public-sector applications.
5
+
6
+ This package helps you apply a clean, structured, and authoritative look across your web interfaces with minimal setup.
7
+
8
+ ---
9
+
10
+ ## **✨ Features**
11
+
12
+ * Government-inspired design system
13
+ * Full compatibility with Bootstrap
14
+ * Custom color palette and typography
15
+ * Standardized spacing & component overrides
16
+ * Utility classes for layout and theming
17
+ * Light / dark mode friendly (optional)
18
+ * Easy to integrate into any frontend project
19
+
20
+ ---
21
+
22
+ ## **📦 Installation**
23
+
24
+ Install via npm:
25
+
26
+ ```bash
27
+ npm install dga-ui
28
+ ```
29
+
30
+ Or with yarn:
31
+
32
+ ```bash
33
+ yarn add dga-ui
34
+ ```
35
+
36
+ ---
37
+
38
+ ## **🔧 Usage**
39
+
40
+ ### **Using the Compiled CSS**
41
+
42
+ Include the compiled CSS file in your HTML:
43
+
44
+ ```html
45
+ <link rel="stylesheet" href="node_modules/dga-ui/css/dga-ui.css">
46
+ ```
47
+
48
+ Or import it in your JavaScript/CSS:
49
+
50
+ ```css
51
+ @import "dga-ui/css/dga-ui.css";
52
+ ```
53
+
54
+ ### **Using SCSS Source Files**
55
+
56
+ Import the theme in your SCSS file:
57
+
58
+ ```scss
59
+ @import "dga-ui/theme/dga-ui";
60
+ ```
61
+
62
+ All Bootstrap components automatically adopt the DGA UI theme.
63
+
64
+ ---
65
+
66
+ ## **📁 File Structure**
67
+
68
+ ```
69
+ dga-ui/
70
+
71
+ ├─ css/ # Compiled CSS output
72
+ │ └─ dga-ui.css
73
+ ├─ fonts/ # Font files (IBM Plex Sans Arabic)
74
+ ├─ theme/ # Source SCSS theme files
75
+ │ ├─ dga-ui.scss # Main theme entry point
76
+ │ ├─ _fonts.scss
77
+ │ ├─ _functions.scss
78
+ │ ├─ _variables.scss
79
+ │ ├─ config/ # Base configuration
80
+ │ ├─ components/ # Component styles
81
+ │ └─ customizations/ # Theme customizations
82
+ ├─ package.json
83
+ ├─ LICENSE
84
+ └─ README.md
85
+ ```
86
+
87
+ ---
88
+
89
+ ## **🛠 Development**
90
+
91
+ ### **Building the CSS**
92
+
93
+ Compile the SCSS to CSS:
94
+
95
+ ```bash
96
+ npm run build-css
97
+ ```
98
+
99
+ ### **Watch Mode**
100
+
101
+ Watch for changes and auto-compile:
102
+
103
+ ```bash
104
+ npm run watch-css
105
+ ```
106
+
107
+ ### **Customization**
108
+
109
+ You can override SCSS variables before importing the theme:
110
+
111
+ ```scss
112
+ // Your custom variables
113
+ $primary: #0d47a1;
114
+ $secondary: #ffc107;
115
+
116
+ // Import the DGA UI theme
117
+ @import "dga-ui/theme/dga-ui";
118
+ ```
119
+
120
+ ---
121
+
122
+ ## **🎨 Theme Structure**
123
+
124
+ The theme is organized into three main sections:
125
+
126
+ - **config/** - Base configuration (colors, typography, spacing, etc.)
127
+ - **components/** - Bootstrap component overrides
128
+ - **customizations/** - Additional styling and utilities
129
+
130
+ ---
131
+
132
+ ## **📚 Roadmap**
133
+
134
+ * React / Angular UI components
135
+ * Icon set
136
+ * Forms enhancement
137
+ * Grid templates
138
+ * Additional themes (municipal, ministry, authority variants)
139
+
140
+ ---
141
+
142
+ ## **🤝 Contributing**
143
+
144
+ Contributions are welcome!
145
+ Feel free to open issues, submit pull requests, or suggest improvements.
146
+
147
+ ---
148
+
149
+ ## **📄 License**
150
+
151
+ MIT License — free for personal and commercial use.
152
+
153
+ ---
154
+
155
+ ## **👤 Author**
156
+
157
+ Created and maintained by **Mahmoud**.
158
+
159
+ ---
160
+
161
+ If you want, I can also generate:
162
+
163
+ ✅ A logo
164
+ ✅ A color palette for the authority theme
165
+ ✅ Example screenshots/mockups
166
+ ✅ NPM keywords
167
+ Just tell me!