sdga-ui 1.0.2 → 1.0.3
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/.editorconfig +23 -23
- package/.github/workflows/publish.yml +38 -33
- package/.prettierignore +73 -73
- package/.prettierrc +17 -17
- package/LICENSE +21 -21
- package/README.md +167 -167
- package/fonts/IBM_Plex_Sans_Arabic/OFL.txt +93 -93
- package/package.json +51 -47
- package/theme/_fonts.scss +58 -58
- package/theme/_functions.scss +11 -11
- package/theme/_variables.scss +50 -50
- package/theme/components/_accordion.scss +35 -35
- package/theme/components/_alerts.scss +11 -11
- package/theme/components/_badges.scss +8 -8
- package/theme/components/_breadcrumb.scss +13 -13
- package/theme/components/_buttons.scss +270 -270
- package/theme/components/_cards.scss +21 -21
- package/theme/components/_carousel.scss +33 -33
- package/theme/components/_content.scss +211 -211
- package/theme/components/_dropdowns.scss +45 -45
- package/theme/components/_forms-check.scss +124 -124
- package/theme/components/_forms-floating.scss +17 -17
- package/theme/components/_forms-inputs.scss +70 -70
- package/theme/components/_forms-range.scss +26 -26
- package/theme/components/_forms-select.scss +47 -47
- package/theme/components/_forms-switch.scss +63 -63
- package/theme/components/_forms-validation.scss +16 -16
- package/theme/components/_forms.scss +14 -14
- package/theme/components/_list-group.scss +26 -26
- package/theme/components/_modals.scss +42 -42
- package/theme/components/_navbar.scss +40 -40
- package/theme/components/_navigation.scss +151 -151
- package/theme/components/_offcanvas.scss +15 -15
- package/theme/components/_overlays.scss +112 -112
- package/theme/components/_pagination.scss +39 -39
- package/theme/components/_popovers.scss +26 -26
- package/theme/components/_progress.scss +11 -11
- package/theme/components/_spinners.scss +11 -11
- package/theme/components/_tables.scss +47 -47
- package/theme/components/_toasts.scss +16 -16
- package/theme/components/_tooltips.scss +15 -15
- package/theme/config/_base.scss +111 -111
- package/theme/config/_colors.scss +303 -303
- package/theme/config/_effects.scss +227 -227
- package/theme/config/_radius.scss +78 -78
- package/theme/config/_spacing.scss +155 -155
- package/theme/config/_typography.scss +118 -118
- package/theme/customizations/_alerts.scss +242 -242
- package/theme/customizations/_badges.scss +15 -15
- package/theme/customizations/_buttons.scss +209 -209
- package/theme/customizations/_cards.scss +117 -117
- package/theme/customizations/_forms-check.scss +278 -278
- package/theme/customizations/_forms-inputs.scss +9 -9
- package/theme/customizations/_forms-switch.scss +91 -91
- package/theme/customizations/_forms.scss +5 -5
- package/theme/customizations/_global.scss +25 -25
- package/theme/customizations/_links.scss +46 -46
- package/theme/customizations/_tables.scss +67 -67
- package/theme/customizations/_toasts.scss +221 -221
- package/theme/customizations/_utilities.scss +138 -138
- package/theme/dga-ui.scss +28 -28
package/.editorconfig
CHANGED
|
@@ -1,23 +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
|
|
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
|
|
@@ -1,33 +1,38 @@
|
|
|
1
|
-
name: Publish to npm
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- 'master'
|
|
7
|
+
# tags:
|
|
8
|
+
# - 'v*'
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
build-and-publish:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write # Required for OIDC
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout code
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Set up Node.js
|
|
22
|
+
uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 20
|
|
25
|
+
registry-url: 'https://registry.npmjs.org/'
|
|
26
|
+
|
|
27
|
+
- name: Update npm
|
|
28
|
+
run: npm install -g npm@latest
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: npm install
|
|
32
|
+
|
|
33
|
+
- name: Build CSS
|
|
34
|
+
run: npm run build-css
|
|
35
|
+
|
|
36
|
+
# Trusted Publishing doesn't need NODE_AUTH_TOKEN
|
|
37
|
+
- name: Publish package to npm
|
|
38
|
+
run: npm publish --access public
|
package/.prettierignore
CHANGED
|
@@ -1,73 +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
|
|
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
CHANGED
|
@@ -1,17 +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
|
-
}
|
|
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
CHANGED
|
@@ -1,21 +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.
|
|
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
CHANGED
|
@@ -1,167 +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 sdga-ui
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Or with yarn:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
yarn add sdga-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/sdga-ui/css/dga-ui.css">
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Or import it in your JavaScript/CSS:
|
|
49
|
-
|
|
50
|
-
```css
|
|
51
|
-
@import "sdga-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 "sdga-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!
|
|
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 sdga-ui
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Or with yarn:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
yarn add sdga-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/sdga-ui/css/dga-ui.css">
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Or import it in your JavaScript/CSS:
|
|
49
|
+
|
|
50
|
+
```css
|
|
51
|
+
@import "sdga-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 "sdga-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!
|